/* Тётя Клаудия — стиль сайта и Telegram Mini App.
   Режимы: телефон (< 768px), планшет (768–1023px), компьютер (>= 1024px), Mini App (.tma на <html>/<body>). */

:root {
  --orange: #E8621A;
  --orange-2: #F07A2A;
  --orange-3: #FFB27A;
  --cream: #FFF3E6;
  --brown: #4A2410;
  --brown-2: #7A3E1D;

  --bg: #FFF3E6;
  --bg-2: #FFE7CF;
  --card: #FFFBF6;
  --text: #3A1D0C;
  --muted: #8A5A3C;
  --line: #4A2410;
  --line-soft: rgba(74, 36, 16, .18);
  --accent: #E8621A;
  --accent-2: #F07A2A;
  --accent-text: #FFF3E6;
  --ok: #2E8B4E;
  --warn: #B5441A;
  --header-bg: #E8621A;
  --header-text: #FFF3E6;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 4px 0 var(--line);
  --shadow-hover: 0 7px 0 var(--line);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Comfortaa", "Nunito", system-ui, sans-serif;
  --header-h: 72px;
  --bottom-nav-h: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C110A;
    --bg-2: #26170D;
    --card: #2B1A0F;
    --text: #FFF3E6;
    --muted: #D9AE8C;
    --line: #0E0703;
    --line-soft: rgba(255, 243, 230, .12);
    --header-bg: #B9480E;
    --warn: #FF9A6A;
    --ok: #6FD38F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 5vw, 40px); }
h2 { font-size: clamp(21px, 3.4vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ok-text { color: var(--ok); font-weight: 700; }
.note { background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; }
.alert { background: rgba(232, 98, 26, .12); border: 2px dashed var(--accent); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; }
.tag { display: inline-block; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 1px 9px; font-size: 13px; font-weight: 800; }
.kicker { text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: 13px; color: var(--accent); margin: 0 0 4px; }
.desktop-only { display: none !important; }

/* ------------------------------------------------------------------ кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 2px solid var(--line); border-radius: 999px;
  font: 800 16px/1.1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--line); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-2); }
.btn-cream { background: var(--cream); color: var(--brown); }
.btn-outline { background: var(--card); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: none; border-color: var(--line-soft); }
.btn-ghost:hover { box-shadow: none; background: var(--bg-2); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn-ghost-light:hover { background: rgba(255, 243, 230, .14); box-shadow: none; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn img { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; color: var(--accent); font: 700 15px var(--font); cursor: pointer; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ шапка */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg); color: var(--header-text);
  border-bottom: 3px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--header-text); text-decoration: none; flex-shrink: 0; }
.logo img { border-radius: 50%; border: 2px solid var(--line); width: 44px; height: 44px; display: block; background: var(--orange-2); }
.logo-text { font: 700 21px var(--font-head); white-space: nowrap; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--header-text); text-decoration: none; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255, 243, 230, .18); }
.main-nav a.active { box-shadow: inset 0 0 0 2px rgba(255, 243, 230, .55); }
.main-nav .nav-profile, .main-nav .nav-login-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-user { color: var(--header-text); border-color: rgba(255, 243, 230, .6); max-width: 220px; }
.header-user span { overflow: hidden; text-overflow: ellipsis; }
.header-user:hover { background: rgba(255, 243, 230, .18); }
.burger { display: none; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 14px; background: var(--cream); cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; border-radius: 3px; background: var(--brown); transition: transform .2s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ основной блок */
.site-main { flex: 1; padding: 28px 0 48px; }
.section { margin-top: 48px; }
.section-head { margin-bottom: 18px; }
.section-head p { margin: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card-title { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.card-title .ico { width: 32px; height: 32px; }
.ico { display: block; flex-shrink: 0; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr; align-items: center;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(255, 210, 160, .45) 0%, transparent 70%),
    radial-gradient(120% 120% at 15% 0%, var(--orange-2) 0%, var(--orange) 55%, #D9540F 100%);
  color: var(--cream);
  border: 3px solid var(--line); border-radius: 30px; box-shadow: 0 6px 0 var(--line);
  overflow: hidden;
}
.hero-text { position: relative; z-index: 2; padding: 28px 22px 4px; }
/* Клаудия стоит на нижнем крае баннера; за ней — «солнышко», вокруг — значки сервисов */
.hero-art { position: relative; align-self: end; height: 300px; display: flex; justify-content: center; align-items: flex-end; }
.hero-claudia { position: relative; z-index: 2; display: block; height: 100%; width: auto; max-width: none; filter: drop-shadow(0 14px 22px rgba(74, 36, 16, .35)); }
.hero-burst { position: absolute; z-index: 1; left: 50%; top: 46%; width: 270px; height: 270px; margin: -135px 0 0 -135px; fill: var(--cream); opacity: .22; animation: hero-spin 60s linear infinite; }
.hero-float {
  position: absolute; z-index: 3; width: 50px; height: 50px; padding: 7px;
  background: var(--cream); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--line);
  animation: hero-float 6s ease-in-out infinite;
}
.hero-float-1 { left: calc(50% - 150px); top: 16%; rotate: -8deg; }
.hero-float-2 { left: calc(50% + 92px); top: 34%; rotate: 7deg; animation-delay: -2s; }
.hero-float-3 { left: calc(50% - 132px); top: 64%; rotate: 5deg; animation-delay: -4s; }
@keyframes hero-spin { to { rotate: 360deg; } }
@keyframes hero-float { 50% { translate: 0 -10px; } }
.hero-kicker { font-weight: 800; letter-spacing: .02em; opacity: .95; margin-bottom: 6px; }
.hero h1 { color: var(--cream); font-size: clamp(30px, 6vw, 52px); text-shadow: 0 3px 0 rgba(74, 36, 16, .35); }
.hero-lead { font-size: 18px; max-width: 560px; }
.hero-badges { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges li { background: rgba(255, 243, 230, .16); border: 2px solid rgba(255, 243, 230, .55); border-radius: 999px; padding: 5px 13px; font-weight: 700; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ сетки */
.grid { display: grid; gap: 16px; }
.grid-cats { grid-template-columns: 1fr; }
.grid-services { grid-template-columns: 1fr; }

.cat-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  transition: transform .14s ease, box-shadow .14s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-icon { width: 64px; height: 64px; }
.cat-body { flex: 1; min-width: 0; }
.cat-body h3 { margin: 0 0 2px; }
.cat-desc { color: var(--muted); font-size: 14px; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-meta { font-weight: 700; font-size: 14px; margin: 0; color: var(--accent); }
.cat-arrow { font-size: 22px; font-weight: 800; color: var(--accent); }
.cat-head { display: flex; align-items: center; gap: 16px; justify-content: flex-start; }

.service-card { position: relative; display: flex; flex-direction: column; gap: 6px; transition: transform .14s ease, box-shadow .14s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-link { position: absolute; inset: 0; border-radius: var(--radius); z-index: 1; }
.service-name { margin: 0; font-size: 19px; }
.delivery { margin: 0; font-weight: 700; color: var(--brown-2); }
.delivery-lg { font-size: 17px; margin-bottom: 12px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px; }
.price-rub { font: 700 24px var(--font-head); }
.price-crypto { color: var(--muted); font-weight: 700; }
.card-actions { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 8px; }
.card-actions .btn { flex: 1; }

.empty { text-align: center; padding: 36px 20px; }
.empty img { margin: 0 auto 10px; display: block; }
.empty p { font-weight: 700; font-size: 18px; }

/* как это работает */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .ico { width: 48px; height: 48px; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ услуга */
.service-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.service-title { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.service-title h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.prose p { margin: 0 0 .7em; }
.prose h2 { font-size: 20px; margin-top: 1em; }
.facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.facts li { background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 15px; }
.price-box { display: flex; flex-direction: column; gap: 12px; }
.price-big { font: 700 36px var(--font-head); margin: 0; }
.price-crypto-big { margin: -6px 0 4px; font-weight: 700; color: var(--muted); }
.price-crypto-big b { color: var(--text); }
.buy-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field > span { font-size: 15px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text); font: 600 16px var(--font);
}
.field input:focus, .field select:focus, .stepper input:focus { outline: 3px solid var(--orange-3); outline-offset: 1px; }
.stepper { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.stepper input { border: 0; border-radius: 0; text-align: center; min-height: 48px; font-weight: 800; flex: 1; -moz-appearance: textfield; appearance: textfield; background: transparent; color: var(--text); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { width: 52px; border: 0; background: var(--bg-2); color: var(--text); font: 800 22px var(--font); cursor: pointer; }
.step-btn:hover { background: var(--orange-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.terms-hint { margin: 0; }
.qty-discount { margin: -4px 0 0; color: var(--ok); font-weight: 700; }

/* ------------------------------------------------------------------ оплата */
.checkout .state { display: none; }
.checkout[data-status="loading"] [data-state="loading"],
.checkout[data-status="awaiting_payment"] [data-state="awaiting_payment"],
.checkout[data-status="paid"] [data-state="paid"],
.checkout[data-status="sent"] [data-state="sent"],
.checkout[data-status="send_failed"] [data-state="send_failed"],
.checkout[data-status="expired"] [data-state="expired"],
.checkout[data-status="underpaid"] [data-state="underpaid"],
.checkout[data-status="cancelled"] [data-state="cancelled"],
.checkout[data-status="error"] [data-state="error"] { display: block; }
.checkout[data-status="awaiting_payment"] .checkout-grid { display: grid; }
.checkout-grid { gap: 18px; grid-template-columns: 1fr; align-items: start; }
.qr-card { text-align: center; order: 2; }
.pay-card { order: 1; }
.qr { width: 220px; height: 220px; background: #fff; border-radius: 16px; padding: 10px; border: 2px solid var(--line); display: block; margin: 0 auto 12px; image-rendering: pixelated; }
.qr-hint { font-weight: 700; margin: 0; }
.pay-intro { font-size: 17px; }
.copy-row { display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px; }
.address { font-size: 15px; font-weight: 700; word-break: break-all; line-height: 1.45; user-select: all; }
.amount-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.amount-row .label { margin: 0; font-weight: 700; color: var(--muted); }
.amount { font: 700 32px var(--font-head); margin: 0; color: var(--accent); }
.timer-row p { margin-bottom: 6px; font-weight: 700; }
.timer { font-variant-numeric: tabular-nums; font-size: 20px; }
.timer.is-low { color: var(--warn); }
.timer-bar { height: 10px; border-radius: 99px; background: var(--bg-2); border: 2px solid var(--line); overflow: hidden; }
.timer-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transition: width 1s linear; }
.pay-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.result { text-align: center; padding: 32px 20px; }
.result .ico { margin: 0 auto 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; border: 2px solid var(--line); background: var(--bg-2); color: var(--text); white-space: nowrap; }
.pill-awaiting_payment { background: #FFD9A8; color: #4A2410; }
.pill-paid, .pill-sent { background: #BDEBC9; color: #17482A; }
.pill-expired, .pill-cancelled { background: #E9DDD3; color: #5B4436; }
.pill-underpaid, .pill-send_failed { background: #FFC4B0; color: #6B1E05; }

/* ------------------------------------------------------------------ заказы */
.orders-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.orders-table thead { display: none; }
.orders-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; }
.orders-table td { padding: 0; }
.orders-table td.td-name { grid-column: 1 / -1; font-weight: 800; font-size: 17px; order: -1; }
.orders-table td.td-action { grid-column: 1 / -1; }
.orders-table td.td-action .btn { width: 100%; }
.orders-table td[data-label="Заказ"] a { font-weight: 800; text-decoration: none; }
.order-grid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.details dt { color: var(--muted); font-weight: 700; }
.details dd { margin: 0; font-weight: 700; word-break: break-word; }
.order-side { display: flex; flex-direction: column; gap: 12px; }
.order-side p { margin: 0; }

/* ------------------------------------------------------------------ вход */
.auth { max-width: 460px; margin: 0 auto; text-align: center; }
.auth form { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-top: 14px; }
.auth-avatar img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); display: block; margin: -2px auto 12px; }
.auth h1 { font-size: 28px; }
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-weight: 700; }
.code-input { letter-spacing: .5em; text-align: center; font-size: 24px !important; font-weight: 800 !important; }
.tg-hint { margin-top: 16px; }

/* ------------------------------------------------------------------ профиль, поддержка, документы */
.profile-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.profile-grid form { display: flex; flex-direction: column; gap: 12px; }
.support-layout { display: grid; gap: 24px; }
.support-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.support-avatar { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); display: block; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 800; font-size: 17px; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; margin: 0; }
.legal { max-width: 860px; margin: 0 auto; }
.legal p { margin-bottom: 1em; }
.notfound { max-width: 560px; margin: 24px auto; }

/* ------------------------------------------------------------------ футер, нижняя панель */
.site-footer { background: var(--brown); color: var(--cream); padding: 28px 0 32px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand p { margin: 0; opacity: .8; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--cream); font-weight: 700; text-decoration: none; opacity: .9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-top: 3px solid var(--line);
  padding: 6px 6px calc(6px + var(--safe-bottom));
  justify-content: space-around;
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-weight: 800; font-size: 12px; padding: 4px 0; border-radius: 14px; }
.bottom-nav img { width: 28px; height: 28px; filter: saturate(.6); opacity: .8; }
.bottom-nav a.active { color: var(--accent); background: var(--bg-2); }
.bottom-nav a.active img { filter: none; opacity: 1; }

/* ------------------------------------------------------------------ тосты */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--bottom-nav-h) + var(--safe-bottom)); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--brown); color: var(--cream); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; font-weight: 700; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); animation: toast-in .2s ease; pointer-events: auto; }
.toast-error { background: #8E2C0B; }
.toast-ok { background: #24683B; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ================================================================== ТЕЛЕФОН < 768 */
@media (max-width: 767.98px) {
  :root { --header-h: 58px; --bottom-nav-h: 66px; }
  .logo img { width: 38px; height: 38px; }
  .logo-text { font-size: 18px; }
  .burger { display: flex; }
  .header-actions .btn { display: none; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    background: var(--header-bg); border-bottom: 3px solid var(--line);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 17px; }
  .main-nav .nav-profile, .main-nav .nav-login-mobile { display: block; }
  .bottom-nav { display: flex; }
  .site-main { padding-top: 18px; }
  .site-footer { padding-bottom: 24px; }
  .card { padding: 16px; border-radius: 20px; }
  .hero { border-radius: 24px; }
  .hero-text { text-align: center; padding: 26px 18px 4px; }
  .hero-art { height: 270px; }
  .hero-badges, .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-lead { font-size: 16px; }
  .section { margin-top: 34px; }
  .page-head { flex-wrap: wrap; }
  .cat-icon { width: 52px; height: 52px; }
  .cat-head .cat-icon { width: 56px; height: 56px; }
  .amount { font-size: 28px; }
  .mobile-only { display: block; }
}

/* ================================================================== ПЛАНШЕТ 768–1023 */
@media (min-width: 768px) {
  .grid-cats, .grid-services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr 300px; }
  .hero-text { padding: 36px 8px 36px 36px; }
  .hero-art { height: 100%; min-height: 380px; }
  .hero-claudia { height: 360px; align-self: flex-end; }
  .mobile-only { display: none !important; }
  .main-nav a { padding: 8px 10px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .support-hero { flex-direction: row; text-align: left; }
  .checkout-grid { grid-template-columns: 300px 1fr; }
  .qr-card { order: 0; }
  .qr { width: 240px; height: 240px; }
  .copy-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .order-grid { grid-template-columns: 1fr 300px; }
}

/* ================================================================== КОМПЬЮТЕР >= 1024 */
@media (min-width: 1024px) {
  .desktop-only { display: block !important; }
  .btn.desktop-only { display: inline-flex !important; }
  .logo-text { font-size: 23px; }
  .main-nav { margin-left: 32px; margin-right: auto; }
  .main-nav a { padding: 9px 16px; }
  .site-main { padding-top: 32px; }

  .hero { grid-template-columns: 1fr 440px; min-height: 480px; }
  .hero-text { padding: 52px 16px 52px 56px; }
  .hero-art { min-height: 480px; }
  .hero-claudia { height: 450px; }
  .hero-burst { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .hero-float { width: 62px; height: 62px; padding: 9px; border-radius: 19px; }
  .hero-float-1 { left: calc(50% - 190px); }
  .hero-float-2 { left: calc(50% + 110px); }
  .hero-float-3 { left: calc(50% - 170px); }
  .hero-lead { font-size: 20px; }

  .grid { gap: 22px; }
  .grid-cats { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .grid-services { grid-template-columns: repeat(3, 1fr); }
  .cat-card { flex-direction: column; align-items: flex-start; padding: 22px; min-height: 170px; }
  .cat-card .cat-icon { width: 72px; height: 72px; }
  .cat-arrow { align-self: flex-end; margin-top: auto; }
  .service-card { padding: 24px; min-height: 230px; }

  .service-layout { grid-template-columns: 1fr 380px; gap: 26px; }
  .service-main { padding: 30px; }
  .price-box { position: sticky; top: calc(var(--header-h) + 20px); padding: 26px; }

  .checkout-grid { grid-template-columns: 400px 1fr; gap: 26px; }
  .qr-card { padding: 30px; position: sticky; top: calc(var(--header-h) + 20px); }
  .qr { width: 320px; height: 320px; }
  .pay-card { padding: 30px; }
  .address { font-size: 17px; }
  .amount { font-size: 40px; }

  /* «Мои заказы» — таблица */
  .orders-table { border-spacing: 0; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
  .orders-table thead { display: table-header-group; }
  .orders-table tr { display: table-row; border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
  .orders-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 16px; background: var(--bg-2); border-bottom: 2px solid var(--line); }
  .orders-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
  .orders-table tbody tr:last-child td { border-bottom: 0; }
  .orders-table tbody tr:hover td { background: var(--bg-2); }
  .orders-table td.td-name { font-size: 16px; }
  .orders-table td.td-action { text-align: right; }
  .orders-table td.td-action .btn { width: auto; }

  .order-grid { grid-template-columns: 1fr 340px; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .support-layout { grid-template-columns: 380px 1fr; align-items: start; }
  .support-hero { flex-direction: column; text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
  .auth { margin-top: 12px; padding: 32px 36px; }
  .site-footer { padding: 36px 0; }
}

@media (min-width: 1200px) {
  .grid-cats { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/* ================================================================== TELEGRAM MINI APP */
.tma body, body.tma { --bottom-nav-h: 66px; }
.tma .site-header, .tma .site-footer, .tma .crumbs { display: none !important; }
/* SITE_WEB_AUTH=0: внутри мини-аппа «Купить в Telegram» не показываем — tma.js входит по initData и перезагружает */
.tma [data-buy-telegram], .tma [data-open-telegram] { visibility: hidden; }
.tma.tma-login-failed [data-buy-telegram], .tma.tma-login-failed [data-open-telegram] { visibility: visible; }
.tma .bottom-nav { display: flex; }
.tma .site-main { padding-top: 14px; }
.tma .hero { border-radius: 22px; }
/* MainButton Telegram заменяет главную кнопку страницы */
.tma [data-mainbutton].mb-hidden { display: none !important; }
.tma .desktop-only { display: none !important; }
.tma .grid-services { grid-template-columns: 1fr; }
@media (min-width: 600px) { .tma .grid-services { grid-template-columns: repeat(2, 1fr); } }

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

/* ================================================================== АДМИНКА «🛠 Услуги и WL» (/admin/services)
   Отдельный блок: только классы admin-…, badge-…, nav-admin; общие стили выше не трогает. */
.main-nav .nav-admin { display: none; }
.admin-note { background: rgba(181, 68, 26, .10); border: 2px dashed var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--text); }
.admin-note a { font-weight: 800; }
.qty-unavailable { margin: 0; }
.bad-text { color: var(--warn); font-weight: 700; }

.admin-wrap { display: flex; flex-direction: column; gap: 16px; }
.admin-status { display: flex; flex-direction: column; gap: 14px; }
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.admin-stats dt { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.admin-stats dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-hint { margin: 0; }
.admin-hint code { background: var(--bg-2); border-radius: 6px; padding: 0 5px; }
.admin-filter { display: flex; justify-content: flex-end; }
.admin-only-bad { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-weight: 800; font-size: 13px; border: 2px solid var(--line); white-space: nowrap; }
.badge-ok { background: #BDEBC9; color: #17482A; }
.badge-warn { background: #FFE08A; color: #4A3200; }
.badge-bad { background: #FFC4B0; color: #6B1E05; }
.badge-muted { background: #E9DDD3; color: #5B4436; }
.src { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line-soft); }
.src-env { color: var(--warn); }
.margin.pos { color: var(--ok); font-weight: 800; }
.margin.neg { color: var(--warn); font-weight: 800; }
.suggest { font-size: 14px; font-weight: 700; margin-bottom: 6px; overflow-wrap: anywhere; }
.reason { margin-top: 4px; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.row-actions:empty { display: none; }

/* телефон: карточки */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table thead { display: none; }
.admin-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; }
.admin-table tr.is-bad { border-left-width: 6px; }
.admin-table td { padding: 0; min-width: 0; }
.admin-table td::before { content: attr(data-label); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.admin-table td.td-claudia, .admin-table td.td-wl, .admin-table td.td-status, .admin-table td.td-suggest { grid-column: 1 / -1; }
.admin-table td.td-claudia::before { display: none; }
.admin-table select { width: 100%; max-width: 100%; min-height: 42px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.admin-table select:focus { outline: 3px solid var(--orange-3); outline-offset: 1px; }

@media (max-width: 767.98px) {
  .main-nav .nav-admin { display: block; }
}

/* компьютер: таблица */
@media (min-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-table { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
  .admin-table thead { display: table-header-group; }
  .admin-table tr { display: table-row; border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
  .admin-table tr.is-bad td:first-child { box-shadow: inset 5px 0 0 var(--warn); }
  .admin-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; background: var(--bg-2); border-bottom: 2px solid var(--line); }
  .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
  .admin-table td::before { display: none; }
  .admin-table tbody tr:last-child td { border-bottom: 0; }
  .admin-table tbody tr:hover td { background: var(--bg-2); }
  .admin-table td.td-wl { min-width: 260px; }
  .admin-table td.td-status { max-width: 280px; }
}

@media (prefers-color-scheme: dark) {
  .badge-ok { background: #1F4D2E; color: #CFF5DA; }
  .badge-warn { background: #5A4511; color: #FFE9A8; }
  .badge-bad { background: #5E200C; color: #FFD3C2; }
  .badge-muted { background: #3A2A1F; color: #E9DDD3; }
  .admin-note { background: rgba(255, 154, 106, .10); }
}

/* ------------------------------------------------------------------ посадочная /go (таргет) */
.lp-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg); color: var(--header-text);
  border-bottom: 3px solid var(--line);
}
.lp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.lp-main { padding-top: 20px; }
.lp-center { text-align: center; }
.lp-center .kicker { margin-bottom: 6px; }

.lp-cta-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lp-cta {
  min-height: 62px; padding: 14px 30px; font-size: 19px;
  box-shadow: 0 5px 0 var(--line);
  animation: lp-pulse 2.6s ease-in-out infinite;
}
.lp-cta img { width: 28px; height: 28px; }
.lp-cta:hover { box-shadow: 0 6px 0 var(--line); }
.lp-cta-note { margin: 0; font-size: 14px; font-weight: 700; opacity: .9; }
@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 5px 0 var(--line), 0 0 0 0 rgba(255, 243, 230, .55); }
  50% { box-shadow: 0 5px 0 var(--line), 0 0 0 10px rgba(255, 243, 230, 0); }
}

.lp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px; box-shadow: 0 3px 0 var(--line);
  padding: 6px 16px 6px 7px; font-weight: 800;
}
.lp-chip img { width: 32px; height: 32px; border-radius: 10px; }
.lp-chip-more { padding-left: 16px; background: var(--bg-2); }

.lp-why { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lp-why-card { display: flex; flex-direction: column; gap: 6px; }
.lp-why-card img { width: 48px; height: 48px; }
.lp-why-card b { font: 700 18px var(--font-head); }
.lp-why-card p { margin: 0; color: var(--muted); }

.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.lp-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 16px; }
.lp-step img { width: 140px; height: auto; }
.lp-step b { font: 700 18px var(--font-head); }
.lp-step p { margin: 0; color: var(--muted); }
.lp-step-num {
  position: absolute; top: -14px; left: 50%; translate: -50% 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text); border: 2px solid var(--line); border-radius: 50%;
  font: 800 17px var(--font);
}

.lp-final {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(255, 210, 160, .45) 0%, transparent 70%),
    radial-gradient(120% 120% at 15% 0%, var(--orange-2) 0%, var(--orange) 55%, #D9540F 100%);
  color: var(--cream);
  border: 3px solid var(--line); border-radius: 30px; box-shadow: 0 6px 0 var(--line);
  padding: 26px 20px 0;
}
.lp-final h2 { color: var(--cream); text-shadow: 0 3px 0 rgba(74, 36, 16, .35); }
.lp-final-text p { font-size: 17px; }
.lp-final-text .lp-cta { margin-bottom: 18px; }
.lp-final-art { order: 2; width: 170px; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(74, 36, 16, .35)); }

.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: var(--bg); border-top: 2px solid var(--line);
}
.lp-footer { padding-bottom: 96px; }

@media (max-width: 767.98px) {
  .lp-cta-wrap { align-items: stretch; text-align: center; }
  .lp-cta { width: 100%; white-space: normal; }
  .lp-header-cta { padding: 7px 12px; }
  .lp .logo-text { font-size: 18px; }
}
@media (max-width: 380px) {
  .lp .logo-text { display: none; }
}
@media (min-width: 768px) {
  .lp-why { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-final { flex-direction: row; text-align: left; justify-content: center; gap: 28px; padding: 0 36px; }
  .lp-final-art { order: 0; align-self: flex-end; width: 200px; }
  .lp-final-text { padding: 32px 0; }
  .lp-final-text .lp-cta { margin-bottom: 0; }
  .lp-sticky { display: none !important; }
  .lp-footer { padding-bottom: 32px; }
}
@media (min-width: 1024px) {
  .lp-why { grid-template-columns: repeat(4, 1fr); }
  .lp-final-art { width: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-cta { animation: none; }
}

/* посадочная /go: акцент — восстановление доступа к Claude */
.lp-claude { margin-top: 32px; }
.lp-claude-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 3px solid var(--line); border-radius: 30px; box-shadow: 0 6px 0 var(--line);
  padding: 24px 20px;
}
.lp-claude-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--orange-3) 14px 28px);
  border-bottom: 2px solid var(--line);
}
.lp-claude-head { display: flex; align-items: center; gap: 16px; margin: 10px 0 12px; }
.lp-claude-head h2 { margin: 0; }
.lp-claude-head .kicker { margin-bottom: 4px; }
.lp-claude-logo {
  width: 72px; height: 72px; flex-shrink: 0; padding: 8px;
  background: var(--cream); border: 2px solid var(--line); border-radius: 22px; box-shadow: 0 3px 0 var(--line);
  rotate: -6deg;
}
.lp-claude-lead { font-size: 17px; max-width: 760px; }
.lp-claude-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.lp-claude-list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 2px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 10px 14px; font-weight: 700;
}
.lp-claude-list span { font-size: 22px; line-height: 1; }
.lp-claude-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lp-claude-note { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.lp-cta-claude { animation: none; }
@media (max-width: 767.98px) {
  .lp-claude-head { flex-direction: column; text-align: center; }
  .lp-claude-actions { align-items: stretch; text-align: center; }
}
@media (min-width: 768px) {
  .lp-claude-card { padding: 34px 36px 30px; }
  .lp-claude-logo { width: 96px; height: 96px; padding: 10px; }
  .lp-claude-list { grid-template-columns: repeat(3, 1fr); }
}
