/* Палитра — тема «Река» приложения (sharedUI/.../theme/Color.kt). Кармин рекорда
   на сайте не используется: в приложении он означает только личный рекорд. */
@font-face{font-family:"Unbounded";src:url("fonts/unbounded.woff2") format("woff2");font-weight:200 900;font-display:swap}
:root{
  --ground:#eef3f5;--surface:#fff;--well:#eaf0f2;
  --ink:#18252c;--muted:#5e6e76;--outline:#cfdbe0;--divider:#e5ecef;
  --action:#127485;--action-dark:#0b4651;--action-pale:#d9eef1;
  --plan:#a85a16;--plan-pale:#fcebdc;
  --display:"Unbounded",system-ui,sans-serif;
  --text:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --shadow:0 24px 60px #12344038,0 4px 14px #1234401f;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--text);line-height:1.5}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
a:focus-visible{outline:3px solid var(--plan);outline-offset:4px;border-radius:4px}
h1,h2,h3,p{margin-top:0}
h1,h2{font-family:var(--display);font-weight:600;letter-spacing:-.03em;line-height:1.12}
.wrap{width:min(1180px,calc(100% - 32px));margin:auto}

/* Шапка и подвал */
.header{height:88px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:inline-flex;gap:12px;align-items:center;text-decoration:none;font-family:var(--display);font-weight:600;font-size:18px;letter-spacing:-.01em}
.brand small{display:block;font-family:var(--text);font-weight:500;font-size:12px;letter-spacing:0;color:var(--muted);margin-top:2px}
.brand-mark{width:40px;height:40px;flex:none;background:var(--action);color:#fff;display:grid;place-items:center;border-radius:12px;font-family:var(--display);font-size:22px;font-weight:600}
.header nav{display:flex;align-items:center;gap:28px;font-size:15px;font-weight:600}
.header nav a,.footer a{text-decoration:none}
.header nav a:hover,.footer a:hover{color:var(--action)}
.footer{border-top:1px solid var(--outline);padding:32px 0;margin-top:40px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.footer-links{display:flex;flex-wrap:wrap;gap:24px;font-size:14px;font-weight:600}
.footer p{font-size:13px;color:var(--muted);margin:0}

/* Общие элементы */
.eyebrow{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--plan)}
.button{display:inline-flex;gap:12px;align-items:center;background:var(--action);color:#fff;text-decoration:none;padding:16px 26px;border-radius:999px;font-weight:700;font-size:16px;margin-top:18px}
.button:hover{background:var(--action-dark)}
.text-link{color:var(--action);font-weight:700;text-decoration:none;border-bottom:2px solid var(--action-pale);padding-bottom:2px}
.text-link:hover{border-color:var(--action)}

/* Телефон со скриншотом */
.phone{width:290px;flex:none;background:var(--surface);padding:7px;border-radius:38px;box-shadow:var(--shadow)}
.phone img{border-radius:31px;aspect-ratio:720/1467;width:100%;background:var(--ground)}

/* Первый экран */
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;padding:40px 0 96px}
.hero h1{font-size:clamp(34px,4.4vw,56px);margin:16px 0 22px}
.hero h1 span{color:var(--action)}
.lead{font-size:clamp(17px,1.6vw,20px);line-height:1.6;color:var(--muted);max-width:540px;margin-bottom:28px}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px}
.store{display:inline-flex;flex-direction:column;background:var(--ink);color:#fff;padding:12px 24px;border-radius:16px;line-height:1.25}
.store small{font-size:12px;color:#b8c6cc}
.store b{font-size:18px}
.facts{list-style:none;padding:0;margin:36px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;max-width:540px}
.facts li{display:flex;gap:10px;align-items:baseline;font-size:15px;font-weight:600}
.facts li:before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--action);transform:translateY(-2px)}
.hero-phones{position:relative;display:flex;justify-content:center;min-height:620px}
.hero-phones .phone:first-child{transform:translate(-90px,40px) rotate(-4deg)}
.hero-phones .phone:last-child{position:absolute;transform:translate(110px,-10px) rotate(3deg)}

/* Возможности: строки «текст + телефон» */
.features{display:grid;gap:120px;padding:40px 0 120px}
.feature{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.feature:nth-child(even) .feature-copy{order:2}
.feature-copy h2{font-size:clamp(28px,3.2vw,42px);margin:12px 0 18px}
.feature-copy p{font-size:17px;line-height:1.7;color:var(--muted);margin-bottom:0;max-width:520px}
.feature-copy ul{margin:22px 0 0;padding:0;list-style:none;display:grid;gap:12px;max-width:520px}
.feature-copy li{position:relative;padding-left:28px;font-size:16px;line-height:1.55}
.feature-copy li:before{content:"";position:absolute;left:0;top:.45em;width:14px;height:8px;border-left:2.5px solid var(--action);border-bottom:2.5px solid var(--action);transform:rotate(-45deg)}
.feature-art{display:flex;justify-content:center;gap:28px;padding:48px 24px;background:var(--surface);border-radius:40px}
.feature-art.tint{background:var(--action-pale)}
.feature-art.warm{background:var(--plan-pale)}
.feature-art .phone{width:260px}

/* Прогресс: три экрана в ряд */
.progress{padding:96px 0;background:var(--surface)}
.progress-head{max-width:720px;margin-bottom:48px}
.progress-head h2{font-size:clamp(28px,3.2vw,42px);margin:12px 0 18px}
.progress-head p{font-size:17px;line-height:1.7;color:var(--muted);margin:0}
.progress-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.progress-grid figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:22px}
.progress-grid .phone{width:100%;max-width:280px;box-shadow:0 18px 44px #12344026,0 2px 10px #1234401a}
.progress-grid figcaption{font-size:15px;line-height:1.55;color:var(--muted);max-width:280px}
.progress-grid figcaption b{display:block;color:var(--ink);font-size:17px;margin-bottom:4px}

/* Данные */
.data{padding:110px 0 70px;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.data h2{font-size:clamp(28px,3.2vw,42px);margin:12px 0 18px}
.data p{font-size:17px;line-height:1.7;color:var(--muted)}
.data-card{background:var(--surface);padding:32px;border-radius:28px}
.data-card h3{font-size:19px;margin-bottom:12px}
.data-card p{font-size:15px;margin-bottom:10px}
.data-card p:last-child{margin-bottom:0}

/* Приглашение в руководство */
.closing{margin:40px auto 60px;background:var(--action);color:#fff;border-radius:40px;padding:56px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.closing h2{font-size:clamp(26px,3vw,38px);margin:0 0 10px}
.closing p{margin:0;color:#cfe7eb;font-size:17px}
.closing .button{background:#fff;color:var(--action-dark);margin:0;flex:none}
.closing .button:hover{background:var(--action-pale)}

/* Текстовые страницы: руководство, конфиденциальность, поддержка, 404 */
.document{max-width:760px;margin:56px auto 100px}
.document .back{font-size:15px;color:var(--action);text-decoration:none;font-weight:700}
.document h1{font-size:clamp(22px,6.2vw,52px);margin:32px 0 22px;overflow-wrap:break-word}
.document .lede{font-size:19px;line-height:1.65;color:var(--muted)}
.document h2{font-size:24px;margin:44px 0 14px}
.document p,.document li{font-size:17px;line-height:1.75;color:#3c4d55}
.document a:not(.back):not(.button){color:var(--action)}
.notice{background:var(--surface);border-left:4px solid var(--action);border-radius:0 16px 16px 0;padding:20px 24px;margin:28px 0}
.notice p{margin:0}
.notice p+p{margin-top:8px}
.document section[lang]{border-top:1px solid var(--outline);margin-top:64px;padding-top:8px}
.guide-nav{display:grid;gap:10px;background:var(--surface);border-radius:20px;padding:24px 28px;margin:35px 0}
.guide-nav strong{font-size:15px;margin-bottom:4px}
.guide-nav a{font-size:16px;text-decoration:none;color:var(--action)}
.guide-nav a:hover{text-decoration:underline}
.document section{scroll-margin-top:25px}
.document section h2{padding-top:18px;border-top:1px solid var(--outline)}
.document h3{font-family:var(--text);font-size:20px;margin:32px 0 10px}
.document li{padding-left:5px;margin-bottom:8px}
.guide section{margin-top:70px}
.guide section>h2{margin-top:14px}
.guide-figure{margin:32px 0;background:var(--surface);border-radius:24px;padding:24px;display:flex;gap:28px;align-items:center}
.guide-figure img{width:min(240px,48%);border-radius:18px;box-shadow:0 10px 30px #12344026}
.guide-figure figcaption{font-size:15px;line-height:1.6;color:var(--muted);max-width:300px}

@media(max-width:900px){
  .header{height:72px}
  .header nav{gap:18px;font-size:14px}
  .header nav .nav-wide{display:none}
  .hero{grid-template-columns:1fr;gap:24px;padding:24px 0 72px}
  .hero-phones{min-height:0;gap:16px;align-items:flex-start}
  .hero-phones .phone,.hero-phones .phone:first-child,.hero-phones .phone:last-child{position:static;transform:none;width:min(240px,calc(50% - 8px));padding:5px;border-radius:28px}
  .hero-phones .phone img{border-radius:23px}
  .hero-phones .phone:last-child{margin-top:32px}
  .features{gap:80px;padding:24px 0 80px}
  .feature{grid-template-columns:1fr;gap:28px}
  .feature:nth-child(even) .feature-copy{order:0}
  .feature-art{padding:32px 16px;border-radius:28px;gap:16px}
  .feature-art .phone{width:min(240px,46%)}
  .feature-art .phone:only-child{width:min(260px,80%)}
  .progress{padding:72px 0}
  .progress-grid{grid-template-columns:1fr;gap:48px}
  .data{grid-template-columns:1fr;gap:28px;padding:80px 0 40px}
  .closing{flex-direction:column;align-items:flex-start;padding:36px 28px;border-radius:28px}
  .footer-inner{flex-direction:column;align-items:flex-start}
  .guide-figure{flex-direction:column;align-items:center;padding:20px}
  .guide-figure img{width:min(300px,85%)}
  .guide-figure figcaption{max-width:none;text-align:center}
}
@media(max-width:420px){
  .brand small{display:none}
  .facts{grid-template-columns:1fr}
}

/* Переключатель языка: короткая метка другого языка в конце навигации */
.header nav .lang{border:1px solid var(--outline);border-radius:999px;padding:3px 11px;font-size:13px;letter-spacing:.04em;line-height:1.5}
.header nav .lang:hover{border-color:var(--action)}
