/* RankTracker — лендинг. Редакционная асимметрия, teal как редкий акцент,
   тёмная бутылочно-зелёная секция для контраста. Шрифт Inter (един с кабинетом),
   крупные табличные цифры как фирменная деталь дата-продукта. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg: #f3f5f6;
  --surface: #ffffff;
  --surface-2: #e9edee;
  --ink: #0d1719;
  --ink-soft: #38454a;
  --muted: #5d696d;
  --muted-2: #8a9598;
  --line: rgba(13, 23, 25, 0.10);
  --line-2: rgba(13, 23, 25, 0.18);

  --teal: #0e6b63;
  --teal-strong: #0a544d;
  --teal-soft: rgba(14, 107, 99, 0.10);
  --teal-tint: #e2efec;

  --dark: #0a1f1c;
  --dark-2: #102e29;
  --on-dark: #eaf2f0;
  --on-dark-muted: rgba(234, 242, 240, 0.60);
  --on-dark-line: rgba(234, 242, 240, 0.14);

  --up: #1f9d57;

  --r-sm: 6px;
  --r-btn: 9px;
  --r-card: 14px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "cv01" 1; }

/* eyebrow — единственная «громкая» мелочь, моноширинный трекинг */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-strong);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: var(--r-btn);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-strong); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--teal-soft), 0 0 0 1px var(--teal); }
.btn-on-dark { background: var(--on-dark); color: var(--dark); }
.btn-on-dark:hover { background: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 245, 246, 0.82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: var(--r-sm); }
.nav-actions { display: inline-flex; align-items: center; gap: 10px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 0 6px; transition: color 0.14s ease; }
.nav-link:hover { color: var(--teal); }

/* контентные врезки для статей */
.callout { margin: 20px 0; padding: 18px 22px; border-radius: var(--r-card); background: var(--teal-tint); border: 1px solid var(--teal-tint); }
.callout p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.callout strong { color: var(--teal-strong); }
.note-dead { background: var(--surface-2); border: 1px solid var(--line); }
.note-dead strong { color: var(--down, #c23d28); }
.takeaways { margin: 24px 0 8px; padding: 0; list-style: none; display: grid; gap: 12px; }
.takeaways li { display: flex; gap: 12px; font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.takeaways li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; background-repeat: no-repeat; background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='9' fill='%23e2efec'/%3E%3Cpath d='M7 11.3l3 3 5.5-6' stroke='%230e6b63' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.svc { padding: 26px 0; border-top: 1px solid var(--line); }
.svc h3 { font-size: 21px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.svc .badge { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); }
.badge--us { background: var(--teal); color: #fff; }
.badge--ya { background: var(--teal-soft); color: var(--teal-strong); }
.badge--dead { background: #f3dcd7; color: #b23a23; }
.svc p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 76ch; }
.svc .pm { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; max-width: 76ch; }
.svc .pm div { font-size: 15px; color: var(--muted); }
.svc .pm b { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 640px) { .svc .pm { grid-template-columns: 1fr; } }

/* ---------- hero (асимметрия + bleed справа) ---------- */
.hero { padding: 78px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero__copy { padding-bottom: 88px; }
.hero h1 {
  margin-top: 22px;
  font-size: 54px; line-height: 1.04; letter-spacing: -0.01em;
  max-width: 13ch;
}
.hero h1 .accent { color: var(--teal); }
.hero__sub { margin-top: 22px; max-width: 46ch; font-size: 18px; color: var(--muted); }
.hero__cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* медиа уезжает к правому краю вьюпорта (редакционный bleed) */
.hero__media { position: relative; margin-right: max(calc(50% - 50vw), -120px); padding-right: 28px; }
.hero__media::before {
  content: ""; position: absolute; inset: -40px -28px -40px 64px;
  background: linear-gradient(180deg, var(--teal-tint), rgba(226, 239, 236, 0));
  border-radius: 28px 0 0 28px; z-index: 0;
}
.browser {
  position: relative; z-index: 1;
  border: 1px solid var(--line-2); border-radius: 12px 12px 12px 12px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(13, 23, 25, 0.30), 0 2px 8px rgba(13, 23, 25, 0.06);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.browser__dot { width: 11px; height: 11px; border-radius: 50%; background: #cfd6d8; }
.browser__url {
  margin-left: 10px; padding: 4px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); letter-spacing: 0.01em;
}
.browser img { display: block; width: 100%; height: auto; }

/* плавающий чип-метрика поверх угла скрина — крафт-деталь */
.metric-chip {
  position: absolute; z-index: 2; left: -22px; bottom: 40px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--r-card);
  background: var(--dark); color: var(--on-dark);
  box-shadow: 0 18px 40px -16px rgba(10, 31, 28, 0.6);
}
.metric-chip strong { font-size: 30px; font-weight: 700; line-height: 1; color: #fff; }
.metric-chip span { font-size: 12.5px; line-height: 1.3; color: var(--on-dark-muted); max-width: 13ch; }
.metric-chip .up { color: #5fd996; font-weight: 600; }

/* ---------- stat band ---------- */
.statband { margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statband .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 0; display: flex; flex-direction: column; gap: 5px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.stat strong { font-size: 29px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.stat__l { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.stat__s { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- section base ---------- */
.section { padding: 84px 0; }
.section__head { max-width: 58ch; margin-bottom: 8px; }
.section__head h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.005em; }
.section__head p { margin-top: 14px; font-size: 18px; color: var(--muted); }

/* как работает — редакционные шаги с крупными номерами и hairline-разделителями */
.steps { margin-top: 48px; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.step__n { font-size: 44px; font-weight: 700; line-height: 1; color: var(--teal); letter-spacing: -0.02em; }
.step__b h3 { font-size: 20px; }
.step__b p { margin-top: 8px; max-width: 64ch; font-size: 16px; color: var(--muted); }

/* возможности — двухколоночный список с hairline-строками, без карточек */
.feat { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.feat__row { padding: 24px 0; border-top: 1px solid var(--line); }
.feat__row h3 { font-size: 17px; display: flex; align-items: baseline; gap: 10px; }
.feat__row h3 .lbl { font-size: 12px; font-weight: 600; color: var(--teal-strong); letter-spacing: 0.04em; }
.feat__row p { margin-top: 7px; font-size: 15.5px; color: var(--muted); }

/* ---------- compare: подписка vs за съём ---------- */
.compare { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cmp {
  border-radius: var(--r-card); padding: 30px 28px;
  border: 1px solid var(--line); background: var(--surface);
}
.cmp--them { background: var(--surface); }
.cmp--us { background: var(--teal); border-color: var(--teal); color: var(--accent-ink); }
.cmp__tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cmp--us .cmp__tag { color: rgba(255, 255, 255, 0.85); }
.cmp h3 { margin-top: 6px; font-size: 21px; }
.cmp--us h3 { color: #fff; }
.cmp ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.cmp li { display: flex; gap: 11px; font-size: 15.5px; line-height: 1.45; }
.cmp--them li { color: var(--muted); }
.cmp--us li { color: rgba(255, 255, 255, 0.92); }
.cmp li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 0; background-repeat: no-repeat; background-position: center;
}
.cmp--them li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M7 7l8 8M15 7l-8 8' stroke='%23b0b9bc' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cmp--us li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M5 11.5l4 4 8-9' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.faq__item { padding: 24px 0; border-top: 1px solid var(--line); }
.faq__item h3 { font-size: 17px; line-height: 1.3; }
.faq__item p { margin-top: 9px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* ---------- pricing (тёмная секция, гигантская монометрика — signature) ---------- */
.pricing { position: relative; background: var(--dark); color: var(--on-dark); border-radius: 28px; margin: 0 0 0 0; overflow: hidden; }
.pricing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(111, 224, 173, 0.13) 1.3px, transparent 1.4px);
  background-size: 26px 26px;
}
.pricing-wrap { position: relative; z-index: 1; }
.pricing-wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.pricing-sec { padding: 24px 0 84px; }
.pricing .inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 64px 0; }
.pricing .eyebrow { color: #6fe0ad; }
.pricing .eyebrow::before { background: #6fe0ad; }
.price-figure { display: flex; align-items: flex-start; gap: 8px; }
.price-figure .num { font-size: 132px; line-height: 0.86; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.price-figure .cur { font-size: 40px; font-weight: 600; color: var(--on-dark); margin-top: 10px; }
.price-unit { margin-top: 18px; font-size: 16px; color: var(--on-dark-muted); }
.price-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.price-list li { display: flex; gap: 12px; font-size: 16px; color: var(--on-dark); }
.price-list li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: rgba(111, 224, 173, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3L4.8 8.6L9.5 3.5' stroke='%236fe0ad' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.price-aside { border-left: 1px solid var(--on-dark-line); padding-left: 40px; }
.price-aside h3 { color: #fff; font-size: 20px; }
.price-aside p { margin-top: 12px; font-size: 16px; color: var(--on-dark-muted); }
.price-aside .ex { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-card); background: var(--dark-2); font-size: 15px; color: var(--on-dark); }
.price-aside .ex b { color: #fff; }
.price-aside .btn { margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 56px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-top p { margin-top: 14px; max-width: 36ch; font-size: 15px; color: var(--muted); }
.footer-col h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer-col a { display: block; margin-bottom: 9px; font-size: 15px; color: var(--ink-soft); transition: color 0.14s ease; }
.footer-col a:hover { color: var(--teal); }
.req { margin-top: 28px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.req b { color: var(--muted); font-weight: 600; }

/* ---------- comparison table (alternativy) ---------- */
.ctable-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.ctable th, .ctable td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable tbody td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ctable tr.is-us { background: var(--teal-tint); }
.ctable tr.is-us td:first-child { color: var(--teal-strong); }
.ctable .muted { color: var(--muted); }

.prose { max-width: 70ch; }
.prose h2 { font-size: 28px; line-height: 1.2; margin: 48px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; font-size: 16.5px; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 62ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.split .box { padding: 24px 26px; border-radius: var(--r-card); border: 1px solid var(--line); }
.split .box h3 { margin: 0 0 10px; font-size: 18px; }
.split .box.us { background: var(--teal-tint); border-color: var(--teal-tint); }
.split .box ul { margin: 0; padding-left: 20px; }
.split .box li { font-size: 15.5px; margin-bottom: 7px; color: var(--ink-soft); }

@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal .back { display: inline-block; margin-bottom: 26px; font-size: 14px; color: var(--teal); }
.legal h1 { font-size: 34px; letter-spacing: -0.01em; margin-bottom: 8px; }
.legal .upd { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16px; color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero__copy { padding-bottom: 8px; }
  .hero__media { margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); padding: 0 28px; }
  .hero__media::before { display: none; }
  .metric-chip { left: 8px; bottom: 18px; }
  .pricing .inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .price-aside { border-left: 0; border-top: 1px solid var(--on-dark-line); padding-left: 0; padding-top: 28px; }
  .feat { grid-template-columns: 1fr; gap: 0; }
  .compare { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 44px 0 0; }
  .hero h1 { font-size: 38px; max-width: none; }
  .hero__sub { font-size: 16px; }
  .nav-actions .btn-ghost { display: none; }
  .statband .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding: 20px 0; }
  .stat + .stat { padding-left: 22px; }
  .section { padding: 56px 0; }
  .section__head h2 { font-size: 27px; }
  .step { grid-template-columns: 64px 1fr; gap: 18px; }
  .step__n { font-size: 32px; }
  .price-figure .num { font-size: 92px; }
  .price-figure .cur { font-size: 30px; }
  .pricing { border-radius: 20px; }
}
