/* Module 07 — Калькулятор «под ключ» */

.tk-wrap { background: var(--snow); }
.tk { width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Crumbs reused */
.tk-crumbs {
  display: flex; align-items: center; gap: 8px;
  padding: 24px 0 16px;
  font-family: 'Inter'; font-size: 13px; color: var(--grey);
}
.tk-crumbs a { color: var(--grey); text-decoration: none; }
.tk-crumbs .sep { color: var(--grey-light); }
.tk-crumbs .cur { color: var(--midnight); }

/* Hero */
.tk-hero {
  padding: 24px 0 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.tk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--mint);
  color: #00876C;
  font-family: 'Inter'; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 24px;
}
.tk-h1 {
  font-family: 'Manrope'; font-weight: 800; font-size: 64px; line-height: 68px;
  letter-spacing: -0.025em; color: var(--midnight); margin: 0 0 24px;
}
.tk-h1 em {
  font-style: normal; color: var(--voltage); position: relative; white-space: nowrap;
}
.tk-h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
  background: rgba(0,200,150,0.18); z-index: -1;
}
.tk-lead {
  font-family: 'Inter'; font-size: 19px; line-height: 30px; color: var(--grey);
  margin: 0 0 32px;
}
.tk-stamps { display: flex; gap: 24px; flex-wrap: wrap; }
.tk-stamp {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter'; font-size: 14px; color: var(--graphite);
}
.tk-stamp .ic { color: var(--voltage); }

/* Hero illustration: stylized invoice card */
.tk-hero-illo {
  position: relative;
  height: 480px;
  border-radius: 24px;
  background: linear-gradient(165deg, #0F2A3D 0%, #1F3A4D 100%);
  padding: 36px;
  color: var(--snow);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15,42,61,0.25);
}
.tk-hero-illo::before {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,150,0.25) 0%, transparent 70%);
}
.tk-hero-illo-eyebrow {
  font-family: 'Inter'; font-weight: 600; font-size: 12px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55); text-transform: uppercase;
  margin-bottom: 8px;
}
.tk-hero-illo-h {
  font-family: 'Manrope'; font-weight: 700; font-size: 22px;
  margin-bottom: 32px;
}
.tk-hero-illo-rows {
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.tk-hero-illo-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Inter'; font-size: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.tk-hero-illo-row.last { border-bottom: none; }
.tk-hero-illo-row .lbl { color: rgba(255,255,255,0.65); }
.tk-hero-illo-row .val {
  font-family: 'Manrope'; font-weight: 600; color: var(--snow);
  font-feature-settings: 'tnum' 1;
}
.tk-hero-illo-total {
  margin-top: 24px; padding-top: 20px;
  border-top: 2px solid rgba(0,200,150,0.4);
  display: flex; justify-content: space-between; align-items: baseline;
}
.tk-hero-illo-total .lbl {
  font-family: 'Manrope'; font-weight: 700; font-size: 16px; color: var(--snow);
}
.tk-hero-illo-total .val {
  font-family: 'Manrope'; font-weight: 800; font-size: 36px;
  letter-spacing: -0.02em; color: var(--voltage);
  font-feature-settings: 'tnum' 1;
}

/* ============= MAIN CALCULATOR ============= */
.tk-calc-section {
  padding: 32px 0 80px;
  background: var(--mist);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.tk-calc {
  background: var(--snow);
  border-radius: 24px;
  border: 1px solid var(--stone);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15,42,61,0.06);
  display: grid; grid-template-columns: 1.3fr 1fr;
}
.tk-calc-form { padding: 40px 48px; }
.tk-calc-result {
  background: linear-gradient(180deg, #0F2A3D 0%, #14304a 100%);
  color: var(--snow);
  padding: 40px 40px;
  display: flex; flex-direction: column;
  position: relative;
}
.tk-calc-result::before {
  content: ''; position: absolute; right: -100px; top: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,200,150,0.18), transparent 70%);
  pointer-events: none;
}

.tk-section-title {
  font-family: 'Manrope'; font-weight: 700; font-size: 22px; color: var(--midnight);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 10px;
}
.tk-section-title .num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--mist); color: var(--midnight);
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.tk-section-sub {
  font-family: 'Inter'; font-size: 14px; color: var(--grey);
  margin: 0 0 24px 38px;
}

.tk-step { padding: 24px 0; border-bottom: 1px solid var(--stone); }
.tk-step:first-child { padding-top: 0; }
.tk-step:last-child { border-bottom: none; padding-bottom: 0; }

.tk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-left: 38px; }
.tk-field { display: flex; flex-direction: column; gap: 6px; }
.tk-field.full { grid-column: 1 / -1; }
.tk-field-label {
  font-family: 'Inter'; font-weight: 600; font-size: 12px;
  color: var(--graphite); letter-spacing: 0.02em;
  display: flex; justify-content: space-between;
}
.tk-field-label .hint { color: var(--grey-light); font-weight: 400; }

.tk-input, .tk-select {
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--stone); border-radius: 10px;
  background: var(--snow);
  font-family: 'Inter'; font-size: 14px; color: var(--midnight);
}
.tk-input:focus, .tk-select:focus { outline: none; border-color: var(--voltage); }
.tk-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6B7A' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.tk-input.suffixed {
  padding-right: 46px;
}
.tk-input-wrap {
  position: relative;
}
.tk-input-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: 'Inter'; font-weight: 500; font-size: 13px; color: var(--grey-light);
  pointer-events: none;
}

/* segmented */
.tk-seg {
  display: inline-flex; padding: 4px;
  background: var(--mist);
  border: 1px solid var(--stone);
  border-radius: 12px;
  width: 100%;
}
.tk-seg button {
  flex: 1;
  padding: 8px 12px;
  border: none; background: transparent;
  font-family: 'Manrope'; font-weight: 600; font-size: 13px;
  color: var(--grey);
  border-radius: 9px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tk-seg button.active {
  background: var(--snow);
  color: var(--midnight);
  box-shadow: 0 1px 4px rgba(15,42,61,0.1);
}

.tk-slider-row {
  display: flex; align-items: center; gap: 16px;
  padding: 4px 0;
}
.tk-slider {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  background: var(--stone);
  border-radius: 999px;
  outline: none;
}
.tk-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--voltage);
  border: 3px solid var(--snow);
  box-shadow: 0 1px 4px rgba(15,42,61,0.15);
  cursor: pointer;
}
.tk-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--voltage); border: 3px solid var(--snow);
  cursor: pointer;
}
.tk-slider-val {
  font-family: 'Manrope'; font-weight: 700; font-size: 14px;
  color: var(--midnight);
  min-width: 76px; text-align: right;
  font-feature-settings: 'tnum' 1;
}

.tk-checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--stone); border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tk-checkbox.active {
  border-color: var(--voltage);
  background: rgba(0,200,150,0.04);
}
.tk-checkbox-box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--stone); border-radius: 6px;
  background: var(--snow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.tk-checkbox.active .tk-checkbox-box {
  background: var(--voltage);
  border-color: var(--voltage);
}
.tk-checkbox.active .tk-checkbox-box::after {
  content: '';
  width: 12px; height: 6px;
  border-left: 2px solid var(--midnight);
  border-bottom: 2px solid var(--midnight);
  transform: rotate(-45deg) translate(1px,-1px);
}
.tk-checkbox-content { flex: 1; }
.tk-checkbox-name {
  font-family: 'Manrope'; font-weight: 600; font-size: 14px; color: var(--midnight);
  display: flex; justify-content: space-between; gap: 12px;
}
.tk-checkbox-price {
  font-family: 'Manrope'; font-weight: 700; font-size: 14px; color: var(--midnight);
  font-feature-settings: 'tnum' 1;
}
.tk-checkbox-desc {
  font-family: 'Inter'; font-size: 12px; line-height: 18px; color: var(--grey);
  margin-top: 2px;
}

/* ============= RESULT panel ============= */
.tk-r-eyebrow {
  font-family: 'Inter'; font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.tk-r-h {
  font-family: 'Manrope'; font-weight: 700; font-size: 18px; color: var(--snow);
  margin: 4px 0 24px;
}
.tk-r-rows {
  display: flex; flex-direction: column;
  position: relative;
}
.tk-r-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  font-family: 'Inter'; font-size: 13px;
}
.tk-r-row .lbl {
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 8px;
}
.tk-r-row .lbl .info {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; color: rgba(255,255,255,0.6);
  cursor: help;
}
.tk-r-row .val {
  font-family: 'Manrope'; font-weight: 600; font-size: 14px; color: var(--snow);
  font-feature-settings: 'tnum' 1;
}
.tk-r-row.sub .val { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.tk-r-row.alt { padding-left: 20px; opacity: 0.78; }

.tk-r-section-title {
  font-family: 'Inter'; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--voltage);
  padding: 20px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4px;
}
.tk-r-section-title:first-child { padding-top: 0; }

.tk-r-total {
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.4);
  position: relative;
}
.tk-r-total-lbl {
  font-family: 'Inter'; font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--voltage);
  margin-bottom: 6px;
}
.tk-r-total-val {
  font-family: 'Manrope'; font-weight: 800; font-size: 44px;
  letter-spacing: -0.02em; color: var(--snow);
  font-feature-settings: 'tnum' 1;
  line-height: 1;
}
.tk-r-total-sub {
  font-family: 'Inter'; font-size: 12px; color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.tk-r-savings {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  display: flex; gap: 10px; align-items: flex-start;
  font-family: 'Inter'; font-size: 12px; line-height: 18px; color: rgba(255,255,255,0.85);
}
.tk-r-savings .ic { color: var(--caution); flex-shrink: 0; margin-top: 1px; }

.tk-r-cta { margin-top: 20px; }

/* ============= COMPARISON ============= */
.tk-compare-section { padding: 96px 0; }
.tk-section-h {
  font-family: 'Manrope'; font-weight: 700; font-size: 44px; line-height: 52px;
  letter-spacing: -0.02em; color: var(--midnight); margin: 0 0 16px;
}
.tk-section-l {
  font-family: 'Inter'; font-size: 18px; line-height: 28px; color: var(--grey);
  max-width: 720px; margin: 0 0 48px;
}

.tk-compare {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.tk-comp-card {
  border: 1px solid var(--stone);
  border-radius: 20px;
  padding: 32px;
  background: var(--snow);
  display: flex; flex-direction: column;
  position: relative;
}
.tk-comp-card.featured {
  background: var(--midnight);
  color: var(--snow);
  border-color: var(--midnight);
}
.tk-comp-card.featured::before {
  content: 'Лучший вариант';
  position: absolute; top: -10px; right: 24px;
  padding: 4px 12px;
  background: var(--voltage);
  color: var(--midnight);
  font-family: 'Inter'; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px;
}
.tk-comp-eyebrow {
  font-family: 'Inter'; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}
.tk-comp-card.featured .tk-comp-eyebrow { color: var(--voltage); }
.tk-comp-h {
  font-family: 'Manrope'; font-weight: 700; font-size: 22px; line-height: 28px;
  margin: 0 0 8px;
  color: var(--midnight);
}
.tk-comp-card.featured .tk-comp-h { color: var(--snow); }
.tk-comp-sub {
  font-family: 'Inter'; font-size: 13px; line-height: 20px; color: var(--grey);
  margin: 0 0 24px;
}
.tk-comp-card.featured .tk-comp-sub { color: rgba(255,255,255,0.65); }

.tk-comp-price {
  font-family: 'Manrope'; font-weight: 800; font-size: 36px;
  letter-spacing: -0.02em; color: var(--midnight);
  font-feature-settings: 'tnum' 1;
}
.tk-comp-card.featured .tk-comp-price { color: var(--voltage); }
.tk-comp-price-sub {
  font-family: 'Inter'; font-size: 12px; color: var(--grey);
  margin-top: 4px;
}
.tk-comp-card.featured .tk-comp-price-sub { color: rgba(255,255,255,0.55); }

.tk-comp-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tk-comp-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: 'Inter'; font-size: 13px; line-height: 20px;
  color: var(--graphite);
}
.tk-comp-card.featured .tk-comp-list li { color: rgba(255,255,255,0.85); }
.tk-comp-list li .ic { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.tk-comp-list li.no .ic { color: var(--grey-light); }
.tk-comp-card.featured .tk-comp-list li.no .ic { color: rgba(255,255,255,0.3); }
.tk-comp-list li.no { color: var(--grey-light); text-decoration: line-through; }

/* ============= STAGES ============= */
.tk-stages-section {
  padding: 96px 0;
  background: var(--mist);
  border-top: 1px solid var(--stone);
}
.tk-stages {
  display: flex; flex-direction: column;
  position: relative;
}
.tk-stages::before {
  content: ''; position: absolute;
  left: 31px; top: 32px; bottom: 32px;
  width: 2px;
  background: var(--stone);
}
.tk-stage {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}
.tk-stage-marker {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--snow);
  border: 1.5px solid var(--stone);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope'; font-weight: 700; font-size: 20px;
  color: var(--midnight);
  position: relative;
  z-index: 1;
}
.tk-stage-content { padding-top: 14px; }
.tk-stage-h {
  font-family: 'Manrope'; font-weight: 700; font-size: 18px; color: var(--midnight);
  margin: 0 0 4px;
}
.tk-stage-d {
  font-family: 'Inter'; font-size: 14px; line-height: 22px; color: var(--grey);
  margin: 0;
  max-width: 560px;
}
.tk-stage-amt {
  padding-top: 14px;
  text-align: right;
  font-family: 'Manrope'; font-weight: 700; font-size: 17px;
  color: var(--midnight);
  font-feature-settings: 'tnum' 1;
}
.tk-stage-amt small {
  display: block;
  font-family: 'Inter'; font-weight: 500; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--grey-light);
  margin-top: 2px;
}

/* ============= LOCKED PRICE BAND ============= */
.tk-lock-section { padding: 96px 0; }
.tk-lock {
  background: var(--midnight);
  border-radius: 28px;
  padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
  color: var(--snow);
  position: relative; overflow: hidden;
}
.tk-lock::before {
  content: ''; position: absolute; right: -180px; top: -100px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,200,150,0.18), transparent 70%);
}
.tk-lock-h {
  font-family: 'Manrope'; font-weight: 800; font-size: 40px; line-height: 48px;
  letter-spacing: -0.02em; color: var(--snow); margin: 0 0 20px;
}
.tk-lock-h em {
  font-style: normal; color: var(--voltage);
}
.tk-lock-l {
  font-family: 'Inter'; font-size: 17px; line-height: 28px; color: rgba(255,255,255,0.7);
  margin: 0 0 32px;
}
.tk-lock-pts {
  display: flex; flex-direction: column; gap: 14px;
  list-style: none; padding: 0; margin: 0;
}
.tk-lock-pts li {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: 'Inter'; font-size: 15px; line-height: 22px; color: rgba(255,255,255,0.9);
}
.tk-lock-pts li .ic { color: var(--voltage); flex-shrink: 0; margin-top: 2px; }
.tk-lock-pts li strong { color: var(--snow); font-weight: 600; }

.tk-lock-card {
  background: var(--snow);
  border-radius: 20px;
  padding: 32px;
  color: var(--midnight);
  position: relative;
  z-index: 1;
}
.tk-lock-card-eyebrow {
  font-family: 'Inter'; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.tk-lock-card-h {
  font-family: 'Manrope'; font-weight: 700; font-size: 24px; color: var(--midnight);
  margin: 0 0 24px;
}
.tk-lock-card-rows {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}
.tk-lock-card-row {
  display: flex; justify-content: space-between;
  font-family: 'Inter'; font-size: 14px; color: var(--graphite);
}
.tk-lock-card-row .val { font-family: 'Manrope'; font-weight: 600; color: var(--midnight); font-feature-settings: 'tnum' 1; }
.tk-lock-card-total {
  border-top: 2px solid var(--midnight);
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.tk-lock-card-total .lbl { font-family: 'Manrope'; font-weight: 700; font-size: 15px; color: var(--midnight); }
.tk-lock-card-total .val {
  font-family: 'Manrope'; font-weight: 800; font-size: 32px;
  letter-spacing: -0.02em; color: var(--midnight);
  font-feature-settings: 'tnum' 1;
}

/* FAQ */
.tk-faq-section {
  padding: 96px 0;
  background: var(--mist);
  border-top: 1px solid var(--stone);
}
.tk-faq {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.tk-faq-item {
  background: var(--snow);
  border: 1px solid var(--stone);
  border-radius: 14px;
  overflow: hidden;
}
.tk-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  font-family: 'Manrope'; font-weight: 600; font-size: 17px; color: var(--midnight);
  cursor: pointer;
}
.tk-faq-q .ic {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey); flex-shrink: 0;
  transition: transform 0.2s ease;
}
.tk-faq-item.open .tk-faq-q .ic { transform: rotate(45deg); color: var(--voltage); }
.tk-faq-a {
  padding: 0 28px 22px;
  font-family: 'Inter'; font-size: 15px; line-height: 26px; color: var(--graphite);
  display: none;
}
.tk-faq-item.open .tk-faq-a { display: block; }

/* Final CTA */
.tk-final {
  padding: 96px 0;
  text-align: center;
}
.tk-final-h {
  font-family: 'Manrope'; font-weight: 800; font-size: 56px; line-height: 64px;
  letter-spacing: -0.025em; color: var(--midnight);
  margin: 0 auto 20px; max-width: 720px;
}
.tk-final-l {
  font-family: 'Inter'; font-size: 19px; line-height: 30px; color: var(--grey);
  margin: 0 auto 36px; max-width: 560px;
}
.tk-final-btns { display: inline-flex; gap: 12px; }
