/* ─── HERO (переиспользуем базовый hero из discount.css) ─── */
.hero {
  background: var(--surface);
  padding: 25px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--r-lg);
  min-height: 360px;
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 60px;
}

.hero__title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero__sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Правая часть hero — инфографика */
.hero__info {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 340px;
}

.hero-fact {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: center;
}

.hero-fact__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-fact__label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.hero-fact--text {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-fact--text .hero-fact__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  line-height: 1.35;
}

/* ─── АРГУМЕНТЫ HERO ─── */
.hero-args {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.hero-arg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--red);
  padding: 13px 16px;
}

.hero-arg__ic {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-arg__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}

.hero-arg__sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── ТАБЛИЦЫ ─── */
.price-tables {
  padding: 0 0 40px;
}

.price-tables__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.price-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
  padding: 9px 18px;
  margin-bottom: 4px;
}

.price-tables__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--ink);
}

.price-tables__sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.price-table-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
  padding: 0 20px;
}

.price-table-wrap + .price-tables__title {
  margin-top: 16px;
}

.price-subtable__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink2);
  margin: 24px 0 8px;
}

.price-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

/* Заголовки */
.price-table thead th {
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

/* Первая колонка sticky */
.price-table thead th:first-child,
.price-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
}

.price-table thead th:first-child {
  background: var(--white);
  min-width: 160px;
}

.price-table tbody td:first-child {
  background: var(--white);
  font-weight: 600;
  color: var(--ink);
  padding-left: 20px;
}

/* Строки */
.price-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}

.price-table tbody tr:hover td {
  background: #fafafa;
}

.price-table tbody tr:hover td:first-child {
  background: #fafafa;
}

.price-table tbody td {
  padding: 13px 14px;
  text-align: left;
  color: var(--ink);
}

/* В 2-колоночных таблицах разрешаем перенос строк */
.price-table.price-table--2col tbody td {
  white-space: normal;
}

/* Популярные тиры (1000 и 2000 шт — индексы 4 и 5, то есть th:nth-child(6) и th:nth-child(7)) */
.price-table thead th.col-popular {
  background: var(--red-dim);
  color: var(--red);
  position: relative;
}

.price-table thead th.col-popular::after {
  content: ' ★';
  display: inline;
  font-size: 9px;
  opacity: .7;
}

.price-table tbody td.col-popular {
  font-weight: 700;
  color: var(--ink);
  background: #fff8f8;
}

.price-table tbody tr:hover td.col-popular {
  background: #fff0f0;
}

/* Заголовок группы в таблице */
.price-table-group td {
  background: var(--surface) !important;
  position: static !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink2);
  padding: 20px 20px 7px;
  border-top: 2px solid var(--border) !important;
  border-bottom: 1px solid var(--border);
}

.price-table tbody tr:first-child.price-table-group td {
  border-top: none !important;
  padding-top: 12px;
}

/* Сноска под таблицей */
.price-table-note {
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ─── КАЛЬКУЛЯТОР ─── */
.price-calc-section {
  padding: 0 0 40px;
}

.price-calc {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 52px 56px;
}

.price-calc__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--ink);
}

.price-calc__sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

.price-calc__body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Группа полей */
.calc-group {
  margin-bottom: 32px;
}

.calc-group:last-of-type {
  margin-bottom: 0;
}

.calc-group__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Radio карточки */
.calc-radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-radio {
  display: none;
}

.calc-radio + label {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s, background .15s;
  min-width: 120px;
}

.calc-radio + label span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.calc-radio:checked + label {
  border-color: var(--red);
  background: var(--red-dim);
  color: var(--red);
}

.calc-radio:checked + label span {
  color: var(--red);
  opacity: .8;
}

.calc-radio + label:hover {
  border-color: var(--border);
}

/* Checkboxes */
.calc-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.calc-check-item {
  position: relative;
}

.calc-check {
  display: none;
}

.calc-check + label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
  padding: 4px 0;
  user-select: none;
}

.calc-check + label::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  margin-top: 1px;
  transition: background .12s, border-color .12s;
}

.calc-check:checked + label::before {
  background: var(--red);
  border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5L3.8 6.5L9 1' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.calc-check:disabled + label {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .55;
}

.calc-check:disabled + label::before {
  background: var(--surface);
  border-color: var(--border);
}

.calc-check-note {
  display: none;
  font-size: 11px;
  color: var(--red);
  margin-top: 2px;
  margin-left: 28px;
  line-height: 1.3;
}

.calc-check-note.visible {
  display: block;
}

/* Tooltip иконка */
.calc-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  cursor: default;
}

.calc-tooltip__icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-tooltip__text {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.calc-tooltip:hover .calc-tooltip__text {
  display: block;
}

/* Количество */
.calc-qty-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-qty {
  width: 160px;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s;
  appearance: textfield;
}

.calc-qty:focus {
  outline: none;
  border-color: var(--red);
}

.calc-qty::-webkit-inner-spin-button,
.calc-qty::-webkit-outer-spin-button {
  opacity: 1;
}

.calc-qty-hint {
  font-size: 12px;
  color: var(--muted);
}

/* Toggles */
.calc-toggles {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calc-toggle-info {
  display: flex;
  flex-direction: column;
}

.calc-toggle-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.calc-toggle-price {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* CSS Toggle switch */
.toggle-switch {
  display: none;
}

.toggle-switch + label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}

.toggle-switch + label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.toggle-switch:checked + label {
  background: var(--red);
}

.toggle-switch:checked + label::after {
  transform: translateX(20px);
}

/* ─── РЕЗУЛЬТАТ ─── */
.calc-result {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: sticky;
  top: 24px;
}

.calc-result__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.calc-result__total {
  font-size: 42px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.calc-result__per-card {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.calc-result__savings {
  display: none;
  background: var(--green-dim);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
}

.calc-result__savings.visible {
  display: block;
}

.calc-result__disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.calc-result__btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Разбивка стоимости */
.calc-breakdown {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-breakdown__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.calc-breakdown__row.highlight {
  color: var(--ink);
  font-weight: 600;
}

/* ─── CTA ПОД КАЛЬКУЛЯТОРОМ ─── */
.calc-cta {
  margin-top: 24px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.calc-cta__text {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}

.calc-cta__sub {
  font-size: 14px;
  color: var(--muted);
}

.calc-cta__right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-cta__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.calc-cta__form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.calc-cta__input {
  width: 220px;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s;
  outline: none;
}

.calc-cta__input:focus { border-color: var(--red); }
.calc-cta__input::placeholder { color: #b0b0b0; }

.calc-cta__sep {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-cta__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.calc-cta__or {
  font-size: 12px;
  color: var(--muted);
}

.calc-cta__phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  transition: opacity .15s;
}

.calc-cta__phone:hover { opacity: .8; }

.calc-cta__phone-label {
  font-size: 12px;
  color: var(--muted);
}

.calc-cta__agree {
  font-size: 11px;
  color: var(--muted);
}

.calc-cta__agree a {
  color: var(--muted);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .calc-cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 32px;
  }

  .calc-cta__right {
    min-width: unset;
  }
}

@media (max-width: 560px) {
  .calc-cta {
    padding: 28px 20px;
  }

  .calc-cta__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-cta__input {
    width: 100%;
  }

  .calc-cta__form .btn {
    white-space: nowrap;
  }
}

/* ─── СЕРВИСЫ ─── */
.price-services {
  padding: 0 0 40px;
}

.price-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price-service {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
}

.price-service__icon {
  width: 48px;
  height: 48px;
  background: var(--red-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin: 0 auto 14px;
}

.price-service__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.price-service__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.price-service__badge {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ─── КАРТОЧКА ЦЕНЫ НА ДИЗАЙН КАРТЫ ─── */
.diz-card-callout {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.diz-card-callout__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.diz-card-callout__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.diz-card-callout__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}

.diz-card-callout__badge {
  background: var(--green-dim);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Кнопка после таблицы */
.price-table-btn {
  margin-top: 20px;
  margin-bottom: 36px;
}

/* 2-колоночная таблица доработки */
.price-table.price-table--2col thead th:first-child,
.price-table.price-table--2col tbody td:first-child {
  min-width: 280px;
}

/* Акцентная ячейка сроков */
.price-table tbody td.sroki-accent {
  font-weight: 700;
  color: var(--red);
}

/* ─── АДАПТИВ ─── */
@media (max-width: 1024px) {
  .price-calc__body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .calc-result {
    position: static;
  }

  .price-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .price-tables { display: none; }
}

@media (max-width: 900px) {
  .diz-card-banner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 28px;
  }

  .diz-card-banner__free {
    min-width: unset;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-align: left;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 40px 24px 32px;
  }

  .hero__info {
    display: none;
  }

  .price-calc {
    padding: 36px 32px;
  }

  .hero-facts {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .calc-checks {
    grid-template-columns: 1fr;
  }

  .calc-radio-grid label {
    min-width: unset;
    flex: 1;
  }
}

@media (max-width: 560px) {
  .diz-card-banner {
    padding: 24px 20px;
  }

  .price-calc {
    padding: 28px 20px;
  }

  .hero__btns {
    flex-direction: column;
  }

  .hero__btns .btn {
    width: 100%;
    justify-content: center;
  }

  .price-services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .calc-result__total {
    font-size: 34px;
  }
}

/* ─── ЦЕНООБРАЗОВАНИЕ ─── */
.price-quality { padding: 0 0 32px; }

.price-quality__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 14px;
}

.price-quality__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 14px;
}

.pq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
}

.pq-card--pro { border-top: 3px solid var(--red); }

.pq-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pq-card__badge--eco { background: var(--surface); color: var(--muted); }
.pq-card__badge--pro { background: var(--red-dim); color: var(--red-dark); }

.pq-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pq-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.4;
}

.pq-card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.pq-card--eco .pq-card__list li::before { background: var(--border); }
.pq-card--pro .pq-card__list li::before { background: var(--red); }

.price-quality__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.price-quality__sub {
  font-size: 14px;
  color: var(--muted);
}

/* ─── ССЫЛКИ В ТАБЛИЦЕ ПЕРСОНАЛИЗАЦИИ ─── */
.pers-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--red);
  position: relative;
  cursor: pointer;
}

.pers-link::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
  z-index: 20;
}

.pers-link::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
  z-index: 20;
}

.pers-link:hover::after,
.pers-link:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
  .price-quality__grid { grid-template-columns: 1fr; }
  .pq-card { padding: 16px 18px; }
  .price-quality__footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}
