/* Шапка сайта «Капсула» (вариант B из r27/proto/header-variants, выбор владельца 10.11.2026).
   Компьютер (≥1100 px): логотип, Apple Watch · Paddy · Chat · Rating · Club Padelada · Torneo Padelada, справа Guide, язык, кнопка магазина (App Store / Google Play / меню — по устройству).
   Телефон (<1100 px): логотип, App Store, бургер; меню — капсула под шапкой. Только цвет, свет, размытие, рамка.
   Мята — активный пункт, коралл — только кнопка магазина. Сайт только тёмный (main.js). */
:root {
  --hx-h: 84px;
  --r19-mast: var(--hx-h); /* site-r27.css: [id] { scroll-margin-top: calc(var(--r19-mast) + 16px) } */
  scroll-padding-top: calc(var(--hx-h) + 16px);
}
@media (max-width: 1099px) { :root { --hx-h: 70px; } }

.hx {
  --hx-ink: #F5F5F7;
  --hx-ink-2: rgba(245, 245, 247, .72);
  --hx-line: rgba(255, 255, 255, .11);
  --hx-mint: #4BE3BA;
  --hx-coral: #FF5E5B;
  --hx-night: #24123A;
  --hx-glass: rgba(24, 26, 30, .62);
  --hx-glass-solid: rgba(24, 26, 30, .94);
  --hx-here: #1A2422;
  --hx-ease: cubic-bezier(.25, .1, .25, 1);
  position: sticky; top: 0; z-index: 60; height: var(--hx-h);
  font-family: 'Golos Text', system-ui, sans-serif; -webkit-font-smoothing: antialiased; color: var(--hx-ink);
}
.hx, .hx * { box-sizing: border-box; }
.hx a { color: inherit; text-decoration: none; }
.hx ul { list-style: none; margin: 0; padding: 0; }
.hx-bar { position: relative; padding-top: 14px; }
.hx-in {
  width: min(1200px, calc(100% - 48px)); height: 60px; margin: 0 auto; padding: 0 10px 0 22px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 30px; background: var(--hx-glass); border: 1px solid var(--hx-line);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .35);
}
.hx-logo { display: flex; align-items: center; flex: none; min-height: 44px; }
.hx-logo img { display: block; height: 26px; width: auto; }

.hx-nav { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; gap: 2px; }
.hx-nav a, .hx a.hx-guide {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; color: var(--hx-ink-2);
  transition: color .2s var(--hx-ease), background-color .2s var(--hx-ease);
}
.hx-nav a:hover, .hx a.hx-guide:hover { color: var(--hx-ink); background: rgba(255, 255, 255, .05); }
.hx-nav a[aria-current], .hx a.hx-guide[aria-current] {
  color: var(--hx-ink); background: var(--hx-here);
  box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .45), 0 2px 10px rgba(0, 0, 0, .45);
}
.hx-right { display: flex; align-items: center; gap: 8px; flex: none; }
.hx-lang-wrap { position: relative; }
.hx-lang {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; margin: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--hx-ink-2);
  font: 500 13px/1 'Golos Text', system-ui, sans-serif; letter-spacing: .02em; cursor: pointer;
}
.hx-lang:hover, .hx-lang[aria-expanded="true"] { color: var(--hx-ink); background: rgba(255, 255, 255, .06); }
.hx-chev { opacity: .7; transition: transform .2s var(--hx-ease); }
.hx-lang[aria-expanded="true"] .hx-chev { transform: rotate(180deg); }
.hx-pop {
  position: absolute; top: calc(100% + 14px); right: -8px; min-width: 196px; padding: 6px;
  border-radius: 20px; background: #181A1E; border: 1px solid var(--hx-line); /* сплошной: вложенный backdrop-filter внутри капсулы не размывает */
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.hx-pop[hidden] { display: none; }
.hx-pop a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 14px;
  font-size: 15px; font-weight: 450; color: var(--hx-ink-2); white-space: nowrap;
}
.hx-pop a:hover { color: var(--hx-ink); background: rgba(255, 255, 255, .06); }
.hx-pop a[aria-current] { color: var(--hx-ink); }
.hx-check { display: inline-flex; width: 14px; flex: none; color: var(--hx-mint); }
/* Кнопка магазина под устройство: <html data-store> ставит скрипт в <head> до отрисовки (build.mjs, HEADER_OS_SCRIPT).
   Без атрибута (нет JS) и data-store="ios" — «App Store»; "android" — «Google Play»; "pick" (Windows, Linux) — «App Store ▾» с меню. */
.hx-store-wrap { position: relative; display: flex; margin-left: 4px; }
.hx .hx-store {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; margin: 0;
  border: 0; border-radius: 999px; background: var(--hx-coral); color: var(--hx-night);
  font: 500 14px/1 'Golos Text', system-ui, sans-serif; letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transition: filter .2s var(--hx-ease), transform .2s var(--hx-ease);
}
/* Зона нажатия не меньше 44 px по высоте (кнопка 36–40 px, вид прежний; QA 13.11.2026). */
.hx .hx-store { position: relative; }
.hx .hx-store::after { content: ""; position: absolute; left: 0; right: 0; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); }
.hx .hx-store:hover { filter: brightness(1.06); }
.hx .hx-store:active { transform: scale(.97); }
.hx .hx-play, .hx .hx-pick { display: none; }
html[data-store="android"] .hx .hx-store:not(.hx-play), html[data-store="pick"] .hx .hx-store:not(.hx-pick) { display: none; }
html[data-store="android"] .hx .hx-play, html[data-store="pick"] .hx .hx-pick { display: inline-flex; }
.hx .hx-pick { padding-right: 14px; }
.hx-pick .hx-chev { opacity: .8; }
.hx-pick[aria-expanded="true"] .hx-chev { transform: rotate(180deg); }
.hx-store-pop { right: 0; min-width: 180px; }
.hx-store-pop a { padding: 0 14px; }
html:not([data-store="pick"]) .hx-store-pop:not(.is-open) { display: none; }
.hx :focus { outline: none; }
.hx :focus-visible { outline: 2px solid var(--hx-mint); outline-offset: 2px; }

/* Бургер: две линии, как у Apple, превращаются в крестик. */
.hx-burger { display: none; position: relative; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--hx-ink); cursor: pointer; }
.hx-burger span { position: absolute; left: 13px; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .3s var(--hx-ease), top .3s var(--hx-ease); }
.hx-burger span:first-child { top: 18px; }
.hx-burger span:last-child { top: 25px; }
.hx-open .hx-burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.hx-open .hx-burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Меню телефона и затемнение под ним. */
.hx-menu, .hx-scrim { display: none; }
.hx-big a { display: flex; align-items: center; min-height: 52px; font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -.022em; color: var(--hx-ink); }
.hx-small { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hx-line); }
.hx-small a { display: flex; align-items: center; min-height: 44px; font-size: 19px; font-weight: 450; letter-spacing: -.012em; color: var(--hx-ink-2); }
.hx-big a[aria-current], .hx-small a[aria-current] {
  margin: 0 -10px; padding: 0 10px; border-radius: 16px; color: var(--hx-ink);
  background: var(--hx-here); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .45);
}
.hx-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 24px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--hx-line); }
.hx-seg a { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--hx-ink-2); }
.hx-seg a[aria-current] { color: var(--hx-ink); background: var(--hx-here); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .45), 0 2px 8px rgba(0, 0, 0, .35); }

@media (max-width: 1099px) {
  .hx-nav, .hx a.hx-guide, .hx-lang-wrap { display: none; }
  .hx-bar { padding-top: 10px; }
  .hx-in { width: calc(100% - 20px); height: 56px; padding: 0 6px 0 18px; gap: 12px; justify-content: space-between; border-radius: 28px; }
  .hx-right { gap: 6px; }
  .hx-burger { display: block; }
  .hx .hx-store { height: 36px; padding: 0 14px; }
  .hx .hx-pick { padding-right: 11px; }
  .hx-scrim { display: block; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); visibility: hidden; opacity: 0; transition: opacity .25s var(--hx-ease), visibility 0s linear .25s; }
  .hx-menu {
    display: block; position: fixed; top: var(--hx-h); left: 10px; right: 10px; max-height: calc(100dvh - var(--hx-h) - 10px);
    overflow-y: auto; overscroll-behavior: contain; border-radius: 28px; background: var(--hx-glass-solid); border: 1px solid var(--hx-line);
    -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    visibility: hidden; opacity: 0; transition: opacity .25s var(--hx-ease), visibility 0s linear .25s;
  }
  .hx-menu-in { padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(-8px); transition: transform .3s var(--hx-ease); }
  .hx-open .hx-menu, .hx-open .hx-scrim { visibility: visible; opacity: 1; transition: opacity .25s var(--hx-ease); }
  .hx-open .hx-menu-in { transform: none; }
  html.hx-open, html.hx-open body { overflow: hidden; }
}
@media (max-width: 359px) {
  .hx-in { padding-left: 14px; }
  .hx-logo img { height: 22px; }
  .hx .hx-store { padding: 0 12px; }
  .hx .hx-pick { padding-right: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx-menu, .hx-scrim { transition: none !important; }
}
@media print { .hx { display: none; } }
.hx-open .lang-hint { display: none; }

/* Hyphenated words never break at the hyphen (site/glue.mjs glueHtml; the fonts have no U+2011). */
.pd-nw { white-space: nowrap; }

/* App Store до выхода (store.json appStoreLive = false, решение Мурата 20.11.2026): кнопки и значки видны, но не ссылки — с подписью «Выход в конце ноября».
   Файл подключён на всех страницах, поэтому правила для hero и значков тоже здесь. */
.hx .hx-store.is-soon { cursor: default; }
.hx-soon[aria-expanded="true"] { filter: brightness(1.06); }
.hx .hx-store.is-soon:hover { filter: none; }
.hx .hx-store.is-soon:active { transform: none; }
.hx-pop .hx-pop-off {
  display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 44px; padding: 4px 14px; border-radius: 14px;
  font-size: 15px; font-weight: 450; color: var(--hx-ink-2); white-space: nowrap; cursor: default;
}
.hx-pop .hx-pop-off small { font-size: 12px; font-weight: 400; color: var(--hx-ink-2); opacity: .75; }
.btn.hero-download.is-soon {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; padding: 8px 26px; line-height: 1.15; text-align: center; cursor: not-allowed; max-width: 100%;
}
.btn.hero-download.is-soon:hover { filter: none; transform: none; }
.btn.hero-download.is-soon:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn.hero-download.is-soon .hero-note {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: .01em;
  padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); white-space: nowrap;
}
/* APP_STORE_LIVE=false: значок и подпись — одна колонка; ряд значка одной высоты (по самому высокому, Google Play), подпись по центру под значком,
   поэтому подписи соседних значков стоят на одной линии. На узком экране колонки переносятся друг под друга (flex-wrap ряда). */
.store-badge.is-soon { display: inline-grid; grid-template-rows: 64px auto; justify-items: center; align-items: center; row-gap: 6px; cursor: not-allowed; text-decoration: none; }
.store-badge.is-soon img { filter: grayscale(1); opacity: .6; }
.store-badge.is-soon .store-note { font-size: 13px; font-weight: 500; line-height: 1.3; opacity: .8; white-space: nowrap; text-align: center; align-self: start; }
.store-row:has(.store-badge.is-soon) { align-items: flex-start; gap: 12px 24px; }
@media (max-width: 380px) { .store-badge.is-soon { grid-template-rows: 54px auto; } }
/* /app/: обе колонки одной ширины (по самой длинной подписи, es) — значки стоят на одной вертикали и в ряд, и друг под другом на узком экране. */
.getapp .store-badge.is-soon { width: min(214px, calc((100% - 12px) / 2)); }
.getapp .store-badge.is-soon .store-note { white-space: normal; text-wrap: balance; max-width: 100%; }
@media (max-width: 359px) { .getapp .store-badge.is-soon { width: min(100%, 214px); } }
.getapp .store-row:has(.store-badge.is-soon) { column-gap: 12px; }

/* 21.11.2026: app.padelada.com открыт — под неактивным Google Play ссылка «Пока — в браузере» (колонка: кнопка/значок + ссылка). */
.play-col { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; min-width: 0; }
.play-col .web-link {
  font-size: 14px; font-weight: 500; line-height: 1.3; color: inherit; opacity: .85; text-align: center;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px;
}
.play-col .web-link:hover { opacity: 1; }
.play-col .web-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 6px; }
.cta:has(.play-col) { align-items: flex-start; }
@media (max-width: 899px) {
  .scene.hero .cta .play-col, #pronto .cta .play-col, .cta .play-col { width: 100%; }
  .scene.hero .cta .play-col .btn, #pronto .cta .play-col .btn { width: 100%; }
  .scene.hero .cta:has(.play-col), #pronto .cta:has(.play-col) { align-items: stretch; }
}
.store-row .play-col { gap: 2px; }
.hx-pop .hx-pop-web { font-size: 14px; }
.getapp .store-row .play-col { width: min(214px, calc((100% - 12px) / 2)); }
.getapp .store-row .play-col .store-badge.is-soon { width: 100%; }
@media (max-width: 359px) { .getapp .store-row .play-col { width: min(100%, 214px); } }
