/* ── Base ── */

body {
  
}
.calca-main {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #131313;
  padding: 0 0 40px;
  letter-spacing: -.06em;
  max-width: 100vw;
  overflow: hidden;

}

main.calca-main {
  margin-top: 40px;
}

body {
    background: rgba(243, 243, 243, 1);


}

/* ── Hero ── */
.calca-hero {
  background: #fff;
  text-align: center;
  padding: 48px 16px 36px;
  margin-bottom: 20px;
}

.calca-hero__title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.1;
}

.calca-hero__sub {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ── Controls row (tabs + pills above layout) ── */
.calca-controls {
  margin-bottom: 40px;
}

.calca-controls>.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── Layout ── */
.calca-layout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.calca-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background-color: #fff;
  border-radius: 20px;
  box-sizing: border-box;
}

/* ── Main Tabs ── */
.calca-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto;
}

.calca-tab {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #131313;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.calca-tab--active {
  background: rgba(3, 137, 203, 1);
  color: #fff;
}

.calca-tab:not(.calca-tab--active):hover {
  background: rgba(3, 137, 203, 0.1);
  color: #0389CB;
}

/* ── Panels ── */
.calca-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.calca-panel--active {
  display: flex;
}

/* ── Pills (messenger / channel) ── */
.calca-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  max-width: 865px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.calca-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #131313;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.calca-pill:hover {
  border-color: #0389CB;
  color: #0389CB;
  background: #fff;
}

.calca-pill:hover .calca-pill__icon {
  filter: grayscale(0);
  opacity: 1;
}

.calca-pill--active {
  background: rgba(235, 246, 251, 1);
  border-color: rgba(3, 137, 203, 0.4);
  color: #131313;
  opacity: 1;

}

.calca-pill--active .calca-pill__icon {
  filter: grayscale(0);
}

.calca-pill__icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: .8;
}

/* ── Plans Grid ── */
.calca-plans-grid,
.calca-channel-plans {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* ── Plan Card ── */
.calca-plan {
  background: rgba(245, 245, 247, 1);
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  width: 25%;
  max-width: 235px;
  cursor: pointer;
}

@media(max-width:1330px) {
  .calca-plans-grid {
    flex-wrap: wrap;
  }

  .calca-plan {
    width: calc(50% - 4px);
    max-width: none;
  }


  .calca-period-pill {
    width: 33.33%;
  }

}

.calca-plan:hover {
  border-color: rgba(3, 137, 203, 0.3);
}

.calca-plan--in-cart {
  border-color: rgba(131, 197, 229, 1);
  background: rgba(235, 246, 251, 1);
}

.calca-plan--individual {}

/* Featured badge */
.calca-plan__badge {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
  background: #0389CB;
  border-radius: 30px;
  padding: 4px 13px;
  white-space: nowrap;
}


/* Plan name */
.calca-plan__name {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -.05em;
  color: #131313;
}

/* Plan description */
.calca-plan__desc {
  font-size: 14px;
  color: #131313;
  opacity: .7;
  line-height: 1.2;
  margin: 0 0 12px;
  flex-shrink: 0;
  letter-spacing: -.03em;
  min-height: 54px;
}

/* Price */
.calca-plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 24px;
  font-weight: 500;
  color: #0389CB;
  margin: 0 0 15px;
  line-height: 1.2;
  letter-spacing: -0.06em;

}

.calca-plan__price--custom {
  font-size: 20px;
  font-weight: 500;
  color: #0389CB;
  margin: 0 0 15px;
  height: 28px;
}

.calca-plan__price-unit {
  font-size: 14px;
  font-weight: 400;
  opacity: .7;
  color: #131313;
}

.calca-plan__discount-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  border-radius: 4px;
  padding: 2px 5px;
  align-self: center;
  display: none;
}

/* Period pills inside card */
.calca-period-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
  width: 100%;
  height: 46px;
}

.calca-period-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #131313;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  user-select: none;
  width: 33.33%;
}

.calca-period-pill:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #131313;
}

.calca-period-pill--active {
  background: rgba(243, 243, 243, 1);
  color: #131313;
}

/* Бейдж скидки нависает сверху над кнопкой */
.calca-period-pill__badge {
  position: absolute;

  font-size: 12px;
  font-weight: 700;
  background: rgba(125, 222, 146, 1);
  color: #fff;
  border-radius: 3px;
  padding: 3px 6px;
  box-sizing: border-box;
  transform: rotate(-15deg);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.4;
  transition: background 0.2s ease;
  border-radius: 20px;
  right: -10px;
  top: -16px;
  filter: grayscale(1);
  z-index: 2;
  display: none;
}

.calca-period-pill--active .calca-period-pill__badge {
  background: rgba(125, 222, 146, 1);
  display: block;
  color: #fff;
  filter: grayscale(0);

}

/* Features list */
.calca-plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.calca-plan__features li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  line-height: 1.2;
}

.calca-plan__features li > span:first-child {
  max-width: 165px;
}

.calca-plan__features li>span:last-child {
  font-weight: 500;
  white-space: nowrap;
  color: #131313;
}

/* Tooltip */
.calca-feat-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.calca-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  line-height: 0;
}

.calca-tooltip svg {
  display: block;
  flex-shrink: 0;
}

.calca-tooltip__text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  white-space: normal;
  background: #131313;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 7px 10px;
  border-radius: 8px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 30;
}

.calca-tooltip__text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #131313;
}

.calca-tooltip:hover .calca-tooltip__text,
.calca-tooltip:focus .calca-tooltip__text {
  opacity: 1;
  outline: none;
}

/* Individual card extras */
.calca-plan__individual-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.2;
  color: #131313;
  margin-bottom: auto;
  letter-spacing: -.05em;
  font-weight: 500;
}

.calca-plan__individual-feature svg {
  display: block;
  width: 46px;
  height: 46px;
  min-width: 46px;
}

/* Action area */
.calca-plan__action {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.calca-plan__add-btn {
  display: block;
  background-color: #0389CB;
  color: #fff;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  font-size: 14px;
  padding: 12px;
}

/* В корзине: лейбл слева, счётчик справа */
.calca-plan__in-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calca-plan__in-cart-label {
  font-size: 14px;
  background-color: #0389CB;
  width: 40%;
  color: #fff;
  padding: 12px 7px;
  border-radius: 5px;
  text-align: center;
  height: 37px;
  line-height: 1;
  font-weight: 500;
}

/* Counter */
.calca-plan__counter {
  display: flex;
  align-items: center;
  gap: 1px;
  overflow: hidden;
  width: fit-content;
}

.calca-counter-btn {
  width: 37px;
  border: 1px solid rgba(3, 137, 203, 0.16);
  height: 37px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1;
  color: #131313;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  border-radius: 3px;
  background-color: #fff;
  font-weight: 500;
}

.calca-counter-btn:hover {
  background: rgba(3, 137, 203, 0.15);
}

.calca-counter-val {
  width: 38px;
  height: 37px;
  background-color: #fff;
  border: 1px solid rgba(3, 137, 203, 0.16);
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #131313;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
  border-radius: 3px;
}

.calca-counter-val::-webkit-outer-spin-button,
.calca-counter-val::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calca-counter-val:focus {
  outline: none;
}

/* ── Notes ── */
.calca-section__notes {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.calca-section__notes p {
  margin: 0;
}

/* ── Cart sidebar ── */
.calca-cart {
  position: sticky;
  top: 20px;
  width: 100%;
  max-width: 327px;
  min-width: 280px;
  flex-shrink: 0;
  height: fit-content;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.calca-cart__inner {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  
}

.calca-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.calca-cart__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.08em;
  margin: 0;
  color: #0389CB;
}

.calca-cart__reset-all {
  background: none;
  border: none;
  color: #0389CB;
  font-size: 12px;
  letter-spacing: -.05em;
  line-height: 1;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  padding: 0;
}

.calca-cart__reset-all:hover {
  text-decoration: underline;
}

.calca-cart__reset-all[hidden] {
  display: none;
}

.calca-cart__empty {
  font-size: 17px;
  letter-spacing: -.04em;
  line-height: 1.4;
  color: rgba(124, 128, 152, 1);
  text-align: center;
  margin: 0;
  margin-bottom: 6px;
}

/* Cart groups */
.calca-cart__group {
  background: #eef7fb;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 5px;
}

.calca-cart__group[hidden] {
  display: none;
}

.calca-cart__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  color: #131313;
}

.calca-cart__reset-group {
  background: none;
  border: none;
  color: #0389CB;
  font-size: 12px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  padding: 0;
  white-space: nowrap;
}

.calca-cart__reset-group:hover {
  text-decoration: underline;
}

.calca-cart__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.calca-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d4ecf7;
  color: #0389CB;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px 4px 10px;
  border-radius: 20px;
  line-height: 1.3;
  animation: calca-tag-in 0.18s ease;
}

@keyframes calca-tag-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.calca-tag__remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.calca-tag__remove:hover {
  opacity: 0.7;
}

/* Pricing block */
.calca-cart__pricing {
  background: #eef7fb;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calca-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #777;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(3, 137, 203, 0.15);
}

.calca-price-row[hidden] {
  display: none;
}

.calca-price-row span:last-child {
  font-weight: 500;
  font-size: 14px;
  color: rgba(19, 19, 19, 1);
  opacity: .7;
}

.calca-price-final-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calca-price-final-label {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.05em;
  color: #131313;
  margin-bottom: 5px;
}

.calca-price-final-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.calca-price-original {
  font-size: 14px;
  color: rgba(84, 87, 88, 1);
  text-decoration: line-through;
  font-weight: 500;
}

.calca-price-original[hidden] {
  display: none;
}

.calca-price-final {
  font-size: 24px;
  font-weight: 500;
  color: #0389CB;
  line-height: 1;
  letter-spacing: -.06em;
}

.calca-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(125, 222, 146, 1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px;
  width: fit-content;
  margin-top: 5px;
}

.calca-savings-badge[hidden] {
  display: none;
}

/* Cart actions */
.calca-cart__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calca-cart__actions .chatapp-btn,
.calca-cart__actions .chatapp-btn--trans {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: 0.25s ease;
}

.calca-cart__actions .chatapp-btn {
  background: #0389CB;
  color: #fff;
  border: 1px solid #0389CB;
}

.calca-cart__actions .chatapp-btn:hover {
  background: #0273aa;
  border-color: #0273aa;
}

.calca-cart__actions .chatapp-btn--trans {
  background: transparent;
  color: #0389CB;
  border: 1px solid #0389CB;
}

.calca-cart__actions .chatapp-btn--trans:hover {
  background: rgba(3, 137, 203, 0.07);
}

/* Hidden attribute support */
.calca-layout *[hidden] {
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 1200px) {

  .calca-plans-grid,
  .calca-channel-plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .calca-cart {
    width: 280px;
    min-width: 240px;
  }
}



@media (max-width: 560px) {
  .calca-controls>.container {
    align-items: stretch;
  }

  .calca-tabs {
    width: 100%;
    box-sizing: border-box;
  }

  .calca-tab {
    flex: 1;
    text-align: center;
    padding: 9px 8px;
    font-size: 13px;
  }

  .calca-pills {
    justify-content: flex-start;
  }

  .calca-plans-grid,
  .calca-channel-plans {
    grid-template-columns: 1fr;
  }
}

/* ── ca-clients__hero (hero section) ── */
.ca-clients__hero h1 {
  display: block;
  margin: 0 auto;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 5px 10px 10px;
  background-color: #fff;
  border-radius: 10px;
  font-size: 84px;
  font-weight: 400;
  letter-spacing: -0.06em;
  position: relative;
  margin-bottom: 20px;
}

.ca-clients__hero h1::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 16px solid #fff;
  top: 100%;
  right: 15px;
}

.ca-clients__hero p {
  display: block;
  text-align: center;
  letter-spacing: -0.06em;
  font-size: 20px;
  color: rgb(19, 19, 19);
  font-weight: 400;
  margin: 0;
  margin-bottom: 30px;

  max-width: 410px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 920px) {
  .ca-clients__hero h1 {
    font-size: 64px;
  }

  .ca-clients__hero p {
    font-size: 20px;
  }
}


@media(max-width: 820px) {
  .calca-plan {
    width: 100%;
  }

  .ca-clients {
    width: 100%;
  }

  .ca-clients__hero {
    display: flex;
    align-items: flex-start;

  }

  .calca-plans-grid, .calca-channel-plans {
    gap: 10px;
  }

  .ca-clients__hero h1 {
    margin: 0 0 30px;
  }

  .calca-plan__badge {
    top: 5px;
  }
  .ca-clients__hero p {
    font-size: 20px;
    text-align: left;
    margin: 0;
    margin-left: auto;
  }


  .ca-clients__hero p {
    text-align: left;
    width: 50%;
    font-size: 16px;
    margin-bottom: 30px;
  }

  .calca-controls {
    width: 100%;
  }

  .calca-controls>.container {
    align-items: flex-start;
  }

  .calca-pills {
    justify-content: flex-start;
  }

  .calca-controls {
    margin-bottom: 20px;
  }

  .calca-left {
    padding: 15px;
  }
  .calca-cart__inner {
    padding: 15px;
  }
}


@media (max-width: 767px) {
  .calca-hero__title {
    font-size: 32px;
  }

  .calca-controls {
    padding: 16px 0 14px;
    margin-bottom: 16px;
  }

  .calca-layout {
    flex-direction: column;
  }

  .calca-cart {
    position: static;
    max-width: none;
    width: 100%;

    
  }
  

  .calca-plans-grid,
  .calca-channel-plans {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 620px) {
  .ca-clients__hero h1 {
    margin: 0 0 20px;
    font-size: 34px;
    padding: 12px;
  }

  .ca-clients__hero h1::before {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
  }


}

.empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}