/* Tialoc VPN — сайт приложения. Палитра, шрифты, углы и движение — из docs/design.md приложения (evapps/tlaloc-vpn, dev
   63baa37): бумага #F8F5EE, чернила #1E2B24, нефрит #2E5141, золото #E8B33C, охра #C99A4A, терракота #B4583A;
   Instrument Serif + Montserrat (OFL, свои файлы). Картинки — мозаика самого приложения. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/tia-instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/tia-montserrat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f8f5ee;
  --stone: #edeae4;
  --raise: #fcfaf5;
  --ink: #1e2b24;
  --jade: #2e5141;
  --jade-2: #3c6552;
  --moss: #3e7a5c;
  --body: #3d4740;
  --body-2: #5f665f;
  --muted: #8a8a84;
  --hair: #e2dcd0;
  --hair-2: #d6ccb9;
  --idle: #cfc7b8;
  --gold: #e8b33c;
  --ochre: #c99a4a;
  --terra: #b4583a;
  --red: #b23a2e;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 16px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--jade); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(100% - 2 * var(--pad), 1240px); margin-inline: auto; }
.g { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- типографика ---------- */
.h-hero, .h2, .h3, .word-t, .ph-word span, .ph-head, .ph-place b, .tile-state, .gate-n, .doc-main h2, .doc-head h1, .sup-mail, .nf h1 {
  font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.005em;
}
.h-hero { font-size: clamp(56px, 7.4vw, 112px); line-height: .94; }
.h2 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1; }
.h3 { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.05; }
.h-hero em, .h2 em { font-style: normal; color: var(--jade); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ochre); }
.eyebrow-light { color: var(--gold); }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; max-width: 34em; color: var(--body); }
.small { font-size: 13px; color: var(--muted); }
.mail { overflow-wrap: anywhere; }

/* ---------- шапка ---------- */
.top { position: relative; z-index: 20; }
.top-in { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); padding-block: 20px; }
.word { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.word-i { width: 36px; height: 36px; border-radius: 9px; align-self: center; margin-right: 6px; box-shadow: 0 1px 0 rgba(30, 43, 36, .08); }
.word-t { font-size: 30px; line-height: 1; }
.word-v { font: 500 15px/1 var(--sans); letter-spacing: .02em; color: var(--muted); }
.menu { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 14.5px; font-weight: 500; }
.top-nav { margin-left: auto; }
.menu a { text-decoration: none; color: var(--body); padding: 6px 0; transition: color .2s; }
.menu a:hover, .menu a[aria-current] { color: var(--jade); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--hair-2); border-radius: 14px; background: var(--raise); cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 1.75px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- значок App Store ---------- */
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 24px; border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none; font: 600 19px/1.05 var(--sans);
}
.store small { display: block; font: 500 11px/1.3 var(--sans); letter-spacing: .02em; opacity: .8; }
.store.is-soon { background: var(--jade); }
.store-sm { min-height: 40px; padding: 6px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 18px; font: 600 16px/1 var(--sans); text-decoration: none; transition: background-color .25s, transform .2s; }
.btn .g { font-size: 18px; transition: transform .3s var(--ease); }
.btn:hover .g-arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-jade { background: var(--jade); color: #fff; }
.btn-jade:hover { background: var(--jade-2); }

/* ---------- орнамент ---------- */
.fret { height: 18px; background: url("fret.svg") repeat-x left center / 48px 18px; }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(20px, 4vw, 56px) clamp(56px, 7vw, 100px); }
.hero-text .eyebrow { margin-bottom: 22px; }
.hero-text .lead { margin: 26px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--jade); text-decoration: none; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; font-weight: 500; }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks .g { font-size: 18px; color: var(--moss); stroke-width: 2.2; }

/* телефон: живая копия экрана Home (дизайн 402 × 874) */
.phone { --u: calc(100cqw / 422); container-type: inline-size; justify-self: center; width: min(100%, 390px, calc((100svh - 150px) * 422 / 894)); min-width: 280px; }
.ph-screen {
  position: relative; aspect-ratio: 422 / 894; display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--u) * 58) calc(var(--u) * 26) calc(var(--u) * 26); background: var(--paper);
  border: calc(var(--u) * 10) solid var(--ink); border-radius: calc(var(--u) * 64);
  box-shadow: 0 40px 80px -30px rgba(30, 43, 36, .45), 0 0 0 1px rgba(30, 43, 36, .1);
}
.ph-screen::before { content: ""; position: absolute; top: calc(var(--u) * 12); left: 50%; width: calc(var(--u) * 118); height: calc(var(--u) * 34); margin-left: calc(var(--u) * -59); border-radius: 999px; background: var(--ink); }
.ph-word { font: 500 calc(var(--u) * 15)/1 var(--sans); color: var(--muted); margin-top: calc(var(--u) * 6); }
.ph-word span { font-size: calc(var(--u) * 24); margin-right: calc(var(--u) * 2); }
.ph-head { position: relative; width: 100%; height: calc(var(--u) * 50); margin-top: calc(var(--u) * 20); text-align: center; font-size: calc(var(--u) * 40); line-height: calc(var(--u) * 50); }
.ph-h { position: absolute; inset: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.ph-h-on { opacity: 0; transform: translateY(calc(var(--u) * 8)); }
.ph-emblem { position: relative; width: calc(var(--u) * 304); aspect-ratio: 1; margin-top: calc(var(--u) * 22); }
.em-stack { position: absolute; inset: 0; transition: transform 2.6s cubic-bezier(.65, 0, .35, 1); }
.em { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.em-live { opacity: 0; transition: opacity 2.6s cubic-bezier(.65, 0, .35, 1); }
.phone[data-state="off"] .em-stack { animation: breathe 6s ease-in-out infinite; }
.em-ripples i, .em-track { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.em-ripples i { border: calc(var(--u) * 2) solid rgba(62, 122, 92, .45); opacity: 0; }
.em-track { inset: calc(var(--u) * -14); border: calc(var(--u) * 2) dotted rgba(201, 154, 74, .55); opacity: 0; transition: opacity .4s; }
.em-track i { position: absolute; left: 50%; top: calc(var(--u) * -5); width: calc(var(--u) * 9); height: calc(var(--u) * 9); margin-left: calc(var(--u) * -4.5); border-radius: 50%; background: var(--gold); box-shadow: 0 0 calc(var(--u) * 10) var(--gold); transform-origin: 50% calc(var(--u) * 165); }
.em-track i:nth-child(2) { transform: rotate(180deg); }
.ph-pill { display: inline-flex; align-items: center; gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 22); padding: calc(var(--u) * 7) calc(var(--u) * 14); border-radius: 999px; background: var(--stone); font: 500 calc(var(--u) * 15)/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.ph-pill .ph-status { font-family: var(--serif); font-size: calc(var(--u) * 17); }
.dot { display: inline-block; width: calc(var(--u, 1px) * 8); height: calc(var(--u, 1px) * 8); min-width: 6px; min-height: 6px; border-radius: 50%; background: var(--red); transition: background-color .4s; }
.ph-place { display: flex; align-items: center; gap: calc(var(--u) * 12); width: 100%; margin-top: auto; padding: calc(var(--u) * 12) calc(var(--u) * 6); color: var(--muted); }
.ph-flag { display: grid; place-items: center; width: calc(var(--u) * 48); height: calc(var(--u) * 48); border-radius: 50%; background: var(--stone); color: var(--jade); font-size: calc(var(--u) * 26); }
.ph-flag .g { stroke-width: 1.5; }
.ph-place-t { display: grid; flex: 1; }
.ph-place b { font-size: calc(var(--u) * 26); line-height: 1.1; }
.ph-place small { font-size: calc(var(--u) * 13); color: var(--body-2); }
.ph-place > .g { font-size: calc(var(--u) * 20); }
.ph-btn { position: relative; overflow: hidden; width: 100%; height: calc(var(--u) * 64); margin-top: calc(var(--u) * 14); border: calc(var(--u) * 1.5) solid var(--jade); border-radius: calc(var(--u) * 18); background: var(--jade); color: #fff; font: 600 calc(var(--u) * 16)/1 var(--sans); cursor: pointer; transition: background-color .4s, color .4s, transform .2s; }
.ph-btn:active { transform: scale(.98); }
.ph-fill { position: absolute; inset: 0; width: 0; background: var(--jade-2); }
.ph-btn-t { position: relative; }
.ph-tabs { display: flex; gap: calc(var(--u) * 6); align-items: center; margin-top: calc(var(--u) * 22); padding: calc(var(--u) * 6); border-radius: 999px; background: var(--raise); box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 20) rgba(30, 43, 36, .12); font: 600 calc(var(--u) * 13)/1 var(--sans); color: #8a8f86; }
.ph-tabs span { display: inline-flex; align-items: center; gap: calc(var(--u) * 6); padding: calc(var(--u) * 10) calc(var(--u) * 14); border-radius: 999px; }
.ph-tabs .is-on { background: var(--stone); color: var(--ink); }
.ph-tabs .g { font-size: calc(var(--u) * 20); }
.ph-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* состояния */
.phone[data-state="connecting"] .em-stack { transform: rotate(360deg); }
.phone[data-state="connecting"] .em-live, .phone[data-state="on"] .em-live { opacity: 1; }
.phone[data-state="connecting"] .em-track { opacity: 1; animation: spin 3.2s cubic-bezier(.45, .05, .55, .95) infinite; }
.phone[data-state="connecting"] .dot { background: var(--ochre); animation: pulse 1.2s ease-in-out infinite; }
.phone[data-state="connecting"] .ph-fill { width: 100%; transition: width 2.6s cubic-bezier(.65, 0, .35, 1); }
.phone[data-state="on"] .dot { background: var(--moss); }
.phone[data-state="on"] .ph-h-off { opacity: 0; transform: translateY(calc(var(--u) * -8)); }
.phone[data-state="on"] .ph-h-on { opacity: 1; transform: none; }
.phone[data-state="on"] .em-ripples i { animation: ripple 4.5s ease-out infinite; }
.phone[data-state="on"] .em-ripples i:nth-child(2) { animation-delay: 1.5s; }
.phone[data-state="on"] .em-ripples i:nth-child(3) { animation-delay: 3s; }
.phone[data-state="on"] .em-stack { animation: breathe 6s ease-in-out infinite; }
.phone[data-state="on"] .ph-btn { background: transparent; color: var(--jade); }
.phone[data-state="connecting"] .ph-btn { cursor: progress; }

@keyframes breathe { 50% { transform: scale(1.025); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.16); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes float { 50% { transform: translateY(-4px); } }

/* ---------- заголовки разделов ---------- */
.sec-head { max-width: 760px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-lead { margin-top: 18px; font-size: 17px; color: var(--body); }

/* ---------- три ворот ---------- */
.gates-sec { padding-block: clamp(70px, 8vw, 120px) clamp(60px, 7vw, 100px); }
.gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); counter-reset: g; }
.gate { display: flex; flex-direction: column; gap: 12px; }
.gate-pic {
  --s: clamp(10px, 1.2vw, 16px);
  overflow: hidden; border-radius: 0 0 22px 22px; background: var(--stone);
  clip-path: polygon(0 calc(var(--s) * 3), var(--s) calc(var(--s) * 3), var(--s) calc(var(--s) * 2), calc(var(--s) * 2) calc(var(--s) * 2), calc(var(--s) * 2) var(--s), calc(var(--s) * 3) var(--s), calc(var(--s) * 3) 0,
    calc(100% - var(--s) * 3) 0, calc(100% - var(--s) * 3) var(--s), calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s) * 2) calc(var(--s) * 2), calc(100% - var(--s)) calc(var(--s) * 2), calc(100% - var(--s)) calc(var(--s) * 3), 100% calc(var(--s) * 3), 100% 100%, 0 100%);
}
.gate-img { width: 100%; aspect-ratio: 354 / 472; object-fit: cover; transition: transform 1.2s var(--ease); }
.gate:hover .gate-img { transform: scale(1.03); }
.gate-n { margin-top: 10px; font-size: 22px; color: var(--ochre); line-height: 1; }
.gate p:last-child { font-size: 15px; color: var(--body-2); max-width: 26em; }

/* ---------- кольцо Setup ---------- */
.setup { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 90px); }
.setup-art { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk { fill: var(--jade); transition: fill .3s, transform .3s; }
.mk-d { fill: var(--gold); }
.js .setup-art:not(.is-done) .mk:not(.is-lit) { fill: #e2dacb; }
.setup-em { position: absolute; inset: 19%; border-radius: 50%; }
.setup-em::before { content: ""; position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 179, 60, .35), transparent); animation: breathe 2.4s ease-in-out infinite; }
.setup-img { position: relative; width: 100%; border-radius: 50%; }
.setup-text .eyebrow { margin-bottom: 16px; }
.setup-text .h2 { margin-bottom: 22px; }
.setup-step { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 16px; border-radius: 999px; background: var(--stone); font-family: var(--serif); font-size: 19px; color: var(--ink); }
.setup-step .dot { --u: 1px; background: var(--ochre); }
.setup-text > p:last-child { max-width: 36em; font-size: 16.5px; }
.setup-cap { transition: opacity .35s, filter .35s; }
.setup-cap.is-swap { opacity: 0; filter: blur(4px); }

/* ---------- лучшая сеть ---------- */
.best { padding-block: clamp(30px, 4vw, 60px) clamp(70px, 8vw, 120px); }
.best-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 32px; background: var(--stone); }
.best-img { width: clamp(180px, 22vw, 300px); border-radius: 50%; animation: breathe 2.4s ease-in-out infinite; }
.best-card .eyebrow { margin-bottom: 14px; }
.best-card .h2 { margin-bottom: 18px; }
.best-card p { max-width: 34em; }
.best-pill { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.find { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--jade); color: #fff; font-weight: 600; font-size: 14px; }
.best-bar { position: relative; width: min(220px, 40vw); height: 6px; border-radius: 999px; background: var(--hair-2); overflow: hidden; }
.best-bar i { position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--gold); animation: bar 3.6s var(--ease) infinite; }
.best-cap { font-family: var(--serif); font-size: 19px; color: var(--ink); }
@keyframes bar { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(260%); } }

/* ---------- браузер ---------- */
.browser-sec { background: var(--jade); color: #e9efe9; padding-block: clamp(70px, 8vw, 120px); }
.browser-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.browser-sec .h2 { color: #fff; margin: 16px 0 20px; }
.browser-sec .h2 em { color: var(--gold); }
.browser-text > p { max-width: 34em; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 28px 0 14px; }
.feats li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); font-size: 14.5px; }
.feats .g { box-sizing: content-box; padding: 8px; border-radius: 12px; background: var(--paper); color: var(--jade); font-size: 18px; }
.feats b { font-weight: 600; color: #fff; }
.browser-sec .small { color: rgba(233, 239, 233, .75); }
.shots { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2vw, 24px); }
.shot { width: min(46%, 270px); border: 7px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5); }
.shot-img { display: block; width: 100%; height: auto; }

/* ---------- за пределами приложения ---------- */
.every { padding-block: clamp(70px, 8vw, 120px) clamp(50px, 6vw, 90px); }
.tiles { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: 190px 130px; gap: 52px clamp(14px, 2vw, 24px); }
.tile { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 26px; background: var(--raise); box-shadow: 0 18px 40px -26px rgba(30, 43, 36, .35), 0 0 0 1px var(--hair); }
.tile-cap { position: absolute; left: 4px; bottom: -28px; font-size: 12.5px; color: var(--muted); }
.tile-em { width: 62px; flex: none; }
.tile-img { width: 100%; border-radius: 50%; }
.tile-state { font-size: 24px; line-height: 1.05; }
.tile-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--body-2); }
.tile-sub .g { font-size: 14px; color: var(--jade); }
.dot-on { --u: 1px; background: var(--moss); }
.tile-btn { display: inline-block; margin-top: 10px; padding: 9px 16px; border-radius: 14px; border: 1.5px solid var(--jade); color: var(--jade); font-size: 13px; font-weight: 600; }
.tile-small { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.tile-small .tile-em { width: 60px; }
.tile-medium { grid-column: 2 / 4; grid-row: 1; padding-inline: 24px; }
.tile-medium .tile-em { width: 120px; }
.tile-live { grid-column: 1 / 3; grid-row: 2; }
.tile-live > div { flex: 1; }
.tile-btn-sm { margin-top: 0; padding: 7px 12px; font-size: 12px; }
.tile-watch { grid-column: 4; grid-row: 1 / 3; justify-content: center; align-items: center; background: transparent; box-shadow: none; padding: 0; }
.watch { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 172px; padding: 18px 14px; border-radius: 44px; background: #0d1410; border: 8px solid #2a2f2c; color: #e9efe9; text-align: center; }
.watch .tile-em { width: 64px; margin-bottom: 4px; }
.watch .tile-state { color: #fff; font-size: 22px; }
.watch .tile-sub { justify-content: center; color: #b9c4bc; margin: 0; }
.watch .tile-btn { border-color: var(--moss); color: #e9efe9; background: var(--moss); padding: 7px 14px; margin-top: 8px; }
.tile-watch .tile-cap { left: 50%; transform: translateX(-50%); bottom: -28px; }
.tile-cc { grid-column: 3; grid-row: 2; flex-direction: column; justify-content: center; justify-self: center; width: 130px; height: 130px; border-radius: 34px; background: #2b302d; box-shadow: none; gap: 10px; }
.cc { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); color: var(--jade); font-size: 30px; }
.tile-cc .tile-sub { color: #e9efe9; }
.every-note { margin-top: 70px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- лист согласия ---------- */
.promise { padding-block: clamp(50px, 6vw, 90px); }
.sheet { max-width: 560px; margin-inline: auto; padding: clamp(28px, 4vw, 44px); border-radius: 32px; background: var(--raise); box-shadow: 0 40px 80px -40px rgba(30, 43, 36, .35), 0 0 0 1px var(--hair); text-align: center; }
.sheet-img { width: 136px; margin: -100px auto 10px; animation: float 4s ease-in-out infinite; }
.sheet .h2 { font-size: clamp(36px, 3.6vw, 48px); margin-bottom: 12px; }
.sheet > p { color: var(--body-2); font-size: 15px; }
.checks { display: grid; gap: 8px; margin: 22px 0 26px; padding: 16px; border-radius: 20px; background: var(--stone); text-align: left; }
.checks li { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.checks .g { box-sizing: content-box; padding: 5px; border-radius: 50%; background: var(--jade); color: #fff; font-size: 14px; stroke-width: 2.4; }
.sheet .btn { width: 100%; }

/* ---------- призыв ---------- */
.cta { padding-block: clamp(30px, 5vw, 70px) clamp(70px, 8vw, 110px); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--stone); }
.cta-icon { width: 96px; border-radius: 22px; box-shadow: 0 10px 24px -12px rgba(30, 43, 36, .5); }
.cta-in > div { flex: 1; min-width: 200px; }
.cta-in .h2 { font-size: clamp(34px, 3.4vw, 48px); }
.cta-mail { margin-top: 18px; text-align: center; font-size: 14.5px; }
.cta-mail a, .doc-main a, .sup a { color: var(--jade); text-underline-offset: 3px; }

/* ---------- подвал ---------- */
.foot { margin-top: 20px; background: var(--paper); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px 28px; padding-block: 44px 28px; }
.foot-brand p { margin-top: 14px; font-size: 14px; max-width: 24em; color: var(--body-2); }
.word-lg .word-t { font-size: 36px; }
.foot-col h2 { font: 600 12.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ochre); margin-bottom: 12px; }
.foot-col ul { list-style: none; padding: 0; font-size: 14px; line-height: 2; }
.foot-col p { font-size: 14px; line-height: 1.7; }
.foot-col p + p { margin-top: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--jade); text-decoration: underline; }
.foot-legal { padding-block: 18px 28px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--muted); }

/* ---------- внутренние страницы ---------- */
.doc-head { padding-block: clamp(20px, 4vw, 60px) clamp(30px, 4vw, 50px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.doc-head-img { width: clamp(110px, 14vw, 180px); border-radius: 50%; }
.doc-head h1 { font-size: clamp(48px, 6vw, 88px); line-height: .95; }
.doc-head h1 em { font-style: normal; color: var(--jade); }
.doc-head .eyebrow { margin-bottom: 14px; }
.doc-head .lead { margin-top: 18px; }
.eff { margin-top: 12px; font-size: 13px; color: var(--muted); }
.doc { display: grid; grid-template-columns: minmax(200px, .28fr) 1fr; gap: clamp(20px, 4vw, 64px); align-items: start; padding-bottom: clamp(50px, 6vw, 90px); }
.doc-side { position: sticky; top: 20px; padding: 20px 22px; border-radius: 20px; background: var(--stone); }
.doc-side ol { list-style: none; padding: 0; margin-top: 10px; font-size: 14px; counter-reset: s; }
.doc-side a { display: block; padding: 6px 0; text-decoration: none; color: var(--body); }
.doc-side a:hover { color: var(--jade); }
.doc-main { min-width: 0; }
.doc-main > section { padding-block: 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--hair); scroll-margin-top: 20px; }
.doc-main > section:last-child { border-bottom: 0; }
.doc-main h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.05; margin-bottom: 14px; }
.doc-main h3 { font: 600 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ochre); margin: 20px 0 8px; }
.doc-main p, .doc-main li { font-size: 15.5px; line-height: 1.7; max-width: 46em; }
.doc-main p + p, .doc-main p + ul, .doc-main ul + p { margin-top: 12px; }
.doc-main ul:not([class]) { padding-left: 1.2em; }
.doc-main li + li { margin-top: 4px; }
.note { padding: 16px 18px; border-radius: 18px; background: var(--stone); }

.sup { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 56px); padding-bottom: clamp(50px, 6vw, 90px); }
.sup-card { padding: clamp(22px, 3vw, 36px); border-radius: 26px; background: var(--raise); box-shadow: 0 0 0 1px var(--hair); }
.sup-mail { display: block; margin: 8px 0 14px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; color: var(--jade); text-decoration: none; overflow-wrap: anywhere; }
.sup-mail:hover { text-decoration: underline; text-underline-offset: 6px; }
.sup-list { display: grid; gap: 12px; margin-top: 8px; }
.sup-list li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px; border-radius: 18px; background: var(--stone); }
.sup-list .g { grid-row: span 2; box-sizing: content-box; padding: 9px; border-radius: 14px; background: var(--jade); color: #fff; font-size: 18px; }
.sup-list b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); line-height: 1.1; }
.sup-list span { font-size: 14.5px; color: var(--body-2); }
.sup-pub { margin-top: 18px; font-size: 14px; color: var(--body-2); }

.nf { text-align: center; padding-block: clamp(40px, 7vw, 100px); }
.nf-img { width: clamp(180px, 24vw, 280px); margin: 0 auto 18px; border-radius: 50%; }
.nf h1 { font-size: clamp(56px, 8vw, 110px); line-height: .95; }
.nf .lead { margin: 16px auto 28px; }

/* появление */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .em-stack, .em-live, .ph-fill, .ph-h { transition-duration: .01s !important; }
  .phone .em-stack, .em-track, .best-img, .best-bar i, .sheet-img, .setup-em::before { animation: none !important; }
  .phone[data-state="on"] .em-ripples i { animation: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1060px) {
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .tile-small, .tile-medium, .tile-live, .tile-watch, .tile-cc { grid-column: auto; grid-row: auto; }
  .tile-medium, .tile-live { grid-column: 1 / -1; }
  .tile-small { min-height: 180px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .store-sm { display: none; }
  .js .top-nav { position: absolute; left: var(--pad); right: var(--pad); top: 76px; z-index: 30; margin: 0; }
  .js .menu { display: none; }
  .js .menu.is-open { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; border-radius: 22px; background: var(--raise); box-shadow: 0 24px 48px rgba(30, 43, 36, .16), 0 0 0 1px var(--hair); font-size: 17px; }
  .js .menu.is-open a { display: block; padding: 9px 0; }
  html:not(.js) .burger { display: none; }
  html:not(.js) .top-in { flex-wrap: wrap; }
  html:not(.js) .menu { flex-wrap: wrap; }
  .hero, .setup, .browser-in, .sup { grid-template-columns: 1fr; }
  .hero-text { text-align: left; }
  .phone { width: min(86%, 360px); }
  .gates { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .gate-img { aspect-ratio: 354 / 400; }
  .best-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .best-card p { margin-inline: auto; }
  .best-pill { justify-content: center; }
  .doc, .doc-head { grid-template-columns: 1fr; }
  .doc-side { position: static; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile-medium, .tile-live { grid-column: auto; }
  .tile-medium { flex-wrap: wrap; }
  .tile-medium .tile-em { width: 80px; }
  .tile-watch, .tile-cc { justify-self: center; }
  .feats { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .store { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .link-more { justify-content: center; }
  .sheet-img { margin-top: -80px; width: 110px; }
  .checks li { font-size: 19px; }
}
