/* Сайт магазина iPhone. Три темы на выбор (черновик): graphite, light, lime — html[data-theme]. */

/* ---------- темы ---------- */
:root, [data-theme="graphite"] {
  --bg: #0c0d0f; --bg2: #131417; --card: #16181b; --line: #272a2f; --chip: #1d1f23;
  --ink: #f2f1ed; --soft: #9d9b94; --faint: #5f5e5a;
  --accent: #ff7a3d; --accent-ink: #160b04; --accent-text: #ff8a52;
  --hero-bg: #0c0d0f; --hero-ink: #f2f1ed; --hero-soft: #9d9b94; --hero-accent: #ff8a52; --hero-line: #272a2f;
  --glow: rgba(255, 122, 61, .22); --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --display: "Geist", system-ui, sans-serif; --d-weight: 600; --d-track: -.035em; --d-case: none; --d-vs: normal; --d-lh: .98;
  --radius: 22px; --r-sm: 12px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --motion-fast: 140ms;
  --motion-ui: 220ms;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f4f0; --bg2: #ebeae4; --card: #ffffff; --line: #e1dfd7; --chip: #f1f0eb;
  --ink: #131313; --soft: #66645d; --faint: #a3a198;
  --accent: #2353ff; --accent-ink: #ffffff; --accent-text: #2353ff;
  --hero-bg: #f5f4f0; --hero-ink: #131313; --hero-soft: #66645d; --hero-accent: #2353ff; --hero-line: #e1dfd7;
  --glow: rgba(35, 83, 255, .14); --shadow: 0 30px 60px -34px rgba(20, 20, 40, .35);
  --display: "Geist", system-ui, sans-serif; --d-weight: 500; --d-track: -.04em; --d-case: none; --d-vs: normal; --d-lh: 1;
  --radius: 26px; --r-sm: 14px;
  color-scheme: light;
}
[data-theme="lime"] {
  --bg: #f1f2eb; --bg2: #e5e7da; --card: #ffffff; --line: #d6d9c9; --chip: #ebede1;
  --ink: #10130c; --soft: #585c4d; --faint: #9a9e8c;
  --accent: #c8f04a; --accent-ink: #10130c; --accent-text: #4a6600;
  --hero-bg: #10130c; --hero-ink: #f1f2eb; --hero-soft: #a5a996; --hero-accent: #c8f04a; --hero-line: #2a2f22;
  --glow: rgba(200, 240, 74, .20); --shadow: 0 30px 60px -34px rgba(16, 19, 12, .45);
  --display: "Roboto Flex", "Arial Narrow", sans-serif; --d-weight: 800; --d-track: -.01em; --d-case: uppercase;
  --d-vs: "wdth" 40, "opsz" 72; --d-lh: .9;
  --radius: 8px; --r-sm: 6px;
  color-scheme: light;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  --header-height: calc(65px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 11px);
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
/* Keep page content inside Telegram's unclipped iOS web view. */
html.embedded-scroll, .embedded-scroll body { height: 100%; overflow: hidden; }
.embedded-scroll #page-scroll {
  position: fixed;
  inset: 0;
  overflow: hidden auto;
  overscroll-behavior-y: none;
  scroll-padding-top: calc(var(--header-height) + 11px);
}
.embedded-scroll:has(dialog:modal) #page-scroll { overflow-y: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
[data-theme="lime"] :focus-visible { outline-color: #4a6600; }

.wrap {
  --gutter: 16px;
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) { .wrap { --gutter: 32px; } }
@media (min-width: 1240px) { .wrap { --gutter: 48px; } }

.display {
  font-family: var(--display); font-weight: var(--d-weight); letter-spacing: var(--d-track);
  text-transform: var(--d-case); font-variation-settings: var(--d-vs); line-height: var(--d-lh);
}
.kicker { font: 500 12px/1.2 "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast), border-color var(--motion-fast);
}
[data-theme="lime"] .btn { border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--soft); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color var(--motion-ui);
}
@media (min-width: 701px) {
  html:has(.duo.is-in-view) .top { background: #15111c; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 700px) {
  html:has(.duo.is-animated) .top { background: #15111c; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.logo-mark {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: #2b1834;
}
.brand-mark { display: block; height: auto; object-fit: contain; }
.logo-mark .brand-mark { width: 72%; }
[data-theme="lime"] .logo-mark { border-radius: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--soft); font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.top-phone { text-decoration: none; font: 500 14px/1 "Geist Mono", ui-monospace, monospace; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; }
@media (max-width: 960px) {
  .top-phone { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    display: none;
  }
  .nav.open { display: flex; animation: menu-show 180ms var(--ease-out) both; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav a:last-child { border-bottom: 0; }
}
@keyframes menu-show {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--soft); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .ctas .btn { flex: 1 1 100%; } }

/* ---------- рисунок телефона ---------- */
.phone { overflow: visible; }
.ph-s0 { stop-color: color-mix(in oklab, var(--c) 80%, white); }
.ph-s1 { stop-color: var(--c); }
.ph-s2 { stop-color: color-mix(in oklab, var(--c) 78%, black); }
.ph-edge { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1; }
.ph-body { stroke: rgba(0,0,0,.14); stroke-width: 1; }
.ph-btn { fill: color-mix(in oklab, var(--c) 70%, black); }
.ph-mod { fill: color-mix(in oklab, var(--c) 86%, black); stroke: rgba(255,255,255,.22); stroke-width: .8; }
.ph-lens { fill: #121316; stroke: color-mix(in oklab, var(--c) 60%, #888); stroke-width: 1.6; }
.ph-glass { fill: #1f2a3a; }
.ph-glint { fill: rgba(255,255,255,.55); }
.ph-flash { fill: #f4ecd8; opacity: .85; }
.phone .ph-s0, .phone .ph-s1, .phone .ph-s2, .phone .ph-mod, .phone .ph-btn { transition: stop-color .35s ease, fill .35s ease; }

/* ---------- разделы ---------- */
.sec { padding: 104px 0; }
.sec-alt { background: var(--bg2); }
@media (max-width: 760px) { .sec { padding: 72px 0; } }
.sec-head { margin-bottom: 40px; max-width: 760px; }
.sec-head h2 { font-size: clamp(36px, 5vw, 64px); }
[data-theme="lime"] .sec-head h2 { font-size: clamp(44px, 6.4vw, 88px); }
.sec-lead { margin-top: 16px; color: var(--soft); font-size: 17px; max-width: 36em; }

/* ---------- каталог ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 15px; color: var(--soft);
}
[data-theme="lime"] .filter { border-radius: var(--r-sm); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-n { font: 500 12px/1 "Geist Mono", ui-monospace, monospace; opacity: .6; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card[hidden] { display: none; }
.card-art {
  position: relative; height: 236px; display: grid; place-items: center;
  background: radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--accent) 10%, var(--bg2)), var(--bg2));
}
.card-ph { height: 196px; width: auto; filter: drop-shadow(0 18px 18px rgba(0,0,0,.28)); transition: transform .5s cubic-bezier(.2,.7,.1,1); }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .card:hover .card-ph { transform: rotate(-4deg) translateY(-4px); }
}
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; flex: 1; }
.badge { align-self: flex-start; font: 500 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); }
.badge-new { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 40%, transparent); }
.card-h { font: 600 21px/1.15 var(--display); letter-spacing: -.02em; font-variation-settings: var(--d-vs); }
[data-theme="lime"] .card-h { text-transform: uppercase; font-size: 24px; letter-spacing: 0; }
.card-note { font-size: 13px; color: var(--soft); margin-top: -6px; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt-label { padding: 0; font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.opt-label b { color: var(--ink); font-weight: 500; }
.swatches, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.1); }
.swatch input, .chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s; }
.swatch:has(input:checked)::after { border-color: var(--ink); }
.swatch:has(input:focus-visible)::after { border-color: var(--accent-text); }
.chip { position: relative; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--chip); font-size: 14px; transition: border-color .2s, background-color .2s; }
[data-theme="lime"] .chip span { border-radius: 4px; }
.chip input:checked + span { border-color: var(--ink); background: transparent; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.price { font: 600 22px/1 var(--display); letter-spacing: -.02em; font-variation-settings: var(--d-vs); white-space: nowrap; }
.price.flash { animation: flash .45s ease; }
@keyframes flash { 0% { opacity: .35; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }

/* ---------- трейд-ин ---------- */
.ti-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ti, .ti-result { display: grid; gap: 24px; padding: clamp(18px, 3.2vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); }
.ti { background: var(--card); }
.ti-field { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 550; }
.ti-field[hidden] { display: none; }
.ti-field select { width: 100%; min-width: 0; font-weight: 400; }
.ti-field select:invalid { color: var(--soft); }
#ti-options:not([hidden]) { display: grid; gap: 26px; }
.ti-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.ti-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.ti-group legend { padding: 0; margin-bottom: 14px; font: 650 20px/1.2 var(--display); letter-spacing: -.025em; }
.ti-help { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.ti-help a { color: var(--accent-text); text-underline-offset: .22em; }
select {
  appearance: none; min-height: 52px; padding: 0 44px 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-size: 16px; cursor: pointer;
}
.ti-result {
  position: sticky; top: 90px; gap: 17px;
  background: linear-gradient(128deg, color-mix(in srgb, var(--accent) 15%, var(--card)), var(--card) 88%);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.ti-estimate { display: grid; gap: 8px; }
.ti-estimate h3 { font-size: 14px; font-weight: 550; color: var(--soft); }
.ti-out { font: 650 clamp(25px, 3.7vw, 44px)/1.13 var(--display); letter-spacing: -.035em; font-variation-settings: var(--d-vs); }
.ti-out:not([data-priced]) { font-size: clamp(22px, 2.7vw, 32px); }
.ti-device { font-size: 17px; font-weight: 650; }
.ti-details { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ti-details:empty { display: none; }
.ti-details li { padding: 3px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 12px; }
.ti-small { font-size: 13px; color: var(--soft); }
.ti-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-result .btn:disabled { opacity: .46; cursor: default; }
@media (max-width: 900px) {
  .ti-grid { grid-template-columns: minmax(0, 1fr); }
  .ti-result { position: static; }
}
@media (max-width: 520px) {
  .ti-fields { grid-template-columns: minmax(0, 1fr); }
  .ti-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 760px), (pointer: coarse), (max-width: 960px) and (max-height: 520px) {
  html {
    overflow-x: clip;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
  }
  html:has(dialog:modal) { overflow-y: hidden; }
  dialog { overscroll-behavior: contain; }
  :is(a, button, label) { touch-action: manipulation; }
}
@media (prefers-reduced-motion: no-preference) {
  #ti-options:not([hidden]) { animation: ti-appear var(--motion-ui) var(--ease-out); }
  @keyframes ti-appear { from { opacity: 0; transform: translateY(5px); } }
}

/* ---------- почему, шаги ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tile-ic { width: 32px; height: 32px; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.tile-h, .step-h { font: 600 19px/1.2 var(--display); letter-spacing: -.015em; font-variation-settings: var(--d-vs); margin-bottom: 8px; }
[data-theme="lime"] .tile-h, [data-theme="lime"] .step-h { text-transform: uppercase; font-size: 21px; letter-spacing: 0; }
.tile p, .step p { color: var(--soft); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.step:last-child { border-right: 0; margin-right: 0; }
@media (max-width: 1000px) { .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; } }
.step-n { display: block; font: 500 13px/1 "Geist Mono", ui-monospace, monospace; color: var(--accent-text); margin-bottom: 36px; }

[data-theme="lime"] .badge { border-radius: 4px; }

/* ---------- вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 26px/1 "Geist", sans-serif; color: var(--soft); transition: transform .25s ease; flex: none; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 22px; color: var(--soft); max-width: 40em; }

/* ---------- контакты ---------- */
.contacts { padding-top: 104px; }
.ct-card { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center;
  gap: clamp(24px, 3.5vw, 48px); padding: clamp(24px, 3.5vw, 48px); border-radius: calc(var(--radius) + 8px);
  background: var(--hero-bg); color: var(--hero-ink); border: 1px solid var(--hero-line); position: relative; overflow: hidden; }
.ct-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
[data-theme="light"] .ct-card { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="light"] .ct-card .lead, [data-theme="light"] .ct-info dt { color: #a7a59e; }
[data-theme="light"] .ct-card .btn-accent { background: #fff; color: #131313; }
.ct-card h2 { font-size: clamp(36px, 5vw, 64px); }
.ct-copy { position: relative; min-width: 0; }
.ct-card .lead { color: var(--hero-soft); margin-top: 16px; }
.ct-card .btn-ghost { border-color: color-mix(in srgb, currentColor 25%, transparent); }
.ct-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 28px; }
.ct-info-place { grid-column: 1 / -1; }
.ct-info dt { font: 500 12px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-soft); margin-bottom: 8px; }
.ct-info dd { font-size: 15px; }
.ct-info .ct-address { font-size: clamp(19px, 2.3vw, 25px); line-height: 1.3; font-weight: 600; }
.ct-info a { text-decoration: none; }
.ct-map { position: relative; min-width: 0; margin: 0; isolation: isolate;
  border: 1px solid #554464; border-radius: var(--radius); background: #1e192a; color: #f7efff; }
.ct-map:target { outline: 2px solid #c2a5ff; outline-offset: 3px; }
.ct-map-view { position: relative; height: clamp(335px, 34vw, 434px); overflow: hidden; border-radius: inherit; }
.ct-map-image { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--map-zoom, 1));
  transition: transform 280ms var(--ease-out); }
.ct-map-view[data-zoom="1"] { --map-zoom: 1.28; }
.ct-map-view[data-zoom="2"] { --map-zoom: 1.65; }
.ct-map-north { position: absolute; top: 14px; left: 16px; display: grid; justify-items: center;
  gap: 4px; color: #dfd1f1; font-size: 11px; font-weight: 650; }
.ct-map-north::before { content: ""; width: 12px; height: 16px; background: #dfd1f1;
  clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%); }
.ct-map-location { position: absolute; inset: 50% auto auto 50%; display: grid; justify-items: center;
  gap: 7px; transform: translate(-50%, -100%); color: #fbf8ff; }
.ct-map-label { display: grid; gap: 2px; min-width: max-content; padding: 8px 13px;
  border: 1px solid #9077aa; border-radius: 12px; background: #21192e; text-align: center;
  box-shadow: 0 6px 24px #10071e9e; line-height: 1.28; }
.ct-map-label strong { font-size: 15px; font-weight: 680; }
.ct-map-label span { font-size: 12px; color: #d3c3e6; }
.ct-map-pin { position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  margin-bottom: 6px; border-radius: 50%; background: #d9baff; color: #28123f;
  box-shadow: 0 0 0 4px #b58bed36, 0 4px 14px #150822bf; }
.ct-map-pin::after { content: ""; position: absolute; top: calc(100% - 3px); left: calc(50% - 6px);
  width: 12px; height: 9px; background: #d9baff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ct-map-pin svg { width: 21px; height: 21px; }
.ct-map-controls { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 1px;
  border: 1px solid #675575; border-radius: 12px; background: #675575; box-shadow: 0 5px 16px #160d1e80; }
.ct-map-controls[hidden] { display: none; }
.ct-map-controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 11px 11px 0 0; background: #261e35; font-size: 23px; cursor: pointer; }
.ct-map-controls button + button { border-radius: 0 0 11px 11px; }
.ct-map-controls button:hover:not(:disabled) { background: #433256; }
.ct-map-controls button:disabled { color: #ab9ab9; cursor: default; }
.ct-map-credit { position: absolute; bottom: 10px; left: 10px; padding: 2px 6px; border-radius: 4px;
  background: #20192d; color: #e0d4eb; font-size: 10px; text-underline-offset: 2px; }
@media (max-width: 900px) { .ct-card { grid-template-columns: 1fr; padding: 32px 20px; } }
@media (prefers-reduced-motion: reduce) { .ct-map-image { transition: none; } }

/* ---------- подвал ---------- */
.foot { padding: 40px 0 96px; color: var(--soft); font-size: 13px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- окно заказа ---------- */
.order { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(480px, calc(100vw - 32px)); width: 100%; }
.order::backdrop { background: #130820a6; }
.order[open] { animation: dialog-show var(--motion-ui) var(--ease-out) both; }
:is(.order, .shop-dialog)[open]::backdrop { animation: backdrop-show 160ms ease-out both; }
@keyframes dialog-show {
  from { opacity: 0; transform: translate3d(var(--dialog-x, 0px), var(--dialog-y, 8px), 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes backdrop-show { from { opacity: 0; } to { opacity: 1; } }
.order-box { position: relative; display: grid; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.order-x { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 26px; cursor: pointer; color: var(--soft); }
.order-h { font-size: 30px; padding-right: 36px; }
.order-sub { color: var(--soft); }
.order-msg-label { font-size: 13px; color: var(--soft); margin-top: 6px; }
.order-msg { padding: 14px; border-radius: var(--r-sm); background: var(--bg2); font: 14px/1.5 "Geist Mono", ui-monospace, monospace; }
.order-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.order-btns .btn { flex: 1 1 auto; }
.order-note { font-size: 13px; color: var(--soft); }

/* ---------- черновик ---------- */
.draft { position: fixed; left: 12px; bottom: 12px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 14px; background: #111; color: #eee; font-size: 12.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: calc(100vw - 24px); }
.draft-themes { display: inline-flex; gap: 4px; }
.draft button { border: 1px solid #333; background: #1b1b1b; color: #ddd; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.draft button[aria-pressed="true"] { background: #eee; color: #111; border-color: #eee; }

/* ---------- появление ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

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