/* Лендинг soyka.app. Токены — из приложения (Colors.ts, Typography.ts):
   основной градиент, Onest, без капса. Страница целиком на градиенте, как
   заставка и картинки в магазинах. */
:root{
  --gradient-top-left:#61C5C8;
  --gradient-bottom-right:#0055B2;
  --text:#0D0D0D;
  --screen-h:24px;
  --font:"Onest",-apple-system,"Segoe UI",Roboto,system-ui,sans-serif;
}
*{box-sizing:border-box}
/* Фон html — верх градиента: его видно над страницей при оттягивании на iOS. */
html{-webkit-text-size-adjust:100%;background:#61C5C8}
body{margin:0;min-height:100svh;color:#fff;font-family:var(--font);font-weight:400;font-size:16px;line-height:1.5;
  background:linear-gradient(160deg,var(--gradient-top-left) 0%,var(--gradient-bottom-right) 100%)}
a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:6px}
img{display:block;max-width:100%}

/* Выбор языка — кнопка с кодом текущего языка и стрелкой в правом верхнем
   углу; по нажатию выпадает список языков. Без скрипта работает как
   <details>; скрипт лишь закрывает его по клику мимо и Escape. */
.lang-menu{position:absolute;top:16px;right:var(--screen-h);z-index:3}
.lang-menu summary{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 14px;border-radius:999px;cursor:pointer;
  list-style:none;font-size:14px;font-weight:500;color:#fff;background:rgba(255,255,255,.18);user-select:none}
.lang-menu summary::-webkit-details-marker{display:none}
.lang-menu summary:hover{background:rgba(255,255,255,.28)}
.lang-menu summary svg{transition:transform .2s}
.lang-menu[open] summary svg{transform:rotate(180deg)}
.lang-menu ul{position:absolute;right:0;top:calc(100% + 8px);margin:0;padding:6px;list-style:none;min-width:180px;
  background:#fff;color:var(--text);border-radius:16px;box-shadow:0 12px 32px rgba(0,20,60,.25)}
.lang-menu li a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;font-size:14px;font-weight:600;text-decoration:none;color:var(--text)}
.lang-menu li a span{font-weight:400;color:#6C6C6C}
.lang-menu li a:hover{background:#F0F6FB}
.lang-menu li a[aria-current="page"]{background:#F0F0F0}

/* Главный экран по макету: слева логотип, заголовок, подзаголовок и кнопки
   магазинов, справа три наклонённых экрана; ниже — бегущие строки. */
.hero{position:relative;padding-top:72px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center;
  max-width:1200px;margin:0 auto;padding:40px var(--screen-h) 40px}
.hero-text{max-width:560px}
.wordmark{width:clamp(140px,14vw,180px);height:auto;margin:0 0 24px}
h1{margin:0 0 16px;font-weight:600;font-size:clamp(30px,4.2vw,52px);line-height:1.12;letter-spacing:-.01em}
.subtitle{margin:0 0 32px;font-size:clamp(17px,1.6vw,21px);line-height:1.4;color:rgba(255,255,255,.92);text-wrap:balance}

/* Кнопки магазинов — как на странице события (app-links в API): белые,
   «Открыть в» мелко, название магазина крупно. Размер постоянный на любой
   ширине: не помещаются в ряд — встают друг под другом той же ширины. */
/* Сетка, а не flex: обе кнопки по ширине более широкой (как на странице
   события); контейнер по содержимому. */
.store-buttons{display:flex;flex-wrap:wrap;gap:16px;max-width:100%}
.store-button{display:flex;align-items:center;gap:14px;height:60px;padding:0 22px 0 20px;white-space:nowrap;
  border-radius:16px;background:#fff;color:#000;text-decoration:none;text-align:left;font-size:19px;font-weight:600;line-height:1}
.store-button svg{flex:none;width:22px;height:auto}
.store-button small{display:block;margin-bottom:3px;font-size:12px;font-weight:400}
.store-button:hover{background:#F0F6FB}

/* Композиция справа: три экрана — лента впереди по центру, интересы слева и
   календарь справа, наклонённые и чуть меньше. Размеры в долях ширины
   колонки, чтобы масштабироваться вместе с ней. */
.hero-art{position:relative;aspect-ratio:1/1;max-width:520px;margin:0 0 0 auto;width:100%}
.art{position:absolute;width:37%;height:auto;border-radius:12%/5.4%;filter:drop-shadow(0 16px 28px rgba(0,20,60,.3));
  opacity:0;animation:rise 1.1s cubic-bezier(.22,.61,.36,1) forwards}
.art-left{left:8%;top:14%;--pose:rotate(-9deg) scale(.94);z-index:2;animation-delay:.15s}
.art-center{left:33%;top:6%;--pose:none;z-index:3;animation-delay:0s}
.art-right{left:60%;top:16%;--pose:rotate(8deg) scale(.92);z-index:1;animation-delay:.3s}
@keyframes rise{from{opacity:0;transform:translateY(40px) var(--pose)}to{opacity:1;transform:translateY(0) var(--pose)}}
@media (prefers-reduced-motion:reduce){.art{animation:none;opacity:1;transform:var(--pose)}}

/* Бегущие строки: дорожка в два одинаковых набора плашек, сдвиг на половину
   ширины даёт бесшовный круг. Ряды чередуют направление и скорость. */
.marquee{display:flex;flex-direction:column;gap:12px;padding:0;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.row{overflow:hidden}
.track{display:flex;gap:12px;width:max-content;padding-right:12px;animation:scroll var(--duration,70s) linear infinite}
.row:nth-child(even) .track{animation-direction:reverse}
.row:hover .track{animation-play-state:paused}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.track{animation:none}}
.chip{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:999px;background:#fff;color:var(--text);
  font-size:16px;line-height:1;white-space:nowrap}
.chip .emoji{font-size:20px;line-height:1}

/* Второй экран: призыв обычным начертанием и пять экранов с подписями,
   одной высоты, по верхнему краю. */
.screens{padding:40px 0 64px;text-align:center}
.screens h2{margin:0 auto;padding:0 var(--screen-h);max-width:560px;font-weight:400;font-size:clamp(22px,2.4vw,28px);line-height:1.3;text-wrap:balance}
.phones{display:flex;gap:28px;justify-content:center;align-items:flex-start;margin:56px auto 0;padding:0 var(--screen-h) 24px;max-width:1240px;list-style:none}
.phones li{flex:0 0 auto;width:min(200px,calc((100% - 112px)/5));display:flex;flex-direction:column;gap:16px}
.phones h3{margin:0;height:2.6em;display:flex;align-items:flex-end;justify-content:center;font-weight:600;font-size:14px;line-height:1.3;text-wrap:balance}
.phones img{width:100%;height:auto;border-radius:5.4%/2.4%;filter:drop-shadow(0 4px 12px rgba(0,20,60,.14))}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:32px;padding-bottom:40px}
  .hero-art{max-width:420px;margin:0 auto}
  .phones{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 var(--screen-h);-webkit-overflow-scrolling:touch;
    scrollbar-width:none}
  .phones::-webkit-scrollbar{display:none}
  .phones li{width:min(220px,64vw);scroll-snap-align:center}
  .phones h3{height:2.6em}
}

@media (max-width:560px){
  /* На узком экране жёсткие переносы заголовка ломают строки некрасиво:
     остаётся только первый (после первого слова), дальше текст течёт сам. */
  h1 br:not(:first-of-type){display:none}
}

/* Футер: документы в ряд, копирайт по центру под ними. */
.foot{padding:24px var(--screen-h) 40px;text-align:center;font-size:14px;color:rgba(255,255,255,.85)}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:center}
.foot p{margin:12px 0 0}
.foot a{color:rgba(255,255,255,.85)}
.foot a:hover{color:#fff}
