/* AI Confinity landing — styles. Built after the client's mockup of 2026-10-21. */

/* Design tokens: brand system v0.4, «Ночь — обложки, бумага — страницы. Золото — одно действие».
   Source of truth: AstroPattern docs/design/tokens.json (v4). Until v4 is published there, the tables in
   AstroPattern docs/design/review-2026-10-21/visual-audit.md, section 2.3. Change values there first, then here.
   Text takes only *-ink, *-ink-muted and *-gold-text (gold-pale for the brand name on night).
   Symbolic lilac is reserved for symbolic content; the page has none of it yet. */
:root {
  /* Night: header, hero, dark sections, footer */
  --night-ground: #0a0f1e;
  --night-inset: #060b18;
  --night-surface: #141933;
  --night-raised: #1d2244;
  --night-line: #272d4f;
  --night-ink: #eceaf2;
  --night-ink-muted: #a3a6bf;
  --night-gold: #d6b58b;
  --night-gold-text: #e2c49c;
  --night-gold-pale: #ecdcc3;
  --night-gold-line: rgba(214, 181, 139, 0.45);
  --night-focus: #ecdcc3;
  /* Paper: cream reading sections */
  --paper-ground: #f7f2ec;
  --paper-inset: #efe9e2;
  --paper-surface: #fffdfa;
  --paper-ink: #141633;
  --paper-ink-muted: #5e5a6b;
  --paper-gold: #a27c52;
  --paper-gold-text: #80592f;
  --paper-gold-line: #cdb99c;
  --paper-focus: #141633;
  /* Gold action: the one filled button, the same in both themes */
  --gold-fill: linear-gradient(180deg, #edd3b1 0%, #d8b48f 100%);
  --gold-fill-hover: linear-gradient(180deg, #f2dbbc 0%, #dfbc98 100%); /* site only */
  --on-gold: #3a2a1a;
  /* Focus ring of the current zone: paper by default, night inside dark zones (see :focus-visible) */
  --focus: var(--paper-focus);
  /* Shape and layout */
  --radius-card: 16px;
  --radius-photo: 12px;
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --header-h: 80px;
  --container: 1320px;
  --gutter: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper-ground);
  color: var(--paper-ink-muted);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--paper-ink); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link, .site-header, .hero, .dark, .site-footer, .dialog { --focus: var(--night-focus); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--night-gold); color: var(--on-gold); border-radius: 999px; font-weight: 500; transition: top .2s; }
.skip-link:focus { top: 12px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- typography helpers ---------- */
.caps { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; line-height: 2; font-weight: 500; }
.eyebrow { color: var(--paper-gold-text); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; line-height: 1.6; }
.hero .eyebrow, .dark .eyebrow { color: var(--night-gold-text); }
.section-title { font-size: 36px; line-height: 1.2; letter-spacing: -.005em; }
.lead { font-size: 16px; line-height: 1.65; }
.brand { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  background: var(--gold-fill); color: var(--on-gold);
  font-size: 17px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(214, 181, 139, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background: var(--gold-fill-hover); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(214, 181, 139, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-link { position: relative; display: inline-flex; align-items: center; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; color: var(--paper-ink); font-size: 16px; font-weight: 500; line-height: 1.2; }
.btn-link:hover { color: #262a4d; }
.btn-link::after { content: ""; position: absolute; inset: -12px -8px -8px; }

/* ---------- header ---------- */
/* One header for every page. Solid Night: a translucent bar turns grey over the paper sections and documents. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--night-ground);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--night-ink);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.logo-mark { width: 72px; height: 72px; object-fit: contain; }
.logo-name { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: .005em; color: var(--night-gold-pale); white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; display: inline-block; padding: 6px 0; font-size: 15px; font-weight: 400; color: var(--night-ink); letter-spacing: .005em; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--night-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 4px; font-size: 14px; font-weight: 500; color: var(--night-ink); letter-spacing: .02em; }
.lang-btn .icon { width: 20px; height: 20px; }
.lang-btn .icon-chevron { width: 14px; height: 14px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 8px; border-radius: 12px; background: #11162c; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); display: none; }
.lang-menu[data-open="true"] { display: block; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--night-ink); }
.lang-menu a:hover { background: rgba(255, 255, 255, 0.05); }
.lang-menu a[aria-current="true"] { color: var(--night-gold-text); background: rgba(255, 255, 255, 0.05); }
.lang-menu small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; color: var(--night-ink); }
.menu-toggle .icon-close { display: none; }
.site-header.nav-open .menu-toggle .icon-close { display: block; }
.site-header.nav-open .menu-toggle .icon-menu { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--night-ink);
  background: var(--night-ground) url("/assets/hero-sky.webp") center / cover no-repeat;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 13, 27, 0.92) 0%, rgba(8, 13, 27, 0.72) 42%, rgba(8, 13, 27, 0.15) 70%, rgba(8, 13, 27, 0) 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(8, 13, 27, 0) 0%, rgba(8, 13, 27, 0.55) 100%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.hero-copy { padding-top: 24px; }
.hero-title { margin-top: 18px; font-size: 44px; line-height: 1.18; color: #f4f2f8; font-weight: 500; letter-spacing: -.004em; }
.hero-title .brand-line { color: var(--night-gold-pale); }
.hero-lead { margin-top: 24px; max-width: 580px; font-size: 19px; line-height: 1.5; color: #dedcea; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.video-btn { display: inline-flex; align-items: center; gap: 16px; color: var(--night-ink); font-size: 15px; line-height: 1.35; text-align: left; }
.video-btn .play-ring { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(240, 232, 220, 0.85); background: rgba(8, 13, 27, 0.4); transition: background .2s ease, transform .2s ease; }
.video-btn:hover .play-ring { background: rgba(214, 181, 139, 0.18); transform: scale(1.04); }
.video-btn .icon { width: 18px; height: 18px; margin-left: 3px; }

.hero-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin-top: 52px; }
.feature { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.35; color: #e4e2ec; }
.feature-ring { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--night-gold-line); color: var(--night-gold); background: rgba(8, 13, 27, 0.35); }
.feature-ring .icon { width: 26px; height: 26px; }

.hero-visual { position: relative; height: 560px; }
.hero-orbits { position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; transform: translate(-50%, -50%); }
.hero-beam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255, 230, 190, 0) 0%, rgba(255, 230, 190, 0.55) 35%, rgba(255, 220, 170, 0.85) 50%, rgba(255, 230, 190, 0.45) 68%, rgba(255, 230, 190, 0) 100%); filter: blur(0.6px); box-shadow: 0 0 24px 6px rgba(255, 214, 160, 0.18); }
.hero-mark { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; transform: translate(-50%, -50%); object-fit: contain; filter: drop-shadow(0 0 30px rgba(190, 150, 255, 0.35)) drop-shadow(0 0 16px rgba(255, 190, 120, 0.25)); }
.planet { position: absolute; border-radius: 50%; }
.planet-moon { left: 6%; top: 16%; width: 112px; height: 112px; background: radial-gradient(circle at 36% 32%, #e9e6ee 0%, #b9b5c9 32%, #726f86 68%, #2b2a3d 100%); box-shadow: 0 0 40px rgba(200, 190, 230, 0.25), inset -14px -10px 30px rgba(10, 12, 30, 0.6); }
.planet-moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 58% 64%, rgba(60, 58, 80, 0.5) 0 7px, transparent 8px), radial-gradient(circle at 30% 58%, rgba(60, 58, 80, 0.45) 0 5px, transparent 6px), radial-gradient(circle at 62% 30%, rgba(60, 58, 80, 0.4) 0 4px, transparent 5px); }
.planet-small { left: 44%; top: 3%; width: 46px; height: 46px; background: radial-gradient(circle at 36% 32%, #bfb6d8 0%, #7a6f9d 48%, #2c2541 100%); box-shadow: 0 0 20px rgba(170, 150, 220, 0.3); }
.hero-crescent { position: absolute; left: 9%; top: 66%; width: 60px; height: 60px; color: #ede8f5; filter: drop-shadow(0 0 10px rgba(230, 220, 255, 0.5)); }
.hero-words { position: absolute; right: 0; top: 8%; color: var(--night-ink-muted); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; line-height: 2.3; font-weight: 500; text-align: left; }
.hero-quote { position: absolute; right: 0; bottom: 10%; max-width: 190px; color: #f1eef8; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.95; font-weight: 500; }
.hero-quote .q { display: inline-block; margin-right: 6px; font-family: var(--serif); font-size: 26px; line-height: 0; color: var(--night-gold); vertical-align: -6px; }

/* ---------- light sections ---------- */
.section { position: relative; padding: 76px 0; }
.section-alt { background: var(--paper-inset); }
.section-head { max-width: 760px; }
.section-head .section-title + .lead { margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.photo-card { position: relative; margin: 0; border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 560 / 272; background: var(--night-surface); box-shadow: 0 24px 50px rgba(20, 22, 51, 0.16); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 28px 24px 28px 42%; color: #f6f3fa; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.95; font-weight: 500; text-shadow: 0 0 2px rgba(10, 15, 30, 0.6), 0 1px 10px rgba(10, 15, 30, 0.6); background: linear-gradient(90deg, rgba(10, 15, 30, 0) 24%, rgba(10, 15, 30, 0.42) 100%); }
.photo-caption::after { content: ""; display: block; width: 28px; height: 1px; margin-top: 14px; background: rgba(255, 255, 255, 0.8); }
.photo-caption.at-left { padding: 28px 40% 28px 32px; justify-content: flex-start; padding-top: 34px; background: none; }
.photo-caption.at-left::after { display: none; }
.split-copy .section-title { font-size: 34px; }
.split-copy .lead { margin-top: 18px; }
.split-copy .btn { margin-top: 34px; }
.actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; margin-top: 34px; }
.actions .btn { margin-top: 0; }

.deco-note { position: absolute; color: var(--paper-ink-muted); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 2.2; font-weight: 500; }
.deco-orbit { position: absolute; pointer-events: none; }
.feeling .deco-orbit { right: 150px; bottom: 0; width: 230px; height: 160px; }
.feeling .deco-note { right: var(--gutter); bottom: 56px; }
.helps .deco-orbit { right: 0; top: -40px; width: 320px; height: 220px; }
.connects .deco-note { right: var(--gutter); bottom: 72px; }

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.card { background: var(--paper-inset); border-radius: var(--radius-card); padding: 32px 32px 28px; }
.card-head { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; align-items: start; }
.card-ring { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--paper-gold-line); color: var(--paper-gold); background: rgba(255, 255, 255, 0.35); }
.card-ring .icon { width: 34px; height: 34px; stroke-width: 1.3; }
.card-title { font-size: 22px; line-height: 1.3; }
.card-body { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.card-body p + p { margin-top: 10px; }
.quote { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; margin: 24px 0 0; padding: 20px 26px; border-radius: 10px; background: var(--paper-surface); }
.quote-mark { font-family: var(--serif); font-size: 44px; line-height: .8; color: #bcb4ab; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45; color: #4b4752; }

.connects .split { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.connects .split-copy .section-title { font-size: 33px; }
.connects .lead + .lead { margin-top: 14px; }
.connects strong { color: var(--paper-ink); font-weight: 700; }

/* ---------- draft sections ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.tile { background: var(--paper-surface); border-radius: var(--radius-card); padding: 28px 28px 26px; box-shadow: 0 10px 30px rgba(20, 22, 51, 0.06); }
.section-alt .tile { background: var(--paper-surface); }
.tile .card-ring { width: 56px; height: 56px; }
.tile .card-ring .icon { width: 26px; height: 26px; }
.tile h3 { margin-top: 18px; font-size: 21px; line-height: 1.3; }
.tile p { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.note { margin-top: 32px; padding: 18px 24px; border-left: 2px solid var(--paper-gold-line); background: rgba(214, 181, 139, 0.12); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--paper-ink-muted); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius-card); background: var(--paper-surface); box-shadow: 0 10px 30px rgba(20, 22, 51, 0.06); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--paper-gold-line); color: var(--paper-gold-text); font-family: var(--serif); font-size: 20px; }
.step h3 { margin-top: 18px; font-size: 20px; line-height: 1.3; }
.step p { margin-top: 10px; font-size: 15px; line-height: 1.6; }

.dark { color: var(--night-ink); background: var(--night-ground); }
.dark .section-title, .dark h3 { color: #f3f0f8; }
.dark .lead { color: var(--night-ink-muted); }
.directions { background: var(--night-ground) url("/assets/hero-sky.webp") center / cover no-repeat; }
.directions::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 13, 27, 0.9) 0%, rgba(8, 13, 27, 0.75) 100%); }
.directions .container { position: relative; }
.lenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.lens { position: relative; padding: 28px 28px 26px; border-radius: var(--radius-card); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.lens .feature-ring { width: 60px; height: 60px; }
.lens h3 { margin-top: 18px; font-size: 22px; }
.lens p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--night-ink-muted); }
.badge { position: absolute; right: 20px; top: 22px; padding: 5px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.badge-on { background: rgba(214, 181, 139, 0.18); color: var(--night-gold-text); border: 1px solid rgba(214, 181, 139, 0.5); }
.badge-soon { background: rgba(255, 255, 255, 0.06); color: var(--night-ink-muted); border: 1px solid rgba(255, 255, 255, 0.14); }
.planned { margin-top: 40px; }
.planned h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--night-ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); font-size: 14px; color: var(--night-ink-muted); }
.directions .note { border-left-color: var(--night-gold); background: rgba(214, 181, 139, 0.1); color: var(--night-ink-muted); }

.placeholder { margin-top: 36px; padding: 36px 40px; border-radius: var(--radius-card); border: 1px dashed rgba(20, 22, 51, 0.22); background: rgba(255, 255, 255, 0.4); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.placeholder p { font-size: 16px; line-height: 1.6; }
.placeholder .btn { margin: 0; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.post { padding: 26px 26px 24px; border-radius: var(--radius-card); background: var(--paper-surface); box-shadow: 0 10px 30px rgba(20, 22, 51, 0.06); }
.post .tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(214, 181, 139, 0.2); color: #7a5530; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.post h3 { margin-top: 14px; font-size: 21px; line-height: 1.3; }
.post p { margin-top: 10px; font-size: 15px; line-height: 1.6; }

/* ---------- screens: how the app looks (showcase zone, always night) ---------- */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: 1240px; margin: 44px auto 0; }
.phone-shot { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phone { width: 100%; max-width: 270px; padding: 7px; border-radius: 40px; background: var(--night-surface); border: 1px solid var(--night-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.phone-screen { position: relative; aspect-ratio: 390 / 844; border-radius: 33px; overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, var(--night-raised) 0%, var(--night-inset) 70%); }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-screen img.is-missing { visibility: hidden; }
.phone-shot figcaption { margin-top: 22px; max-width: 280px; font-size: 15px; line-height: 1.55; color: var(--night-ink-muted); }
.phone-shot figcaption strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--night-ink); }
.screens-note { margin-top: 36px; text-align: center; font-size: 13px; color: var(--night-ink-muted); }

/* ---------- why / CTA ---------- */
.why { background: var(--night-ground) url("/assets/why-mountains.webp") center bottom / cover no-repeat; padding: 60px 0 64px; }
.why::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 15, 30, 0.35) 0%, rgba(10, 15, 30, 0.1) 100%); }
.why .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.why .section-title { font-size: 32px; color: #f3f0f8; }
.why-features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.why-feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; font-size: 14px; line-height: 1.35; color: #e4e2ec; }
.why-feature .feature-ring { width: 64px; height: 64px; }
.cta-card { position: relative; padding: 36px 36px 34px; border-radius: 16px; text-align: center; background: linear-gradient(160deg, rgba(60, 56, 92, 0.72) 0%, rgba(26, 24, 46, 0.78) 100%); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cta-card .eyebrow { color: #aeb0c6; font-size: 11px; }
.cta-card h2 { margin-top: 12px; font-size: 28px; line-height: 1.25; color: #f6f3fa; }
.cta-card .btn { margin-top: 24px; }
.cta-card .fine { margin-top: 14px; font-size: 12px; letter-spacing: .06em; color: #9b9db3; }

/* ---------- contacts ---------- */
.contacts { padding: 64px 0; }
.contacts .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-list { margin-top: 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--night-ink-muted); }
.contact-list .feature-ring { width: 48px; height: 48px; }
.contact-list .feature-ring .icon { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink-muted); }
.contact-list a { color: var(--night-gold-text); text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--night-gold-pale); }

/* ---------- footer ---------- */
.site-footer { background: var(--night-inset); color: var(--night-ink); padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
/* One footer for every page (documents: scripts/gen-doc-toc.mjs): logo, the menu wrapping in its own column,
   language and slogan on the right, the credit line below. «Cookie settings» is a menu item (.footer-link). */
.site-footer .container { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 36px; }
.site-footer .logo-mark { width: 60px; height: 60px; }
.site-footer .logo-name { font-size: 20px; }
.footer-nav ul { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; }
.footer-nav a, .footer-link { font-size: 14px; color: var(--night-ink-muted); }
.footer-nav a:hover, .footer-link:hover { color: #fff; }
.footer-right { display: flex; align-items: center; gap: 34px; }
.slogan { color: #bfbdcc; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.9; font-weight: 500; }
.copyright { grid-column: 1 / -1; font-size: 12px; color: #9194ad; margin-top: 6px; }
.copyright .credit { color: inherit; text-decoration: underline; text-decoration-color: rgba(145, 148, 173, 0.5); text-underline-offset: 3px; }
.copyright .credit:hover { color: #fff; }

/* ---------- video dialog ---------- */
.dialog { width: min(920px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; background: #0f1430; color: var(--night-ink); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.dialog::backdrop { background: rgba(4, 7, 18, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-inner { position: relative; padding: 20px; }
.dialog-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; }
.dialog-close:hover { background: rgba(255, 255, 255, 0.16); }
.video-placeholder { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; background: var(--night-ground) url("/assets/hero-sky.webp") center / cover no-repeat; }
.video-placeholder .play-ring { width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid rgba(240, 232, 220, 0.85); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.video-placeholder .play-ring .icon { width: 24px; height: 24px; margin-left: 4px; }
.video-placeholder h2 { font-size: 26px; color: #f6f3fa; }
.video-placeholder p { max-width: 460px; font-size: 15px; color: var(--night-ink-muted); padding: 0 16px; }

/* ---------- 404 page (404.html): the hero's night sky, one gold action ---------- */
.notfound-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--night-ground); }
.notfound { flex: 1 0 auto; display: flex; align-items: center; }
.notfound .container { padding-top: 64px; padding-bottom: 72px; }
.notfound-code { font-family: var(--serif); font-weight: 500; font-size: clamp(140px, 16vw, 240px); line-height: 1; letter-spacing: .02em; text-align: center; color: rgba(214, 181, 139, 0.08); -webkit-text-stroke: 1.5px var(--night-gold-line); -webkit-user-select: none; user-select: none; }
.notfound-page .copyright { margin-top: 0; }

/* ---------- documents on paper (privacy, terms, support) ----------
   Header and footer are the landing ones (scripts/gen-doc-toc.mjs); type follows the landing scale. */
.doc-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper-ground); }
.doc { flex: 1 0 auto; padding: 64px 0 88px; color: var(--paper-ink); --focus: var(--paper-focus); }
.doc .container { max-width: 820px; }
/* The landing eyebrow (without this, .doc p made it 17 px) and the hero title's scale: 44, 34, 30 px. */
.doc .eyebrow { font-size: 12px; line-height: 1.6; color: var(--paper-gold-text); }
.doc h1 { font-size: 44px; overflow-wrap: anywhere; line-height: 1.18; letter-spacing: -.004em; margin-top: 18px; }
.doc h2 { font-size: 26px; line-height: 1.25; margin: 48px 0 14px; }
.doc h3 { font-family: var(--sans, inherit); font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 12px 0 14px; padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--paper-gold-text); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--paper-ink); }
.doc-meta { margin-top: 14px; color: var(--paper-ink-muted); font-size: 15px !important; }
.doc h2 + .doc-meta, .doc p + .doc-meta { margin-top: 40px; }
.doc-lead { margin-top: 22px; font-size: 20px !important; line-height: 1.5 !important; }

/* documents: numbered sections with «On this page» beside them (scripts/gen-doc-toc.mjs). The list hangs
   under the logo: the same container and gutter as the header and footer, not a narrower centred column. */
.doc .container.doc-layout { max-width: var(--container); display: grid; grid-template-columns: 240px minmax(0, 780px); gap: 72px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; }
.doc .doc-toc-title { font-size: 12px !important; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-gold-text); }
.doc-toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--paper-gold-line); }
.doc .doc-toc li { margin: 0; border-bottom: 1px solid var(--paper-gold-line); font-size: 14px; line-height: 1.4; }
.doc .doc-toc a { display: flex; gap: 14px; padding: 11px 2px; color: var(--paper-ink-muted); text-decoration: none; }
.doc .doc-toc a:hover { color: var(--paper-ink); }
.doc-toc a span { flex: none; min-width: 20px; padding-top: 1px; font-size: 12px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--paper-gold-text); }
.doc h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-num { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: 13px; letter-spacing: .16em; font-variant-numeric: tabular-nums; color: var(--paper-gold-text); }
@media (max-width: 960px) {
  .doc .container.doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-toc { display: none; }
}
@media (max-width: 640px) { .doc h1 { font-size: 34px; } }
@media (max-width: 400px) { .doc h1 { font-size: 30px; } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 40px; }
  .site-nav ul { gap: 22px; }
  .hero-visual { height: 500px; }
  .hero-mark { width: 400px; height: 400px; }
  .hero-orbits { width: 540px; height: 540px; }
  .why .container { grid-template-columns: minmax(0, 1fr) 360px; }
}
/* The live-text wordmark is wider than the old image: the nav folds into the menu below 1180 px. */
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 12px var(--gutter) 24px; background: var(--night-ground); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .site-nav a::after { display: none; }
  .header-actions { margin-left: auto; gap: 14px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .photo-card { aspect-ratio: 3 / 2; }
}
@media (max-width: 1080px) {
  .hero-title { font-size: 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { height: 460px; max-width: 620px; margin: 0 auto; width: 100%; }
  .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why .container { grid-template-columns: minmax(0, 1fr); }
  .why-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-card { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lenses, .cols-3, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { gap: 24px; }
  .feeling .deco-orbit, .feeling .deco-note, .helps .deco-orbit, .connects .deco-note { display: none; }
  .notfound-code { order: -1; text-align: left; font-size: clamp(104px, 26vw, 200px); }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 12px var(--gutter) 24px; background: var(--night-ground); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .site-nav a::after { display: none; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-actions .btn { display: none; }
  .split, .connects .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .contacts .container { grid-template-columns: minmax(0, 1fr); }
  .placeholder { grid-template-columns: minmax(0, 1fr); }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; max-width: 620px; }
  .site-footer .container { grid-template-columns: minmax(0, 1fr); }
  .footer-right { justify-content: space-between; }
  .footer-nav ul { gap: 0 26px; }
  .footer-nav a, .footer-link { display: inline-block; padding: 14px 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 15px; }
  .site-header .container { gap: 12px; }
  .logo { gap: 4px; }
  .logo-mark { width: 48px; height: 48px; }
  .logo-name { font-size: 19px; }
  .header-actions { gap: 6px; }
  .lang-btn { padding: 8px 2px; }
  .lang-btn .icon-chevron { display: none; }
  .section { padding: 56px 0; }
  .section-title, .split-copy .section-title { font-size: 28px; }
  .hero .container { padding-top: 28px; padding-bottom: 32px; }
  .hero-title { font-size: 34px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { gap: 20px; }
  .btn { min-height: 50px; padding: 0 24px; font-size: 16px; }
  .hero-visual { height: 360px; }
  .hero-mark { width: 290px; height: 290px; }
  .hero-orbits { width: 380px; height: 380px; }
  .planet-moon { width: 72px; height: 72px; left: 2%; top: 12%; }
  .planet-small { width: 32px; height: 32px; }
  .hero-crescent { width: 44px; height: 44px; left: 4%; top: 70%; }
  .hero-words { font-size: 11px; letter-spacing: .18em; top: 2%; }
  .hero-quote { font-size: 11px; max-width: 150px; bottom: 2%; }
  .hero-features { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 36px; }
  .photo-card { aspect-ratio: 4 / 3; }
  .photo-caption { padding: 20px 16px 20px 38%; font-size: 11px; letter-spacing: .14em; line-height: 1.85; }
  .photo-caption.at-left { padding: 24px 34% 24px 20px; }
  .card { padding: 24px 20px 22px; }
  .card-head { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
  .card-head > div { display: contents; }
  .card-head .card-body { grid-column: 1 / -1; margin-top: 2px; }
  .card-ring { width: 56px; height: 56px; }
  .card-ring .icon { width: 26px; height: 26px; }
  .card-title { font-size: 20px; }
  .quote { grid-template-columns: 28px minmax(0, 1fr); padding: 16px 18px; }
  .quote p { font-size: 17px; }
  .steps, .lenses, .cols-3, .posts { grid-template-columns: minmax(0, 1fr); }
  .phones { grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 280px; }
  .phone { max-width: 230px; }
  .why { padding: 48px 0 56px; }
  .why-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-card { padding: 28px 22px 26px; }
  .cta-card h2 { font-size: 24px; }
  .site-footer .container { gap: 20px; }
  .footer-right { flex-direction: column; align-items: flex-start; gap: 18px; }
  .dialog-inner { padding: 12px; }
  .notfound .container { padding-top: 40px; padding-bottom: 56px; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 30px; }
  .why-features { grid-template-columns: minmax(0, 1fr); }
  .why-feature { flex-direction: row; text-align: left; }
}

/* ---------- cookie consent (assets/consent.js) ---------- */
.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  /* Edges on the site container's gutter, like the logo above; opaque, so paper text does not show through. */
  padding: 18px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  background: var(--night-surface); border-top: 1px solid var(--night-gold-line);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.35); color: var(--night-ink-muted); font-size: 15px; line-height: 1.5;
  --focus: var(--night-focus);
}
.consent-title { color: var(--night-ink); font-weight: 500; margin-bottom: 2px; }
.consent-copy { max-width: 720px; min-width: 0; }
.consent-bar > .consent-actions { flex: none; flex-wrap: nowrap; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid rgba(236, 234, 242, 0.35); color: var(--night-ink); font-size: 15px; font-weight: 500;
  transition: border-color .2s ease, background .2s ease;
}
.consent-btn:hover { border-color: var(--night-gold); }
.consent-primary { border-color: transparent; background: var(--gold-fill); color: var(--on-gold); }
.consent-primary:hover { background: var(--gold-fill-hover); border-color: transparent; }
.consent-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 32px;
  border: 1px solid var(--night-gold-line); border-radius: 20px; background: var(--night-surface); color: var(--night-ink-muted);
  font-size: 15px; line-height: 1.55; --focus: var(--night-focus);
}
.consent-dialog::backdrop { background: rgba(4, 7, 18, 0.72); }
.consent-dialog h2 { color: var(--night-ink); font-size: 28px; line-height: 1.2; padding-right: 40px; }
.consent-lead { margin-top: 10px; }
.consent-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; color: var(--night-ink); font-size: 26px; line-height: 1; }
.consent-close:hover { background: rgba(255, 255, 255, 0.06); }
.consent-row { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.consent-row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent-row-head label { display: flex; flex-direction: column; }
.consent-row-title { color: var(--night-ink); font-weight: 500; font-size: 16px; }
.consent-row-note { color: var(--night-gold-text); font-size: 13px; }
.consent-row p { margin-top: 8px; }
.consent-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 30px; margin: 0;
  border-radius: 999px; background: var(--night-line); cursor: pointer; transition: background .2s ease;
}
.consent-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--night-ink); transition: transform .2s ease; }
.consent-switch:checked { background: var(--night-gold); }
.consent-switch:checked::after { transform: translateX(22px); background: var(--on-gold); }
.consent-switch:disabled { opacity: .55; cursor: default; }
.consent-dialog .consent-actions { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--night-line); }
.consent-more { margin-top: 14px; font-size: 14px; }
.consent-more a { color: var(--night-gold-text); text-decoration: underline; text-underline-offset: 3px; }
.consent-footer-link { color: inherit; font: inherit; text-decoration: underline; text-decoration-color: rgba(145, 148, 173, 0.5); text-underline-offset: 3px; }
.consent-footer-link:hover { color: #fff; }
@media (max-width: 760px) {
  .consent-bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent-bar > .consent-actions { flex-wrap: wrap; }
  .consent-bar .consent-actions .consent-btn { flex: 1 1 auto; }
  .consent-dialog { padding: 24px 20px; }
}
