/* ReadMap — сайт проекта. Тот же язык, что в приложении: чернильный контур, жёсткая тень,
   ленты-закладки и печати; Spectral — всё книжное, Rubik — интерфейс. */

@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-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: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/spectral-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/spectral-latin-400-normal.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: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/spectral-cyrillic-400-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/spectral-latin-400-italic.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: 'Spectral'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/spectral-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/spectral-latin-700-normal.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 {
  --page: #FBF6EC;
  --alt: #F4F4F9;
  --card: #FFFFFF;
  --paper: #FFF8EC;
  --paper-line: #EDE2CD;
  --ink-line: #1C1F3A;
  --text: #1C1F3A;
  --text-2: #4A4E6A;
  --text-3: #7C7F99;
  --line: #E7E1D5;
  --ribbon: #FF6B1A;
  --ribbon-ink: #C2410C;
  --ribbon-tint: #FFEFE4;
  --candle: #FFB020;
  --quill: #7B61FF;
  --quill-ink: #5B3FE0;
  --xp: #3D6BFF;
  --ok: #12B76A;
  --stamp: #D93A42;
  --on-color: #1C1F3A;
  --font-display: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --page: #121427; --alt: #161931; --card: #1B1E36; --paper: #29243A; --paper-line: #3A3450;
    --ink-line: #05060F; --text: #F2F0EA; --text-2: #BFC1D8; --text-3: #8A8DAD; --line: #2C3054;
    --ribbon-ink: #FF8D52; --ribbon-tint: #3B2417; --quill-ink: #A898FF;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --page: #121427; --alt: #161931; --card: #1B1E36; --paper: #29243A; --paper-line: #3A3450;
  --ink-line: #05060F; --text: #F2F0EA; --text-2: #BFC1D8; --text-3: #8A8DAD; --line: #2C3054;
  --ribbon-ink: #FF8D52; --ribbon-tint: #3B2417; --quill-ink: #A898FF;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 17px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--xp); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--card); }
.skip:focus { left: 8px; }

/* ─── кнопки: контур + жёсткая тень, нажатие вдавливает ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 22px 11px;
  border: 2.5px solid var(--ink-line); border-radius: 16px; box-shadow: 0 4px 0 var(--ink-line);
  font: 800 15px/1.1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; text-align: center;
  color: var(--on-color); background: var(--ribbon); cursor: pointer; transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink-line); }
.btn.sec { background: var(--card); color: var(--text); }
.btn.sm { min-height: 42px; padding: 8px 14px 7px; font-size: 13px; border-radius: 13px; box-shadow: 0 3px 0 var(--ink-line); }
.btn.sm:active { transform: translateY(3px); }
@media (hover: hover) { .btn:hover { filter: brightness(1.04); } }

/* ─── шапка ─── */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 25px/1 var(--font-display); letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--ribbon); font-weight: 700; }
.nav { display: none; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.top .btn { margin-left: auto; }
@media (min-width: 880px) { .nav { display: flex; } .top .btn { margin-left: 8px; } }

/* ─── первый экран ─── */
.hero { padding: 28px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ribbon-ink); }
.eyebrow::before { content: ''; width: 12px; height: 15px; background: var(--ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.hero h1 { margin-top: 14px; font: 700 clamp(38px, 9vw, 66px)/1.04 var(--font-display); letter-spacing: -0.02em; }
.hero h1 em { display: block; margin-top: 6px; font-style: italic; font-weight: 400; color: var(--ribbon-ink); font-size: 0.66em; line-height: 1.15; letter-spacing: -0.01em; }
.lead { margin-top: 18px; max-width: 34em; font-size: clamp(17px, 2.4vw, 19.5px); line-height: 1.55; color: var(--text-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* кнопки сторов: тёмные на светлом сайте, светлые на тёмном */
.store { --store-bg: #1C1F3A; --store-fg: #F7F3EA; --store-soon: #FFB020; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 12px; border-radius: 14px; background: var(--store-bg); color: var(--store-fg); border: 2px solid var(--store-bg); text-decoration: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .store { --store-bg: #F2F0EA; --store-fg: #1C1F3A; --store-soon: #C2410C; } }
:root[data-theme='dark'] .store { --store-bg: #F2F0EA; --store-fg: #1C1F3A; --store-soon: #C2410C; }
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.78; }
.store b { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.store.soon { cursor: default; }
.store.soon small { color: var(--store-soon); opacity: 1; font-weight: 800; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.hero-art { position: relative; margin: 0 -8px; }
.hero-art img { width: 100%; filter: drop-shadow(0 18px 24px rgba(60, 40, 10, 0.12)); }
@media (min-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 40px; }
  .hero-art { margin: 0 -40px 0 0; }
}

/* ─── полоса фактов ─── */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--card); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; }
.facts img { width: 38px; height: 38px; }
.facts b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.facts span { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
@media (min-width: 880px) { .facts { grid-template-columns: repeat(4, 1fr); gap: 14px; } .facts li { padding: 18px; } }

/* ─── секции ─── */
.section { padding: 64px 0; }
.section.alt { background: var(--alt); }
.sec-head { max-width: 40em; margin-bottom: 30px; }
.sec-head h2, .feat h2 { margin-top: 10px; font: 700 clamp(30px, 5.6vw, 44px)/1.1 var(--font-display); letter-spacing: -0.015em; }
.sec-head p { margin-top: 12px; font-size: 18px; color: var(--text-2); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* как это работает */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 22px 20px 20px; background: var(--card); border: 2.5px solid var(--ink-line); border-radius: 20px; box-shadow: 0 5px 0 var(--ink-line); }
.steps .num { position: absolute; top: -2px; right: 18px; width: 34px; height: 44px; display: grid; place-items: start center; padding-top: 6px; background: var(--ribbon); color: var(--on-color); font: 800 17px/1 var(--font-ui); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.steps img { width: 56px; height: 56px; }
.steps h3 { margin-top: 12px; font: 800 20px/1.25 var(--font-ui); }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* возможности: телефон + текст */
.feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; }
.feat + .feat { margin-top: 72px; }
.feat-text .eyebrow { margin-bottom: 2px; }
.feat-text > p { margin-top: 14px; font-size: 18px; color: var(--text-2); max-width: 32em; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; }
.ticks img { width: 34px; height: 34px; flex: none; margin-top: -4px; }
.feat-note { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 8px 0 14px; }
.phone { position: relative; width: min(64vw, 290px); aspect-ratio: 390 / 844; border: 3px solid var(--ink-line); border-radius: 36px; box-shadow: 8px 10px 0 var(--ink-line); overflow: hidden; background: var(--card); flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones.two .phone:first-child { z-index: 2; }
.phones.two .phone:first-child { width: min(54vw, 290px); }
.phones.two .phone + .phone { width: min(45vw, 246px); margin-left: -13vw; margin-bottom: 26px; transform: rotate(4deg); box-shadow: 6px 8px 0 var(--ink-line); }
.phones .badge { position: absolute; z-index: 3; width: 74px; height: 74px; }
.phones .badge.tl { top: 2%; left: max(0px, calc(50% - 190px)); transform: rotate(-10deg); }
.phones .badge.br { bottom: 6%; right: max(0px, calc(50% - 190px)); transform: rotate(8deg); }
@media (min-width: 880px) {
  .feat { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feat.rev .phones { order: 2; }
  .phone, .phones.two .phone:first-child { width: 300px; }
  .phones.two .phone + .phone { width: 252px; margin-left: -90px; }
}

/* компания */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 12px 18px; background: var(--card); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; }
.mate img { width: 112px; height: 112px; object-fit: contain; animation: bob 3.2s ease-in-out infinite; }
.mate:nth-child(2) img { animation-delay: -0.6s; } .mate:nth-child(3) img { animation-delay: -1.2s; } .mate:nth-child(4) img { animation-delay: -1.8s; } .mate:nth-child(5) img { animation-delay: -2.4s; }
.mate b { margin-top: 4px; font: 700 22px/1.1 var(--font-display); }
.mate span { font-size: 14.5px; line-height: 1.4; color: var(--text-2); }
.mate:last-child { grid-column: 1 / -1; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (min-width: 880px) { .team { grid-template-columns: repeat(5, 1fr); gap: 16px; } .mate:last-child { grid-column: auto; } }

/* где читать */
.ways { display: grid; gap: 16px; }
.way { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; background: var(--card); border: 2.5px solid var(--ink-line); border-radius: 20px; box-shadow: 0 5px 0 var(--ink-line); }
.way h3 { font: 800 21px/1.2 var(--font-ui); }
.way p, .way li { font-size: 16px; color: var(--text-2); }
.way ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.way .btn { align-self: flex-start; margin-top: 6px; }
.way .stores { margin-top: 4px; }
.way-ic { width: 52px; height: 52px; }
@media (min-width: 880px) { .ways { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* вопросы */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; }
.faq details[open] { border-color: var(--ink-line); border-bottom-width: 2.5px; box-shadow: 0 4px 0 var(--ink-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font: 700 17.5px/1.35 var(--font-ui); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--ribbon); border-bottom: 3px solid var(--ribbon); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); font-size: 16px; }

/* финальный призыв */
.final { position: relative; display: grid; gap: 18px; justify-items: center; text-align: center; padding: 34px 20px 36px; background: var(--paper); border: 3px solid var(--ink-line); border-radius: 28px; box-shadow: 0 7px 0 var(--ink-line); }
.final img { width: min(320px, 76vw); }
.final h2 { font: 700 clamp(30px, 6vw, 46px)/1.1 var(--font-display); letter-spacing: -0.015em; }
.final p { max-width: 30em; font-size: 18px; color: var(--text-2); }
@media (min-width: 880px) { .final { grid-template-columns: 340px 1fr; text-align: left; justify-items: start; gap: 40px; padding: 40px 48px; } .final img { width: 100%; } }

/* подвал */
.foot { padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); }
.foot .wrap { display: flex; flex-direction: column; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; }
.foot nav a { color: var(--text-2); text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
.foot small { font-size: 13.5px; color: var(--text-3); }
@media (min-width: 880px) { .foot .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }

/* документы: политика, соглашение */
.doc { max-width: 760px; margin: 0 auto; padding: 36px var(--gutter) 64px; }
.doc h1 { font: 700 clamp(32px, 6vw, 44px)/1.12 var(--font-display); letter-spacing: -0.015em; }
.doc .meta { margin-top: 10px; font-size: 14.5px; color: var(--text-3); }
.doc h2 { margin-top: 34px; font: 800 21px/1.3 var(--font-ui); }
.doc p, .doc li { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.doc ul { padding-left: 22px; margin: 0; }
.doc a { color: var(--ribbon-ink); }
.doc .box { margin-top: 20px; padding: 16px 18px; background: var(--paper); border: 2px solid var(--paper-line); border-radius: 16px; }
.doc .box p:first-child { margin-top: 0; }

/* 404 */
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px var(--gutter); text-align: center; }
.lost img { width: 150px; }
.lost h1 { font: 700 clamp(30px, 6vw, 42px)/1.1 var(--font-display); }
.lost p { color: var(--text-2); max-width: 30em; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mate img { animation: none; }
  .btn { transition: none; }
}
