/* Общий файл для служебных страниц Oathvale: поддержка, удаление учётной записи, политика */
@font-face { font-family: "Alegreya SC"; font-weight: 900; font-display: swap; src: url("/fonts/alegreya-sc-cyrillic-900-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya SC"; font-weight: 900; font-display: swap; src: url("/fonts/alegreya-sc-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: "Alegreya SC"; font-weight: 800; font-display: swap; src: url("/fonts/alegreya-sc-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya SC"; font-weight: 800; font-display: swap; src: url("/fonts/alegreya-sc-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2212; }

:root {
  --night: #07090F; --night-2: #0D111B; --night-3: #141A27; --line: #262D3D;
  --text: #F4EEE2; --soft: #DADDE4; --muted: #AEB2BD;
  --ember: #F2A541; --ember-hot: #FFC774;
  --display: "Alegreya SC", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 5vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.125rem/1.55 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ember-hot); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
::selection { background: var(--ember); color: var(--night); }
:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* шапка — как на главной */
.top { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 20px; padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 900 1.3rem/1 var(--display); letter-spacing: 0.05em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.6vw, 32px); font: 500 1rem/1 var(--sans); }
.top nav a { color: var(--text); text-decoration: none; padding: 12px 0; }
.top nav a[aria-current] { color: var(--ember-hot); }
.top nav .link { display: none; }
@media (min-width: 820px) { .top nav .link { display: inline; } }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { color: var(--ember-hot); } }
.langs { display: inline-flex; gap: 2px; }
.langs button { appearance: none; border: 0; background: none; cursor: pointer; min-height: 40px; padding: 0 6px; color: #C9CCD4; font: 400 1rem/1 var(--sans); letter-spacing: 0.04em; }
.langs button[aria-pressed="true"] { color: var(--text); font-weight: 700; }

/* полоса-кадр сверху */
.band { position: relative; height: clamp(300px, 52vh, 520px); overflow: hidden; display: flex; align-items: flex-end; }
.band .bg { position: absolute; inset: 0; animation: band-in 1100ms var(--ease-out) both; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 0%, rgba(7,9,15,0.55) 45%, rgba(7,9,15,0.35) 75%, rgba(7,9,15,0.7) 100%); pointer-events: none; }
.band__in { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) clamp(26px, 5vh, 48px); }
@keyframes band-in { from { opacity: 0; transform: scale(1.05); } }
.kicker { display: block; font: 700 0.95rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); }
.band h1 { margin: 12px 0 0; font: 900 clamp(2.6rem, 1.2rem + 5.6vw, 6rem)/0.9 var(--display); text-wrap: balance; text-shadow: 0 6px 34px rgba(7, 9, 15, 0.6); }
.band p { margin: 14px 0 0; max-width: 32em; font: 500 clamp(1.1rem, 1rem + 0.45vw, 1.35rem)/1.4 var(--sans); color: var(--soft); }

/* содержимое */
.page { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) var(--gutter) clamp(72px, 12vh, 120px); }
.grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .grid--2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } .grid--halves { grid-template-columns: 1fr 1fr; } }
h2 { margin: 0; font: 900 clamp(1.8rem, 1.2rem + 2vw, 2.7rem)/1 var(--display); }
h3 { margin: 0; font: 800 clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem)/1.1 var(--display); }
p { margin: 0; }
.prose p + p { margin-top: 12px; }
.lead { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; color: var(--soft); }
.muted { color: var(--muted); }
.section { margin-top: clamp(56px, 9vh, 96px); }
.section > h2 + * { margin-top: 22px; }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--soft); }
.list li { display: flex; gap: 14px; align-items: baseline; }
.list li::before { content: ""; flex: none; width: 8px; height: 8px; transform: translateY(-2px) rotate(45deg); background: var(--ember); }
.list--keep li::before { background: none; border: 1.5px solid var(--muted); }

/* шаги с крупными цифрами */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: clamp(52px, 7vw, 84px) minmax(0, 1fr); gap: 4px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s); grid-row: span 3; font: 900 clamp(2.6rem, 1.8rem + 2.6vw, 4rem)/0.85 var(--display); color: var(--ember); }
.steps h3 { align-self: end; }
.steps p { color: var(--soft); max-width: 36em; }
.steps .tag { display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--night-3); color: var(--muted); font: 500 0.85rem/1.2 var(--sans); vertical-align: 0.25em; letter-spacing: 0.02em; }
.steps .act { margin-top: 12px; }

.panel { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--night-2); border: 1px solid var(--line); }
.panel + .panel { margin-top: 18px; }
.mail { margin-top: 10px; font: 800 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.1 var(--display); overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--ember); color: #1A1006; font: 700 1.04rem/1 var(--sans);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid #3A4256; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--ember-hot); } .btn--ghost:hover { background: transparent; border-color: #6B7590; } }
.top nav .btn { padding: 0 20px; min-height: 42px; flex: none; white-space: nowrap; color: #1A1006; }

/* кнопка «скопировать»: смена значка с лёгким размытием (Эмиль) */
.copy { position: relative; }
.copy .ico { position: relative; width: 18px; height: 18px; }
.copy .ico svg { position: absolute; inset: 0; transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out); }
.copy .ico .ok { opacity: 0; filter: blur(2px); transform: scale(0.8); }
.copy.done .ico .ok { opacity: 1; filter: none; transform: none; }
.copy.done .ico .cp { opacity: 0; filter: blur(2px); transform: scale(0.8); }

.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: rgba(242, 165, 65, 0.09); border: 1px solid rgba(242, 165, 65, 0.35); color: var(--soft); }
.note b { color: var(--text); }

/* подвал */
.foot { padding: 48px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__in { max-width: 1120px; margin: 0 auto; display: grid; gap: 22px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 30px; }
.foot li a { display: inline-block; padding: 8px 0; color: var(--text); text-decoration: none; }
.foot li a[aria-current] { color: var(--ember-hot); }
@media (hover: hover) and (pointer: fine) { .foot li a:hover { color: var(--ember-hot); } }
.foot p { color: var(--muted); font-size: 0.98rem; }

@media (prefers-reduced-motion: reduce) {
  .band .bg { animation: fade 300ms ease both; }
  .copy .ico svg { transform: none !important; }
}
@keyframes fade { from { opacity: 0; } }
