/* ============================================================
   CFL Service — лендинг. Desktop-first, брейкпоинт 768px.
   Значения соответствуют макету Figma (см. CLAUDE.md).
   ============================================================ */

:root {
  --bg: #000000;
  --surface: #101011;
  --card: #1A1A1B;
  --card-2: #242425;
  --text: #F5F8FA;
  --text-muted: rgba(245, 248, 250, 0.5);
  --white: #FFFFFF;
  --accent: #26D268;
  --line: rgba(245, 248, 250, 0.1);
  --border: rgba(245, 248, 250, 0.15);

  --container: 1240px;
  --radius-section: 48px;
  --radius-card: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* ---------- Каркас страницы ---------- */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-section);
  padding: 100px 80px;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.section__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.96px;
  text-align: center;
}

/* ---------- Зелёное свечение ---------- */
.glow {
  position: absolute;
  z-index: 0;
  width: 620px;
  height: 460px;
  border-radius: 50%;
  /* плавное радиальное затухание (мягкие стопы + alpha→0 того же цвета),
     лёгкий blur дизерит остаточный бандинг */
  background: radial-gradient(closest-side,
      rgba(38, 210, 104, 0.85) 0%,
      rgba(38, 210, 104, 0.40) 32%,
      rgba(38, 210, 104, 0.14) 56%,
      rgba(38, 210, 104, 0) 78%);
  filter: blur(50px);
  opacity: 0.22;
  pointer-events: none;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s ease, background .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--text); color: var(--surface); }
.btn--light:hover { opacity: .9; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--outline:hover { background: rgba(245, 248, 250, 0.06); }

/* ---------- Лого ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.logo__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 0 80px;
  min-height: 720px;
  display: flex;
  align-items: center;
  background: var(--surface);
}
/* Два зелёных квадрата с большим размытием — 1:1 с макетом.
   Размеры/позиции в % от hero (1400×720): квадрат 344×297 = 24.57% × 41.25%.
   Rect2 top-left (-112,-72) → (-8%, -10%); Rect1 top-left (1056,423) → (75.43%, 58.75%). */
.hero__glow {
  position: absolute;
  z-index: 0;
  width: 24.57%;
  height: 41.25%;
  background: #26D168;
  filter: blur(150px);
  pointer-events: none;
}
.hero__glow--a { left: -8%; top: -10%; }       /* Rectangle 2 — слева-сверху */
.hero__glow--b { left: 75.43%; top: 58.75%; }  /* Rectangle 1 — справа-снизу */

/* Header */
.header {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.header__nav { display: flex; gap: 16px; }
.header__nav a { font-size: 14px; letter-spacing: -0.42px; color: var(--text-muted); transition: color .15s; }
.header__nav a:hover { color: var(--text); }
.header__login { height: 34px; padding: 0 12px; font-size: 14px; letter-spacing: -0.42px; }
.header__burger { display: none; }

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero__text { display: flex; flex-direction: column; gap: 16px; }
.hero__title { font-size: 48px; font-weight: 500; line-height: 1.2; letter-spacing: -1.44px; }
.hero__subtitle { font-size: 18px; line-height: 1.22; letter-spacing: -0.54px; color: var(--text-muted); }

.hero__actions { display: flex; flex-direction: column; gap: 16px; }
.hero__buttons { display: flex; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; letter-spacing: -0.42px; }
.hero__meta li { display: flex; align-items: center; color: var(--text-muted); }
.hero__meta li:not(:first-child)::before {
  content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; margin-right: 8px;
}

.hero__graphic {
  position: absolute;
  z-index: 1;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 880px;
  height: auto;
  pointer-events: none;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature__media {
  border-radius: var(--radius-card);
  background: var(--card);
  overflow: hidden;
}
/* SVG-иллюстрация уже содержит свой фон 295x210 — показываем в натуральной
   пропорции на всю ширину: без обрезки, без полей и тёмных треугольников по углам */
.feature__media img { width: 100%; height: auto; display: block; }
.feature__body { display: flex; flex-direction: column; gap: 12px; }
.feature__title { font-size: 18px; font-weight: 500; letter-spacing: -0.54px; }
.feature__text { font-size: 18px; font-weight: 400; line-height: 1.22; letter-spacing: -0.54px; color: var(--text-muted); }

/* ============================================================
   SERVERS
   ============================================================ */
.servers__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}
.server-card { display: flex; align-items: center; gap: 12px; padding: 12px; }
.server-card__flag {
  width: 64px; height: 48px; border-radius: 12px; overflow: hidden;
  background: var(--text); flex-shrink: 0;
}
.server-card__flag img { width: 100%; height: 100%; object-fit: cover; }
.server-card__flag--empty { background: rgba(245, 248, 250, 0.02); }
.server-card__info { display: flex; flex-direction: column; gap: 5px; }
.server-card__status {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; letter-spacing: -0.42px; color: var(--accent);
}
/* у карточки «Новый сервер скоро» вместо «Онлайн» — серый прямоугольник-плейсхолдер (как в макете) */
.server-card__status--empty { width: 52px; height: 17px; background: #151516; border-radius: 12px; }
.server-card__name { display: flex; align-items: center; gap: 6px; font-size: 18px; letter-spacing: -0.54px; }
.server-card__ping { font-size: 14px; color: var(--text-muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot--online { background: var(--accent); }
.dot--sep { background: #D9D9D9; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 20px;
}
.plan--popular { border-color: var(--border); }
/* Ховер на карточку тарифа: подъём + зелёная подсветка рамки + тень.
   translate (а не transform) — чтобы не конфликтовать с reveal-анимацией.
   Селектор .pricing .plan специфичнее .reveal, поэтому переопределяет его transition. */
.pricing .plan {
  transition: transform .6s ease, opacity .6s ease,
              translate .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.plan:hover {
  translate: 0 -6px;
  border-color: rgba(38, 210, 104, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(38, 210, 104, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .pricing .plan { transition: border-color .2s ease, box-shadow .2s ease; }
  .plan:hover { translate: none; }
}
.plan__head { display: flex; flex-direction: column; gap: 16px; }
.plan__name-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan__name { font-size: 24px; font-weight: 500; letter-spacing: -0.72px; }
.plan__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: -0.36px; white-space: nowrap;
}
.plan__price-wrap { display: flex; flex-direction: column; gap: 6px; }
.plan__price { font-size: 44px; font-weight: 500; line-height: 1.18; letter-spacing: -1.32px; }
.plan__note { font-size: 14px; letter-spacing: -0.42px; color: var(--text-muted); }
.plan__btn { width: 100%; }
.plan__divider { width: calc(100% + 48px); margin: 0 -24px; height: 0; border: 0; border-top: 1px solid var(--line); }
.plan__features { display: flex; flex-direction: column; gap: 18px; }
.plan__features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; letter-spacing: -0.48px;
}
.plan__features .check { flex-shrink: 0; color: var(--text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
  width: 100%;
  max-width: 568px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Аккордеон. ВАЖНО (не терять): свёрнутый радиус = 28px (≈ половина высоты ~56px → выглядит
   пилюлей), раскрытый = 24px. Разница всего 4px → морф плавный и незаметный.
   НЕ использовать 999px для свёрнутого: при transition браузер интерполирует огромное значение и
   клампит его по высоте → видны «прыжки»/артефакты радиуса при открытии и закрытии.
   overflow:hidden обязателен — иначе контент торчит за скруглёнными углами во время анимации. */
.faq-item {
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  transition: border-radius .3s ease;
}
.faq-item.is-open { border-radius: 24px; }
.faq-item__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 20px;
  background: none; border: 0; cursor: pointer; color: var(--text);
  font: inherit; font-size: 18px; font-weight: 500; letter-spacing: -0.54px; text-align: left;
}
.faq-item__icon { display: flex; color: var(--text); flex-shrink: 0; }
.faq-item__icon svg { transition: transform .3s ease; }
.faq-item.is-open .faq-item__icon svg { transform: rotate(180deg); }
/* плавное раскрытие: анимируем grid-template-rows 0fr -> 1fr */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-item.is-open .faq-item__body { grid-template-rows: 1fr; }
.faq-item__body-inner { overflow: hidden; }
.faq-item__body-inner p {
  padding: 0 20px 16px;
  font-size: 18px; font-weight: 400; line-height: 1.22; letter-spacing: -0.54px; color: var(--text-muted);
}

/* ============================================================
   CTA
   ============================================================ */
.cta__inner { align-items: center; text-align: center; gap: 48px; }
.cta__text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta__title { font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.96px; color: var(--white); }
.cta__subtitle { font-size: 18px; letter-spacing: -0.54px; color: var(--text-muted); max-width: 620px; }
/* одно цельное свечение по центру снизу (как в макете) */
.glow--cta {
  left: 50%;
  bottom: -200px;
  transform: translateX(-50%);
  width: 920px;
  height: 560px;
  opacity: 0.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 32px 80px; border-radius: 32px; }
.footer__inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__nav a { font-size: 14px; letter-spacing: -0.42px; color: var(--text-muted); transition: color .15s; }
.footer__nav a:hover { color: var(--text); }

/* ============================================================
   ADAPTIVE  (≤ 768px → мобильный макет 320px)
   ============================================================ */
/* ============================================================
   ЛИЧНЫЙ КАБИНЕT (/account)
   ============================================================ */
/* Кнопка-пилюля «Мой профиль» в хедере (вариант авторизованного пользователя) */
.header__profile {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border-radius: 1000px;
  background: rgba(245, 248, 250, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.42px;
  transition: background .15s ease;
}
.header__profile:hover { background: rgba(245, 248, 250, 0.08); }
.header__profile svg { width: 16px; height: 16px; }

.account {
  min-height: 900px;
  padding: 129px 80px 100px;
}
.account__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Переключатель разделов */
.account-tabs { display: flex; gap: 16px; }
.account-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--text);
  opacity: .5;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease, color .15s ease;
}
.account-tab:hover { opacity: 1; }
.account-tab svg { width: 24px; height: 24px; }
.account-tab.is-active {
  background: var(--text);
  color: var(--surface);
  opacity: 1;
}

.account__title {
  margin-top: 60px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.96px;
  text-align: center;
}

.account__list {
  margin-top: 48px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
}
.account-row__label {
  font-size: 16px;
  letter-spacing: -0.48px;
  color: var(--text);
  opacity: .5;
}
.account-row__value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  letter-spacing: -0.48px;
  color: var(--text);
  text-align: right;
}
.account-row__value--link { transition: opacity .15s ease; }
.account-row__value--link:hover { opacity: .8; }
.account-row__muted { opacity: .5; }
.account-row__link {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-row__value svg { width: 24px; height: 24px; flex-shrink: 0; }

.account-row__icon-btn {
  display: inline-flex;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  transition: opacity .15s ease;
}
.account-row__icon-btn:hover { opacity: .7; }
.account-row__icon-btn .ic-copy { width: 20px; height: 20px; }

.account-row__logout { color: var(--text); }
.account-row__logout .ic-logout { color: #AF1F37; }
.account-row__logout:hover { opacity: .85; }

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 24px;
  border-radius: 1000px;
  background: var(--text);
  color: var(--surface);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  white-space: nowrap;
  transition: opacity .15s ease;
}
.account-btn:hover { opacity: .9; }

.account__divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* Панели разделов (переключаются по табам) */
.account-panel[hidden] { display: none; }
/* Раздел «Тарифы» — во всю ширину контейнера */
.account-panel--wide { align-self: stretch; }
.account-plans { margin-top: 32px; width: 100%; }

/* Раздел «Техническая поддержка» */
.account-panel--support { align-self: stretch; }
.account-support {
  width: 474px;
  max-width: 100%;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.account-support__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border-radius: 20px;
}
.account-support__label,
.account-support__value {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--text);
}
.account-support__label { opacity: .85; }
.account-support__value { transition: opacity .15s ease; }
a.account-support__value:hover { opacity: .8; }

/* ============================================================
   КАРТА ПРОЕКТА (/pages) — служебный список всех страниц
   ============================================================ */
.sitemap { padding: 129px 80px 100px; min-height: 600px; }
.sitemap__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.sitemap__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.96px;
  text-align: center;
}
.sitemap__subtitle {
  margin-top: 12px;
  text-align: center;
  font-size: 18px;
  letter-spacing: -0.54px;
  color: var(--text-muted);
}
.sitemap__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sitemap__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 20px;
  transition: border-color .2s ease, background .2s ease;
}
.sitemap__card:hover { border-color: rgba(38, 210, 104, 0.45); background: var(--card-2); }
.sitemap__card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sitemap__card-title { font-size: 18px; font-weight: 500; letter-spacing: -0.54px; }
.sitemap__card-desc { font-size: 14px; letter-spacing: -0.42px; color: var(--text-muted); }
.sitemap__card-url { font-size: 14px; letter-spacing: -0.42px; color: var(--accent); word-break: break-all; }
.sitemap__card-arrow { width: 24px; height: 24px; flex-shrink: 0; color: var(--text-muted); }

/* --- Раздел «Платежи» --- */
.account-pay {
  margin-top: 48px;
  width: 352px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.account-pay__group {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.account-pay__label {
  font-size: 16px;
  letter-spacing: -0.48px;
  color: var(--text);
}

.account-dropdown { position: relative; }
.account-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease;
}
.account-select:hover { background: rgba(245, 248, 250, 0.04); }
.account-select__left { display: flex; align-items: center; gap: 12px; }
.account-select__media { display: inline-flex; align-items: center; flex-shrink: 0; }
.account-select__logo { width: 20px; height: 23px; flex-shrink: 0; }
.account-select__icon { width: 24px; height: 24px; flex-shrink: 0; }
.account-select__name { font-size: 14px; letter-spacing: -0.42px; }
.account-select .ic-chevron-down {
  width: 24px; height: 24px; flex-shrink: 0;
  transition: transform .2s ease;
}
.account-dropdown.is-open .ic-chevron-down { transform: rotate(180deg); }

/* Выпадающее меню выбора способа оплаты */
.account-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  flex-direction: column;
  padding: 16px 12px;
  background: var(--card);
  border-radius: 24px;
}
.account-dropdown.is-open .account-dropdown__menu { display: flex; }
.account-dropdown__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.42px;
  cursor: pointer;
  transition: background .15s ease;
}
.account-dropdown__option:hover { background: rgba(245, 248, 250, 0.03); }
.account-dropdown__option.is-selected { background: rgba(245, 248, 250, 0.05); }
.account-dropdown__logo { width: 20px; height: 23px; flex-shrink: 0; }
.account-dropdown__icon { width: 24px; height: 24px; flex-shrink: 0; }

.account-history {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
/* затухание нижних карточек (Rectangle 13 из макета) */
.account-history::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(16, 16, 17, 0) 0%, var(--surface) 92%);
  pointer-events: none;
}

.account-pay-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  letter-spacing: -0.42px;
}
.account-pay-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account-pay-card__price { color: var(--text); }
.account-pay-card__date { opacity: .5; }
.account-pay-card__sub { opacity: .5; }

@media (max-width: 768px) {
  /* На мобильном (макет 320px) секции — во всю ширину, без внешних полей страницы;
     горизонтальный отступ задаёт только внутренний padding секции (16px → контент 288px). */
  .page { padding: 16px 0; gap: 16px; }
  .section { border-radius: 24px; padding: 40px 16px; }
  .container { gap: 32px; }
  .section__title { font-size: 24px; letter-spacing: -0.72px; }
  .btn { font-size: 14px; letter-spacing: -0.42px; }

  /* Header */
  .header {
    top: 16px; left: 16px; right: 16px;
    transform: none; width: auto;
    justify-content: space-between; gap: 16px; padding: 12px 16px;
  }
  .header__nav, .header__login, .header__profile { display: none; }
  .header__burger {
    display: block; position: relative;
    width: 24px; height: 24px; background: none; border: 0; cursor: pointer;
  }
  /* обе линии центрированы; в покое разведены на ±3px, при активации сходятся в центр и поворачиваются — ровный X */
  .header__burger span {
    position: absolute; left: 4px; top: 50%; width: 16px; height: 1.5px;
    margin-top: -0.75px; border-radius: 2px; background: var(--text);
    transform-origin: center; transition: transform .2s ease;
  }
  .header__burger span:nth-child(1) { transform: translateY(-3px); }
  .header__burger span:nth-child(2) { transform: translateY(3px); }
  .header__burger.is-active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
  .header__burger.is-active span:nth-child(2) { transform: translateY(0) rotate(-45deg); }
  body.nav-open .header__nav {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    padding: 16px 20px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 16px;
  }
  body.nav-open .header__nav a { font-size: 15px; }

  /* Hero — два зелёных свечения: сверху и снизу под графикой */
  .hero {
    min-height: 660px; padding: 0 16px;
    background:
      radial-gradient(95% 45% at 28% 6%, rgba(38, 210, 104, 0.18) 0%, rgba(16, 16, 17, 0) 60%),
      radial-gradient(115% 50% at 55% 100%, rgba(38, 210, 104, 0.20) 0%, rgba(16, 16, 17, 0) 70%),
      var(--surface);
  }
  .hero__glow { display: none; } /* на мобильном свечение задаёт градиент выше */
  .hero__inner { width: 100%; max-width: none; align-items: center; text-align: center; gap: 32px; }
  .hero__text { width: 100%; align-items: center; }
  .hero__title { font-size: 32px; letter-spacing: -0.96px; }
  .hero__subtitle { font-size: 16px; letter-spacing: -0.48px; max-width: 260px; }
  .hero__actions { width: 100%; align-items: center; }
  .hero__buttons { width: 100%; justify-content: center; }
  .hero__buttons .btn { flex: 1 1 0; min-width: 0; max-width: 160px; }
  .hero__meta { width: 100%; justify-content: center; font-size: 12px; letter-spacing: -0.36px; }
  .hero__meta li:nth-child(3)::before { display: none; }
  .hero__graphic {
    right: 50%; top: auto; bottom: -120px; transform: translateX(50%);
    width: 460px; opacity: .9;
  }

  /* Features */
  .features__grid { grid-template-columns: 1fr; gap: 32px; }
  .feature__media { border-radius: 20px; }
  .feature__title { font-size: 16px; letter-spacing: -0.48px; }
  .feature__text { font-size: 16px; letter-spacing: -0.48px; }

  /* Servers — список выровнен по левому краю */
  .servers__row { flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; }
  .server-card { width: auto; padding-left: 0; padding-right: 0; }
  .server-card__name { font-size: 16px; letter-spacing: -0.48px; }
  .server-card__status, .server-card__ping { font-size: 12px; }

  /* Pricing */
  .pricing__grid { grid-template-columns: 1fr; gap: 24px; }
  .plan { padding: 20px; }
  .plan__divider { width: calc(100% + 40px); margin: 0 -20px; }
  .plan__name { font-size: 20px; letter-spacing: -0.6px; }

  /* FAQ */
  .faq-item { border-radius: 24px; }
  .faq-item__head { font-size: 16px; letter-spacing: -0.48px; gap: 8px; }
  .faq-item__body-inner p { font-size: 16px; letter-spacing: -0.48px; }

  /* CTA */
  .cta { padding: 100px 16px; }
  .cta__title { font-size: 24px; letter-spacing: -0.72px; }
  .cta__subtitle { font-size: 16px; letter-spacing: -0.48px; }

  /* Footer */
  .footer { padding: 24px 16px; border-radius: 24px; }
  .footer__inner { flex-direction: column; align-items: center; gap: 32px; text-align: center; }
  .footer__nav { flex-direction: column; align-items: center; gap: 16px; }

  /* Личный кабинет */
  .account { min-height: 0; padding: 128px 16px 40px; }
  .account__inner { align-items: stretch; }
  .account-tabs { gap: 16px; justify-content: center; }
  .account-tab { width: 52px; height: 36px; }
  .account-tab svg { width: 20px; height: 20px; }
  .account__title { margin-top: 32px; font-size: 24px; letter-spacing: -0.72px; text-align: left; }
  .account__list { margin-top: 32px; width: 100%; gap: 20px; }
  .account-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 0;
  }
  .account-row__label { font-size: 14px; letter-spacing: -0.42px; }
  .account-row__value { font-size: 14px; letter-spacing: -0.42px; text-align: left; max-width: 100%; }
  .account-row__link { max-width: 240px; }
  .account-btn { font-size: 14px; letter-spacing: -0.42px; padding: 0 16px; }

  /* Личный кабинет — «Платежи» */
  .account-pay { margin-top: 32px; width: 100%; gap: 20px; }
  .account-select { padding: 16px 20px; }
  .account-select__logo { width: 16px; height: auto; }
  .account-select .ic-chevron-down { width: 20px; height: 20px; }
  .account-pay-card { padding: 12px 16px; }
  .account-history::after { display: none; }

  /* Личный кабинет — «Техническая поддержка» */
  .account-panel--support .account__title { text-align: center; }
  .account-support { width: 100%; }
  .account-support__label,
  .account-support__value { font-size: 20px; letter-spacing: -0.6px; }

  /* Карта проекта */
  .sitemap { padding: 96px 16px 40px; }
  .sitemap__title { font-size: 24px; letter-spacing: -0.72px; }
  .sitemap__subtitle { font-size: 16px; letter-spacing: -0.48px; }
  .sitemap__list { margin-top: 32px; }
  .sitemap__card { padding: 16px 20px; }
  .sitemap__card-title { font-size: 16px; letter-spacing: -0.48px; }
}

/* Промежуточный диапазон: масштабируем сетки на планшете */
@media (min-width: 769px) and (max-width: 1100px) {
  .section { padding: 80px 40px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  /* графику с точками — в правый нижний угол блока */
  .hero__graphic {
    top: auto; bottom: 0; right: 0;
    transform: none;
    width: 520px;
    opacity: .6;
  }
}

/* ============================================================
   Reveal-on-scroll — плавное появление контента при скролле.
   Класс .reveal навешивает JS (без JS контент сразу видим).
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Модалка авторизации (открывается по клику на «Вход»)
   ============================================================ */
.header__nav-login { display: none; } /* пункт «Вход» только для мобильного меню */

.auth {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.auth.is-open { opacity: 1; visibility: visible; }

.auth__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.auth__modal {
  position: relative;
  z-index: 1;
  width: 400px;
  max-width: 100%;
  padding: 40px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  transform: translateY(10px) scale(.98);
  transition: transform .25s ease;
}
.auth.is-open .auth__modal { transform: none; }

.auth__close {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  width: 24px; height: 24px;
  padding: 0;
  background: none; border: 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s ease;
}
.auth__close:hover { color: var(--text); }

.auth__title {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.72px;
  margin-bottom: 32px;
}

.auth__options { display: flex; gap: 12px; }

.auth-card {
  flex: 1;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 0;
  border-radius: 24px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.auth-card:hover { transform: translateY(-3px); filter: brightness(1.07); }
.auth-card__label { font-size: 16px; line-height: 1.2; letter-spacing: -0.48px; max-width: 7em; }
.auth-card__icon { align-self: flex-end; display: flex; }
.auth-card--tg { background: #039BE5; }
.auth-card--tg .auth-card__icon { color: #FFFFFF; }
.auth-card--mail { background: var(--card); }
.auth-card--mail .auth-card__icon { color: var(--text); }

.auth__consent {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.36px;
  color: var(--text-muted);
}
.auth__consent a { color: var(--text); text-decoration: underline; }

/* --- Экраны модалки (выбор способа / почта / код) --- */
.auth__screen[hidden] { display: none; }
.auth__screen--email,
.auth__screen--code { display: flex; flex-direction: column; gap: 24px; }

/* Поле ввода почты */
.auth__field { display: flex; flex-direction: column; gap: 8px; }
.auth__label { font-size: 16px; letter-spacing: -0.48px; color: var(--text); }
.auth__input {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: -0.42px;
  transition: border-color .15s ease;
}
.auth__input::placeholder { color: rgba(245, 248, 250, 0.5); }
.auth__input:focus { outline: none; border-color: rgba(245, 248, 250, 0.35); }

/* Кнопка действия модалки (Отправить код / Подтвердить) */
.auth__submit {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--surface);
  border: 0;
  border-radius: 1000px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.auth__submit:disabled { opacity: .1; cursor: default; }
.auth__submit:not(:disabled):hover { opacity: .9; }

/* Подсказка + ввод кода */
.auth__hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  font-size: 14px;
  letter-spacing: -0.42px;
  color: var(--text);
}
.auth__code { display: flex; justify-content: center; gap: 14px; }
.auth__code-input {
  width: 49px;
  height: 49px;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: -0.42px;
  transition: border-color .15s ease;
}
.auth__code-input:focus { outline: none; border-color: rgba(245, 248, 250, 0.35); }
.auth__resend {
  align-self: center;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  letter-spacing: -0.42px;
  cursor: pointer;
  transition: color .15s ease;
}
.auth__resend:hover { color: var(--text); }

body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .header__nav-login { display: block; } /* «Вход» появляется в бургер-меню */
  .auth__options { flex-direction: column; }
  .auth-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    gap: 16px;
  }
  .auth-card__icon { align-self: center; }
  .auth-card__label { max-width: none; }
}

/* ============================================================
   Страница «Пользовательское соглашение» (/terms)
   ============================================================ */
.terms { padding: 150px 80px 80px; }
.terms__head { margin-bottom: 48px; }
.terms__title { font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.96px; }
.terms__date { margin-top: 12px; font-size: 16px; letter-spacing: -0.48px; color: var(--text-muted); }

.terms__body {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
}

/* Оглавление (сайдбар, sticky) */
.toc { position: sticky; top: 40px; align-self: start; }
.toc__nav { display: flex; flex-direction: column; }
.toc__item {
  position: relative;
  display: block;
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--text);
  opacity: .5;
  transition: opacity .15s ease;
}
.toc__item:hover { opacity: .85; }
.toc__item.is-active { opacity: 1; }
.toc__item.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 28px;
  background: var(--text);
  border-radius: 0 12px 12px 0;
}

/* Контент */
.terms__content { min-width: 0; display: flex; flex-direction: column; gap: 24px; max-width: 1010px; }
.terms__intro { font-size: 18px; font-weight: 400; line-height: 1.5; letter-spacing: -0.54px; color: var(--text-muted); }
.terms-sec { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 40px; }
/* разделитель только между секциями (интро-абзац перед 1-й секцией его не добавляет) */
.terms-sec + .terms-sec { padding-top: 24px; border-top: 1px solid var(--line); }
.terms-sec__title { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.72px; }
.terms-sec__items { display: flex; flex-direction: column; gap: 20px; }
.terms-item { display: flex; flex-direction: column; gap: 16px; }
.terms-item__n { font-size: 18px; font-weight: 500; letter-spacing: -0.54px; }
.terms-item__text { font-size: 18px; font-weight: 400; line-height: 1.5; letter-spacing: -0.54px; color: var(--text-muted); }
.terms-item__list {
  list-style: disc;
  padding-left: 27px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 18px; line-height: 1.5; letter-spacing: -0.54px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .terms { padding: 110px 16px 40px; }
  .terms__head { margin-bottom: 32px; }
  .terms__title { font-size: 28px; letter-spacing: -0.84px; }
  .terms__date { font-size: 14px; }
  .terms__body { grid-template-columns: 1fr; }
  .toc { display: none; }
  .terms__intro { font-size: 16px; letter-spacing: -0.48px; }
  .terms-sec__title { font-size: 20px; letter-spacing: -0.6px; }
  .terms-item__n { font-size: 16px; }
  .terms-item__text, .terms-item__list { font-size: 16px; letter-spacing: -0.48px; }
}
/* Форма редактирования имени в кабинете */
.account-row__form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.account-row__input {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  font: inherit;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: right;
  max-width: 240px;
  transition: border-color .2s, background .2s;
}
.account-row__input:hover {
  border-color: var(--border);
}
.account-row__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card-2);
}
.account-row__input::placeholder {
  color: rgba(245, 248, 250, 0.4);
}
.account-row__save-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.account-row__save-btn:hover {
  background: rgba(38, 210, 104, 0.1);
  border-color: var(--accent);
}

/* Flash-сообщения (если используем) */
.flash {
  padding: 12px 16px;
  border-radius: 12px;
  margin: 0 20px 16px;
  font-size: 14px;
}
.flash-success { background: rgba(38, 210, 104, 0.15); color: var(--accent); }
.flash-error { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; }
