/* «Ровно в срок» UI — светлый «воздушный» стиль в духе ggsel: Geist, крупные скругления, мягкие поверхности */
/* Три темы: green (основная — розовая, ключ «green» оставлен ради сохранённых настроек), light, dark. Тема ставится в <html data-theme>. */
:root, :root[data-theme="green"] {
  --bg: #fcf0f4;
  --surface: #ffffff;
  --surface-2: #f9e4ec;
  --surface-3: #f2d3df;
  --text: #2a0f1a;
  --text-2: #6d4f5b;
  --text-3: #9d808b;
  --border: #f2dbe3;
  --ink: #e5568f;
  --ink-text: #ffffff;
  --panel: #2c0f1c;
  --panel-text: #ffffff;
  --brand: #e5568f;
  --brand-soft: #fde0eb;
  --brand-text: #c2306a;
  --warn: #f2a23a;
  --warn-soft: #fff3e0;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --info: #3b82f6;
  --info-soft: #e8f0fe;
  --header-bg: rgba(252, 240, 244, .82);
  --shadow-s: 0 1px 2px rgba(70, 15, 40, .05), 0 1px 3px rgba(70, 15, 40, .05);
  --shadow-m: 0 8px 24px rgba(70, 15, 40, .09);
  --shadow-l: 0 24px 60px rgba(70, 15, 40, .15);
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="light"] {
  --bg: #f3f4f7; --surface: #ffffff; --surface-2: #eef0f4; --surface-3: #e4e7ec;
  --text: #141414; --text-2: #5f6673; --text-3: #8b929e; --border: #e3e6eb;
  --ink: #141414; --ink-text: #ffffff; --panel: #141414; --panel-text: #ffffff;
  --brand-soft: #fde7ef; --brand-text: #c2306a; --header-bg: rgba(243, 244, 247, .82);
  --shadow-s: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-m: 0 8px 24px rgba(16, 24, 40, .08); --shadow-l: 0 24px 60px rgba(16, 24, 40, .14);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #100c0e; --surface: #1a1518; --surface-2: #241d21; --surface-3: #30272c;
  --text: #f7f2f4; --text-2: #b3a6ac; --text-3: #82737a; --border: #2d2529;
  --ink: #e5568f; --ink-text: #ffffff; --panel: #2a1a22; --panel-text: #f7f2f4;
  --brand-soft: #3d1527; --brand-text: #ff8ab8; --header-bg: rgba(16, 12, 14, .8);
  --warn-soft: #3a2a12; --danger-soft: #3a1618; --info-soft: #14243f;
  --shadow-s: none; --shadow-m: 0 8px 24px rgba(0,0,0,.45); --shadow-l: 0 24px 60px rgba(0,0,0,.6);
  color-scheme: dark;
}
html { transition: background-color .25s; }
body { transition: background-color .25s, color .25s; }

/* Переключатель тем: сегмент-ползунок (мята / светлая / тёмная) */
.theme-switch { --tw: 34px; position: relative; display: inline-grid; grid-template-columns: repeat(3, var(--tw)); height: 34px; padding: 3px; box-sizing: content-box; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); flex: none; -webkit-tap-highlight-color: transparent; }
.theme-switch .thumb { position: absolute; top: 3px; left: 3px; width: var(--tw); height: 34px; border-radius: 99px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.08); transition: transform .32s cubic-bezier(.3,1.3,.5,1), background-color .25s; z-index: 0; }
.theme-switch[data-active="light"] .thumb { transform: translateX(var(--tw)); }
.theme-switch[data-active="dark"] .thumb { transform: translateX(calc(var(--tw) * 2)); background: #322a2e; }
.theme-switch button { position: relative; z-index: 1; width: var(--tw); height: 34px; border: 0; padding: 0; margin: 0; border-radius: 99px; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; transition: color .2s; -webkit-appearance: none; appearance: none; }
.theme-switch button svg { width: 16px; height: 16px; display: block; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button.on { color: var(--text); }
.theme-switch button.on[data-theme-set="green"] { color: #e5568f; }
.theme-switch button.on[data-theme-set="light"] { color: #e0a100; }
.theme-switch button.on[data-theme-set="dark"] { color: #ffc2d9; }
.theme-switch.sm { --tw: 30px; }
.theme-switch.sm, .theme-switch.sm .thumb, .theme-switch.sm button { height: 30px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- раскладка ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- поверхности ---------- */
.card { background: var(--surface); border-radius: var(--r-l); padding: 20px; box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); }
.card.flat { box-shadow: none; border: 1px solid var(--border); }
.card.pad-l { padding: 28px; }
.card h3 { font-size: 17px; }
.section-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- кнопки ---------- */
.btn {
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r-m); border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--text); font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .3s, opacity .15s, transform .35s var(--spring);
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.965); transition-duration: .08s; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn.primary { background: var(--ink); color: var(--ink-text); }
.btn.brand { background: var(--brand); color: #ffffff; }
/* блик, пробегающий по кнопке при наведении */
.btn.primary::after, .btn.brand::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) {
  .btn:hover { background: var(--surface-3); transform: translateY(-2px) scale(1.025); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
  .btn.primary:hover, .btn.brand:hover { background: var(--ink); box-shadow: 0 10px 28px -6px color-mix(in oklab, var(--ink) 60%, transparent); }
  .btn.brand:hover { background: var(--brand); box-shadow: 0 10px 28px -6px rgba(229, 86, 143, .6); }
  .btn.primary:hover::after, .btn.brand:hover::after { transform: translateX(120%); }
  .btn.ghost:hover { box-shadow: none; }
  .btn.danger:hover { background: var(--danger-soft); }
  .btn.sm:hover, .btn.icon:hover { transform: translateY(-1px) scale(1.04); }
  .btn:active { transform: scale(.965); }
}
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: var(--r-s); }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; }
.btn svg { width: 18px; height: 18px; }

/* ---------- поля ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 15px; border-radius: var(--r-m);
  border: 1px solid transparent; background: var(--surface-2); outline: none; transition: border-color .2s, background-color .2s, box-shadow .25s;
}
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:hover { background: color-mix(in oklab, var(--surface-2) 70%, var(--surface-3)); }
.input:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
.input::placeholder { color: var(--text-3); }
.hint { font-size: 12px; color: var(--text-3); }

.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; z-index: 1; cursor: pointer; }
.switch input:focus-visible + span { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.setting { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; }
.setting .grow > b { display: block; font-weight: 500; }

/* ---------- чипы, бейджи ---------- */
.chip {
  display: inline-flex; transition: background-color .2s, color .2s, transform .3s cubic-bezier(.34,1.56,.64,1) !important; align-items: center; justify-content: center; height: 40px; padding: 0 14px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; cursor: pointer; font-weight: 500;
  transition: .15s; font-variant-numeric: tabular-nums; user-select: none;
}
.chip:hover { background: var(--surface-3); }
.chip:active { transform: scale(.95); }
.chip.active { background: var(--ink); color: var(--ink-text); }
.chip:disabled { opacity: .35; cursor: default; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--brand-text); }
.badge.warn { background: var(--warn-soft); color: #b06a0b; }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- модалка и тосты ---------- */
.overlay { position: fixed; inset: 0; background: rgba(24, 6, 14,.42); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: var(--r-xl); width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow: auto; box-shadow: var(--shadow-l); animation: pop .18s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px; }
.modal-head h3 { font-size: 20px; }
.modal-body { padding: 12px 24px 24px; }
@media (max-width: 600px) {
  .overlay { place-items: end center; padding: 0; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92dvh; animation: up .22s ease-out; }
}
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--ink-text); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-l); font-weight: 500; animation: pop .2s; max-width: 90vw; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px) } }
@keyframes up { from { transform: translateY(40px); opacity: .5 } }

.empty { text-align: center; padding: 40px 16px; color: var(--text-2); }
.empty .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; font-size: 26px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0 } }

/* ---------- логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #141414; box-shadow: 0 2px 8px -3px rgba(20,20,20,.18), inset 0 0 0 1px rgba(20,20,20,.07); display: grid; place-items: center; }
.logo-mark svg { width: 32px; height: 32px; }
.logo b { color: var(--brand-text); font-weight: 700; }

/* ---------- интерактив: карточки с подсветкой под курсором, появление при прокрутке ---------- */
.fx-card { position: relative; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.fx-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--brand) 16%, transparent), transparent 45%);
}
@media (hover: hover) {
  .fx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
  .fx-card:hover::before { opacity: 1; }
}
.fx-card > * { position: relative; }
html.fx [data-reveal]:not(.in) { opacity: 0; }
html.fx [data-reveal].in { animation: fx-rise .75s cubic-bezier(.2,.8,.2,1) var(--d, 0s) backwards; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }

/* кнопки мессенджеров: минималистичные значки, при наведении — фирменный цвет */
.btn.msg .mi { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--text); color: var(--surface); transition: background-color .3s, transform .45s cubic-bezier(.34,1.56,.64,1); }
.btn.msg .mi svg { width: 13px; height: 13px; }
@media (hover: hover) {
  .btn.msg.tg:hover .mi { background: #2aabee; color: #fff; transform: rotate(-8deg) scale(1.1); }
  .btn.msg.mx:hover .mi { background: linear-gradient(205deg, #9b45e0 0%, #4b2ff0 50%, #3ab7ff 100%); color: #fff; transform: rotate(-8deg) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html.fx [data-reveal]:not(.in) { opacity: 1; }
}

/* кнопка «наверх» */
.to-top { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
  background: color-mix(in oklab, var(--surface) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-m); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .45s cubic-bezier(.34,1.56,.64,1), background-color .2s; -webkit-tap-highlight-color: transparent; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--border); stroke-width: 2; }
.to-top .ring .p { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top .ar { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
@media (hover: hover) { .to-top:hover { transform: translateY(-3px); } .to-top:hover .ar { transform: translateY(-2px); } }
.to-top:active { transform: scale(.92); }

/* ================= Общий «премиальный» слой для всех страниц ================= */
:root { --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; --glow: rgba(229, 86, 143, .28); --grid-line: rgba(70, 15, 40, .06); }
:root[data-theme="light"] { --glow: rgba(229, 86, 143, .16); --grid-line: rgba(16, 24, 40, .05); }
:root[data-theme="dark"] { --glow: rgba(229, 86, 143, .18); --grid-line: rgba(255, 255, 255, .045); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } 100% { transform: translate(30px, -20px) scale(.95); } }

/* фон страницы: тонкая сетка и мягкие пятна света (добавляется theme.js) */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%); }
.bg-fx i { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 22s ease-in-out infinite alternate; }
.bg-fx i:nth-child(1) { width: 46vmax; height: 46vmax; right: -12vmax; top: -18vmax; background: var(--glow); }
.bg-fx i:nth-child(2) { width: 34vmax; height: 34vmax; left: -14vmax; top: 30vh; background: color-mix(in oklab, var(--glow) 55%, rgba(120, 220, 255, .22)); animation-duration: 28s; animation-delay: -8s; }
body { isolation: isolate; }

/* надпись-рубрика над заголовком */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.kicker::before { content: ''; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px; }
.mono { font-family: var(--mono); }
.grad-text { background: linear-gradient(100deg, var(--brand-text) 0%, #e5568f 40%, #fbb5cf 55%, var(--brand-text) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* сегмент-переключатель (вкладки) с бегунком */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent); }
.seg button { position: relative; z-index: 1; height: 40px; border: 0; background: transparent; border-radius: 11px; cursor: pointer; font-weight: 500; color: var(--text-2); transition: color .2s; }
.seg button.on { color: var(--text); }
.seg .seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 11px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06); transition: transform .4s cubic-bezier(.34,1.3,.5,1), width .3s; }

/* стеклянная карточка с градиентной рамкой */
.glass { background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--shadow-m), inset 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent); }
.ring-grad { position: relative; isolation: isolate; }
.ring-grad::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; padding: 1px;
  background: conic-gradient(from var(--a), transparent 0 60%, var(--brand) 78%, #ffd0e1 86%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }

/* появление содержимого страниц */
.enter > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) backwards; }
.enter > :nth-child(2) { animation-delay: .05s } .enter > :nth-child(3) { animation-delay: .1s } .enter > :nth-child(4) { animation-delay: .15s } .enter > :nth-child(5) { animation-delay: .2s } .enter > :nth-child(n+6) { animation-delay: .25s }

/* бренд-кнопки мессенджеров */
.btn.tg-brand { background: #2aabee; color: #fff; }
.btn.max-brand { background: linear-gradient(205deg, #9b45e0 0%, #4b2ff0 50%, #3ab7ff 100%); color: #fff; }
@media (hover: hover) {
  .btn.tg-brand:hover { background: #2aabee; box-shadow: 0 10px 26px -8px rgba(42, 171, 238, .7); }
  .btn.max-brand:hover { background: linear-gradient(205deg, #9b45e0 0%, #4b2ff0 50%, #3ab7ff 100%); box-shadow: 0 10px 26px -8px rgba(75, 47, 240, .6); }
}
.btn.tg-brand svg, .btn.max-brand svg { width: 19px; height: 19px; }

html.modal-open, html.modal-open body { overflow: hidden; }
.modal-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding-bottom: 12px; }
.logo-t { display: flex; flex-direction: column; line-height: 1.1; }
.logo { flex: none; white-space: nowrap; } .logo-mark { flex: none; }
.logo-t small { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-top: 2px; }

/* волна от пальца на кнопках */
.has-ripple { overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .16; transform: scale(0); animation: ripple .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ripple { animation: none; opacity: 0; } }
.btn.danger-solid { background: var(--danger); color: #fff; } .btn.danger-solid:hover { filter: brightness(1.05); }
.wait-ring { width: 54px; height: 54px; margin: 6px auto 0; border-radius: 50%; border: 4px solid var(--surface-3); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Уточнения к адресу для клиента */
.ax-box { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-chips span { display: grid; padding: 6px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); line-height: 1.2; }
.ax-chips small { font-size: 11px; color: var(--text-3); }
.ax-chips b { font-size: 15px; }
.ax-how { display: flex; gap: 8px; margin: 0; white-space: pre-line; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.ax-ph { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ax-ph button { width: 76px; height: 76px; flex: none; border: 0; padding: 0; border-radius: 12px; background: var(--surface-3) center / cover no-repeat; cursor: zoom-in; box-shadow: inset 0 0 0 1px var(--border); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.ax-ph button:active { transform: scale(.94); }
.ph-view { display: grid; place-items: center; }
.ph-view img { max-width: 100%; max-height: 72vh; border-radius: 14px; object-fit: contain; }
.ph-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.ph-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--surface-3); cursor: pointer; }
.ph-dot.on { background: var(--brand); }
