/* vpn.css — Glowshine VPN Homepage */

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

/* резервируем место под вертикальный скроллбар на всех страницах,
   чтобы центрированный контент (nav, контейнеры) не «прыгал» между
   длинными (со скроллом) и короткими (без скролла) страницами */
html { scrollbar-gutter: stable; }

:root {
  --bg:     #090909;
  --card:   #121212;
  --card2:  #1c1c1c;
  --accent: #52f39f;
  --accent-dim:    rgba(82,243,159,.08);
  --accent-border: rgba(82,243,159,.22);
  --text:   #fff;
  --muted:  #d3d3d3;
  --dim:    #5c5c5c;
  --tag-bg: #1b1b1b;
  --max:    1328px;
  --gap:    18px;
  --pad:    32px;
}

body {
  font-family: 'Roboto Mono', monospace;
  background: var(--bg);
  color: var(--text);
}

img { display: block; }
a   { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.homepage__nav { padding: 20px var(--pad); position: relative; z-index: 100; }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__left    { display: flex; align-items: center; gap: 64px; flex: 1; min-width: 0; }
.nav__logo    { width: 200px; height: 40px; object-fit: contain; flex-shrink: 0; }

/* hamburger toggle: hidden on desktop, shown on mobile */
.nav__toggle {
  display: none;
  width: 24px; height: 24px;
  flex-shrink: 0; cursor: pointer;
  padding: 0; background: none; border: none;
}

/* mobile dropdown menu: hidden on desktop */
.mobile-menu { display: none; }

.nav__links   { display: flex; gap: 48px; font-size: 16px; color: var(--muted); letter-spacing: -0.16px; }
.nav__links a { white-space: nowrap; }

.nav__button {
  background: var(--accent);
  border-radius: 12px;
  padding: 7px 20px;
  font-size: 14px; font-weight: 500;
  color: #000; letter-spacing: -0.14px; line-height: 26px;
  border: none; font-family: inherit; white-space: nowrap; cursor: pointer; flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.homepage__hero { padding: var(--pad) var(--pad) 0; }

.hero { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; }

.hero__row {
  display: flex;
  gap: var(--gap);
  align-items: center;
  margin-bottom: -100px;
  position: relative;
  z-index: 1;
}

.hero__content { flex: 1; min-width: 0; padding: 48px 0 148px; }
.hero__body    { display: flex; flex-direction: column; gap: 48px; }

.hero__title {
  font-size: 80px; font-weight: 700;
  line-height: 82px; letter-spacing: -0.8px;
}
.hero__title .accent { color: var(--accent); }

.hero__actions { display: flex; align-items: center; gap: 32px; }

.hero__button {
  background: var(--accent);
  border-radius: 24px; padding: 24px 32px;
  font-size: 19px; font-weight: 500; color: #000; letter-spacing: -0.19px;
  border: none; font-family: inherit; cursor: pointer; white-space: nowrap; line-height: 1;
}

.hero__price {
  font-size: 32px; font-weight: 400;
  line-height: 34px; letter-spacing: -0.32px; white-space: nowrap;
}

.hero__visual           { width: 655px; height: 655px; flex-shrink: 0; position: relative; overflow: visible; }
.hero__visual-container { width: 100%; height: 615px; position: relative; overflow: visible; }

.hero__image {
  position: absolute;
  width: 901px; height: 627px;
  left: calc(50% - 28px); top: 81px;
  transform: translateX(-50%);
  object-fit: contain; pointer-events: none;
}

/* ══════════════════════════════════════════════
   INFO CARDS (3 шт., под hero)
══════════════════════════════════════════════ */
.homepage__info-cards {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.info-cards { display: flex; gap: var(--gap); }

.info-card {
  flex: 1; min-width: 0;
  height: 284px;
  background: rgba(32,32,32,.4);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 36px; padding: 32px;
  overflow: hidden; display: flex; flex-direction: column;
}

.info-card__inner   { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.info-card__content { display: flex; flex-direction: column; gap: 12px; }

.info-card__header {
  display: flex; gap: 20px;
  align-items: center; justify-content: space-between;
}

.info-card__title {
  font-size: 34px; font-weight: 700;
  line-height: 36px; letter-spacing: -0.32px;
  flex: 1; min-width: 0;
}

.info-card__icon { width: 80px; height: 80px; flex-shrink: 0; object-fit: contain; }

.info-card__description {
  font-size: 14px; line-height: 22px;
  letter-spacing: -0.14px; color: var(--muted);
}

.info-card__link { width: 30px; height: 30px; object-fit: contain; margin-top: auto; }

/* ══════════════════════════════════════════════
   SECTION HEADING
══════════════════════════════════════════════ */
.homepage__section-heading { padding: 88px var(--pad) 0; }

.section-heading__container { max-width: 940px; margin: 0 auto; padding-bottom: 60px; }

.section-heading__title {
  font-size: 60px; font-weight: 700;
  line-height: 64px; letter-spacing: -0.6px; text-align: center;
}

/* ══════════════════════════════════════════════
   CAPABILITIES (2 карточки)
══════════════════════════════════════════════ */
.homepage__capabilities { padding: 0 var(--pad) var(--gap); }

.capabilities__row { max-width: var(--max); margin: 0 auto; display: flex; gap: var(--gap); }

.capability-card {
  flex: 1; min-width: 0;
  background: var(--card);
  border-radius: 36px; padding: 32px;
  overflow: hidden;
  position: relative;
}

/* gap:20 + 20px остатка в top (154-134) = 40px от текста до изображения */
.capability-card__inner  { display: flex; flex-direction: column; gap: 20px; }
.capability-card__top    { height: 154px; display: flex; flex-direction: column; }
.capability-card__content { display: flex; flex-direction: column; gap: 32px; }
.capability-card__tags   { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.tag {
  background: var(--tag-bg);
  border-radius: 100px; padding: 4px 12px;
  font-size: 12px; font-weight: 500; color: var(--accent);
  letter-spacing: -0.12px; white-space: nowrap; line-height: 26px;
}

.capability-card__title {
  font-size: 34px; font-weight: 700;
  line-height: 36px; letter-spacing: -0.32px;
}

/* Обёртка картинки — вытянуть до краёв карточки.
   aspect-ratio вместо фикс. height → высота окна масштабируется с шириной карты,
   поэтому кроп изображения консистентен на любой ширине (в т.ч. 4K) */
.capability-card__image-wrapper {
  aspect-ratio: 655 / 178;
  position: relative;
  overflow: hidden;
  margin: 0 -32px -32px;
}

/* Квадратный контейнер с картинкой. Всё в % от wrapper → масштабируется пропорционально.
   width:129% (image 846 от wrapper 655 с bleed), сдвиг вверх translateY 23.2% высоты image */
.capability-card__image-container {
  position: absolute;
  width: 129%;
  left: 50%;
  top: 0;
  transform: translate(-50%, -23.2%) rotate(-2.17deg);
  aspect-ratio: 1 / 1;
}

.capability-card__image-container img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ══════════════════════════════════════════════
   REFERRAL
══════════════════════════════════════════════ */
.homepage__referral { padding: 0 var(--pad); }

.referral { max-width: var(--max); margin: 0 auto; height: 164px; }

.referral__card {
  background: var(--card);
  border-radius: 36px; padding: 32px;
  display: flex; align-items: center;
  justify-content: space-between;
  overflow: hidden; height: 100%;
  position: relative;
}

.referral__content {
  display: flex; flex-direction: column; gap: 24px;
  flex-shrink: 0;
  position: relative; z-index: 1;
}

.referral__title {
  font-size: 34px; font-weight: 700;
  line-height: 36px; letter-spacing: -0.32px; white-space: nowrap;
}

.referral__description {
  font-size: 14px; line-height: 22px;
  letter-spacing: -0.14px; color: var(--muted); white-space: nowrap;
}

/* Visual: flex-child 624px, не absolute */
.referral__visual {
  width: 624px;
  flex-shrink: 0;
  height: 164px;
  position: relative;
  /* без overflow:hidden — карточка сама клипает */
}

/* Квадратный контейнер картинки внутри visual */
.referral__image-inner {
  position: absolute;
  left: -122.56px;
  right: -107.27px;
  top: 121.61px;        /* calc(50% + 39.61px) где 50% = 82px */
  transform: translateY(-50%) rotate(14.85deg);
  aspect-ratio: 1 / 1;
}

.referral__image-inner img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ══════════════════════════════════════════════
   CTA
══════════════════════════════════════════════ */
.homepage__cta        { padding: 88px var(--pad) 0; }
.homepage__cta-action { padding: 0 var(--pad) 88px; display: flex; justify-content: center; }

.cta__heading-container { max-width: 940px; margin: 0 auto; padding-bottom: 60px; }

.cta__heading {
  font-size: 60px; font-weight: 700;
  line-height: 64px; letter-spacing: -0.6px; text-align: center;
}
.cta__heading .accent { color: var(--accent); }

.cta__button {
  background: var(--accent);
  border-radius: 24px; padding: 24px 36px;
  font-size: 19px; font-weight: 500; color: #000; letter-spacing: -0.19px;
  border: none; font-family: inherit; cursor: pointer; white-space: nowrap; line-height: 26px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.homepage__footer { padding: 0 var(--pad); }

.footer { max-width: var(--max); margin: 0 auto; padding-bottom: 48px; display: flex; flex-direction: column; }

/* Overlap: footer__bottom накрывает низ footer__top на 90px */
.footer__inner { margin-bottom: -90px; }

.footer__top {
  background: var(--card);
  border-radius: 36px; padding: 32px;
  display: flex; justify-content: space-between; align-items: flex-start;
  height: 300px;
}

.footer__nav     { display: flex; gap: 88px; align-items: flex-start; }
.footer__logo    { width: 200px; height: 40px; object-fit: contain; flex-shrink: 0; }
.footer__columns { display: flex; gap: 88px; }
.footer__column  { display: flex; flex-direction: column; gap: 14px; }

.footer__column-heading {
  font-size: 16px; font-weight: 500;
  color: var(--dim); letter-spacing: -0.16px; white-space: nowrap;
}

.footer__links { display: flex; flex-direction: column; gap: 7px; }

.footer__link {
  font-size: 16px; color: var(--muted);
  letter-spacing: -0.16px; white-space: nowrap;
}

.footer__social      { display: flex; gap: 8px; align-items: center; }

/* ссылка-контейнер: color управляет цветом символа (path fill:currentColor),
   фон-квадрат (rect) остаётся чёрным. hover → фирменный зелёный */
.footer__social-icon {
  display: block;
  width: 40px; height: 40px;
  color: #818181;
  transition: color .2s ease;
}
.footer__social-icon svg { display: block; width: 100%; height: 100%; }
.footer__social-icon:hover { color: var(--accent); }

.footer__bottom {
  background: var(--card2);
  border-radius: 36px; padding: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; color: var(--muted);
  letter-spacing: -0.16px; white-space: nowrap; line-height: 26px;
}

.footer__bottom-left { display: flex; gap: 124px; align-items: center; }
.footer__legal       { display: flex; gap: 88px; }

/* ══════════════════════════════════════════════
   СОСТОЯНИЯ ЗЕЛЁНЫХ КНОПОК (base / hover / active)
══════════════════════════════════════════════ */
.nav__button,
.hero__button,
.cta__button {
  transition: background-color .2s ease, transform .1s ease;
}

/* при наведении — светлее */
.nav__button:hover,
.hero__button:hover,
.cta__button:hover {
  background: #74f5b3;
}

/* при нажатии — темнее + лёгкое вдавливание */
.nav__button:active,
.hero__button:active,
.cta__button:active {
  background: #28F088;
  transform: scale(.98);
}

/* ── ТЕКСТОВЫЕ ПУНКТЫ МЕНЮ (nav + footer) ── */
/* base #d3d3d3 (--muted) → hover белый → active #b1b1b1 */
.nav__links a,
.footer__link,
.footer__legal a {
  transition: color .2s ease;
}
.nav__links a:hover,
.footer__link:hover,
.footer__legal a:hover {
  color: #fff;
}
.nav__links a:active,
.footer__link:active,
.footer__legal a:active {
  color: #b1b1b1;
}

/* ── ОБВОДКА КАРТОЧЕК ПРИ НАВЕДЕНИИ ── */
/* border-box (глобально) → 1px border не сдвигает layout. Только верхние (info) карточки */
.info-card {
  border: 1px solid transparent;
  transition: border-color .2s ease;
}
.info-card:hover {
  border-color: #91F9C3;
}

/* зум изображения внутри карточки при наведении (scale на img — не конфликтует
   с rotate на контейнере; overflow:hidden карточки обрезает зум) */
.capability-card__image-container img,
.referral__image-inner img {
  transition: transform .4s ease;
}
.capability-card:hover .capability-card__image-container img,
.referral__card:hover .referral__image-inner img {
  transform: scale(1.04);
}

/* ══════════════════════════════════════════════
   PRICING (страница тарифов)
══════════════════════════════════════════════ */
.price-hero { padding-top: 48px; }

.pricing { padding: 0 var(--pad); }

.pricing__row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: var(--gap);
  align-items: stretch;   /* карточки равной высоты */
  justify-content: center;
}

.price-card {
  flex: 1; min-width: 0;
  background: var(--card);
  border: 1px solid transparent;   /* border-box → не сдвигает layout */
  border-radius: 36px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* кнопка прижата к низу */
  gap: 32px;
  transition: border-color .2s ease;
}
.price-card:hover { border-color: #91F9C3; }

.price-card--featured { background: #2a2a2a; }

.price-card__body { display: flex; flex-direction: column; gap: 32px; }
.price-card__head { display: flex; flex-direction: column; gap: 32px; padding-right: 48px; }

.price-card__title {
  font-size: 32px; font-weight: 700;
  line-height: 34px; letter-spacing: -0.32px; color: var(--text);
}

.price-card__desc {
  font-size: 14px; line-height: 22px;
  letter-spacing: -0.14px; color: #b1b1b1;
}

.price-card__plan { display: flex; flex-direction: column; gap: 24px; }

.price-card__price {
  font-size: 44px; font-weight: 500;
  line-height: 48px; letter-spacing: -0.44px; color: var(--accent);
}

.price-card__features {
  display: flex; flex-direction: column; gap: 12px;
  list-style: none;
}
.price-card__features li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 22px;
  letter-spacing: -0.42px; color: #b1b1b1;
}
.price-card__check { width: 22px; height: 22px; flex-shrink: 0; }
.price-card__features--short { display: none; }

.price-card__button {
  background: #fff; color: #000;
  border-radius: 18px;
  height: 64px; width: 100%;
  font-size: 19px; font-weight: 500;
  font-family: inherit; border: none; cursor: pointer;
  letter-spacing: -0.19px;
  transition: background-color .2s ease, transform .1s ease;
}
.price-card__button:hover { background: #f0f0f0; transform: scale(1.03); }
.price-card__button:active { background: #e0e0e0; transform: scale(.98); }

/* акцентный цвет в заголовке секции «Присоединяйся» */
.section-heading__title .accent { color: var(--accent); }

/* ══════════════════════════════════════════════
   PAYMENT (страница оформления подписки)
══════════════════════════════════════════════ */
/* nav без карточки-подложки + ссылка «Назад» с эффектом пункта меню */
.nav--payment { background: transparent; border-radius: 0; }

/* кнопка «Войти» в шапке на payment/success — белая (и на десктопе) */
.nav--payment .nav__button { background: #fff; color: #000; }
.nav--payment .nav__button:hover { background: #f0f0f0; }
.nav--payment .nav__button:active { background: #e0e0e0; }

.nav__back {
  display: flex; align-items: center; gap: 6px;
  color: #c6c6c6; font-size: 16px; line-height: 26px;
  letter-spacing: -0.16px; cursor: pointer;
  transition: color .2s ease;
}
.nav__back svg { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.nav__back:hover { color: #fff; }
.nav__back:active { color: #b1b1b1; }

.nav__logo--icon { display: none; }  /* иконка-лого только на мобайле */

.payment { display: flex; justify-content: center; padding: 80px var(--pad) 60px; }

.payment-card {
  width: 494px; max-width: 100%;
  background: var(--card);
  border-radius: 36px;
  padding: 64px;
  display: flex; flex-direction: column; gap: 32px;
}

.payment-card__head { display: flex; flex-direction: column; gap: 24px; }

/* центрированный вариант панели (страница «Оплата прошла успешно») */
.payment-card--center { align-items: center; text-align: center; }
.payment-card--center .payment-card__head { align-items: center; }
.payment-card__title {
  font-size: 32px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.32px; color: var(--text);
}
.payment-card__desc {
  font-size: 14px; line-height: 22px;
  letter-spacing: -0.14px; color: #b1b1b1;
}

.payment-form { display: flex; flex-direction: column; gap: 48px; }
.payment-fields { display: flex; flex-direction: column; gap: 32px; }
.payment-field { display: flex; flex-direction: column; gap: 12px; }

.payment-label {
  font-size: 18px; line-height: 24px;
  letter-spacing: -0.18px; color: #5c5c5c;
}

.payment-input {
  background: #1e1e1e; border: none;
  border-radius: 18px; height: 60px; padding: 0 16px; width: 100%;
  color: var(--accent); font-family: inherit;
  font-size: 18px; letter-spacing: -0.18px;
  transition: box-shadow .2s ease;
}
.payment-input::placeholder { color: #5c5c5c; }
.payment-input:focus { outline: none; box-shadow: 0 0 0 1px var(--accent-border); }

/* поле с кнопкой показа пароля (страница входа) */
.payment-input-wrap { position: relative; width: 100%; }
.payment-input-wrap .payment-input { padding-right: 52px; }
.payment-eye {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0;
  background: none; border: none; cursor: pointer;
}
.payment-eye img { width: 22px; height: 22px; display: block; }

.payment-submit {
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #000; border: none; text-decoration: none;
  border-radius: 18px; height: 64px; width: 100%;
  font-family: inherit; font-size: 19px; font-weight: 500;
  letter-spacing: -0.19px; cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}
.payment-submit:hover { background: #f0f0f0; transform: scale(1.03); }
.payment-submit:active { background: #e0e0e0; transform: scale(.98); }

/* зелёный вариант кнопки (страница «Оплата прошла успешно») */
.payment-submit--accent { background: var(--accent); }
.payment-submit--accent:hover { background: #74f5b3; }
.payment-submit--accent:active { background: #28F088; }

.payment-note {
  font-size: 14px; line-height: 22px;
  letter-spacing: -0.14px; color: #b1b1b1;
}
.payment-note a { color: var(--accent); text-decoration: underline; }

/* всплывающее сообщение об ошибке (стиль из Figma 155:5440) */
.payment-error {
  display: flex; align-items: center; gap: 12px;
  background: #181818; border-radius: 24px; padding: 16px;
}
.payment-error[hidden] { display: none; }
.payment-error__icon { width: 24px; height: 24px; flex-shrink: 0; }
.payment-error span {
  font-size: 14px; line-height: 22px;
  letter-spacing: -0.14px; color: #b1b1b1;
}
.payment-input--error { box-shadow: 0 0 0 1px rgba(110,110,110,.6); }

/* ══════════════════════════════════════════════
   TERMS (пользовательское соглашение / правовые страницы)
══════════════════════════════════════════════ */
.terms { max-width: 760px; margin: 0 auto; padding: 64px var(--pad) 96px; }

.terms__head { margin-bottom: 40px; }
.terms__title {
  font-size: 48px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.48px; color: var(--text);
}
.terms__meta {
  margin-top: 16px;
  font-size: 14px; color: var(--muted); letter-spacing: -0.14px;
}
.terms__meta span { color: var(--text); }

/* выделенный блок-карточка с иконкой (Figma 159:5620) — #121212, r36, p24,
   иконка 24px слева + текст */
.terms__callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card);
  border-radius: 36px; padding: 24px;
  margin: 48px 0 12px;
}
.terms__callout-icon { width: 24px; height: 24px; flex-shrink: 0; }
.terms__callout p {
  margin: 0; flex: 1; min-width: 0;
  font-size: 14px; line-height: 22px; color: #b1b1b1; letter-spacing: -0.42px;
}
.terms__callout strong { color: var(--text); font-weight: 500; }
.terms__callout a { color: var(--accent); }

.terms-section { margin-top: 48px; }
.terms-section h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 24px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.24px; color: var(--text); margin-bottom: 20px;
}
.terms-section h2::before {
  content: attr(data-n);
  color: var(--accent); font-size: 18px; font-weight: 500;
}
.terms-section h2:not([data-n])::before { content: none; }
.terms-section p {
  font-size: 14px; line-height: 22px; color: #b1b1b1;
  letter-spacing: -0.42px; margin-bottom: 12px;
}
.terms-section ul { list-style: none; margin: 0 0 12px; }
.terms-section li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: 14px; line-height: 22px; color: #b1b1b1; letter-spacing: -0.42px;
}
.terms-section li::before {
  content: '—'; position: absolute; left: 0; color: var(--accent);
}
.terms-section strong { color: var(--text); font-weight: 500; }
.terms-section a { color: var(--accent); text-decoration: underline; }
.terms-section .terms__callout { margin-top: 48px; }
.terms-section .terms__callout p { margin: 0; }
.terms-section .terms__callout a { text-decoration: none; }
.terms-section .terms__callout a.terms__back-link { text-decoration: underline; }

/* ══════════════════════════════════════════════
   ИНСТРУКЦИЯ ПО УСТАНОВКЕ (setup.html) — на базе .terms
══════════════════════════════════════════════ */
.setup__sub { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; color: var(--muted); }
.setup-step { margin-top: 64px; }
.setup-step__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.setup-step__num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; letter-spacing: -0.18px;
}
.setup-step__name { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.56px; color: var(--text); }
.setup-text { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; }
.setup-downloads { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.setup-btn {
  flex: 1; min-width: 160px; display: flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 24px; border-radius: 18px;
  background: var(--card); border: 1px solid rgba(255,255,255,.12); color: var(--text);
  font-size: 16px; font-weight: 500; letter-spacing: -0.16px; text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .1s ease;
}
.setup-btn:hover { border-color: var(--accent-border); background: var(--card2, #181818); }
.setup-btn:active { transform: scale(.98); }
.setup-guide__title { font-size: 20px; font-weight: 700; line-height: 24px; letter-spacing: -0.2px; color: var(--text); margin: 36px 0 16px; }
.setup-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.setup-steps li { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; }
.setup-steps li strong { color: var(--text); font-weight: 500; }
.setup-note { margin-top: 24px; }
/* скриншоты-карточки с подсветкой */
.setup-shots { display: flex; gap: 16px; margin-top: 24px; }
.setup-shot {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  aspect-ratio: 320 / 420; border-radius: 24px; background: var(--card);
}
.setup-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.setup-shot--wide { aspect-ratio: 1000 / 1018; }
.setup-shot--wide img { object-position: center; }
.setup-shot__ring {
  position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border: 3px solid var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(82,243,159,.18), 0 0 16px rgba(82,243,159,.45);
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ (account.html)
══════════════════════════════════════════════ */
.nav--account { background: transparent; border-radius: 0; }
.nav--account .nav__left { flex: 0 0 auto; }
.nav__logo--icon { display: none; }  /* иконка-лого только на мобайле (см. payment) */
/* в ЛК на десктопе — только иконка-лого (не полный логотип) */
.nav--account .nav__logo--full { display: none; }
.nav--account .nav__logo--icon { display: block; width: 40px; height: 40px; }

/* меню-разделы (десктоп) */
.account-menu { display: flex; gap: 12px; }
.account-menu__item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 24px;
  background: var(--bg); color: var(--text);
  font-size: 16px; font-weight: 600; letter-spacing: -0.16px; white-space: nowrap;
  transition: background-color .2s ease;
}
.account-menu__item img { width: 22px; height: 22px; }
.account-menu__item:hover { background: #2e2f33; }
.account-menu__item.is-active { background: #2e2f33; }

/* панель */
.account { display: flex; justify-content: center; padding: 40px var(--pad) 60px; }
.account-panel { width: 520px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }

.account-card {
  background: var(--card);
  border-radius: 36px; padding: 24px;
  display: flex; flex-direction: column; gap: 32px;
}
.account-card__head { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.account-card__title { font-size: 24px; font-weight: 500; line-height: 26px; letter-spacing: -0.72px; color: var(--text); }
.account-card__desc { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; max-width: 420px; }
.account-card__desc .accent { color: var(--accent); }

/* строка заголовка с иконкой info (сброс ссылки) */
.account-card__title-row { display: flex; align-items: center; gap: 7px; width: 100%; }
.account-card__title-spacer { width: 24px; flex-shrink: 0; }
.account-card__title-row .account-card__title { flex: 1; text-align: center; }
.account-card__info { width: 24px; height: 24px; padding: 0; background: none; border: none; cursor: pointer; flex-shrink: 0; }
.account-card__info img { width: 24px; height: 24px; display: block; }

/* сброс ссылки — три состояния (default / info / confirm) */
.account-card--reset { padding: 0; gap: 0; background: transparent; border-radius: 0; display: grid; }
.account-reset__state {
  grid-area: 1 / 1;                /* все состояния в одной ячейке — высота = самого высокого */
  background: var(--card); border-radius: 36px; padding: 24px;
  display: flex; flex-direction: column; gap: 32px;
}
/* скрытые состояния остаются в потоке (display не none), чтобы держать высоту и не дёргать страницу */
.account-reset__state[hidden] { visibility: hidden; pointer-events: none; }
/* короткое состояние (подтверждение) центрируется в зарезервированной высоте */
.account-reset__state--center { justify-content: center; }
.account-reset__buttons { display: flex; gap: 16px; width: 100%; }
.account-reset__buttons .account-btn { flex: 1; }

/* профиль */
.account-card--profile { align-items: center; padding: 32px; }
.account-profile__top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }
.account-profile__spacer { width: 24px; flex-shrink: 0; }
.account-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #333; flex-shrink: 0; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-profile__settings { width: 24px; height: 24px; flex-shrink: 0; padding: 0; background: none; border: none; cursor: pointer; }
.account-profile__settings img { width: 24px; height: 24px; display: block; }

/* состояния профиля: приветствие ⇄ настройки */
.account-profile__view, .account-profile__edit { width: 100%; }
.account-profile__view { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.account-profile__view[hidden], .account-profile__edit[hidden] { display: none; }
.account-profile__edit { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.account-settings__header { display: flex; flex-direction: column; gap: 24px; width: 100%; }

/* выбор аватара */
.account-avatars { display: flex; gap: 18px; justify-content: center; }
.account-avatars__item {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: #333; border: none; padding: 0; cursor: pointer; flex-shrink: 0;
}
.account-avatars__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1);            /* невыбранные — чёрно-белые */
  transition: filter .2s ease;
}
.account-avatars__item.is-active img { filter: none; }   /* выбранный — цветной */

/* поля настроек */
.account-settings { display: flex; flex-direction: column; gap: 32px; width: 100%; }
.account-settings__field { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.account-settings__label { font-size: 18px; line-height: 24px; letter-spacing: -0.18px; color: #a1a1a1; text-align: center; }
.account-settings__input {
  width: 100%; height: 64px; box-sizing: border-box;
  background: #292929; border: none; border-radius: 18px; padding: 0 16px;
  color: var(--text); font-family: inherit; font-size: 18px; letter-spacing: -0.18px;
  transition: background .2s ease;
}
.account-settings__input:focus { outline: none; background: #1f1f1f; }
.account-settings__note { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; text-align: center; }
.account-settings__note .accent { color: var(--accent); }
.account-profile__hello { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.account-profile__name { font-size: 32px; font-weight: 700; line-height: 35px; letter-spacing: -0.96px; color: var(--text); }

/* поля (ID, почта, ссылка, устройства) */
.account-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
/* десктоп: 2 явные колонки — ID+почта | ссылка+кнопка; устр1+устр2 | устр3.
   align-items:stretch — колонки равной высоты (кнопка справа выравнивается с низом левой) */
.account-list--split { flex-direction: row; align-items: stretch; }
.account-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* блок ссылки растягивается, чтобы кнопка прижалась к низу колонки */
.account-field--grow { flex: 1; }
.account-field {
  background: #2a2a2a; border-radius: 18px; padding: 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.account-field--device { align-items: center; }
.account-field__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.account-field__label { font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.54px; color: var(--text); }
.account-field--grow .account-field__label { letter-spacing: -0.18px; }  /* «Моя ссылка» — tracking как в макете */
.account-field__value { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; overflow-wrap: anywhere; }
.account-field__copy, .account-field__delete {
  width: 18px; height: 18px; padding: 0; background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.account-field__copy img, .account-field__delete img { width: 18px; height: 18px; display: block; }

/* поле-ссылка (бонусная программа): одна строка, значение зелёное, копи справа */
.account-field--inline { align-items: center; }
.account-field--inline .account-field__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-field__value--link { color: var(--accent); }

/* ═══════════ БОНУСНАЯ ПРОГРАММА ═══════════ */
/* блок→блок 24px (ПК и мобайл); заголовок→текст 8/12 (через .account-card__head) */
.bonus-page .account-card { gap: 24px; }
/* карточка звания: отступы сверху/снизу монеты крупнее — 32px ПК (мобайл 24 через @media) */
.bonus-page .bonus-rank { gap: 32px; }
.bonus-rank { align-items: center; }
.bonus-rank__label { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; text-align: center; }
.bonus-rank__title { font-size: 32px; font-weight: 700; line-height: 34px; letter-spacing: -0.96px; color: var(--text); text-align: center; }

/* иконка-ачивка (изображение чуть больше рамки, обрезается по краям) */
.bonus-achiv { width: 160px; height: 160px; position: relative; overflow: hidden; flex-shrink: 0; }
.bonus-achiv img { position: absolute; width: 184px; height: 184px; left: 50%; transform: translateX(-50%); bottom: -15px; object-fit: cover; }

/* прогресс до нового звания */
.bonus-progress { display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; }
.bonus-progress__top { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.bonus-progress__more { font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.54px; color: var(--text); text-align: center; }
.bonus-progress__bar-row { display: flex; gap: 12px; align-items: center; width: 100%; }
.bonus-bar { flex: 1; height: 16px; background: #484848; border-radius: 40px; overflow: hidden; }
.bonus-bar__fill { display: block; height: 16px; max-width: 100%; background: var(--accent); border-radius: 22px; }
.bonus-progress__count { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: var(--text); white-space: nowrap; }
.bonus-progress__bottom { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.bonus-progress__count--m { display: none; }  /* мобильный дубль «2/10» */
.bonus-progress__hint { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; text-align: center; }

/* достижения — две карточки с цифрой и монетой-изображением */
.bonus-achievements { display: flex; gap: 12px; width: 100%; }
.bonus-ach {
  flex: 1; min-width: 0; height: 272px; overflow: hidden;
  background: var(--card); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.bonus-ach__content { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.bonus-ach__num { font-size: 44px; font-weight: 400; line-height: 48px; letter-spacing: -1.32px; color: var(--text); }
.bonus-ach__label { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; }
/* монета заполняет остаток карточки, по центру, выходит за края (обрезается overflow:hidden) */
.bonus-ach__image { flex: 1; min-height: 0; position: relative; pointer-events: none; }
.bonus-ach__image img { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 206px; height: 206px; object-fit: contain; display: block; }

/* ═══════════ ПОЛЕЗНОЕ (документы) ═══════════ */
/* плашка-ссылка со стрелкой справа */
.useful-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border-radius: 36px; padding: 24px; text-decoration: none;
  transition: background-color .2s ease;
}
.useful-link:hover { background: var(--card2, #181818); }
.useful-link__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.useful-link__title { font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.54px; color: var(--text); }
.useful-link__sub { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #a1a1a1; }
/* стрелка вправо (inline chevron, повёрнут); цвет через currentColor → перекрашиваем на hover */
.useful-link__arrow {
  display: block; width: 22px; height: 22px; flex-shrink: 0; color: #6e6e6e;
  transform: rotate(-90deg);
  transition: color .2s ease, transform .2s ease;
}
.useful-link__arrow path { fill: currentColor; }
.useful-link:hover .useful-link__arrow { color: var(--accent); transform: rotate(-90deg) scale(1.18); }

/* опрос — светлая карточка: текст слева, кнопка справа */
.useful-survey {
  background: #e5e5e5; border-radius: 36px; padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.useful-survey__head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; min-width: 0; }
.useful-survey__title { font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.54px; color: #000; }
.useful-survey__desc { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #000; }
.useful-survey__btn {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 36px; border-radius: 18px; background: #000; color: var(--accent); text-decoration: none;
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.16px;
  transition: transform .1s ease, background-color .2s ease;
}
.useful-survey__btn:hover { background: #111; transform: scale(1.02); }
.useful-survey__btn:active { transform: scale(.98); }

/* ═══════════ ПОДДЕРЖКА (FAQ-аккордеон) ═══════════ */
.support-q { background: var(--card); border-radius: 36px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.support-q__bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; cursor: pointer; }
.support-q__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.support-q__title { font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.54px; color: var(--text); }
.support-q__sub { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; }
.support-q__chevron { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; transition: transform .3s ease; }
.support-q.is-open .support-q__chevron { transform: rotate(180deg); }
.support-q__body { display: none; }
.support-q.is-open .support-q__body { display: block; }
.support-q__answer { font-size: 14px; line-height: 22px; letter-spacing: -0.42px; color: #b1b1b1; }

/* чат «Остались вопросы?» */
.support-form { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.support-form[hidden] { display: none; }   /* перебиваем display:flex, чтобы hidden реально скрывал форму */
.support-form__input {
  width: 100%; box-sizing: border-box; min-height: 160px; resize: vertical;
  background: #1e1e1e; border: none; border-radius: 18px; padding: 16px;
  color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.3; letter-spacing: -0.14px;
}
.support-form__input::placeholder { color: #6e6e6e; }
.support-form__input:focus { outline: none; background: #232323; }
.support-form__btn {
  height: 54px; padding: 0 36px; background: #fff; color: #000; border: none; border-radius: 18px;
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.16px; cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}
.support-form__btn:hover { background: #f0f0f0; transform: scale(1.02); }
.support-form__btn:active { background: #e0e0e0; transform: scale(.98); }
.support-form__success {
  background: #1e1e1e; border-radius: 18px; padding: 16px;
  font-size: 14px; line-height: 1.3; letter-spacing: -0.14px; color: var(--accent);
}
.support-form__error {
  width: 100%; box-sizing: border-box; margin-top: -12px;   /* компенсируем gap формы (24) → ближе к полю */
  font-size: 14px; line-height: 1.3; letter-spacing: -0.14px; color: #ff6b6b; text-align: left;
}
.support-form__error[hidden] { display: none; }

/* белая кнопка */
.account-btn {
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #000; border: none; text-decoration: none;
  border-radius: 18px; height: 54px; width: 100%;
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.16px; cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}
.account-btn:hover { background: #f0f0f0; transform: scale(1.02); }
.account-btn:active { background: #e0e0e0; transform: scale(.98); }

/* всплывающее уведомление «Скопировано» — позиционируется над нажатой иконкой (left/top из JS) */
.toast {
  position: fixed;
  transform: translate(-100%, -100%);
  background: #030303; color: var(--text);
  padding: 8px 16px; border-radius: 100px;
  font-size: 14px; font-weight: 400; letter-spacing: -0.42px; white-space: nowrap;
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity .12s ease;
}
.toast.show { opacity: 1; }

/* ══════════════════════════════════════════════
   MOBILE — max-width: 1200px
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  :root { --pad: 20px; --gap: 12px; }

  /* ── NAV ── */
  .homepage__nav { padding: 12px var(--pad); }

  /* на мобайле хедер плоский, без карточки-подложки (как в Figma) */
  .nav { background: transparent; border-radius: 0; padding: 12px 16px; gap: 12px; }

  .nav__left { gap: 12px; }

  /* бургер из 3 линий → крестик при .open */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .nav__toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
  }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links { display: none; }

  /* плоский хедер при открытом меню (как Figma slide menu) — без карточки-подложки */
  .nav.menu-open { background: #090909; border-radius: 0; }

  /* выпадающее меню: absolute поверх hero (overlay, не сдвигает контент),
     выезжает из-под хедера вниз через max-height */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #090909;
    overflow: hidden;
    max-height: 0;
    padding: 0 20px;
    padding-left: 36px; /* выравнивание по левому краю иконки бургера (nav pad 20+16) */
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    transition: max-height .3s ease, padding .3s ease;
  }
  .mobile-menu.open {
    max-height: 240px;
    padding: 20px 20px 36px;
    padding-left: 36px;
  }
  .mobile-menu__link {
    color: var(--muted);
    line-height: 24px;
    letter-spacing: -0.16px;
    transition: color .2s ease;
  }
  .mobile-menu__link:hover { color: #fff; }
  .mobile-menu__link:active { color: #b1b1b1; }

  .nav__logo { width: 120px; height: 24px; }

  .nav__button {
    background: #fff;
    color: #000;
    font-size: 12px;
    padding: 8px 12px;
    line-height: 14px;
    border-radius: 12px;
  }

  /* на мобайле nav-кнопка белая — состояния в белой палитре, не зелёной */
  .nav__button:hover { background: #fff; }
  .nav__button:active { background: #e8e8e8; transform: scale(.98); }

  /* ── HERO ── */
  /* position:relative — якорь для absolute-сферы; overflow visible — монеты торчат ниже */
  .homepage__hero { padding: 20px var(--pad) 0; position: relative; }

  .hero { max-width: 100%; }

  /* Контент в потоке: title → button → price. Сфера вынесена в absolute (см. ниже) */
  .hero__row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero__content { padding: 0; width: 100%; }

  .hero__body { gap: 20px; align-items: stretch; }

  /* padding:20 — воспроизводит wrapper 114:2 из Figma вокруг заголовка.
     text-align:center — согласует заголовок с центрированными кнопкой и ценой.
     clamp(42px..72px) — 42px на узких (360px = макет), крупнее на широких вьюпортах */
  .hero__title {
    font-size: clamp(42px, 11vw, 72px);
    line-height: 1.05; letter-spacing: -0.42px;
    padding: 20px;
    text-align: center;
  }

  /* Button and price stack vertically, centered */
  .hero__actions { flex-direction: column; align-items: center; gap: 20px; }

  .hero__button {
    width: 280px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 16px;
    padding: 0;
  }

  .hero__price { font-size: 32px; line-height: 34px; letter-spacing: -0.32px; }

  /* Sphere: адаптивная ширина (вся ширина контента) — монеты крупные, как в макете.
     Высота по пропорции изображения; overflow:visible — монеты + свечение целиком */
  .hero__visual {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .hero__visual-container {
    width: 100%; height: auto;
    position: relative;
  }

  /* Изображение монет: на всю ширину, высота авто по пропорции (2652×1842 ≈ 1.44) */
  .hero__image {
    position: relative;
    width: 100%;
    height: auto;
    left: auto; top: auto;
    transform: none;
    object-fit: contain;
  }

  /* ── INFO CARDS ── */
  /* margin-top:-40px — первая карточка слегка заезжает на низ монет/свечения (как макет).
     z-index:2 — карточки поверх монет */
  .homepage__info-cards {
    max-width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 30px;
    padding-top: 0;
  }

  .info-cards { flex-direction: column; gap: var(--gap); }

  /* min-height + явный flex-контекст (display/direction дублируем, чтобы не зависеть
     от наследования с десктопа). На широком контент мал → карточка = min-height */
  .info-card {
    min-height: 260px;
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(37px);
    -webkit-backdrop-filter: blur(37px);
  }

  .info-card__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  /* margin-top:auto в растянутом flex-column inner → стрелка к низу карточки */
  .info-card__link {
    position: static;
    margin-top: auto;
  }

  .info-card__title { font-size: 28px; line-height: 32px; }

  .info-card__icon { width: 56px; height: 56px; }

  /* ── SECTION HEADING ── */
  .homepage__section-heading { padding: 48px var(--pad) 0; }

  .section-heading__container { padding: 0 20px 32px; }

  .section-heading__title { font-size: 40px; line-height: 42px; }

  /* ── CAPABILITIES ── */
  .homepage__capabilities { padding: 40px var(--pad) var(--gap); }

  .capabilities__row { flex-direction: column; max-width: 100%; }

  .capability-card { border-radius: 24px; padding: 24px; height: 256px; }

  .capability-card__inner { gap: 0; }

  .capability-card__top { height: 135px; }

  .capability-card__content { gap: 12px; }

  .capability-card__title { font-size: 28px; line-height: 32px; }

  .tag { border-radius: 100px; padding: 4px 8px; font-size: 12px; }

  /* aspect-ratio:auto + height — сбрасываем пропорц. высоту с десктопа.
     overflow:visible — клипает карточка, верх не срезается */
  .capability-card__image-wrapper {
    aspect-ratio: auto;
    height: 178px;
    margin: 12px -24px -24px;
    overflow: visible;
  }

  /* width:auto — сбрасываем десктопный width:129%, чтобы left/right задавали размер */
  .capability-card__image-container {
    width: auto;
    left: -60px;
    right: -50px;
    top: calc(50% + 30px);
    transform: translateY(-50%) rotate(-2.17deg);
  }

  /* ── REFERRAL ── */
  .homepage__referral { padding: 0 var(--pad); }

  .referral { height: 358px; }

  .referral__card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px;
    border-radius: 24px;
    height: 100%;
  }

  .referral__content { gap: 12px; width: 100%; }

  .referral__title { font-size: 28px; line-height: 32px; white-space: normal; }

  /* width:100% — описание на всю ширину карточки (не узкий столбец); как в Figma */
  .referral__description {
    white-space: normal;
    width: 100%;
    max-width: none;
    color: #9d9d9d;
  }

  /* Visual: flow-child снизу карточки (как capability image-wrapper).
     align-self:stretch + margin до краёв; клипает сама карточка (overflow:hidden) */
  .referral__visual {
    position: relative;
    align-self: stretch;
    width: auto;
    height: 178px;
    margin: 0 -24px -24px;
    overflow: visible;
  }

  .referral__image-inner {
    position: absolute;
    left: 50%;
    top: calc(50% + 30px);
    right: auto;
    width: 434px;
    height: 434px;
    aspect-ratio: auto;
    transform: translate(-50%, -50%) rotate(14.85deg);
    transform-origin: center center;
  }

  /* ── CTA ── */
  .homepage__cta { padding: 48px var(--pad) 32px; }

  .homepage__cta-action { padding: 0 var(--pad) 60px; }

  .cta__heading { font-size: 40px; line-height: 44px; }

  /* +20px к боковому отступу секции (--pad:20) = 40px от края для крупных заголовков */
  .cta__heading-container { padding: 0 20px 32px; }

  .cta__button {
    width: 280px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 16px;
    padding: 0;
  }

  /* ── PRICING (mobile) ── */
  .price-hero { padding: 20px var(--pad) 0; }

  .pricing__row { flex-direction: column; max-width: 100%; gap: 12px; }

  .price-card { padding: 24px; gap: 32px; }
  .price-card--featured { background: #252525; }
  .price-card__body { gap: 24px; }
  .price-card__head { gap: 12px; padding-right: 0; }
  .price-card__title { font-size: 28px; line-height: 32px; }
  .price-card__desc { font-size: 16px; }                  /* описание тарифа 16 (моб.) */
  .price-card__plan { gap: 16px; }
  .price-card__price { font-size: 32px; line-height: 34px; }
  .price-card__features li { font-size: 14px; letter-spacing: -0.42px; }
  .price-card__features--full { display: none; }
  .price-card__features--short { display: flex; }
  .price-card__button { height: 54px; font-size: 16px; }

  /* ── PAYMENT (mobile) ── */
  .nav__logo--full { display: none; }
  .nav__logo--icon { display: block; width: 24px; height: 24px; }
  .nav__back { font-size: 12px; line-height: 22px; }
  .nav__back svg { width: 16px; height: 16px; }

  .payment { padding: 16px var(--pad) 40px; }
  .payment-card { width: 100%; padding: 24px; gap: 24px; }
  .payment-card__head { gap: 12px; }
  .payment-card__title { font-size: 28px; line-height: 32px; }
  .payment-card__desc { font-size: 16px; }                /* описание 16 (моб.) */
  .payment-label { font-size: 12px; line-height: 22px; }
  .payment-input { height: 54px; font-size: 16px; }       /* 16 — без iOS-зума при фокусе */
  .payment-submit { height: 54px; font-size: 16px; }
  .payment-note { font-size: 12px; line-height: 18px; }

  /* ── TERMS (mobile) ── */
  /* padding-bottom:0 — отступ до футера даёт его margin-top:40 (без двойного зазора) */
  .terms { padding: 40px var(--pad) 0; }
  .terms__head { margin-bottom: 32px; }
  .terms__title { font-size: 30px; line-height: 1.15; letter-spacing: -0.3px; }
  .terms-section { margin-top: 36px; }
  .terms-section h2 { font-size: 20px; gap: 10px; margin-bottom: 16px; }
  .terms-section h2::before { font-size: 15px; }
  /* длинный текст юр. страниц — 16px для читаемости на мобильном */
  .terms-section p, .terms-section li, .terms__callout p { font-size: 16px; line-height: 24px; }
  /* симметричные отступы сверху/снизу (как нижний) */
  .terms__callout { padding: 24px; border-radius: 24px; margin: 36px 0; }

  /* ── SETUP (mobile) ── */
  .setup-step { margin-top: 48px; }
  .setup-step__name { font-size: 24px; letter-spacing: -0.48px; }
  .setup-text, .setup-steps li { font-size: 16px; line-height: 24px; }    /* body 16 (моб.) */
  .setup-shots { flex-direction: column; }                                /* скриншоты в стек */
  .setup-shot { aspect-ratio: 340 / 480; }
  .terms-section .terms__callout { margin-top: 36px; }

  /* ── ЛИЧНЫЙ КАБИНЕТ (mobile) ── */
  /* на мобайле ЛК — тоже только иконка, по высоте кнопки «На сайт» (30px) */
  .nav--account .nav__logo--full { display: none; }
  .nav--account .nav__logo--icon { display: block; width: 30px; height: 30px; }
  .nav--account .nav__left { gap: 16px; }   /* больше отступ бургер ↔ иконка */
  .account-menu { display: none; }              /* горизонтальное меню → в выпадающее */
  .account { padding: 16px var(--pad) 40px; }
  .account-panel { width: 100%; gap: 8px; }
  .account-card { padding: 24px; gap: 16px; }
  .account-card--profile { padding: 24px; }
  .account-card--reset { padding: 0; }
  .account-reset__state { padding: 24px; gap: 16px; }
  /* мобильные размеры заголовков/текста (чуть крупнее макета для читаемости) */
  .account-card__head { gap: 12px; }  /* под крупным моб. заголовком 22px — 12px воздуха (десктоп 8) */
  .account-card__title { font-size: 22px; font-weight: 700; line-height: 26px; letter-spacing: -0.22px; }
  .account-field__label { font-size: 16px; line-height: 18px; letter-spacing: -0.48px; }
  .account-card__desc { font-size: 16px; line-height: 24px; }      /* основной текст 16 (моб.) */
  .account-field__value { font-size: 16px; line-height: 22px; }    /* значения полей 16 (моб.) */
  .account-profile__name { font-size: 24px; line-height: 26px; letter-spacing: -0.24px; }
  /* мобайл — колонки в стек, на всю ширину */
  .account-list--split { flex-direction: column; align-items: stretch; }
  .account-col { flex: none; }
  .account-field--grow { flex: none; }
  /* настройки профиля (mobile) — компактнее, как в мобильном макете */
  .account-profile__edit { gap: 24px; }
  .account-settings { gap: 24px; }
  .account-avatars { gap: 16px; }
  .account-avatars__item { width: 54px; height: 54px; }
  .account-settings__label { font-size: 14px; line-height: 22px; }
  .account-settings__input { height: 54px; font-size: 16px; }  /* 16 — без iOS-зума */
  .account-avatar { width: 88px; height: 88px; }
  /* выпадающее меню с иконками */
  .account-menu--mobile .mobile-menu__link { display: flex; align-items: center; gap: 12px; }
  .account-menu--mobile .mobile-menu__link img { width: 22px; height: 22px; }

  /* ── БОНУСНАЯ ПРОГРАММА (mobile) ── */
  .bonus-rank__title { font-size: 24px; line-height: 26px; letter-spacing: -0.24px; }
  .bonus-page .account-card { gap: 24px; }                               /* блок→блок 24 (моб.); отступы монеты сверху/снизу */
  .bonus-rank__label { font-size: 16px; }                                /* текст 16 (моб.) */
  .bonus-progress { gap: 16px; }                                         /* блок→блок 16 (как профиль) */
  .bonus-progress__top { gap: 12px; }                                    /* заголовок→текст 12 (моб.) */
  .bonus-progress__bottom { gap: 12px; }
  .bonus-progress__more { font-size: 22px; font-weight: 700; line-height: 26px; letter-spacing: -0.22px; }
  .bonus-progress__count { font-size: 16px; }                            /* «2/10» 16 (моб.) */
  .bonus-progress__hint { font-size: 16px; line-height: 24px; }          /* текст 16 (моб.) */
  .bonus-progress__bar-row .bonus-progress__count { display: none; }  /* inline «2/10» прячем */
  .bonus-progress__count--m { display: block; }
  /* достижения (моб.): карточки в стек, внутри — текст слева, монета справа */
  .bonus-achievements { flex-direction: column; gap: 8px; }
  .bonus-ach { height: 174px; flex-direction: row; align-items: center; position: relative; border-radius: 36px; }
  .bonus-ach__content { flex: 1; min-width: 0; max-width: 60%; gap: 12px; }  /* число→подпись 12 (моб.) */
  .bonus-ach__label { font-size: 16px; line-height: 22px; }                  /* текст 16 (моб.) */
  .bonus-ach__image { position: absolute; right: 16px; top: 0; bottom: 0; width: 140px; flex: none; min-height: 0; }
  .bonus-ach__image img { width: 140px; height: 140px; left: auto; right: 0; top: 50%; transform: translateY(-50%); }

  /* ── ПОЛЕЗНОЕ (mobile) ── */
  .useful-link__sub { font-size: 16px; line-height: 22px; }
  .useful-survey__desc { font-size: 16px; line-height: 22px; }
  /* опрос: стопкой — текст слева, кнопка снизу на всю ширину */
  .useful-survey { flex-direction: column; align-items: stretch; }
  .useful-survey__head { align-items: flex-start; text-align: left; }
  .useful-survey__btn { width: 100%; padding: 0; }

  /* ── ПОДДЕРЖКА (mobile) ── */
  .support-q__sub { font-size: 16px; line-height: 22px; }
  .support-q__answer { font-size: 16px; line-height: 24px; }
  .support-form__input { font-size: 16px; min-height: 130px; }           /* 16 — без iOS-зума */
  .support-form__success { font-size: 16px; }
  .support-form__error { font-size: 16px; }

  /* ── FOOTER ── */
  .homepage__footer { padding: 0; margin-top: 40px; }

  .footer { max-width: 100%; padding-bottom: 0; }

  .footer__inner { margin-bottom: 0; }

  /* height по контенту (без min-height — он давал пустоту). Скругление только сверху,
     низ стыкуется с footer__bottom в единый блок */
  .footer__top {
    height: auto;
    border-radius: 36px 36px 0 0;
    padding: 20px;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer__nav { flex-direction: column; gap: 32px; }

  .footer__logo { width: 138px; height: 28px; }

  /* колонки одна под другой (как макет), а не в ряд */
  .footer__columns { flex-direction: column; gap: 32px; }

  .footer__column { gap: 12px; }

  .footer__links { gap: 12px; }

  .footer__social { gap: 12px; }

  .footer__social-icon { width: 57px; height: 57px; }

  /* единый блок с footer__top: тот же фон, без скругления и верхнего padding */
  .footer__bottom {
    background: var(--card);
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 20px 20px;
    white-space: normal;
  }

  .footer__bottom-left { flex-direction: column; gap: 16px; align-items: flex-start; }

  .footer__legal { flex-direction: column; gap: 12px; }

  /* «2026» в макете на мобайле отсутствует */
  .footer__year { display: none; }
}
