/* KingStore Томск — визитка для NFC / QR.
   Стиль: dope.security (midnight terminal, violet beacons).
   Приоритет — телефон: страницу открывают сканом, в мобильной сети, в in-app браузере.
   Шрифты только системные: ноль внешних CDN. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --void: #090909;
  --paper: #f7f9fa;
  --soft: #f0f0f0;
  --steel: #9b9d9e;   /* было #828384 — поднял контраст для мелких подписей на телефоне */
  --ash: #7d7f80;
  --violet: #af50ff;
  --lav: #e1bdff;

  --line: rgba(247, 249, 250, .16);
  --line-2: rgba(247, 249, 250, .34);

  --r-card: 19.2px;
  --r-btn: 8px;
  --r-pill: 1584px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;

  --pad: 18px;
  --max: 1160px;
}
@media (min-width: 700px) { :root { --pad: 32px; } }
@media (min-width: 1000px) { :root { --pad: 40px; } }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--void);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(38, 37, 52, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 107, 107, .8);
}
.nav__in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand { display: flex; align-items: baseline; gap: 7px; font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.brand span { color: var(--steel); font-weight: 400; letter-spacing: .1em; font-size: 12px; }
.nav__btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-2); border-radius: var(--r-btn);
  padding: 9px 13px; font-size: 13px; white-space: nowrap;
  background: rgba(247, 249, 250, .05);
}
.nav__btn:active { background: rgba(247, 249, 250, .14); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 26px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: -45% -30% auto -30%; height: 150%;
  background:
    radial-gradient(52% 42% at 80% 0%, rgba(175, 80, 255, .32), transparent 68%),
    radial-gradient(46% 38% at 4% 10%, rgba(225, 189, 255, .10), transparent 72%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; gap: 26px; }
@media (min-width: 900px) {
  .hero { padding-top: 44px; }
  .hero__in { grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: start; }
}
.hero__main { min-width: 0; }

.stamp {
  margin: 0 0 16px; font-family: var(--mono); font-size: 12px; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase; color: #b3b5b6;
}
.stamp--lav { color: var(--lav); }

.h1 {
  margin: 0 0 14px; font-size: clamp(34px, 10.2vw, 84px); line-height: .93;
  letter-spacing: -.03em; font-weight: 300;
}
.h1 em {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.02em; letter-spacing: -.02em;
}
.h1 strong { display: block; font-weight: 300; }

.lead { margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: #c2c5c6; font-weight: 300; }
.hero__addr {
  margin: 0 0 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--steel);
}
@media (min-width: 900px) {
  .lead { font-size: 19px; max-width: 34ch; }
  .hero__addr { font-size: 13px; letter-spacing: .06em; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 20px; border-radius: var(--r-btn);
  border: 1px solid var(--line-2); background: transparent; color: var(--paper);
  font: inherit; font-size: 15px; line-height: 1.2; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
}
.btn:active { transform: scale(.985); background: rgba(247, 249, 250, .10); }
.btn--pill { border: 0; border-radius: var(--r-pill); padding: 18px 24px; background: rgba(225, 189, 255, .12); }
.btn--violet { border-color: transparent; background: var(--violet); color: #090909; font-weight: 500; }
.btn--ghost { border-color: var(--line); background: rgba(247, 249, 250, .05); }
.btn--wide { width: 100%; }
.btn__ico { width: 18px; height: 18px; flex: 0 0 18px; }
@media (min-width: 900px) { .btn { min-height: 52px; } }

.cta { display: grid; gap: 10px; }
.cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- boarding pass ---------- */
.pass {
  border: 1px solid var(--line-2); border-radius: var(--r-card);
  background: rgba(225, 189, 255, .06);
  padding: 20px; position: relative; overflow: hidden;
}
.pass__head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #adb0b1;
}
.pass__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 14px 3px rgba(175, 80, 255, .55); }
.pass__route { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pass__end { flex: 1 1 0; min-width: 0; }
.pass__end span { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #adb0b1; }
.pass__end b { font-size: 17px; font-weight: 400; letter-spacing: -.01em; }
.pass__arrow { color: var(--lav); font-size: 15px; }
.pass__note { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: #c2c5c6; text-wrap: pretty; }
.pass__note, .lead, .sec__note { hyphens: none; overflow-wrap: normal; }
.pass .cta__row, .pass .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.barcode {
  height: 44px; margin-top: 16px; border-radius: 3px; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 4px, var(--paper) 4px 5px, transparent 5px 9px, var(--paper) 9px 12px, transparent 12px 14px, var(--paper) 14px 15px, transparent 15px 20px);
}
.pass__meta { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8e9091; }

/* ---------- sections ---------- */
.sec { padding-top: 52px; }
.sec--first { padding-top: 34px; }
@media (min-width: 900px) { .sec { padding-top: 96px; } .sec--first { padding-top: 80px; } }

.sec__title {
  margin: 0 0 18px; font-family: var(--mono); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 8vw, 56px); line-height: .96; letter-spacing: .12em; color: var(--soft);
}
@media (min-width: 900px) { .sec__title { letter-spacing: .2em; margin-bottom: 26px; } }

.sec__note { margin: 0 0 20px; color: var(--steel); font-size: 14px; line-height: 1.5; max-width: 46ch; }

/* ---------- branch / review rows ---------- */
.branch { border-top: 1px solid var(--line); padding: 20px 0; }
.branch:last-of-type { border-bottom: 1px solid var(--line); }
.branch--active { background: linear-gradient(90deg, rgba(175, 80, 255, .12), transparent 72%); }
.branch__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.branch__name { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.branch__stars { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.branch__addr { margin: 0 0 4px; font-size: 20px; font-weight: 300; letter-spacing: -.01em; }
.branch__hours { margin: 0 0 14px; font-size: 13px; color: var(--steel); }
.branch__btns { display: grid; gap: 10px; }
@media (min-width: 560px) { .branch__btns { grid-template-columns: 1fr 1fr; } }

/* ---------- link rows ---------- */
.links { display: grid; }
.link { display: flex; align-items: center; gap: 13px; padding: 16px 2px; border-top: 1px solid var(--line); }
.link:last-child { border-bottom: 1px solid var(--line); }
.link:active { background: rgba(247, 249, 250, .05); }
.link__ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--paper);
}
.link__txt { flex: 1 1 auto; min-width: 0; }
.link__txt b { display: block; font-weight: 400; font-size: 16px; letter-spacing: -.01em; }
.link__txt span { display: block; font-size: 13px; color: var(--steel); }
.link__arr { color: var(--ash); font-size: 16px; }

/* ---------- bloom card: единственный акцент ---------- */
.bloom {
  border-radius: var(--r-card); padding: 24px; color: #090909;
  background: radial-gradient(120% 130% at 88% 4%, #d3a6ff 0%, var(--violet) 46%, #7f24d6 100%);
}
.bloom .stamp { color: rgba(9, 9, 9, .66); font-size: 10px; }
.bloom h3 { margin: 0 0 8px; font-size: clamp(23px, 6.4vw, 32px); line-height: 1.06; letter-spacing: -.02em; font-weight: 400; }
.bloom p { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: rgba(9, 9, 9, .8); }
.bloom .btn { border-color: transparent; background: #090909; color: var(--paper); min-height: 52px; }

/* ---------- promo page ---------- */
.promo-head { padding-top: 20px; }
@media (min-width: 900px) { .promo-head { padding-top: 40px; } }
.promo-meta { display: grid; gap: 10px; margin: 22px 0 6px; }
@media (min-width: 700px) { .promo-meta { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.meta-cell { border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.meta-cell span { display: block; margin-bottom: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.meta-cell b { font-weight: 400; font-size: 16px; letter-spacing: -.01em; }

.steps { margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--lav); padding-top: 3px; }
.step__t { margin: 0 0 4px; font-size: 17px; font-weight: 300; letter-spacing: -.01em; }
.step__d { margin: 0; font-size: 14px; color: var(--steel); }

.rules { margin: 0; padding: 0; list-style: none; }
.rules li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--line); font-size: 14px; color: #c2c5c6; line-height: 1.5; }
.rules li::before { content: "—"; position: absolute; left: 0; color: var(--ash); }
.legal { margin-top: 24px; font-size: 12px; line-height: 1.6; color: var(--ash); }
.legal b { color: var(--steel); font-weight: 400; }

.back { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 13px; color: var(--steel); }

/* ---------- promo list ---------- */
.plist { display: grid; gap: 12px; }
.pcard { display: block; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.pcard:active { background: rgba(247, 249, 250, .05); }
.pcard__tag { margin-bottom: 9px; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--lav); }
.pcard h3 { margin: 0 0 6px; font-size: 21px; font-weight: 300; letter-spacing: -.02em; }
.pcard p { margin: 0; font-size: 13px; color: var(--steel); }

/* ---------- липкая кнопка участия (только мобайл) ---------- */
body.has-sticky { padding-bottom: 92px; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(9, 9, 9, 0), rgba(9, 9, 9, .92) 40%);
}
.sticky-cta .btn { min-height: 54px; }
@media (min-width: 900px) { .sticky-cta { display: none; } body.has-sticky { padding-bottom: 0; } }

/* ---------- footer ---------- */
.foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 20px 0 34px; }
.foot__in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash);
}
.foot__l { display: flex; align-items: center; gap: 8px; }
.foot__plus { color: var(--paper); font-size: 13px; }
.foot__heart { color: var(--violet); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
