/* UIDEPLAY — стиль в духе меню PS5: тёмно-синий фон под выбранную игру,
   стеклянные полупрозрачные элементы, тонкий шрифт, плавные «пружинные» анимации.
   Сначала мобильная версия, потом расширения для больших экранов. */

:root {
  --bg-0: #02040b;
  --bg-1: #071633;
  --bg-2: #0d2a5c;
  --glass: rgba(var(--ink), .075);
  --glass-2: rgba(var(--ink), .13);
  --glass-3: rgba(var(--ink), .2);
  --stroke: rgba(var(--ink), .12);
  --stroke-2: rgba(var(--ink), .22);
  --sheet: rgba(14, 22, 44, .72);
  --sheet-solid: rgba(14, 22, 44, .92);
  --ink: 255, 255, 255;
  --sh: 0, 0, 0;
  --shk: 1;
  --solid: #fff;
  --on-solid: #05070d;
  --ring: #fff;
  --fill: rgba(var(--ink), .07);
  --bar-bg: rgba(4, 9, 22, .55);
  --dock-bg: rgba(14, 22, 44, .62);
  --scrim: rgba(2, 4, 11, .55);
  --page-bg: radial-gradient(120% 70% at 50% -10%, #0d2a5c 0%, #071633 40%, #02040b 100%) fixed #02040b;
  --bd-opacity: .9;
  --shade:
    linear-gradient(180deg, rgba(2, 4, 11, .55) 0%, rgba(2, 4, 11, .1) 22%, rgba(5, 14, 36, .55) 52%, #071633 74%, #02040b 100%),
    linear-gradient(90deg, rgba(2, 4, 11, .6) 0%, transparent 55%);
  --danger-rgb: 255, 107, 122;
  --text: #fff;
  --text-2: rgba(var(--ink), .74);
  --text-3: rgba(var(--ink), .5);
  --blue: #4c8dff;
  --ok: #4ee08f;
  --ok-rgb: 78, 224, 143;
  --busy: rgba(var(--ink), .45);
  --warn: #ffbf47;
  --danger: #ff6b7a;
  --wa: #25d366;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --blur: saturate(1.6) blur(24px);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dock-h: 0px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; min-height: 100svh; color: var(--text); font: 400 16px/1.5 var(--font); letter-spacing: .005em;
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.ico { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
::selection { background: rgba(76, 141, 255, .45); }

.glass {
  background: var(--glass); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

/* ---------- фон под выбранную игру ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop__layer {
  position: absolute; inset: 0 0 auto; height: 78svh; background-size: cover; background-position: center 30%;
  opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 7s var(--ease);
}
.backdrop__layer.is-on { opacity: var(--bd-opacity); transform: scale(1); }
.backdrop__layer.is-blur { filter: blur(30px) saturate(1.3); transform: scale(1.3); }
.backdrop__layer.is-blur.is-on { transform: scale(1.2); }
.backdrop__shade { position: absolute; inset: 0; background: var(--shade); }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; user-select: none;
  transition: transform .35s var(--spring), background .25s var(--ease), box-shadow .3s var(--ease), border-color .25s, opacity .2s;
}
.btn:active { transform: scale(.95); transition-duration: .12s; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--ring); }
.btn--play, .btn--primary, .btn--wa { background: var(--solid); color: var(--on-solid); box-shadow: 0 8px 30px rgba(var(--ink), .14); }
.btn--play:hover, .btn--primary:hover, .btn--wa:hover { box-shadow: 0 10px 40px rgba(var(--ink), .28); transform: translateY(-1px); }
.btn--wa .ico { color: #1fb85a; }
.btn--glass, .btn--ghost {
  background: var(--glass-2); border-color: var(--stroke); color: var(--text);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.btn--glass:hover, .btn--ghost:hover { background: var(--glass-3); border-color: var(--stroke-2); }
.btn--danger { background: rgba(255, 107, 122, .1); border-color: rgba(255, 107, 122, .3); color: var(--danger); }
.btn--danger:hover { background: rgba(255, 107, 122, .18); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform .35s var(--spring), background .2s;
}
.icon-btn:hover { background: var(--glass-3); }
.icon-btn:active { transform: scale(.9); }
.link { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 6px 0; transition: color .2s; }
.link:hover { color: var(--text); }

/* ---------- верхняя панель ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; padding-top: env(safe-area-inset-top);
  transition: background .4s var(--ease), border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.bar.is-scrolled { background: var(--bar-bg); border-color: var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.bar__in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(var(--ink), .1), 0 4px 14px rgba(0, 120, 255, .25); transition: transform .5s var(--spring); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-size: 19px; font-weight: 300; letter-spacing: .04em; }
.brand__name b { font-weight: 600; }
.cats { display: none; gap: 6px; margin-left: 28px; }
.cats a {
  position: relative; padding: 8px 14px; color: var(--text-2); font-size: 16px; font-weight: 300; letter-spacing: .02em;
  transition: color .25s;
}
.cats a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--text);
  transform: translateX(-50%) scale(0); transition: transform .35s var(--spring);
}
.cats a:hover, .cats a.is-active { color: var(--text); }
.cats a.is-active { font-weight: 500; }
.cats a.is-active::after { transform: translateX(-50%) scale(1); }
.bar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.clock { font-size: 17px; font-weight: 300; letter-spacing: .04em; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .cats { display: flex; } }

/* ---------- главный экран ---------- */
.home { position: relative; padding: calc(74px + env(safe-area-inset-top)) 0 10px; min-height: calc(100svh - var(--dock-h)); display: flex; flex-direction: column; }
@media (min-width: 900px) { .home { padding-top: 110px; min-height: 92svh; } }
.home__top { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .home__top { gap: 18px; max-width: 640px; } }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-2); }
.home__title { font-size: clamp(27px, 7.2vw, 56px); font-weight: 200; letter-spacing: -.015em; max-width: 14ch; }
.home__title b { font-weight: 500; }

.search {
  position: relative; display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 6px 0 18px; border-radius: 999px;
  background: rgba(var(--ink), .09); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: background .3s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.search:focus-within { background: rgba(var(--ink), .14); border-color: rgba(var(--ink), .5); box-shadow: 0 0 0 4px rgba(var(--ink), .08), 0 20px 50px rgba(var(--sh), calc(.35 * var(--shk))); }
.search__ico { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 16px; font-weight: 300; padding: 0 8px; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search__btn { min-height: 42px; padding: 0 16px; }
.search__btn .ico { width: 17px; height: 17px; }
@media (max-width: 380px) { .search__btn span { display: none; } .search__btn { padding: 0 13px; } }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 400; cursor: pointer;
  background: var(--glass); border: 1px solid var(--stroke); color: var(--text-2);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--spring);
}
.chip:hover { color: var(--text); background: var(--glass-2); }
.chip:active { transform: scale(.94); }
.chip.is-active { background: var(--solid); color: var(--on-solid); border-color: var(--solid); font-weight: 500; }
.chips--filter { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }

/* лента игр, как на главном экране PS5 */
.rail-wrap { margin-top: auto; padding-top: 14px; }
.rail-label { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-3); margin-bottom: 4px; }
.rail {
  display: flex; align-items: flex-end; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px 16px; margin-inline: -16px;
  scroll-padding-inline: 16px;
}
.rail::-webkit-scrollbar { display: none; }
.tile {
  --w: 84px;
  position: relative; flex: none; width: var(--w); aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--glass); overflow: hidden; scroll-snap-align: start; outline: none;
  box-shadow: 0 0 0 1px rgba(var(--ink), .08), 0 8px 24px rgba(var(--sh), calc(.35 * var(--shk)));
  transition: width .5s var(--ease), box-shadow .4s var(--ease), transform .5s var(--spring), opacity .4s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.tile.is-focused {
  --w: 114px;
  box-shadow: 0 0 0 2px var(--ring), 0 0 0 6px rgba(var(--ink), .14), 0 18px 44px rgba(var(--sh), calc(.55 * var(--shk)));
}
.tile.is-focused img { transform: scale(1.04); }
.tile.is-off img, .tile.is-off .cover-ph { filter: grayscale(1) brightness(.6); }
.tile:not(.is-focused):hover { transform: translateY(-3px); }
@media (min-width: 700px) { .tile { --w: 118px; } .tile.is-focused { --w: 168px; } }

.focus { min-height: 170px; padding-bottom: 8px; }
.focus__title { font-size: clamp(26px, 7vw, 56px); font-weight: 300; letter-spacing: -.015em; }
.focus__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 8px; color: var(--text-2); font-size: 15px; font-weight: 300; }
.focus__desc { color: var(--text-2); font-weight: 300; max-width: 560px; margin: 0 0 16px; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .focus__desc { -webkit-line-clamp: 3; } }
.focus__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.focus__anim { animation: focusIn .55s var(--ease) both; }
@keyframes focusIn { from { opacity: 0; transform: translateX(-14px); } }
.focus__actions .btn { flex: 1; }
@media (min-width: 560px) { .focus__actions .btn { flex: none; } .focus__actions .btn--play { min-width: 170px; } }

/* ---------- элементы статуса ---------- */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: var(--busy); }
.dot--ok { background: var(--ok); box-shadow: 0 0 10px rgba(78, 224, 143, .8); }
.dot--warn { background: var(--warn); }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--glass-2); color: var(--text-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill--free { color: var(--ok); background: rgba(78, 224, 143, .12); }
.pill--repair { color: var(--warn); background: rgba(255, 191, 71, .12); }
.tag { display: inline-flex; padding: 4px 11px; border-radius: 999px; background: var(--glass-2); font-size: 13px; color: var(--text-2); }

/* обложка-заглушка */
.cover-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  background: radial-gradient(90% 60% at 20% 0%, rgba(76, 141, 255, .7), transparent 70%), radial-gradient(80% 70% at 100% 100%, rgba(150, 90, 255, .55), transparent 70%), #0b1530;
  font-weight: 600; font-size: 15px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; text-align: left; color: #fff;
}
.cover-ph::before { content: "△ ○ ✕ □"; position: absolute; top: 10px; left: 12px; font-size: 10px; letter-spacing: 3px; color: #ffffffa0; font-weight: 400; }

/* ---------- секции ---------- */
.section { padding: 46px 0 6px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.section__head h2 { font-size: clamp(26px, 6vw, 38px); }
.section__head p { margin: 0; color: var(--text-3); font-weight: 300; max-width: 520px; font-size: 15px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-3); margin-bottom: 6px; display: block; }

/* сетка игр */
.grid { display: grid; gap: 14px; }
.grid--games { grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .grid--games { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 900px) { .grid--games { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; } }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.gcard .tile { --w: 100%; scroll-snap-align: none; }
.gcard:hover .tile { transform: translateY(-4px); box-shadow: 0 0 0 2px rgba(var(--ink), .9), 0 16px 36px rgba(var(--sh), calc(.5 * var(--shk))); }
.gcard:focus-visible { outline: none; }
.gcard:focus-visible .tile { box-shadow: 0 0 0 2px var(--ring), 0 0 0 6px rgba(var(--ink), .15); }
.gcard__title { font-size: 13px; font-weight: 400; line-height: 1.25; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard__meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-top: -4px; }
.gcard.is-hit .tile { box-shadow: 0 0 0 2px var(--blue), 0 14px 32px rgba(76, 141, 255, .3); }
@media (min-width: 560px) { .gcard__title { font-size: 14px; } }

/* приставки — карусель на телефоне, сетка на компьютере */
.consoles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 14px; scroll-padding-inline: 16px; }
.consoles::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .consoles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 16px; } }
.ps {
  position: relative; flex: none; width: 82%; max-width: 340px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 14px; padding: 18px; text-align: left; cursor: pointer; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(var(--ink), .12), rgba(var(--ink), .04)); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform .5s var(--spring), border-color .3s, box-shadow .4s var(--ease);
}
@media (min-width: 900px) { .ps { width: auto; max-width: none; } }
.ps:hover { transform: translateY(-4px); border-color: var(--stroke-2); box-shadow: 0 24px 50px rgba(var(--sh), calc(.35 * var(--shk))); }
.ps:active { transform: scale(.98); }
.ps:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
.ps__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ps__num { font-size: 26px; font-weight: 200; letter-spacing: -.01em; }
.ps__num b { font-weight: 500; }
.ps__model { display: block; font-size: 13px; color: var(--text-3); font-weight: 400; letter-spacing: .04em; margin-top: 2px; }
.ps__covers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ps__covers > div { position: relative; aspect-ratio: 3 / 4; border-radius: 9px; overflow: hidden; background: var(--glass); }
.ps__covers img { width: 100%; height: 100%; object-fit: cover; }
.ps__covers .cover-ph { font-size: 7px; padding: 5px; }
.ps__covers .cover-ph::before { display: none; }
.ps__more { display: grid; place-items: center; font-size: 14px; color: var(--text-2); }
.ps__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 13px; }
.ps__cta { color: var(--text); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; transition: gap .3s var(--ease); }
.ps:hover .ps__cta { gap: 8px; }
.ps.is-busy { background: rgba(var(--ink), .035); }
.ps.is-busy .ps__covers img, .ps.is-busy .ps__covers .cover-ph { filter: grayscale(1) brightness(.55); }
.ps.is-busy .ps__num { color: var(--text-2); }
.ps.is-hit { border-color: rgba(var(--ink), .7); box-shadow: 0 0 0 1px rgba(var(--ink), .5), 0 20px 46px rgba(var(--sh), calc(.35 * var(--shk))); }

/* результаты поиска */
.results { padding-top: 6px; }
.results__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ai-reply {
  position: relative; flex: 1; padding: 14px 16px 14px 46px; border-radius: 18px; font-weight: 300; font-size: 15px;
  background: linear-gradient(135deg, rgba(76, 141, 255, .2), rgba(150, 90, 255, .12)); border: 1px solid rgba(var(--ink), .16);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: focusIn .5s var(--ease) both;
}
.ai-reply::before { content: "✦"; position: absolute; left: 17px; top: 12px; font-size: 18px; color: var(--blue); }
.ai-reply.is-loading::after {
  content: ""; display: inline-block; width: 30px; height: 6px; margin-left: 8px; vertical-align: middle;
  background: radial-gradient(circle, var(--text) 2.5px, transparent 3px) 0 50% / 10px 6px repeat-x; animation: dots 1.1s steps(4) infinite;
}
@keyframes dots { from { width: 0; } to { width: 40px; } }
.empty { grid-column: 1 / -1; padding: 26px; text-align: center; color: var(--text-3); border-radius: var(--r); border: 1px dashed var(--stroke-2); font-weight: 300; }

/* цены */
.tariffs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 12px; }
.tariffs::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: visible; margin: 0; padding: 0; } }
.tariff { flex: none; width: 62%; max-width: 260px; scroll-snap-align: start; padding: 20px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@media (min-width: 700px) { .tariff { width: auto; max-width: none; } }
.tariff:nth-child(2) { background: linear-gradient(160deg, rgba(var(--ink), .18), rgba(var(--ink), .05)); border-color: var(--stroke-2); }
.tariff__name { color: var(--text-2); font-weight: 300; font-size: 15px; }
.tariff__price { font-size: 34px; font-weight: 200; letter-spacing: -.02em; margin: 4px 0 2px; }
.tariff__note { font-size: 13px; color: var(--ok); min-height: 1.4em; }
.info-cards { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 700px) { .info-cards { grid-template-columns: repeat(3, 1fr); } }
.info-card { padding: 18px 20px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.info-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--text-2); font-weight: 300; font-size: 15px; }

/* как заказать */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.steps li { position: relative; padding: 18px 18px 18px 66px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--stroke); counter-increment: s; display: flex; flex-direction: column; gap: 2px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 300; font-size: 16px; border: 1px solid var(--stroke-2); }
.steps b { font-weight: 500; }
.steps span { color: var(--text-2); font-size: 14px; font-weight: 300; }
.cta { display: flex; justify-content: center; padding: 30px 0 10px; }

/* подвал */
.footer { margin-top: 40px; padding: 26px 0 calc(28px + var(--dock-h) + env(safe-area-inset-bottom)); border-top: 1px solid var(--stroke); color: var(--text-2); font-weight: 300; font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.footer__links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__legal { font-size: 11px; margin-top: 16px; color: var(--text-3); }

/* ---------- нижняя панель на телефоне ---------- */
.dock {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 26px;
  background: var(--dock-bg); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: saturate(1.8) blur(28px); backdrop-filter: saturate(1.8) blur(28px);
  box-shadow: 0 20px 50px rgba(var(--sh), calc(.5 * var(--shk))); animation: dockIn .7s var(--spring) .2s both;
}
@keyframes dockIn { from { transform: translateY(120%); opacity: 0; } }
.dock a, .dock button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 20px; border: 0; background: none; cursor: pointer;
  color: var(--text-3); font-size: 11px; letter-spacing: .02em; transition: color .25s, background .25s, transform .35s var(--spring);
}
.dock .ico { width: 22px; height: 22px; }
.dock a.is-active { color: var(--text); background: rgba(var(--ink), .1); }
.dock a:active, .dock button:active { transform: scale(.9); }
.dock__order { color: var(--text) !important; }
.dock__order .ico { color: var(--wa); }
body { --dock-h: 78px; }
@media (min-width: 900px) { .dock { display: none; } body { --dock-h: 0px; } }

/* ---------- окна: стеклянный bottom sheet ---------- */
.sheet {
  width: min(560px, 100% - 24px); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--stroke-2); border-radius: 28px;
  background: var(--sheet); color: var(--text); overflow: hidden;
  -webkit-backdrop-filter: saturate(1.6) blur(40px); backdrop-filter: saturate(1.6) blur(40px);
  box-shadow: 0 40px 100px rgba(var(--sh), calc(.6 * var(--shk)));
}
.sheet--wide { width: min(900px, 100% - 24px); }
.sheet::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetIn .5s var(--spring); }
.sheet[open]::backdrop { animation: fade .4s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.sheet.is-closing { animation: sheetOut .28s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fade .28s var(--ease) reverse forwards; }
@keyframes sheetOut { to { opacity: 0; transform: translateY(30px) scale(.97); } }
.sheet__body { padding: 26px 24px 24px; overflow-y: auto; max-height: calc(100dvh - 42px); overscroll-behavior: contain; }
.sheet__close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.sheet__grab { display: none; }
@media (max-width: 640px) {
  .sheet, .sheet--wide { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 28px 28px 0 0; border-bottom: 0; max-height: 94dvh; }
  .sheet__body { max-height: 94dvh; padding: 30px 18px calc(22px + env(safe-area-inset-bottom)); }
  .sheet[open] { animation: sheetUp .55s var(--spring); }
  .sheet.is-closing { animation: sheetDown .3s var(--ease) forwards; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  @keyframes sheetDown { to { transform: translateY(100%); } }
  .sheet__grab { display: block; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(var(--ink), .3); z-index: 3; }
  .sheet__close { top: 16px; right: 12px; width: 36px; height: 36px; }
}

/* окно игры */
.gd__hero { position: relative; margin: -26px -24px 0; height: 190px; background: center 30% / cover; }
.gd__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--sheet) 92%), linear-gradient(180deg, transparent 50%, var(--sheet-solid)); }
@media (max-width: 640px) { .gd__hero { margin: -30px -18px 0; height: 170px; } }
.gd { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; margin-top: -70px; z-index: 1; }
.gd__cover { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--glass); box-shadow: 0 0 0 1px rgba(var(--ink), .15), 0 14px 30px rgba(var(--sh), calc(.5 * var(--shk))); }
.gd__cover img { width: 100%; height: 100%; object-fit: cover; }
.gd__text { padding-top: 64px; min-width: 0; }
.gd h2 { font-size: 26px; font-weight: 300; padding-right: 20px; }
.gd__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gd__desc { color: var(--text-2); font-weight: 300; margin: 16px 0 0; }
.avail { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.avail h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); font-weight: 400; margin-bottom: 2px; }
.avail__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); }
.avail__row b { font-weight: 500; }
.avail__row .muted { font-size: 13px; }
.avail__st { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.avail__row.is-free .avail__st { color: var(--ok); }

/* окно приставки */
.cd__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-right: 44px; }
.cd__head h2 { font-size: 30px; font-weight: 200; }
.cd__head h2 b { font-weight: 500; }
.cd__sub { color: var(--text-2); font-weight: 300; margin: 8px 0 18px; font-size: 15px; }
.cd__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .cd__grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; } }
.cd__foot { position: sticky; bottom: -24px; margin: 20px -24px -24px; padding: 14px 24px; background: linear-gradient(180deg, transparent, var(--sheet) 30%); }
@media (max-width: 640px) { .cd__foot { bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 18px -18px calc(-22px - env(safe-area-inset-bottom)); padding: 18px 18px calc(14px + env(safe-area-inset-bottom)); } }

/* поля ввода */
.order h2 { font-size: 28px; font-weight: 300; padding-right: 44px; }
.order__hint { margin: 6px 0 20px; font-weight: 300; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend, .field__label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); padding: 0; }
.field > legend { margin-bottom: 8px; }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 50px; background: rgba(var(--ink), .07); border: 1px solid var(--stroke); border-radius: var(--r); padding: 12px 16px; outline: 0;
  font-weight: 300; font-size: 16px; transition: border-color .25s, background .25s, box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 0; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-1); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: rgba(var(--ink), .6); background: rgba(var(--ink), .1); box-shadow: 0 0 0 4px rgba(var(--ink), .07); }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--text-3); }
.field input.is-invalid { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; gap: 12px; } }
.tariff-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.tariff-pick label { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px 14px; border-radius: var(--r); cursor: pointer; background: rgba(var(--ink), .06); border: 1px solid var(--stroke); transition: background .25s, border-color .25s, transform .35s var(--spring); }
.tariff-pick label:active { transform: scale(.96); }
.tariff-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tariff-pick b { font-weight: 500; font-size: 15px; }
.tariff-pick span { color: var(--text-2); font-size: 14px; font-weight: 300; }
.tariff-pick label:has(input:checked) { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.tariff-pick label:has(input:checked) span { color: inherit; opacity: .7; }
.tariff-pick label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(var(--ink), .35); }
.order__note { margin: -4px 0 14px; padding: 11px 14px; border-radius: var(--r-sm); background: rgba(var(--ink), .07); color: var(--text-2); font-size: 14px; font-weight: 300; }
.geo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -2px 0 16px; }
.geo__status { font-size: 14px; font-weight: 300; }
.geo__status.is-ok { color: var(--ok); }
.form-error { color: var(--danger); margin: 0 0 12px; font-size: 14px; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= Светлая тема ================= */
[data-theme="light"] {
  --bg-0: #f4f6fb;
  --bg-1: #eef2f9;
  --bg-2: #ffffff;
  --ink: 12, 20, 40;
  --sh: 20, 40, 90;
  --shk: .3;
  --text: #0c1428;
  --solid: #003d80;
  --on-solid: #ffffff;
  --ring: #003d80;
  --glass: rgba(255, 255, 255, .55);
  --glass-2: rgba(255, 255, 255, .78);
  --glass-3: rgba(255, 255, 255, .95);
  --stroke: rgba(12, 20, 40, .08);
  --stroke-2: rgba(12, 20, 40, .16);
  --sheet: rgba(255, 255, 255, .84);
  --sheet-solid: rgba(255, 255, 255, .98);
  --bar-bg: rgba(255, 255, 255, .72);
  --dock-bg: rgba(255, 255, 255, .78);
  --scrim: rgba(20, 30, 55, .28);
  --busy: rgba(12, 20, 40, .32);
  --ok: #12a35a;
  --ok-rgb: 18, 163, 90;
  --warn: #c97a00;
  --danger: #e2384c;
  --danger-rgb: 226, 56, 76;
  --blue: #1f78d1;
  --page-bg: radial-gradient(120% 70% at 50% -10%, #e3f2ff 0%, #f3f8fd 45%, #edf2f8 100%) fixed #eef3f9;
  --bd-opacity: .8;
  --shade:
    linear-gradient(180deg, rgba(246, 248, 252, .4) 0%, rgba(246, 248, 252, .08) 22%, rgba(243, 246, 252, .7) 50%, #f3f6fc 70%, #eef2f8 100%),
    linear-gradient(90deg, rgba(246, 248, 252, .9) 0%, rgba(246, 248, 252, .35) 45%, transparent 75%);
  color-scheme: light;
}
[data-theme="light"] .dot--ok { box-shadow: 0 0 8px rgba(18, 163, 90, .45); }
[data-theme="light"] :is(.ps, .tariff, .info-card, .steps li, .avail__row, .cr, .card, .or, .login__card, .search, .icon-btn, .chip:not(.is-active), .btn--glass, .btn--ghost) {
  background-color: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(20, 40, 90, .05), 0 8px 24px rgba(20, 40, 90, .07);
}
[data-theme="light"] .ps { background-image: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)); }
[data-theme="light"] .ps.is-busy { background: rgba(255, 255, 255, .42); box-shadow: none; }
[data-theme="light"] .ps:hover { box-shadow: 0 2px 4px rgba(20, 40, 90, .06), 0 22px 44px rgba(20, 40, 90, .12); }
[data-theme="light"] .tariff:nth-child(2) { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
[data-theme="light"] .tariff:nth-child(2) .tariff__name { color: rgba(255, 255, 255, .7); }
[data-theme="light"] .tariff:nth-child(2) .tariff__note { color: #6ff0a8; }
[data-theme="light"] .search { background-color: rgba(255, 255, 255, .85); }
[data-theme="light"] .search:focus-within { background: #fff; border-color: rgba(12, 20, 40, .35); box-shadow: 0 0 0 4px rgba(47, 111, 232, .12), 0 20px 50px rgba(20, 40, 90, .12); }
[data-theme="light"] .tile { box-shadow: 0 0 0 1px rgba(12, 20, 40, .06), 0 8px 22px rgba(20, 40, 90, .16); }
[data-theme="light"] .tile.is-focused { box-shadow: 0 0 0 2px var(--ring), 0 0 0 6px rgba(12, 20, 40, .1), 0 18px 40px rgba(20, 40, 90, .28); }
[data-theme="light"] .ai-reply { background: linear-gradient(135deg, rgba(47, 111, 232, .12), rgba(150, 90, 255, .08)); border-color: rgba(47, 111, 232, .2); }
[data-theme="light"] .btn--play, [data-theme="light"] .btn--primary, [data-theme="light"] .btn--wa { box-shadow: 0 8px 24px rgba(0, 61, 128, .28); }
[data-theme="light"] .btn--wa .ico { color: #3ee07e; }
[data-theme="light"] .footer { border-color: rgba(12, 20, 40, .08); }
[data-theme="light"] .sheet { box-shadow: 0 40px 100px rgba(20, 40, 90, .25); }
[data-theme="light"] .backdrop__layer.is-blur { filter: blur(30px) saturate(1.1) brightness(1.1); }

/* ---------- адрес, подсказки, точка, карта в заказе ---------- */
.addr { position: relative; z-index: 6; margin-bottom: 10px; }
.addr__box { position: relative; }
.addr__sug {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow-y: auto;
  padding: 6px; border-radius: var(--r); background: var(--sheet-solid); border: 1px solid var(--stroke-2);
  box-shadow: 0 18px 40px rgba(var(--sh), calc(.35 * var(--shk))); animation: focusIn .25s var(--ease);
}
.addr__sug button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; text-align: left; cursor: pointer; transition: background .15s;
}
.addr__sug button:hover, .addr__sug button:focus-visible { background: var(--fill); outline: none; }
.addr__sug b { font-weight: 500; font-size: 15px; }
.addr__sug small { color: var(--text-3); font-size: 12px; }
.addr__note { margin: 2px 2px 0; font-size: 13px; color: var(--warn); font-weight: 400; }
.addr__note.is-ok { color: var(--text-3); }

.geo { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.geo .btn { flex: 1 1 160px; }
.geo .btn.is-busy { opacity: .7; pointer-events: none; }

.point {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; margin: 0 0 10px; border-radius: var(--r);
  background: rgba(var(--ok-rgb, 18, 163, 90), .1); border: 1px solid rgba(var(--ok-rgb, 18, 163, 90), .28);
  animation: focusIn .3s var(--ease);
}
.point__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(var(--ok-rgb, 18, 163, 90), .18); flex: none; }
.point__txt { flex: 1; font-size: 14px; line-height: 1.35; }
.point__x {
  width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; cursor: pointer; font-size: 14px;
  background: var(--fill); color: var(--text-2); transition: background .2s, transform .3s var(--spring);
}
.point__x:hover { background: rgba(var(--danger-rgb), .14); color: var(--danger); }
.point__x:active { transform: scale(.9); }

.omap { margin: 0 0 14px; animation: focusIn .35s var(--ease); }
.omap__map { height: 260px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--stroke-2); background: var(--fill); }
@media (min-width: 640px) { .omap__map { height: 300px; } }
.omap__hint { margin: 6px 2px 0; font-size: 12px; color: var(--text-3); }
.omap .leaflet-container { font: inherit; }
.omap .leaflet-control-attribution { font-size: 10px; }
.site-pin { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.site-pin svg { width: 30px; height: 42px; display: block; }
.gps-ring { border-radius: 50%; }
