/* /tarify — стили посадки «Тарифы». Подключается ПОСЛЕ home.css (оттуда :root-токены,
   шапка/подвал, .glow, .reveal, компоненты price-tile / how-step / pricing-promises / pricing-cta).
   Здесь — только специфика страницы: hero, секции-обёртки, карточки, калькулятор, ROI, FAQ. */

/* ── общий градиентный акцент в заголовках ── */
.tf-em {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 700;
}

/* ════════════ HERO ════════════ */
.tf-hero {
  position: relative;
  padding: 64px 28px 76px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.tf-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tf-hero-inner {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto;
  text-align: center;
}
.tf-crumbs {
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--muted); letter-spacing: 0.3px; margin-bottom: 22px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.tf-crumbs a { color: var(--muted2); transition: color .15s ease; }
.tf-crumbs a:hover { color: var(--accent); }
.tf-crumbs span[aria-hidden] { color: var(--border2); }
.tf-crumbs-cur { color: var(--text); }

.tf-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--accent); letter-spacing: 0.6px; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 14px;
}
.tf-h1 {
  font-size: clamp(32px, 4.4vw, 50px); font-weight: 600;
  line-height: 1.04; letter-spacing: -2px; color: var(--text);
}
/* H1 и заголовок шагов — в одну строку на десктопе (на узких — переносим как обычно) */
@media (min-width: 900px) {
  .tf-h1, .how-title { white-space: nowrap; }
}
.tf-lead {
  margin: 22px auto 0; max-width: 680px;
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--muted2); letter-spacing: -0.1px;
}
.tf-lead strong { color: var(--text); font-weight: 600; }
.tf-sub {
  margin: 14px auto 0; max-width: 620px;
  font-size: 15px; line-height: 1.55; color: var(--muted);
}
.tf-hero .pricing-tiles { margin-top: 44px; text-align: left; }
.tf-model {
  margin: 24px auto 0; max-width: 720px;
  font-size: 14.5px; line-height: 1.6; color: var(--muted2);
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 22px;
  text-align: center;
}

/* ════════════ ОБЩАЯ СЕКЦИЯ (как .pricing / .how главной) ════════════ */
.tf-block {
  position: relative; padding: 88px 28px; border-top: 1px solid var(--border); overflow: hidden;
}
.tf-block::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 80px; background: linear-gradient(180deg, transparent, var(--accent), transparent); opacity: 0.5;
}
.tf-block-tight { padding: 60px 28px; }
.tf-block-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tf-glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  filter: blur(110px); top: 40%; left: 50%; transform: translate(-50%,-50%);
}
.tf-glow-green { background: radial-gradient(circle, rgba(34,197,94,0.09) 0%, transparent 70%); }
.tf-block-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }

/* заголовок секции */
.tf-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.tf-title {
  font-size: clamp(30px, 4vw, 50px); font-weight: 600; line-height: 1.05;
  letter-spacing: -1.6px; color: var(--text);
}
.tf-head .tf-eyebrow { margin-bottom: 12px; }
.tf-block-sub {
  margin: 18px auto 0; max-width: 720px;
  font-size: 16px; line-height: 1.6; color: var(--muted2); letter-spacing: -0.1px; text-align: center;
}
.how-title-wrap .tf-block-sub { margin-top: 20px; }

/* ════════════ ЧТО ВАМ С ЭТОГО — карточки ════════════ */
.tf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tf-card {
  position: relative; padding: 28px 30px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(22,27,39,0.6) 100%);
  border: 1px solid var(--border); transition: all .3s cubic-bezier(.16,1,.3,1);
}
.tf-card:hover { border-color: rgba(99,102,241,0.35); transform: translateY(-3px); }
.tf-card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 10px; display: flex; gap: 9px; align-items: baseline; }
.tf-card-title::before { content: '✓'; color: var(--green); font-weight: 800; font-size: 15px; flex: none; }
.tf-card-text { font-size: 15px; line-height: 1.6; color: var(--muted2); }

.tf-core {
  margin-top: 22px; padding: 32px 34px; border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at top, rgba(99,102,241,0.12) 0%, transparent 60%),
    linear-gradient(135deg, var(--accent-dim), rgba(139,92,246,0.10));
  border: 1px solid rgba(99,102,241,0.35);
  text-align: center;
}
.tf-core p { margin: 0 auto; max-width: 780px; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--text); }

/* ════════════ НЕ ЗА ГУДКИ ════════════ */
.tf-honest { max-width: 760px; margin: 0 auto; text-align: center; }
.tf-honest-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; letter-spacing: -0.8px; margin-bottom: 16px; }
.tf-honest-text { font-size: 17px; line-height: 1.7; color: var(--muted2); }
.tf-honest-text strong { color: var(--text); font-weight: 600; }

/* ════════════ КАЛЬКУЛЯТОР ════════════ */
.tf-calc {
  max-width: 860px; margin: 0 auto; padding: 32px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(22,27,39,0.55) 100%);
  border: 1px solid var(--border);
}
.tf-calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.tf-calc-grid-single { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto 24px; }
.tf-calc-grid-single .tf-field { flex-direction: column-reverse; }
.tf-calc-grid-single .tf-field input { text-align: center; }
.tf-calc-grid-single .tf-field-label { text-align: center; }
.tf-field { display: flex; flex-direction: column; gap: 8px; }
.tf-field-label { font-size: 12.5px; color: var(--muted2); font-weight: 500; }
.tf-field input {
  background: var(--bg); border: 1px solid var(--border2); border-radius: var(--r-sm);
  color: var(--text); font-family: 'DM Mono', monospace; font-size: 19px; font-weight: 400;
  padding: 12px 14px; width: 100%; transition: border-color .15s ease;
}
.tf-field input:focus { outline: none; border-color: var(--accent); }
/* убираем уродские стрелки-спиннеры у number-инпутов */
.tf-field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.tf-field input::-webkit-outer-spin-button,
.tf-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tf-calc-result { background: var(--bg); border: 1px solid var(--border2); border-radius: var(--r); overflow: hidden; }
.tf-calc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 22px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--muted2);
}
.tf-calc-row strong { color: var(--text); font-family: 'DM Mono', monospace; font-size: 16px; white-space: nowrap; }
.tf-calc-row:last-child { border-bottom: none; }
.tf-muted { color: var(--muted); }
.tf-calc-row-cut strong { color: var(--green); }
.tf-calc-row-total { background: var(--surface2); }
.tf-calc-row-total strong {
  font-size: 22px; font-weight: 500;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 70%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tf-calc-row-once { background: var(--surface2); }
.tf-calc-note { max-width: 760px; margin: 16px auto 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); text-align: center; }

/* ════════════ ОКУПАЕМОСТЬ ════════════ */
.tf-roi { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: 860px; margin: 0 auto; }
.tf-roi-col { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.tf-roi-col-after {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(180deg, rgba(99,102,241,0.10) 0%, var(--surface) 100%);
}
.tf-roi-label { font-family: 'DM Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 12px; }
.tf-roi-big { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; }
.tf-roi-money { font-family: 'DM Mono', monospace; font-size: 16px; color: var(--muted2); margin-top: 3px; }
.tf-roi-col-after .tf-roi-money { color: #a5b4fc; }
.tf-roi-note { font-size: 13.5px; line-height: 1.55; color: var(--muted2); margin-top: 14px; }
.tf-roi-arrow { font-size: 30px; color: var(--muted); }
.tf-roi-delta {
  max-width: 860px; margin: 20px auto 0; padding: 20px 26px; border-radius: var(--r);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  background: var(--surface2); border: 1px solid var(--border);
}
.tf-roi-delta-plus { font-size: 22px; font-weight: 800; color: var(--green); letter-spacing: -0.5px; }
.tf-roi-delta-money { font-size: 19px; font-weight: 700; }
.tf-roi-delta-tail { font-size: 14px; color: var(--muted2); }

/* ════════════ FAQ ════════════ */
.tf-faq { max-width: 800px; margin: 0 auto; }
.tf-faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.tf-faq-item:first-child { border-top: 1px solid var(--border); }
.tf-faq-q { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 8px; }
.tf-faq-a { font-size: 15px; line-height: 1.65; color: var(--muted2); }
.tf-faq-a a { color: var(--accent); }

/* ════════════ НЕ ЗА ГУДКИ — цитата-врезка ════════════ */
.tf-honest-v1 { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 30px; align-items: center; max-width: 900px; margin: 0 auto; }
.tf-hq1 {
  margin: 0; padding-left: 22px; border-left: 3px solid var(--accent);
  font-size: clamp(19px, 2.4vw, 26px); font-style: italic; line-height: 1.3; color: var(--text);
}
.tf-hq1-body p { font-size: 15.5px; line-height: 1.65; color: var(--muted2); }
.tf-hq1-body strong { color: var(--text); }

/* ════════════ ЧЕГО НЕТ — пилюли ════════════ */
.tf-x { color: #ef4444; font-weight: 700; }
.tf-nope-v2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tf-nope-final { margin-bottom: 56px; }
.tf-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 100px;
  background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.25); font-size: 16px; color: var(--muted2);
}
.tf-pill .tf-x { font-size: 15px; }

/* CTA-секция: компонент .pricing, но как финальный экран */
.tf-cta-sec .pricing-head { margin-bottom: 36px; max-width: 860px; }
.tf-cta-sec .pricing-title { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -1.8px; }

/* ════════════ АДАПТИВ ════════════ */
@media (max-width: 1024px) {
  .tf-block { padding: 72px 24px; }
  .tf-head { margin-bottom: 40px; }
}
@media (max-width: 760px) {
  .tf-hero { padding: 48px 22px 60px; }
  .tf-hero .pricing-tiles { grid-template-columns: 1fr; margin-top: 34px; }
  .tf-cards { grid-template-columns: 1fr; }
  .tf-calc { padding: 24px 20px; }
  .tf-calc-grid { grid-template-columns: 1fr 1fr; }
  .tf-calc-row { font-size: 14px; padding: 14px 18px; }
  .tf-roi { grid-template-columns: 1fr; }
  .tf-roi-arrow { transform: rotate(90deg); justify-self: center; }
  .tf-honest-v1 { grid-template-columns: 1fr; gap: 18px; }
}
