/*
 * Сайт compton.su — «Жидкое золото», как страница подключения, только без
 * сцены: тёмная пустота, металл в заголовках, волосяные золотые линии и
 * плёночное зерно. Движения почти нет — один медленный блик на заголовке,
 * и тот выключается при prefers-reduced-motion.
 *
 * Скриптов нет: весь текст — в разметке (landingService.js), вопросы и
 * ответы — нативные <details>. Шрифты и кадры — свои, с этого же домена.
 */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --void: #070605;
  --void-2: #0c0a07;
  --ink: #f2ece1;
  --ink-2: rgba(242, 236, 225, 0.68);
  --ink-3: rgba(242, 236, 225, 0.46);
  --ink-4: rgba(242, 236, 225, 0.22);

  --gold-hi: #fff3d1;
  --gold: #d9b462;
  --gold-mid: #b08a3e;
  --gold-low: #6b4e1c;
  --gold-ink: #150f06;
  --hair: rgba(217, 180, 98, 0.16);
  --hair-2: rgba(217, 180, 98, 0.36);
  --metal: linear-gradient(105deg, #5c4318 0%, #9c7431 16%, #e8cc8a 34%, #fff3d1 42%, #d9b462 54%, #8e6828 72%, #c9a55a 88%, #6b4e1c 100%);
  --glass: linear-gradient(180deg, rgba(255, 243, 209, 0.045), rgba(255, 243, 209, 0.012));

  --serif: 'Cormorant Garamond', 'Cormorant', ui-serif, Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 20px;
  --radius: 24px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  :root {
    --gutter: 40px;
    --nav-h: 76px;
  }
}

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

/* У Cormorant цифры по умолчанию старостильные: «1» как «I», «0» как «о».
   !important — потому что шорткат font: у заголовков сбрасывает и
   font-variant-numeric, и font-feature-settings. */
*,
*::before,
*::after {
  font-feature-settings: 'lnum' 1 !important;
}

html {
  background: var(--void);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(217, 180, 98, 0.07), transparent 60%),
    var(--void);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Плёночное зерно поверх всего: металл без него выглядит пластиком. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(217, 180, 98, 0.32);
  color: #fff;
}

a {
  color: inherit;
  text-decoration-color: var(--hair-2);
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

a:hover {
  color: var(--gold-hi);
  text-decoration-color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

p,
h1,
h2,
h3,
ul,
ol,
figure {
  margin: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(780px, 100% - 2 * var(--gutter));
}

/* --- Металл ---------------------------------------------------------------- */

.gilt {
  background: var(--metal);
  background-size: 220% 100%;
  background-position: 30% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sheen {
  animation: sheen 9s ease-in-out infinite alternate;
}

@keyframes sheen {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* --- Типографика ------------------------------------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8.2vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.display em,
.title em {
  font-style: italic;
  font-weight: 500;
  padding-right: 0.06em;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 12px/1.2 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.kicker-num {
  font: italic 500 22px/1 var(--serif);
  letter-spacing: 0;
  color: var(--gold-hi);
  padding-right: 14px;
  border-right: 1px solid var(--hair-2);
}

.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38em;
  text-wrap: pretty;
}

.body {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 40em;
  text-wrap: pretty;
}

/* --- Кнопки ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 15px/1.1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background-position 0.8s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease), color 0.3s var(--ease);
}

.btn .ico {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform 0.4s var(--ease);
}

.btn:hover .ico {
  transform: translateX(3px);
}

.btn-gold {
  background: var(--metal);
  background-size: 200% 100%;
  background-position: 20% 50%;
  color: var(--gold-ink);
  box-shadow: 0 18px 50px -18px rgba(217, 180, 98, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-gold:hover {
  color: var(--gold-ink);
  background-position: 80% 50%;
  transform: translateY(-1px);
  box-shadow: 0 24px 60px -18px rgba(217, 180, 98, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-line {
  border-color: var(--hair-2);
  background: rgba(255, 243, 209, 0.02);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--gold);
  background: rgba(255, 243, 209, 0.05);
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  gap: 8px;
}

.btn-sm .ico {
  width: 16px;
  height: 16px;
}

.btn-block {
  width: 100%;
}

/* --- Навигация ----------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 6, 5, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(217, 180, 98, 0.09);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .mark-emblem {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand-word {
  font: 500 19px/1 var(--serif);
  letter-spacing: 0.32em;
  color: var(--ink);
}

.nav-links {
  display: none;
  gap: 34px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a {
  text-decoration: none;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

/* «Войти» — тихая текстовая ссылка в личный кабинет /app, рядом с кнопкой бота. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-login {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-login:hover {
  color: var(--gold-hi);
}

/* --- Первый экран ---------------------------------------------------------------- */

/* isolation + свой фон: screen смешивает каплю с фоном первого экрана.
   Без фона внутри изолированной группы чёрный кадра остался бы чёрным. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--void);
  padding: 0 0 clamp(56px, 8vw, 110px);
}

/* Капля жидкого золота: снята на чистом чёрном и ложится через screen —
   чёрный исчезает, остаётся только металл. На телефоне — над текстом. */
.hero-orb {
  position: relative;
  z-index: -1;
  height: min(108vw, 560px);
  margin: 0 auto -18vw;
  background: url('/media/drop-m.webp') center 46% / cover no-repeat;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 62%, transparent 96%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 62%, transparent 96%);
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  width: 120vw;
  height: 120vw;
  max-width: 1300px;
  max-height: 1300px;
  left: 50%;
  top: -30vw;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217, 180, 98, 0.13), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: 28px;
}

.hero .display {
  max-width: 11.5em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Точка перед каждым пунктом: при переносе строка не начинается с «висячей» точки. */
.hero-notes li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-mid);
}

@media (max-width: 559px) {
  .hero-actions .btn {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: min(calc(100vh - var(--nav-h)), 920px);
    display: grid;
    align-items: center;
    padding: clamp(80px, 9vw, 130px) 0;
  }

  /* В кадре drop.webp (16:9) сфера стоит на 67% ширины и занимает 39% её.
     --d — диаметр сферы на экране; кадр растягиваем под него и ставим так,
     чтобы сфера чуть уходила за правый край и не задевала колонку текста. */
  .hero-orb {
    --d: clamp(380px, 40vw, 660px);
    position: absolute;
    top: 50%;
    left: calc(100% - var(--d) * 2.03);
    width: calc(var(--d) * 2.564);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    transform: translateY(-50%);
    background-image: url('/media/drop.webp');
    background-position: center;
    background-size: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero::before {
    left: auto;
    right: -30vw;
    top: -20vw;
    transform: none;
  }

  .hero-inner {
    gap: 34px;
  }

  .hero .hero-inner > * {
    max-width: min(760px, 58vw);
  }

  .hero .display {
    font-size: clamp(64px, 6.6vw, 116px);
  }
}

/* --- Цифры ---------------------------------------------------------------------- */

.stats {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255, 243, 209, 0.025), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 30px 18px 30px 0;
}

.stat:nth-child(2n) {
  padding-left: 18px;
  border-left: 1px solid var(--hair);
}

.stat:nth-child(n + 3) {
  border-top: 1px solid var(--hair);
}

.stat-num {
  font: 400 clamp(46px, 5.6vw, 76px)/0.9 var(--serif);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 15em;
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .stat,
  .stat:nth-child(2n) {
    padding: 44px 28px;
    border-top: 0;
  }

  .stat + .stat {
    border-left: 1px solid var(--hair);
  }

  .stat:first-child {
    padding-left: 0;
  }
}

/* --- Секции ---------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(84px, 11vw, 168px) 0;
}

.section-alt {
  background:
    radial-gradient(80% 60% at 15% 0%, rgba(217, 180, 98, 0.05), transparent 70%),
    var(--void-2);
  border-top: 1px solid rgba(217, 180, 98, 0.07);
  border-bottom: 1px solid rgba(217, 180, 98, 0.07);
}

.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(44px, 6vw, 72px);
  max-width: 820px;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-head-center .body {
  margin-inline: auto;
}

/* --- Белые списки ---------------------------------------------------------------- */

.why-grid {
  display: grid;
  gap: 24px;
}

.why-grid .section-head {
  margin-bottom: 24px;
}

.modes {
  display: grid;
  gap: 14px;
}

.mode {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 30px 28px 32px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--glass);
}

.mode-hero {
  border-color: transparent;
  background:
    linear-gradient(180deg, #14100a, #0b0906) padding-box,
    var(--metal) border-box;
  box-shadow: 0 30px 80px -40px rgba(217, 180, 98, 0.5);
}

.mode-tag {
  justify-self: start;
  padding: 6px 12px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.mode-tag-muted {
  border-color: var(--ink-4);
  color: var(--ink-3);
}

.mode-tag-gold {
  border-color: transparent;
  background: var(--metal);
  background-size: 200% 100%;
  color: var(--gold-ink);
  font-weight: 600;
}

.mode-title {
  font: 400 30px/1.1 var(--serif);
}

.mode-text {
  color: var(--ink-2);
}

@media (min-width: 1000px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 80px;
    align-items: start;
  }

  .why-grid .section-head {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
    margin-bottom: 0;
  }
}

/* --- Серверы ---------------------------------------------------------------------- */

.features {
  display: grid;
  gap: 14px;
}

.feature {
  display: grid;
  gap: 10px;
  padding: 28px 26px 30px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--glass);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}

.feature:hover {
  border-color: var(--hair-2);
  transform: translateY(-2px);
}

.feature .ico {
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin-bottom: 6px;
}

.feature h3 {
  font: 400 26px/1.15 var(--serif);
}

.feature p {
  color: var(--ink-2);
  font-size: 15px;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.servers-grid {
  display: grid;
  gap: 56px;
}

/* На телефоне видео — после текста блока, на широком экране — слева от него. */
.phone-wrap {
  position: relative;
  justify-self: center;
  order: 2;
}

.phone {
  width: min(330px, 76vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(150deg, #3a2e1c 0%, #110e09 32%, #0a0806 60%, #2b2215 100%);
  box-shadow:
    0 0 0 1px var(--hair-2),
    inset 0 0 0 1px rgba(255, 243, 209, 0.08),
    0 60px 140px -50px rgba(217, 180, 98, 0.45);
}

.phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 42px;
  background: #000;
}

.phone-badge {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: rgba(7, 6, 5, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.phone-badge .gilt {
  font: 500 26px/1 var(--serif);
}

@media (min-width: 1000px) {
  .servers-grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 96px;
    align-items: center;
  }

  .phone-wrap {
    order: 0;
  }
}

/* --- Тарифы ---------------------------------------------------------------------- */

.trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 18px;
  padding: 24px 28px;
  border: 1px dashed var(--hair-2);
  border-radius: var(--radius);
  background: rgba(255, 243, 209, 0.02);
}

.trial-title {
  font: 400 30px/1.1 var(--serif);
}

.trial-title .gilt {
  font-style: italic;
  font-weight: 500;
}

.trial-text {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
}

@media (max-width: 559px) {
  .trial .btn {
    width: 100%;
  }
}

.tiers {
  display: grid;
  gap: 14px;
}

.tier {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 34px 28px 28px;
  border: 1px solid var(--hair);
  border-radius: 28px;
  background: var(--glass);
}

.tier-best {
  border-color: transparent;
  background:
    linear-gradient(180deg, #16110a, #0b0906 70%) padding-box,
    var(--metal) border-box;
  box-shadow: 0 40px 100px -50px rgba(217, 180, 98, 0.6);
}

.tier-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--metal);
  background-size: 200% 100%;
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tier-term {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tier-price {
  font: 400 clamp(48px, 4.6vw, 60px)/1 var(--serif);
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.tier-per {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-size: 14px;
  color: var(--ink-2);
}

.tier-save {
  padding: 3px 9px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

.tier-perks {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--hair);
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
}

.tier-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-perks .ico {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--gold);
}

.tier .btn {
  margin-top: auto;
}

.pay-note {
  margin: 32px auto 0;
  max-width: 44em;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

@media (min-width: 680px) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tiers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Подключение ------------------------------------------------------------------ */

.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 28px;
  border-top: 1px solid var(--hair-2);
}

.step-num {
  font: italic 500 54px/1 var(--serif);
  letter-spacing: -0.02em;
  justify-self: start;
}

.step h3 {
  font: 400 30px/1.1 var(--serif);
}

.step p {
  color: var(--ink-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}

.chip:hover {
  border-color: var(--gold);
}

.tip {
  margin-top: 36px;
  padding: 22px 26px;
  border-left: 2px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 243, 209, 0.03);
  color: var(--ink-2);
  max-width: 54em;
}

.tip strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .step {
    padding: 36px 0 0;
  }
}

/* --- Вопросы ---------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  gap: 8px;
}

.faq {
  border-top: 1px solid var(--hair);
}

.qa {
  border-bottom: 1px solid var(--hair);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary h3 {
  font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--serif);
  transition: color 0.3s var(--ease);
}

.qa summary:hover h3 {
  color: var(--gold-hi);
}

.qa-icon {
  width: 26px;
  height: 26px;
  flex: none;
  padding: 4px;
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  color: var(--gold);
  transition: transform 0.45s var(--ease), background 0.3s var(--ease);
}

.qa[open] .qa-icon {
  transform: rotate(45deg);
  background: rgba(217, 180, 98, 0.12);
}

.qa p {
  padding: 0 0 28px;
  max-width: 44em;
  color: var(--ink-2);
}

@media (min-width: 1000px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
    align-items: start;
  }

  .faq-head {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
  }
}

/* --- Финальный призыв ---------------------------------------------------------------- */

.section-cta {
  padding-top: 0;
}

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  justify-items: start;
  gap: 26px;
  padding: clamp(48px, 7vw, 104px) clamp(26px, 6vw, 88px);
  border-radius: 36px;
  background: #0b0906;
  box-shadow: 0 0 0 1px var(--hair-2), 0 60px 160px -80px rgba(217, 180, 98, 0.55);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/media/material.webp') center / cover no-repeat;
  opacity: 0.9;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 6, 5, 0.96) 0%, rgba(7, 6, 5, 0.86) 45%, rgba(7, 6, 5, 0.35) 100%);
}

.cta .title {
  max-width: 13em;
}

@media (max-width: 559px) {
  .cta .btn {
    width: 100%;
  }

  .cta::after {
    background: linear-gradient(180deg, rgba(7, 6, 5, 0.92), rgba(7, 6, 5, 0.8));
  }
}

/* --- Подвал ---------------------------------------------------------------------- */

.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--hair);
  overflow: hidden;
}

.foot .wrap {
  container-type: inline-size;
}

/* «COMPTON» шириной ровно в колонку: слово занимает 5,24 своего кегля
   (замер Cormorant 500 с этим трекингом), 18,6cqi — это 97% колонки. */
.foot-word {
  font: 500 15vw/0.8 var(--serif);
  font-size: 18.6cqi;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  margin: 10px 0 56px;
  opacity: 0.92;
  user-select: none;
}

.foot-grid {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hair);
}

.foot-col {
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.foot-col a {
  text-decoration: none;
  justify-self: start;
}

.foot-title {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.foot-text {
  max-width: 26em;
}

.foot-copy {
  padding-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
}

@media (min-width: 800px) {
  .foot-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

/* --- Документы ---------------------------------------------------------------------- */

.doc {
  padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
}

.doc .eyebrow {
  margin-bottom: 22px;
}

.doc-title {
  font: 400 clamp(40px, 6vw, 76px)/1 var(--serif);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.doc-date {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 48px;
}

.doc-tab {
  padding: 9px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}

.doc-tab.is-current {
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(217, 180, 98, 0.08);
}

.doc-body {
  display: grid;
  gap: 18px;
  font-size: 16px;
  color: var(--ink-2);
}

.doc-body b {
  color: var(--ink);
  font-weight: 600;
}

.doc-body i {
  color: var(--ink-3);
}

.doc-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 243, 209, 0.06);
  font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--gold-hi);
}

.doc-body ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.doc-body li::marker {
  color: var(--gold);
}

.doc-part {
  display: grid;
  gap: 12px;
  padding: 28px 0 4px;
  border-top: 1px solid var(--hair);
}

.doc-part h2 {
  font: 400 28px/1.15 var(--serif);
  color: var(--ink);
}

/* --- 404 ---------------------------------------------------------------------- */

.lost {
  padding: clamp(80px, 12vw, 180px) 0;
}

.lost .wrap {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.lost-code {
  font: italic 500 clamp(120px, 22vw, 260px)/0.8 var(--serif);
  letter-spacing: -0.04em;
}

/* --- Без движения ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
