/* BandDesk site v2 (демо нового дизайна). Токены = бренд приложения: docs / src/brand/tokens.ts (dark). */
:root {
  --bg: #121210;
  --bg-2: #181816;
  --surface: #1c1c19;
  --surface-2: #232320;
  --ink: #f1eee4;
  --muted: #a8a598;          /* светлее бренд-muted #6b685e: читаемость абзацев */
  --line: #34332e;
  --accent: #c9f03a;
  --on-accent: #141414;
  --radius: 22px;
  --radius-sm: 14px;
  --bw: 3px;                 /* толщина обводки */
  --off: 6px;                /* жёсткая тень */
  --max: 1180px;
  --f-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-text: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* диагональные линии фона, как на картинках */
.bg-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-lines::before, .bg-lines::after { content: ""; position: absolute; width: 2px; height: 160%; background: var(--line); opacity: .7; transform-origin: top; }
.bg-lines::before { left: 12%; top: 40%; transform: rotate(38deg); }
.bg-lines::after { right: 14%; top: -20%; transform: rotate(-38deg); }

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 6vw, 80px); }
.hero h1 .plaque { white-space: nowrap; }
h2 { font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-size: 24px; }
.eyebrow { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .12em; font-size: 15px; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 60ch; }
.plaque { display: inline-block; background: var(--accent); color: var(--on-accent); padding: .02em .3em .02em .22em; clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%); margin-top: .06em; }
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 19px; }

/* ---------- кнопки, чипы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--surface); color: var(--ink); font: 700 17px/1 var(--f-text); text-decoration: none; cursor: pointer; box-shadow: var(--off) var(--off) 0 var(--accent); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--off) + 2px) calc(var(--off) + 2px) 0 var(--accent); }
.btn:active { transform: translate(var(--off), var(--off)); box-shadow: 0 0 0 var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--off) var(--off) 0 var(--ink); }
.btn-primary:hover { box-shadow: calc(var(--off) + 2px) calc(var(--off) + 2px) 0 var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; --off: 4px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.chip { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); font-weight: 600; font-size: 15px; box-shadow: 3px 3px 0 var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 18, 16, .88); backdrop-filter: blur(12px); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.is-current { color: var(--on-accent); background: var(--accent); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: var(--bw) solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 .plaque { display: block; width: fit-content; }
.hero .lead { margin: 26px 0 22px; }
.hero .chips { margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 15px; }
.hero-note strong { color: var(--ink); }
.hero-note a { color: var(--accent); font-weight: 700; }

/* телефон + переключатель экранов */
.demo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone-wrap { position: relative; width: min(330px, 78vw); padding: 0 0 0; }
.phone { position: relative; aspect-ratio: 860 / 1864; border-radius: 34px; border: 5px solid var(--ink); background: var(--surface); box-shadow: 14px 14px 0 var(--accent); overflow: hidden; rotate: 2deg; transition: rotate .4s; }
.phone:hover { rotate: 0deg; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.phone > .is-on { opacity: 1; }
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 460px; }
.demo-tabs button { padding: 8px 15px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--f-text); cursor: pointer; }
.demo-tabs button:hover { background: var(--surface-2); }
.demo-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.demo-hint { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.demo-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.badge-float { position: absolute; z-index: 2; padding: 10px 16px; border-radius: 14px; border: var(--bw) solid var(--ink); background: var(--accent); color: var(--on-accent); font-family: var(--f-display); text-transform: uppercase; font-weight: 700; font-size: 18px; box-shadow: 5px 5px 0 var(--ink); }
.badge-float.b1 { right: -36px; top: -18px; rotate: 5deg; }
.badge-float.b2 { right: -44px; bottom: 16%; rotate: 4deg; background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: 5px 5px 0 var(--accent); }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
.trust-item { padding: 20px 22px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); }
.trust-item b { display: block; font-size: 18px; }
.trust-item span { color: var(--muted); font-size: 15px; }

/* ---------- было / стало ---------- */
.sorter { border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--surface); box-shadow: 10px 10px 0 var(--accent); padding: clamp(22px, 4vw, 40px); }
.sorter-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.sorter-top h3 { font-size: clamp(22px, 3vw, 30px); }
.sorter-stage { position: relative; border-radius: var(--radius-sm); background: var(--bg); border: 2px dashed var(--line); overflow: hidden; }
.pile { position: relative; height: 400px; --world-h: 400px; transition: height .55s cubic-bezier(.3, 1, .4, 1); }
.tok { position: absolute; left: 0; top: 0; white-space: nowrap; padding: 10px 18px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); color: var(--muted); font-weight: 600; cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.tok.is-drag { cursor: grabbing; background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); z-index: 5; }
.sorter.is-sorted .tok { cursor: default; background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); transition: transform .7s cubic-bezier(.3, 1.3, .5, 1), background .4s, color .4s, border-color .4s, box-shadow .4s; }
.sorter-hint { margin: 0; padding: 10px 20px 0; color: var(--muted); font-size: 14px; }
.sorter.is-sorted .sorter-hint { display: none; }
.sorter-caption { margin: 22px 0 0; color: var(--muted); }
.sorter-caption b { color: var(--ink); }
.sorter-caption .on { display: none; }
.sorter.is-sorted .sorter-caption .on { display: inline; }
.sorter.is-sorted .sorter-caption .off { display: none; }
.ordered { margin: 0 20px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { padding: 16px 18px; border-radius: var(--radius-sm); border: 2px solid var(--ink); background: var(--surface); }
.mini small { color: var(--muted); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.mini b { font-size: 20px; display: block; margin-top: 4px; }
.mini.hot { background: var(--accent); color: var(--on-accent); }
.mini.hot small { color: #2c3410; }
.sorter:not(.is-sorted) .ordered { display: none; }

/* ---------- возможности ---------- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { position: relative; grid-column: span 2; padding: 26px; border-radius: var(--radius); border: var(--bw) solid var(--ink); background: var(--surface); box-shadow: var(--off) var(--off) 0 var(--accent); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: calc(var(--off) + 3px) calc(var(--off) + 3px) 0 var(--accent); }
.card.wide { grid-column: span 3; }
.card .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; border: var(--bw) solid var(--ink); margin-bottom: 18px; }
.card .ico svg { width: 28px; height: 28px; }
.card p { margin: 10px 0 0; color: var(--muted); }
.more { margin-top: 36px; }
.more h3 { margin-bottom: 18px; font-size: 20px; color: var(--muted); }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.more-item { padding: 20px 22px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); }
.more-item b { display: block; font-size: 18px; margin-bottom: 4px; }
.more-item span { color: var(--muted); font-size: 15px; }

/* ---------- день группы ---------- */
.day { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.day-board { border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--surface); padding: 26px; box-shadow: 10px 10px 0 var(--accent); }
.clock { font-family: var(--f-display); font-size: clamp(56px, 8vw, 88px); line-height: 1; font-weight: 700; display: flex; align-items: baseline; gap: 16px; }
.clock small { font-family: var(--f-text); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.range { width: 100%; margin: 26px 0 8px; accent-color: var(--accent); height: 28px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.day-list { display: grid; gap: 14px; }
.ev { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 18px 20px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); transition: .25s; opacity: .55; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.ev time { font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--muted); }
.ev h4 { margin: 0 0 4px; font-size: 19px; }
.ev p { margin: 0; color: var(--muted); font-size: 15px; }
.ev .tag { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.ev.is-past { opacity: 1; border-color: var(--ink); }
.ev.is-now { opacity: 1; border-color: var(--ink); background: var(--accent); color: var(--on-accent); box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.ev.is-now time, .ev.is-now p, .ev.is-now .tag { color: var(--on-accent); }

/* ---------- кому подойдёт ---------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who .card { grid-column: auto; }
.who .card:hover { transform: none; box-shadow: var(--off) var(--off) 0 var(--accent); }
.who .num { font-family: var(--f-display); font-size: 72px; line-height: 1; color: var(--accent); font-weight: 700; margin-bottom: 8px; }

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.plan { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: var(--bw) solid var(--ink); background: var(--surface); }
.plan.pro { background: var(--accent); color: var(--on-accent); box-shadow: 10px 10px 0 var(--ink); border-color: var(--ink); }
.plan .kicker { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; font-weight: 600; opacity: .75; }
.plan h3 { font-size: 36px; margin: 6px 0 10px; }
.plan .price { font-family: var(--f-display); font-size: 56px; font-weight: 700; line-height: 1; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; font-weight: 500; }
.plan li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); border: 2px solid var(--ink); }
.plan.pro li::before { background: var(--on-accent); border-color: var(--on-accent); }
.plan .fine { margin-top: 20px; font-size: 14px; opacity: .8; }
.calc-label { font-weight: 700; margin: 22px 0 10px; font-size: 15px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { padding: 10px 16px; border-radius: 12px; border: 2px solid var(--on-accent); background: transparent; color: var(--on-accent); font: 700 15px/1 var(--f-text); cursor: pointer; }
.seg button.is-active { background: var(--on-accent); color: var(--accent); }
.seg .save { font-size: 12px; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.seg button.is-active .save { background: var(--accent); }
.pro .price-line { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pro .price-line small { font-size: 16px; font-weight: 600; }
.pro .saving { margin: 6px 0 0; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 860px; }
.faq details { border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); transition: .2s; }
.faq details[open] { border-color: var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- финал, подвал ---------- */
.final { text-align: center; }
.final-box { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 84px) 24px; border-radius: 28px; border: var(--bw) solid var(--ink); background: var(--surface); box-shadow: 12px 12px 0 var(--accent); }
.final-box h2 { font-size: clamp(36px, 6vw, 72px); }
.final-box .actions { justify-content: center; margin-top: 34px; }
.site-footer { border-top: 2px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-grid img { height: 32px; width: auto; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- появление при прокрутке ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .rv { opacity: 1; transform: none; } }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .hero-grid, .day, .plans { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .card, .card.wide { grid-column: auto; }
  .who, .more-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; padding: 14px 20px 22px; background: var(--bg); border-bottom: 2px solid var(--line); }
  .nav.is-open { display: flex; }
  .menu-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .badge-float.b1 { right: -12px; } .badge-float.b2 { right: -12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .trust, .features, .ordered { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .ev { grid-template-columns: 64px 1fr; gap: 12px; }
}
