/* ── 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-scroll {
  overflow-x: auto;
  padding-top: 18px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.calca-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto;
  overflow: visible;
}

.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;
  position: relative;
}

.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;
}

.calca-tab__new-badge {
  position: absolute;
  top: -15px;
  right: -12px;
  background: rgba(235, 246, 251, 1);
  color: rgba(19, 21, 26, 1);
  font-size: 12px;
  font-weight: 400;
  padding: 6px 9px;
  border-radius: 15px;
  transform: rotate(-14deg);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

/* ── 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;
  flex-wrap: wrap;
}

.calca-plan__note {
  font-size: 12px;
  line-height: 1.3;
  color: #131313;
  opacity: .6;
  margin: 0 0 8px;
  width: 100%;
}

.calca-plan__dialog-rate {
  font-size: 14px;
  font-weight: 500;
  color: #131313;
  margin: 4px 0 8px;
}

.calca-plan__desc--small {
  min-height: auto;
  margin-bottom: 12px;
}

.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-scroll {
    width: 100%;
  }

  .calca-tabs {
    width: max-content;
    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 :is(h1,h2) {
  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 :is(h1,h2)::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 :is(h1,h2) {
    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 :is(h1,h2) {
    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 :is(h1,h2) {
    margin: 0 0 20px;
    font-size: 34px;
    padding: 12px;
  }

  .ca-clients__hero :is(h1,h2)::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;
}

.calc-pricing {
  overflow: hidden;
  max-width: 100vw;
  padding: 40px 0 60px;
}
.calc-pricing__title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.07em;
  color: rgb(19, 19, 19);
  text-align: center;
  margin: 0 0 24px;
}
@media (min-width: 768px) {
  .calc-pricing__title {
    font-size: 48px;
    margin-bottom: 30px;
  }
}
.calc-pricing__tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 4px;
  background-color: #fff;
  border-radius: 10px;
  padding: 4px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto 24px;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
          box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.calc-pricing__tab {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: rgb(19, 19, 19);
  cursor: pointer;
  -webkit-transition: background 0.2s ease, color 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.calc-pricing__tab.active {
  background-color: #0389CB;
  color: #fff;
}
.calc-pricing__panels {
  display: block;
}
.calc-pricing__panel {
  display: none;
}
.calc-pricing__panel.active {
  display: block;
  -webkit-animation: pricingPanelIn 0.3s ease forwards;
          animation: pricingPanelIn 0.3s ease forwards;
}
@-webkit-keyframes pricingPanelIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes pricingPanelIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
.calc-pricing__empty {
  background-color: #fff;
  border-radius: 0;
  padding: 48px 20px;
  margin: 0 -20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  border-radius: 20px;
}
@media (min-width: 768px) {
  .calc-pricing__empty {
    margin: 0;
  padding: 48px 24px;

  }
}
.calc-pricing__shield {
  max-width: 164px;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: auto;
  margin-bottom: 10px;
}
.calc-pricing__empty-title {
  font-size: 24px;
  font-weight: 500;
  color: rgb(19, 19, 19);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.06em;
}
.calc-pricing__empty-desc {
  font-size: 16px;
  font-weight: 400;
  color: rgba(19, 19, 19, 0.7);
  line-height: 1.4;
  margin: 0;
}
.calc-pricing__cols {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}
@media (min-width: 820px) {
  .calc-pricing__cols {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
}
.calc-pricing__col {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background-color: #fff;
  border-radius: 0;
  padding: 15px 20px;
  margin: 0 -20px;
  border-radius: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
@media (min-width: 520px) {
  .calc-pricing__col {
    padding: 25px;
    border-radius: 20px;
    margin: 0;
  }
}
.calc-pricing__col-title {
  font-size: 24px;
  font-weight: 500;
  color: rgb(19, 19, 19);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin: 0 0 10px;
}
.calc-pricing__col-desc {
  font-size: 16px;
  color: rgba(19, 19, 19, 0.5);
  margin: 0 0 20px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.calc-pricing__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(19, 19, 19, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.calc-pricing__table th, .calc-pricing__table td {
  width: 50%;
  padding: 14px 16px;
  color: rgb(19, 19, 19);
  border-right: 1px solid rgba(19, 19, 19, 0.1);
  border-bottom: 1px solid rgba(19, 19, 19, 0.1);
}
.calc-pricing__table th:last-child, .calc-pricing__table td:last-child {
  border-right: none;
}
.calc-pricing__table tr:last-child td {
  border-bottom: none;
}
.calc-pricing__table th {
  text-align: left;
  font-weight: 500;
  background-color: #f5f5f5;
}
.calc-pricing__hint {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: -0.04em;
  color: rgb(19, 19, 19);
  background-color: #EEF7FB;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
  margin-top: auto;
  line-height: 1.4;
}
.calc-pricing__hint svg {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   v2 (тест дизайна, Figma 9004:43043 / 9027:16292 / 9208:49098)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Единая строка каналов (без табов) ── */
.calca-controls { margin-bottom: 20px; }
.calca-controls > .container { align-items: stretch; gap: 0; }

.calca-pills-wrap { position: relative; }
.calca-pills { display: block; max-width: none; margin: 0; padding: 2px 0; overflow: hidden; }
.calca-pills .swiper-wrapper { display: flex; }
.calca-pills .swiper-slide { width: auto; flex-shrink: 0; }
.calca-pills-wrap.is-native .calca-pills { overflow-x: auto; scrollbar-width: none; }
.calca-pills-wrap.is-native .calca-pills::-webkit-scrollbar { display: none; }

/* рассеивание по краям: появляется, только когда есть что прокручивать в эту сторону */
.calca-pills-wrap::before,
.calca-pills-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s ease;
}
.calca-pills-wrap::before { left: 0;  background: linear-gradient(90deg, #f3f3f3 15%, rgba(243, 243, 243, 0)); }
.calca-pills-wrap::after  { right: 0; background: linear-gradient(270deg, #f3f3f3 15%, rgba(243, 243, 243, 0)); }
.calca-pills-wrap.is-start::before, .calca-pills-wrap.is-end::after, .calca-pills-wrap.is-static::before, .calca-pills-wrap.is-static::after { opacity: 0; }

/* стрелки */
.calca-pills-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 28px; height: 28px;
  margin-top: -14px;
  padding: 0;
  border: 1px solid #d6e9f3;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity .3s ease, background .25s ease;
}
.calca-pills-arrow--prev { left: 2px; }
.calca-pills-arrow--next { right: 2px; }
.calca-pills-arrow:hover { background: #e9eaeb; }
.calca-pills-arrow.is-disabled { opacity: 0; pointer-events: none; }
.calca-pills-wrap.is-static .calca-pills-arrow { display: none; }

.calca-pill {
  flex: 0 0 auto;
  height: 40px;
  gap: 6px;
  padding: 4px 10px 4px 7px;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 10px;
}
.calca-pill__icon { width: 26px; height: 26px; border-radius: 6px; }
.calca-pill--active { background: #ebf6fb; border-color: #0389cb; }

/* ── Левая панель: одна белая карточка (заголовок канала, карточка тарифа, кнопка) ── */
.calca-layout { gap: 10px; }
.calca-left { padding: 25px; gap: 20px; }
.calca-panel { gap: 20px; }

.calca-channel-head { display: flex; align-items: center; gap: 12px; }
.calca-channel-head:empty { display: none; }
.calca-channel-head__icon { width: 40px; height: 40px; border-radius: 0; object-fit: contain; flex-shrink: 0; }
.calca-channel-head__name { font-size: 24px; font-weight: 500; line-height: 1.05; color: #131313; }
.calca-channel-head__desc { margin-top: 6px; font-size: 16px; line-height: 1.25; color: #545758; }

/* у карточки канала название/описание уже в заголовке */
.calca-plan[data-channel] .calca-plan__name,
.calca-plan[data-channel] .calca-plan__desc { display: none; }

.calca-more-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #0389cb;
  border-radius: 5px;
  background: transparent;
  color: #0389cb;
  font: 500 16px/16px "Inter", sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background .25s;
}
.calca-more-btn:hover { background: rgba(3, 137, 203, .07); }

/* ── Корзина: бейдж «Бесплатно» на кнопке демо ── */
.calca-cart__inner { padding: 25px; }
.calca-cart__actions .chatapp-btn--trans { position: relative; overflow: visible; }
.calca-free-badge {
  position: absolute;
  top: -10px;
  right: -6px;
  padding: 5px 9px;
  border-radius: 15px;
  background: #ebf6fb;
  color: #131313;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  transform: rotate(-8deg);
  pointer-events: none;
}

/* ── Баннер «3 дня бесплатно» перед футером ── */
.calca-free { background: #f3f3f3; padding: 50px 0; }
.calca-free__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 6% 0%, rgba(125, 190, 232, .55) 0, rgba(125, 190, 232, 0) 28%),
    radial-gradient(circle at 96% 108%, rgba(125, 190, 232, .45) 0, rgba(125, 190, 232, 0) 26%),
    #0389cb;
}
.calca-free__triangles { position: absolute; top: 40px; right: 40px; width: 182px; height: 90px; pointer-events: none; }
.calca-free__left { position: relative; flex: 0 0 auto; width: 507px; max-width: 45%; display: flex; flex-direction: column; gap: 30px; }
.calca-free__title { margin: 0; font-size: 56px; font-weight: 500; line-height: 1.16; letter-spacing: -.02em; color: #fff; }
.calca-free__buttons { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.calca-free__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 64px;
  padding: 12px 20px;
  border-radius: 5px;
  background: #fff;
  color: #0389cb;
  font: 500 16px/20px "Inter", sans-serif;
  text-decoration: none;
  transition: background .25s;
}
.calca-free__btn:hover { background: #f3f3f3; }
.calca-free__badge {
  position: absolute;
  top: -12px;
  right: -14px;
  padding: 6px 10px;
  border-radius: 1000px;
  background: #7dde92;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-8deg);
}
.calca-free__info { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 500; line-height: 20px; color: #f3f3f3; }
.calca-free__right { position: relative; flex: 1 1 auto; min-width: 0; align-self: stretch; padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, .25); display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.calca-free__sub { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.05; color: #f3f3f3; opacity: .85; }
.calca-free__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; }
.calca-free__list li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; line-height: 1.15; color: #fff; }
.calca-free__icon { flex: 0 0 40px; width: 40px; height: 40px; box-sizing: border-box; padding: 8px; border-radius: 12px; background: #fff; display: inline-flex; }
.calca-free__icon img { width: 24px; height: 24px; display: block; }

@media (max-width: 1100px) {
  .calca-free__box { flex-direction: column; align-items: stretch; }
  .calca-free__left { width: auto; max-width: none; }
  .calca-free__right { padding-left: 0; border-left: 0; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .25); }
  .calca-free__triangles { display: none; }
}
@media (max-width: 767px) {
  .calca-left { padding: 16px; }
  .calca-free { padding: 30px 0; }
  .calca-free__box { padding: 24px; border-radius: 24px; }
  .calca-free__title { font-size: 34px; }
  .calca-free__list { grid-template-columns: 1fr; }
}


/* ── Анимации переключения и выбора ── */
.calca-pill { transition: background .3s ease, border-color .3s ease, color .3s ease, transform .2s ease, box-shadow .3s ease; }
.calca-pill:active { transform: scale(.95); }
.calca-pill--active { animation: calca-pill-pop .4s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 2px 10px rgba(3, 137, 203, .15); }
.calca-pill .calca-pill__icon { transition: filter .3s ease, opacity .3s ease; }
@keyframes calca-pill-pop { 0% { opacity: .7; } 100% { opacity: 1; } }

.calca-anim-in { animation: calca-in .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes calca-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.calca-anim-pop { animation: calca-pop .35s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes calca-pop { 0% { transform: scale(.985); } 60% { transform: scale(1.012); } 100% { transform: scale(1); } }

.calca-plan { transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .25s ease; }
.calca-plan:hover { box-shadow: 0 6px 20px rgba(3, 137, 203, .12); }
.calca-plan--in-cart .calca-plan__counter,
.calca-plan--in-cart .calca-plan__in-cart-label { animation: calca-fade .3s ease both; }
@keyframes calca-fade { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.calca-tag--new { animation: calca-tag-in .35s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes calca-tag-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.calca-bump { display: inline-block; animation: calca-bump .4s ease; }
@keyframes calca-bump { 0% { opacity: .55; } 100% { opacity: 1; } }

.calca-more-btn { transition: background .25s ease, transform .2s ease, color .25s ease; }
.calca-more-btn:active { transform: scale(.99); }

@media (prefers-reduced-motion: reduce) {
  .calca-anim-in, .calca-anim-pop, .calca-tag--new, .calca-bump, .calca-pill--active,
  .calca-plan--in-cart .calca-plan__counter, .calca-plan--in-cart .calca-plan__in-cart-label { animation: none !important; }
}


/* ── Плавность: смена канала и корзина ── */
.calca-left > * { transition: opacity .17s ease, transform .17s ease; }
.calca-left.calca-leaving > * { opacity: 0; transform: translateY(-6px); }
.calca-anim-in { animation-duration: .6s; animation-timing-function: cubic-bezier(.25, .8, .25, 1); }
.calca-anim-pop { animation-duration: .5s; }
.calca-pill { transition-duration: .35s; }
.calca-plan { transition-duration: .35s; }

/* блоки корзины появляются плавно, а не мгновенно */
.calca-cart__inner > *:not([hidden]),
#calca-cart-content > *:not([hidden]),
.calca-cart__pricing > *:not([hidden]) { animation: calca-cart-in .45s cubic-bezier(.25, .8, .25, 1) both; }
.calca-cart__actions { animation: none !important; }
@keyframes calca-cart-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.calca-cart__inner { transition: none; }
.calca-tag--new { animation-duration: .5s; }

@media (prefers-reduced-motion: reduce) {
  .calca-left > * { transition: none; }
  .calca-cart__inner > *, #calca-cart-content > *, .calca-cart__pricing > * { animation: none !important; }
}
.calca-left > .calca-more-btn { transition: opacity .17s ease, transform .17s ease, background .25s ease; }

/* ── Мобильная версия ── */
@media (max-width: 767px) {
  /* карточка канала и корзина — на всю ширину (раньше левая сжималась по контенту) */
  .calca-layout { align-items: stretch; }
  .calca-left { width: 100%; max-width: 100%; box-sizing: border-box; }
  .calca-plan { width: 100%; max-width: none; }

  /* баннер «3 дня бесплатно»: кнопка на всю ширину */
  .calca-free__buttons { flex-direction: column; align-items: stretch; gap: 14px; }
  .calca-free__btn { width: 100%; justify-content: center; }
  .calca-free__badge { right: 14px; }
  .calca-free__info { justify-content: center; }
}

/* ── Карточки тарифов: сетка по 1/3 ширины панели (3 тарифа без пустого места справа) ── */
.calca-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.calca-plans-grid .calca-plan {
  width: auto;
  max-width: none;
  min-width: 0;
  flex: none;
}
.calca-plans-grid .calca-period-pill { width: auto; flex: 1 1 0; }
@media (max-width: 1100px) {
  .calca-plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .calca-plans-grid { grid-template-columns: 1fr; }
}
.calca-plans-grid .calca-period-pills { width: 100%; box-sizing: border-box; }
.calca-plans-grid .calca-period-pill { justify-content: center; }

/* ── Единый компактный список из 8 пунктов в каждом тарифе ── */
.calca-plan__features { gap: 0; margin-bottom: 12px; }
.calca-plan__features li {
  align-items: center;
  font-size: 13px;
  line-height: 1.25;
  padding: 7px 0;
  border-bottom: 1px solid rgba(19, 19, 19, .07);
}
.calca-plan__features li:last-child { border-bottom: 0; }
.calca-plan__features li > span:first-child { max-width: none; flex: 1; min-width: 0; }
.calca-plan__features li > span:last-child { display: inline-flex; align-items: center; justify-content: flex-end; }
.calca-feat-yes { display: block; }
.calca-feat-no { color: #131313; opacity: .4; font-weight: 400; }
.calca-plan--in-cart .calca-plan__features li { border-bottom-color: rgba(3, 137, 203, .14); }
