@import url("/tokens.css");

@font-face { font-family: 'Medeo Sans'; src: url('/fonts/MedeoSansVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Medeo Mono'; src: url('/fonts/MedeoMonoVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* ───────── База ───────── */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); font: 400 13px/19px var(--font); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
::selection { background: rgba(0, 137, 255, 0.35); }

.logo-sm { height: 18px; }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #4b4a46; }
.dot.ok { background: var(--success); }
.dot.err { background: var(--danger); }
.dot.live { background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.2); }
.eyebrow { color: var(--fg-3); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* ───────── Кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h-md); padding: 0 18px;
  border: 0; border-radius: var(--r-pill); background: var(--fill); color: var(--fg);
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), scale 200ms var(--ease-out), opacity 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--fill-2); }
.btn:active { scale: 0.98; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; scale: 1; }
.btn-white { background: #fff; color: #0c0c0d; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.btn-white:hover { background: #ebeae6; }
.btn-white svg { transition: translate 200ms var(--ease-out); }
.btn-white:hover svg { translate: 2px 0; }
.btn-secondary { background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.btn-secondary:hover { background: var(--nav); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--fill); color: var(--fg); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 107, 0.2); }
.btn-sm { height: var(--h-sm); padding: 0 14px; font-size: 12.5px; }
.btn-md { height: var(--h-md); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: var(--h-sm); height: var(--h-sm); flex: none;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--fg-3);
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--fill-2); color: var(--fg); }

[data-tip]::after {
  content: attr(data-tip); position: absolute; z-index: 60; left: 50%; bottom: calc(100% + 8px);
  padding: 6px 10px; border-radius: 10px; background: var(--nav); color: var(--fg); box-shadow: var(--shadow-pop);
  font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity 150ms var(--ease), transform 150ms var(--ease);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 250ms; }

/* ───────── Поля ───────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-actions { display: flex; gap: 8px; }
.form-inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; padding: 4px 0 14px; }
.form-inline .field { flex: 1; min-width: 160px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { color: var(--fg-3); font-size: 13px; line-height: 16px; font-weight: 500; }
.field-hint { color: var(--fg-3); font-size: 12px; line-height: 16px; }
.form-error { padding: 10px 14px; border-radius: var(--r-field); background: var(--danger-bg); color: var(--danger); font-size: 13px; line-height: 18px; }
.fine { color: var(--fg-3); font-size: 12px; text-align: center; }

.input {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; height: 44px; padding: 0 14px;
  border-radius: var(--r-field); background: var(--field); box-shadow: inset 0 0 0 1px var(--hairline-2); cursor: text;
  transition: box-shadow 150ms var(--ease);
}
.input:hover { box-shadow: inset 0 0 0 1px rgba(246, 245, 242, 0.2); }
.input:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(0, 137, 255, 0.18); }
.input svg { width: 16px; height: 16px; color: var(--fg-3); }
.input input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: none; font-size: 14px; text-overflow: ellipsis; }
.input input::placeholder { color: #6d6c68; }
.input:has(input[aria-invalid=true]) { box-shadow: inset 0 0 0 1px var(--danger); }
.input-mono input { font-family: 'Medeo Mono', monospace; font-size: 13px; }
.input-w { width: 260px; }

.select { position: relative; display: flex; width: 100%; }
.select select { width: 100%; height: var(--h-md); padding: 0 36px 0 12px; border: 0; border-radius: var(--r-field); background: var(--field); box-shadow: inset 0 0 0 1px var(--hairline-2); appearance: none; font-size: 14px; cursor: pointer; }
.select svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--fg-3); pointer-events: none; }

.swatch { display: inline-flex; align-items: center; gap: 8px; height: var(--h-sm); padding: 0 10px 0 4px; flex: none; border-radius: 10px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hairline); cursor: pointer; }
.swatch:hover { box-shadow: inset 0 0 0 1px var(--hairline-2); }
.swatch input { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px; background: none; cursor: pointer; }
.swatch input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input::-webkit-color-swatch { border: 0; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.swatch input::-moz-color-swatch { border: 0; border-radius: 7px; }
.hex { min-width: 58px; color: var(--fg-2); font: 500 12px 'Medeo Mono', monospace; text-transform: uppercase; }

/* переключатель как у Arclight: 40×24, включён — акцент */
.switch { position: relative; width: 40px; height: 24px; flex: none; margin: 0; border-radius: var(--r-pill); background: rgba(246, 245, 242, 0.15); appearance: none; cursor: pointer; transition: background-color 200ms var(--ease); }
.switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 220ms var(--ease-out); }
.switch:checked { background: var(--accent); }
.switch:checked::before { transform: translateX(16px); }

.slider { --p: 50%; width: 100%; height: 18px; margin: 0; background: transparent; appearance: none; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--accent) var(--p), rgba(246, 245, 242, 0.12) var(--p)); }
.slider::-moz-range-track { height: 4px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--accent) var(--p), rgba(246, 245, 242, 0.12) var(--p)); }
.slider::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); appearance: none; }
.slider::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }

/* сегменты: дорожка + поднятая плашка выбранного варианта */
.seg { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--field); box-shadow: inset 0 0 0 1px var(--hairline); }
.seg button {
  display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--fg-3); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--nav); color: var(--fg); box-shadow: 0 0 0 1px var(--hairline-2), 0 2px 6px rgba(0, 0, 0, 0.3); }
.seg-sm button { min-height: 28px; padding: 0 11px; font-size: 12px; font-variant-numeric: tabular-nums; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); background: var(--fill); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warning-bg); color: var(--warning); }
.badge-err { background: var(--danger-bg); color: var(--danger); }

/* ───────── Шапка — один в один с Arclight ─────────
   fixed по центру, пилюля по ширине содержимого: высота 52, радиус 26, обводка 7 %, тень ниже при прокрутке.
   Логотип: знак 24 px + надпись (как текст 17 px), ссылки 14 px белым 65 %, под ними одна «едущая» плашка. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; padding: 24px 0 0; pointer-events: none; }
.nav-shell { width: var(--wrap); pointer-events: auto; border-radius: 26px; background: var(--nav); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 30px -12px rgba(0, 0, 0, 0.45); transition: box-shadow 300ms var(--ease); animation: navIn 700ms var(--ease-out) both; }
.nav-shell[data-scrolled=true] { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 44px -14px rgba(0, 0, 0, 0.6); }
@keyframes navIn { from { opacity: 0; transform: translateY(-14px); } }
.nav-bar { display: flex; align-items: center; height: 52px; padding: 0 6px 0 20px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 8px; border-radius: var(--r-pill); }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; }
.brand-mark img { width: 22px; height: 22px; display: block; }
.brand-text { display: block; height: 15px; width: auto; }
.nav-list { position: relative; display: flex; align-items: center; height: 36px; margin: 0 0 0 32px; padding: 0; list-style: none; }
.nav-list li { display: flex; }
.glide { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.1); opacity: 0; pointer-events: none;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), width 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 250ms var(--ease); }
.glide.instant { transition: opacity 250ms var(--ease); }
.nav-item { position: relative; display: flex; align-items: center; height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: none; color: rgba(255, 255, 255, 0.65); font-size: 14px; line-height: 1; white-space: nowrap; transition: color 200ms var(--ease); }
.nav-item:hover, .nav-item[aria-current] { color: #fff; }
.nav-actions { display: flex; flex: none; align-items: center; gap: 4px; margin-left: auto; }
.nav-cta { display: flex; align-items: center; height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: #fff; color: #0c0c0d; font-size: 14px; font-weight: 500; line-height: 1; transition: background-color 200ms var(--ease), scale 200ms var(--ease); }
.nav-cta:hover { background: rgba(255, 255, 255, 0.85); }
.nav-cta:active { scale: 0.97; }

/* кабинет: та же шапка + переключатель клуба, статус и аккаунт */
.app { padding-top: 92px; }
.app-header .nav-bar { padding-left: 16px; }
.app-header .club-switch { margin-left: 16px; }
.app-header .nav-list { margin-left: 16px; }
.app-header .nav-actions { margin-left: auto; padding-left: 16px; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--fill); color: var(--fg-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip-plan:hover { color: var(--fg); background: var(--fill-2); }
.chip-plan.warn { background: var(--warning-bg); color: var(--warning); }
.menu-wrap { position: relative; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.avatar:hover { filter: brightness(1.1); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; display: flex; min-width: 250px; flex-direction: column; padding: 6px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-pop); }
.menu-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-head b { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; }
.menu-head small { color: var(--fg-3); font-size: 12px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--fg-2); font-size: 14px; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--fill); color: var(--fg); }
.menu svg { width: 16px; height: 16px; }

.banner { display: flex; align-items: center; gap: 12px; width: var(--wrap); margin: 0 auto; padding: 8px 8px 8px 18px; border-radius: var(--r-pill); background: var(--muted); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 13px; }
.banner svg { width: 18px; height: 18px; color: var(--accent-ink); }
.banner.warn svg { color: var(--warning); }
.banner span { flex: 1; color: var(--fg-2); }
.banner b { color: var(--fg); font-weight: 500; }

/* ───────── Главная ───────── */
.landing { min-height: 100svh; overflow-x: clip; }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding: 140px 20px 0; text-align: center; }
/* световое поле Arclight в цвете бренда: пиксельная сетка над синим свечением */
.hero-field { position: absolute; inset: 0 0 auto; display: block; width: 100%; height: 1100px; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 100%); }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 6px; border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--fg); font-size: 13px; font-weight: 500; }
.pill-badge svg { width: 14px; height: 14px; color: var(--fg-3); }
.pill-new { padding: 4px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; }
.hero h1 { margin-top: 26px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; font-weight: 500; letter-spacing: -0.04em; text-wrap: balance; }
.lead { max-width: 560px; margin: 22px auto 0; color: var(--fg-2); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; text-wrap: pretty; }
.hero > .btn { margin-top: 36px; }
.showcase { width: 100%; max-width: var(--container); margin-top: 64px; padding: 14px; border-radius: var(--r-hero); background: rgba(10, 10, 9, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px -30px rgba(0, 137, 255, 0.45); }
.showcase-frame { overflow: hidden; border-radius: 28px; box-shadow: 0 0 0 1px var(--hairline-2); }
.tv-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.tv-screen iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.showcase-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--fg-3); font-size: 13px; }

.section { width: var(--wrap); margin: 0 auto; padding: 128px 0 0; text-align: center; scroll-margin-top: 40px; }
.section h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.06; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.section-lead { margin-top: 14px; color: var(--fg-2); font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; text-align: left; }
.feature { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--muted); }
.feature-art { display: grid; height: 220px; place-items: center; padding: 24px; }
.feature h3 { padding: 0 24px; font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; }
.feature p { padding: 6px 24px 26px; color: var(--fg-3); font-size: 13.5px; line-height: 1.55; }
.tile { border-radius: var(--r-tile); background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); }
.mock-form { display: grid; width: 100%; max-width: 260px; gap: 4px; padding: 16px; font-size: 12px; }
.mock-form span { color: var(--fg-3); }
.mock-form b { margin-bottom: 6px; padding: 8px 10px; border-radius: 10px; background: var(--field); font-weight: 500; }
.mock-ok { display: flex; align-items: center; gap: 6px; color: var(--success); font-style: normal; }
.mock-ok svg { width: 14px; height: 14px; }
.mock-swatches { display: flex; align-items: center; gap: 10px; padding: 18px 20px; }
.mock-swatches i { width: 30px; height: 30px; border-radius: 9px; }
.mock-switch { position: relative; width: 40px; height: 24px; margin-left: 8px; border-radius: var(--r-pill); background: var(--accent); }
.mock-switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.mock-link { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; }
.mock-link svg { width: 18px; height: 18px; color: var(--accent-ink); }
.mock-link code { color: var(--fg-2); font: 12px 'Medeo Mono', monospace; }
.mock-link .btn { pointer-events: none; }
.price-card { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 32px; margin-top: 48px; padding: 32px; border-radius: var(--r-card); background: var(--muted); text-align: left; }
.price-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.price-card p { margin-top: 6px; color: var(--fg-3); }
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.checks svg { width: 16px; height: 16px; color: var(--accent-ink); }
.site-foot img { height: 14px; }
.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: var(--wrap); margin: 128px auto 0; padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--fg-3); font-size: 13px; }

.auth-window { max-width: 400px; align-items: stretch; gap: 16px; padding: 36px 28px 24px; text-align: center; }
.auth-logo { display: block; height: 24px; width: auto; margin: 0 auto 4px; }
.auth-window h2 { margin-bottom: 12px; } /* больше воздуха до переключателя «Регистрация / Вход» */
/* Aurora: между затемнением и окном; поверх лендинга — полупрозрачно, на странице входа — во всю силу */
.aurora { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.75; }
.auth-only .aurora { opacity: 1; }
.auth-window { background: rgba(21, 21, 20, 0.92); box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.auth-window h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.auth-window .form { text-align: left; }
.modal-x { position: absolute; top: 14px; right: 14px; }

/* ───────── Кабинет: страницы ───────── */
.page { width: var(--wrap); margin: 0 auto; padding: 16px 0; }
.page-narrow { display: flex; flex-direction: column; gap: 12px; padding-top: 40px; padding-bottom: 64px; }
.page-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.page-head h1 { font-size: 34px; line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; }
.page-head p { color: var(--fg-2); font-size: 14px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-card); background: var(--muted); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head p { margin-top: 4px; color: var(--fg-3); font-size: 14px; }
.card-title { font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; }

.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; }
.rows > .row + .row, .rows > .row + .row-details, .rows > .row-details + .row { border-top: 1px solid var(--border); }
label.row { cursor: pointer; }
.row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.row-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.row-label { flex: 1; font-size: 13px; }
.row-text small { color: var(--fg-3); font-size: 12px; line-height: 17px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.val { color: var(--fg-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.row-details summary { list-style: none; cursor: pointer; }
.row-details summary::-webkit-details-marker { display: none; }
.chev { width: 16px; height: 16px; color: var(--fg-3); transition: transform 150ms var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }

/* ───────── Карта: оформление сверху, предпросмотр под ним ───────── */
.page-map { display: flex; flex-direction: column; gap: 12px; padding-bottom: 48px; }
/* середина страницы: предпросмотр слева, оформление справа — одной высоты, панель листается внутри */
.map-work { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; height: clamp(520px, 78vh, 860px); }
.stage-wrap { display: flex; height: 100%; min-width: 0; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--muted); }
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px 0; }
.stage-hint { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--fg-3); font-size: 12px; }
.stage-hint svg { width: 14px; height: 14px; }
.stage { position: relative; display: grid; flex: 1; min-height: 0; place-items: center; padding: 16px 16px 76px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 28px); }
.screen { position: relative; overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px var(--hairline-2), 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.screen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.screen-grab { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.screen-grab.dragging { cursor: grabbing; }
.camera-bar { position: absolute; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--nav); box-shadow: var(--shadow-nav); transform: translateX(-50%); }
.zoom-val { min-width: 52px; font-size: 13px; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; }
.camera-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--border); }

.design { display: flex; min-height: 0; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--muted); }
.design-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 12px; padding: 22px 16px 0 22px; }
.design-head h1 { order: 0; font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.save-state { order: 1; margin: 0 6px 0 auto; color: var(--fg-3); font-size: 12px; white-space: nowrap; }
.save-state.err { color: var(--danger); }
.line-tabs { order: 2; display: flex; width: 100%; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--field); box-shadow: inset 0 0 0 1px var(--hairline); overflow-x: auto; scrollbar-width: none; }
.line-tabs button { flex: 1; height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-pill); background: none; color: var(--fg-3); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.line-tabs button:hover { color: var(--fg); }
.line-tabs button.on { background: var(--nav); color: var(--fg); box-shadow: 0 0 0 1px var(--hairline-2); }
.design-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; scrollbar-width: thin; scrollbar-color: #2e2e2b transparent; }
/* параметры — горизонтально: каждая группа — колонка-плитка, колонки переносятся по ширине */
.design-body section { display: flex; flex-direction: column; gap: 10px; }
.design-body section > .note { padding: 0 4px; }
.group { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 6px; border-radius: var(--r-tile); background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); }
.group > .seg, .group > .note { margin-bottom: 8px; }
.group-title { display: flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.count { color: var(--fg-3); letter-spacing: 0; }
.note { color: var(--fg-3); font-size: 12px; line-height: 17px; }

.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.preset { display: flex; flex-direction: column; gap: 8px; padding: 6px; border: 0; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); text-align: left; transition: box-shadow 150ms var(--ease); }
.preset:hover { box-shadow: inset 0 0 0 1px var(--hairline-2); }
.preset.on { box-shadow: inset 0 0 0 2px var(--accent); }
.preset-thumb { position: relative; display: grid; grid-template-columns: repeat(3, 14px); gap: 5px; place-content: center; height: 84px; border-radius: 14px; }
.preset-thumb::before { content: ''; position: absolute; inset: 14px 20px; border: 2px solid var(--wall); border-radius: 3px; }
.preset-thumb i { position: relative; width: 14px; height: 14px; border-radius: 4px; }
.preset-thumb i.free { background: transparent !important; box-shadow: inset 0 0 0 2px var(--c); }
.preset-name { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 4px; color: var(--fg-2); font-size: 13px; font-weight: 500; }
.preset.on .preset-name { color: var(--fg); }
.preset-name svg { width: 16px; height: 16px; color: var(--accent-ink); opacity: 0; }
.preset.on .preset-name svg { opacity: 1; }

.drop { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; padding: 8px; border-radius: 14px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hairline); }
.drop-thumb { width: 64px; height: 40px; flex: none; border-radius: 10px; background: var(--card) center/cover no-repeat; box-shadow: inset 0 0 0 1px var(--hairline); }
.drop-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.drop-text b { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.drop-text small { color: var(--fg-3); font-size: 11px; line-height: 14px; }
.drop-actions { display: flex; align-items: center; gap: 2px; }

/* ───────── Экран ───────── */
.link-card { gap: 0; padding: 0; overflow: hidden; }
.link-main { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.link-row { display: flex; gap: 8px; }
.link-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 8px 8px; padding: 8px 8px 8px 16px; border-radius: 20px; background: var(--card); color: var(--fg-3); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-card); background: var(--muted); }
.stat-label { color: var(--fg-2); font-size: 13px; }
.stat-value { margin-top: 12px; font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat:nth-child(4) .stat-value { font-size: 32px; line-height: 48px; }
.stat-sub { overflow: hidden; color: var(--fg-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.howto li { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-tile); background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); counter-increment: step; }
.howto li::before { content: '0' counter(step); margin-bottom: 8px; color: var(--accent-ink); font: 500 13px 'Medeo Mono', monospace; }
.howto b { font-size: 14px; font-weight: 500; }
.howto span { color: var(--fg-3); font-size: 13px; line-height: 18px; }

/* ───────── Настройки ───────── */
.help { border-top: 1px solid var(--border); padding-top: 2px; }
.help summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--fg-2); font-size: 14px; list-style: none; cursor: pointer; }
.help summary::-webkit-details-marker { display: none; }
.help summary:hover { color: var(--fg); }
.steps { margin: 2px 0 8px; padding-left: 20px; display: grid; gap: 8px; color: var(--fg-3); font-size: 13px; line-height: 19px; }
.steps b { color: var(--fg); font-weight: 500; }

/* ───────── Подписка ───────── */
.plan-card { position: relative; display: flex; flex-direction: column; gap: 20px; overflow: hidden; padding: 28px; border-radius: var(--r-card); background: var(--muted); box-shadow: inset 0 0 0 1px rgba(0, 137, 255, 0.25); }
.plan-card::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 320px; background: radial-gradient(closest-side, rgba(0, 137, 255, 0.22), transparent); pointer-events: none; }
.plan-card .btn { align-self: flex-start; }
.plan-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-top h2 { margin-top: 6px; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.plan-price { text-align: right; font-size: 32px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price small { display: block; color: var(--fg-3); font-size: 12px; letter-spacing: 0; }
.plan-features { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plan-features li { display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.plan-features svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* ───────── Тост и окна ───────── */
.toaster { position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 10px 16px 10px 12px; border-radius: var(--r-pill); background: var(--nav); color: var(--fg); box-shadow: var(--shadow-pop); font-size: 14px; pointer-events: auto; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
@starting-style { .toast { opacity: 0; transform: translateY(8px); } }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast svg { width: 18px; height: 18px; }
.toast-success svg { color: var(--success); }
.toast-error svg { color: var(--danger); }
.toast-info svg { color: var(--accent-ink); }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 4, 0.72); transition: opacity 200ms var(--ease); }
.modal-window { position: relative; display: flex; width: 100%; max-width: 440px; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-card); background: var(--muted); box-shadow: var(--shadow-pop); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
@starting-style { .modal-backdrop { opacity: 0; } .modal-window { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-window h2 { font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
.modal-text { color: var(--fg-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ───────── Движение (Arclight): наведение, появление при прокрутке ───────── */
.pre { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.pre.in { opacity: 1; transform: none; filter: none; transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out), filter 800ms var(--ease-out); }
.hero > * { animation: appear 900ms var(--ease-out) both; }
.hero > :nth-child(2) { animation-delay: 80ms; } .hero > :nth-child(3) { animation-delay: 160ms; }
.hero > :nth-child(4) { animation-delay: 240ms; } .hero > :nth-child(5) { animation-delay: 320ms; }
@keyframes appear { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.btn-white:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px -8px rgba(255, 255, 255, 0.35); }
.feature, .plan, .club-card, .stat, .howto li, .preset { transition: transform 400ms var(--ease-out), box-shadow 300ms var(--ease), background-color 300ms var(--ease); }
.feature:hover, .club-card:hover, .stat:hover { transform: translateY(-3px); }
.feature .tile { transition: transform 500ms var(--ease-out); }
.feature:hover .tile { transform: scale(1.04) translateY(-4px); }
.pill-badge { transition: background-color 200ms var(--ease); }
.pill-badge:hover { background: var(--nav); }
.pill-badge svg { transition: translate 200ms var(--ease-out); }
.pill-badge:hover svg { translate: 3px 0; }

/* ───────── Инструменты: выпадающий список в шапке ───────── */
.dd { position: relative; }
.dd-btn { gap: 6px; cursor: pointer; }
.dd-chev { width: 14px; height: 14px; opacity: 0.7; transition: transform 250ms var(--ease-out); }
.dd-btn[aria-expanded=true] .dd-chev { transform: rotate(180deg); }
/* невидимый мостик над списком: курсор проходит зазор между кнопкой и списком, не закрывая его */
.dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd-menu { left: 50%; right: auto; top: calc(100% + 14px); min-width: 330px; padding: 6px; transform: translateX(-50%); transform-origin: 50% 0; animation: ddIn 220ms var(--ease-out); }
@keyframes ddIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.98); } }
.dd-menu a { height: auto; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; }
.dd-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--fill); color: var(--fg); }
.dd-ic svg { width: 18px; height: 18px; }
.dd-menu a:first-child .dd-ic { background: var(--accent-soft); color: var(--accent-ink); }
.dd-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.dd-text b { color: var(--fg); font-size: 13.5px; font-weight: 500; }
.dd-text small { color: var(--fg-3); font-size: 12px; line-height: 16px; }
.dd-menu em { padding: 3px 8px; border-radius: var(--r-pill); background: var(--fill); color: var(--fg-3); font-size: 11px; font-style: normal; }

/* app.xshell.ru без входа: окно входа — вся страница */
.auth-only #auth-modal .modal-backdrop { background: var(--bg); }
.auth-only #auth-modal .modal-x { display: none; }

/* подсказка о подключении SmartShell на «Карте для телевизора» */
.ss-hint { display: flex; align-items: center; gap: 20px; padding: 22px 22px 22px 24px; border-radius: var(--r-card); background: linear-gradient(120deg, rgba(0, 137, 255, 0.14), rgba(0, 137, 255, 0.03) 55%), var(--muted); box-shadow: inset 0 0 0 1px rgba(0, 137, 255, 0.3); }
.ss-hint-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; align-self: flex-start; border-radius: 15px; background: var(--accent); color: #fff; }
.ss-hint-ic svg { width: 22px; height: 22px; }
.ss-hint-body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 6px; }
.ss-hint h2 { font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; }
.ss-hint p { color: var(--fg-2); font-size: 13.5px; }
.ss-hint-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: h; }
.ss-hint-steps li { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 13px; counter-increment: h; }
.ss-hint-steps li::before { content: counter(h); display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--fill-2); color: var(--fg); font-size: 11px; font-weight: 600; }
.ss-hint-steps b { color: var(--fg); font-weight: 500; }
.ss-hint .btn { flex: none; }
@media (max-width: 760px) { .ss-hint { flex-direction: column; align-items: flex-start; } }

/* страница инструмента в разработке */
.soon { display: flex; min-height: 60vh; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 48px 24px; border-radius: var(--r-card); background: var(--muted); text-align: center; }
.soon-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-ink); }
.soon-ic svg { width: 28px; height: 28px; }
.soon h1 { font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -0.035em; }
.soon p { max-width: 480px; color: var(--fg-2); font-size: 14.5px; line-height: 1.55; }
.soon .soon-plan { color: var(--fg-3); font-size: 13px; }
.soon .btn { margin-top: 10px; }
.tools-back { align-self: flex-start; }
.page-head .eyebrow { margin-bottom: 2px; }

/* ───────── Тарифы ───────── */
.period { display: inline-flex; gap: 2px; margin: 28px auto 0; padding: 4px; border-radius: var(--r-pill); background: var(--muted); box-shadow: inset 0 0 0 1px var(--hairline); }
.period button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: none; color: var(--fg-3); font-size: 13px; font-weight: 500; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.period button:hover { color: var(--fg); }
.period button.on { background: var(--nav); color: var(--fg); box-shadow: 0 0 0 1px var(--hairline-2); }
.save { padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 26px 24px 28px; border-radius: var(--r-card); background: var(--muted); isolation: isolate; }
.plan:hover { transform: translateY(-4px); }
.plan-hot { background: linear-gradient(#1b1b19, #141413); box-shadow: inset 0 0 0 1px rgba(0, 137, 255, 0.4), 0 0 0 1px rgba(0, 137, 255, 0.15), 0 30px 90px -30px rgba(0, 137, 255, 0.55); }
.plan-current { box-shadow: inset 0 0 0 1px var(--success); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.plan-head h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.plan-tag { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--r-pill); background: var(--fill); font-size: 12px; font-weight: 500; }
.plan-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.plan-tagline { min-height: 40px; margin-top: 10px; color: var(--fg-3); font-size: 13.5px; }
.plan-price { display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 26px 0 24px; }
.price-val { font-size: 52px; line-height: 1; font-weight: 500; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.price-soon { font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.price-note { color: var(--fg-3); font-size: 12.5px; line-height: 1.45; }
.plan-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: 13.5px; }
.plan-list svg { width: 15px; height: 15px; color: var(--accent-ink); }
.plan-list em { margin-left: auto; padding: 3px 8px; border-radius: var(--r-pill); background: var(--fill); color: var(--fg-3); font-size: 11px; font-style: normal; white-space: nowrap; }
/* свечение снизу у популярного тарифа — как у Arclight, в синем бренда, медленно «дышит» */
.plan-glow { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 45%; background: radial-gradient(60% 34% at 50% 104%, #f2f8ff 0%, #7cc2ff 22%, transparent 70%), linear-gradient(to top, rgba(0, 120, 240, 0.85) 0%, rgba(0, 95, 200, 0.45) 28%, rgba(0, 80, 170, 0.12) 60%, transparent 100%); opacity: 0.85; animation: breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { opacity: 1; transform: scaleY(1.08); } }
.plan-glow { transform-origin: 50% 100%; }
.plans-note { margin-top: 22px; color: var(--fg-3); font-size: 12.5px; }
.page-billing .period { align-self: flex-start; margin: 8px 0 0; }

/* ───────── Выбор клуба ───────── */
.page-wide { display: flex; flex-direction: column; gap: 12px; padding-top: 40px; padding-bottom: 64px; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.club-card { display: flex; min-height: 200px; flex-direction: column; gap: 6px; padding: 20px; border: 0; border-radius: var(--r-card); background: var(--muted); color: var(--fg); text-align: left; }
.club-card:hover { background: #191918; }
.club-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.club-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); font-size: 16px; font-weight: 600; }
.club-card b { margin-top: 18px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.club-card-meta { color: var(--fg-3); font-size: 12.5px; line-height: 1.45; }
.club-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--fg-2); font-size: 13px; }
.club-card-go svg { width: 14px; height: 14px; transition: translate 250ms var(--ease-out); }
.club-card:hover .club-card-go svg { translate: 3px 0; }
.club-add { align-items: flex-start; background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.club-add:hover { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(0, 137, 255, 0.5); }
.club-add .btn { margin-top: auto; }
.club-add-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--fill); }
.club-add-icon svg { width: 18px; height: 18px; }
.club-add.is-full .club-add-icon { opacity: 0.5; }
.club-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 200px; height: 34px; padding: 0 10px 0 12px; border-radius: var(--r-pill); background: var(--fill); color: var(--fg); font-size: 13px; font-weight: 500; }
.club-switch:hover { background: var(--fill-2); }
.club-switch span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-switch svg { width: 14px; height: 14px; color: var(--fg-3); }
.club-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #6d6c68; }
.club-dot.ok { background: var(--success); }
.club-dot.err { background: var(--danger); }
.club-switch[data-tip]::after { bottom: auto; top: calc(100% + 8px); }

/* ───────── Адаптив ───────── */
@media (max-width: 1180px) {
  #live-chip { display: none; }
  .landing .nav-list { margin-left: 16px; }
  .map-work { grid-template-columns: minmax(0, 1fr) 330px; }
  .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .feature-grid, .plans { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .map-work { grid-template-columns: 1fr; height: auto; }
  .stage-wrap { height: auto; }
  .stage { min-height: calc(56vw + 92px); }
  .stage-bar { flex-wrap: wrap; }
  .design { max-height: 80vh; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .banner { margin: 12px 16px 0; border-radius: 20px; }
}
@media (max-width: 760px) {
  .site-header { padding-top: 12px; }
  .landing .nav-list, .nav-signin { display: none; }
  .nav-actions { margin-left: auto; }
  .app { padding-top: 124px; }
  .app-header .nav-bar { height: auto; flex-wrap: wrap; row-gap: 4px; padding: 6px 6px 6px 14px; }
  .app-header .nav-list { order: 3; width: 100%; margin: 0 0 2px; justify-content: space-between; }
  .app-header .nav-item { padding: 0 10px; font-size: 13px; }
  .chip-plan { display: none; }
  .club-switch { max-width: 140px; }
  .hero { padding-top: 110px; }
  .showcase { padding: 8px; border-radius: 24px; }
  .showcase-frame { border-radius: 18px; }
  :root { --gutter: 12px; }
  .page-narrow { padding-top: 24px; }
  .page-head h1 { font-size: 30px; }
  .stage-hint { display: none; }
  .link-row { flex-wrap: wrap; }
  .link-row .input { flex-basis: 100%; }
  .link-foot { flex-direction: column; align-items: flex-start; }
  .howto { grid-template-columns: 1fr; }
  .row:not(.col) { flex-wrap: wrap; }
  .input-w { width: 100%; }
  .stat-value { font-size: 36px; }
  .btn, .icon-btn { min-height: 44px; }
  .icon-btn { min-width: 44px; }
  .site-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ───────── Админка (x.xshell.ru) и pad.xshell.ru ───────── */
.admin, .pad-page { padding-top: 92px; }
.pad-page { padding-top: 40px; }
.admin-page { padding-top: 40px; }
.admin-tag { margin-left: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 500; }
.admin-login { width: min(100%, 420px); margin: 40px auto 0; }
.admin-search { width: 260px; height: 38px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 10px 12px; color: var(--fg-3); font-weight: 500; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.admin-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.admin-table small { color: var(--fg-3); }
.admin-grant { display: flex; align-items: center; gap: 6px; }
.admin-grant .select { width: 120px; }
.admin-grant .select select { height: 32px; font-size: 12.5px; }
.admin-grant .input { width: 76px; height: 32px; padding: 0 10px; }
