/* Bandla — дизайн-система.
   Базовый стиль: риштанская керамика — кобальт, лазурит, шафран как редкий акцент, чистый прохладный белый, орнамент гирих.
   Раздел клининга (body.aqua): под водой — поверхность с бликами, лучи, пузырьки, водоросли, стеклянные панели. */
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(/assets/fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(/assets/fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

[hidden] { display: none !important; }

:root {
  --ink: #131A33; --ink2: #424C6B; --muted: #6B7491;
  --bg: #F5F7FC; --card: #FFFFFF; --soft: #EBEFF9; --line: #DCE2F0;
  --cobalt: #2442B0; --cobalt-2: #1A3290; --on-cobalt: #FFFFFF; --lapis: #DCE5FB;
  --saffron: #E9A23B; --saffron-ink: #4A2E00;
  --ok: #17734A; --ok-bg: #E1F4EA; --warn: #8A5600; --warn-bg: #FFF1D6; --bad: #B42318; --bad-bg: #FDE7E5;
  --modal-bg: #FFFFFF;
  --r-lg: 18px; --r: 12px;
  --shadow: 0 1px 2px rgba(19, 26, 51, .06), 0 8px 24px rgba(19, 26, 51, .06);
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%239FB3EE' stroke-width='1.2'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");
  font-family: var(--body); color: var(--ink); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #EEF1FA; --ink2: #BAC3DD; --muted: #8E98B6; --bg: #0E1324; --card: #161D33; --soft: #1D2541; --line: #29324F;
    --cobalt: #6E8BFF; --cobalt-2: #8AA1FF; --on-cobalt: #0E1324; --lapis: #1F2A4D; --saffron: #F0B45A;
    --ok: #6FD3A0; --ok-bg: #123326; --warn: #F2C56B; --warn-bg: #3A2E14; --bad: #FF9C93; --bad-bg: #3D1C1A; --modal-bg: #161D33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23334070' stroke-width='1.2'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); min-height: 100vh; }
a { color: var(--cobalt); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.025em; }
h2 { font-weight: 800; font-size: 22px; }
h3 { font-weight: 600; font-size: 17px; }
p { margin: 0 0 12px; }
.hidden { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 104px; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }

/* ---------- шапка ---------- */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .bar { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 0; font: 800 21px/1 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
/* фирменный знак: золотой октагон с монограммой B, блик и искра (анимация внутри SVG, уважает reduced-motion) */
.logo::before { content: ""; flex: none; width: 34px; height: 34px; margin-right: 11px; background: url(/assets/logo-mark-small.svg) center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(120, 80, 10, .25)); }
/* название — тем же строгим антиквенным шрифтом, что и знак, золотом с разрядкой */
.logo { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 23px; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(115deg, #E8C25C 0%, #B07A1C 45%, #F2D27F 70%, #C38B26 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo span { -webkit-text-fill-color: transparent; }
.logo small { -webkit-text-fill-color: var(--muted); font-family: var(--body); letter-spacing: .02em; text-transform: none; }
.logo span { color: var(--cobalt); }
.spacer { flex: 1; }
nav.tabs { display: flex; gap: 4px; overflow-x: auto; max-width: 1080px; margin: 0 auto; padding: 0 16px 10px; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink2); white-space: nowrap; font-weight: 600; font-size: 15px; }
nav.tabs a:hover { background: var(--soft); }
nav.tabs a.on { background: var(--ink); color: var(--bg); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 10px 18px; border-radius: var(--r); font: 600 15px var(--body); cursor: pointer; text-decoration: none; min-height: 46px; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.btn.primary:hover { background: var(--cobalt-2); border-color: var(--cobalt-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 14px; min-height: 38px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .icon-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--cobalt) 45%, transparent); outline-offset: 2px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 5px; right: 4px; background: var(--saffron); color: var(--saffron-ink); border-radius: 999px; font: 700 11px/18px var(--body); min-width: 18px; height: 18px; text-align: center; padding: 0 4px; }

/* ---------- первый экран ---------- */
.hero { padding: 32px 0 12px; }
.hero h1 { max-width: 20ch; }
.hero p { color: var(--ink2); font-size: 17px; max-width: 60ch; }
.hero.band { position: relative; margin: 0 -16px 8px; padding: 40px 16px 28px; overflow: hidden; }
.hero.band::after { content: ""; position: absolute; inset: 0 0 0 55%; background: var(--girih) 0 0 / 56px; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); pointer-events: none; }
.hero.band > * { position: relative; z-index: 1; }
@media (max-width: 720px) { .hero.band::after { inset: 0; opacity: .35; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); } }
.search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); max-width: 520px; margin-top: 8px; }
.search label { flex: 1 1 200px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 6px; padding: 0; list-style: none; max-width: 880px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink2); font-size: 14px; line-height: 1.4; }
.trust li .ic { color: var(--cobalt); margin-top: 1px; }
.trust b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; gap: 10px; } }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 20px 0 24px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink2); }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lapis); color: var(--cobalt); font: 800 14px/30px var(--display); text-align: center; }
.steps b { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.section-h h2 { margin: 0; }

/* ---------- карточки ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--cobalt); }
.card.listing { padding: 0; overflow: hidden; gap: 0; }
.listing .pic { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--lapis); display: flex; align-items: center; justify-content: center; color: var(--cobalt); border-bottom: 1px solid var(--line); }
.listing .pic::before { content: ""; position: absolute; inset: 0; background: var(--girih) center / 64px; opacity: .35; }
.listing .pic .ic { position: relative; width: 60px; height: 60px; stroke-width: 1.4; background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.listing .pic img { width: 100%; height: 100%; object-fit: cover; }
.listing .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing h3 { margin: 0; }
.listing .desc { color: var(--ink2); font-size: 14px; margin: 0; }
.listing .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font: 800 19px/1.2 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small { font: 400 13px var(--body); color: var(--muted); }
.who { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 600; }
.rating .ic { width: 15px; height: 15px; color: var(--saffron); fill: var(--saffron); stroke: none; }
.card.busy { opacity: .6; }
.card .meta, small, .hint { color: var(--muted); font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta .ic { width: 16px; height: 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.between { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.list { display: flex; flex-direction: column; gap: 12px; }
.section { margin-top: 28px; }

/* ---------- формы ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink2); }
input, select, textarea { font: 400 16px var(--body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; min-height: 46px; width: 100%; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); outline: 3px solid color-mix(in srgb, var(--cobalt) 18%, transparent); }
textarea { min-height: 88px; resize: vertical; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); line-height: 1.45; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 1px; accent-color: var(--cobalt); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { flex-direction: row; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--card); font-weight: 500; color: var(--ink); cursor: pointer; }
.chips label:has(input:checked) { background: var(--lapis); border-color: var(--cobalt); color: var(--cobalt); }
.chips input { width: 16px; min-height: 16px; height: 16px; accent-color: var(--cobalt); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.form-card { max-width: 780px; padding: 20px; box-shadow: var(--shadow); }

/* ---------- статусы, суммы, выбор ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--soft); color: var(--ink2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.cat { background: var(--lapis); color: var(--cobalt); }
.sum { background: var(--soft); border-radius: var(--r); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum b { text-align: right; } .sum .total { font-size: 17px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-weight: 700; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: block; border: 2px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; font-weight: 500; color: var(--ink); background: var(--card); }
.choice label:has(input:checked) { border-color: var(--cobalt); }
.choice input { display: inline; width: auto; min-height: 0; height: auto; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--cobalt); }
.choice small { display: block; margin-top: 6px; font-weight: 400; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }

/* ---------- окна и уведомления ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(8, 12, 28, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .15s ease-out; }
.modal { background: var(--modal-bg); color: var(--ink); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 24px 18px calc(28px + env(safe-area-inset-bottom, 0px)); position: relative; animation: rise .2s ease-out; }
.modal h3 { font-size: 20px; font-weight: 800; padding-right: 40px; }
@media (min-width: 640px) { .modal-wrap { align-items: center; } .modal { border-radius: 22px; padding: 28px; } }
.modal .x { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); width: 44px; height: 44px; border-radius: 12px; }
.modal .x:hover { background: var(--soft); }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(16px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .modal-wrap, .modal { animation: none; } .btn, a.card, input { transition: none; } }
.note { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.note.unread { border-color: var(--cobalt); }
#toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: calc(100% - 32px); max-width: 440px; }
.toast { background: #131A33; color: #F5F7FC; padding: 13px 16px; border-radius: var(--r); box-shadow: var(--shadow); font-size: 15px; }
.toast.bad { background: #B42318; color: #fff; } .toast.ok { background: #17734A; color: #fff; }

/* ---------- таблицы и цифры ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--muted); font-weight: 600; background: var(--soft); }
table.t tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; color: var(--muted); font-size: 14px; }
.kpi b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 800 24px/1.2 var(--display); color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .goal { font: 600 12px var(--body); padding: 2px 8px; border-radius: 999px; }
.kpi .goal.met { background: var(--ok-bg); color: var(--ok); } .kpi .goal.miss { background: var(--warn-bg); color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ---------- подвал и нижнее меню приложения ---------- */
footer.foot { border-top: 1px solid var(--line); }
footer.foot .in { max-width: 1080px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 14px; }
nav.bottom { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); display: flex; z-index: 20; padding-bottom: env(safe-area-inset-bottom, 0px); }
nav.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; }
nav.bottom a .ic { width: 23px; height: 23px; }
nav.bottom a.on { color: var(--cobalt); }
@media (min-width: 900px) { nav.bottom { left: 50%; right: auto; transform: translateX(-50%); width: 520px; bottom: 16px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding-bottom: 0; } }

/* ==========================================================================
   Раздел «Клининг и мастера» (body.aqua): под водой — небо и поверхность воды сверху,
   лучи света, глубокая синева, пузырьки, водоросли по углам, стеклянные панели.
   ========================================================================== */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-garamond-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
body.aqua {
  --surface: 150px;
  --ink: #F2FBFF; --ink2: #D3ECF8; --muted: #A6CCE0;
  --bg: #0A4E86; --card: rgba(255, 255, 255, .10); --soft: rgba(255, 255, 255, .08); --line: rgba(190, 236, 255, .30);
  --cobalt: #38D2FF; --cobalt-2: #7BE2FF; --on-cobalt: #04233F; --lapis: rgba(56, 210, 255, .18);
  --saffron: #F7B733; --saffron-ink: #3A2400; --modal-bg: #0B3A66;
  --ok: #7EF0B8; --ok-bg: rgba(46, 204, 133, .18); --warn: #FFD27A; --warn-bg: rgba(247, 183, 51, .18); --bad: #FF9A8F; --bad-bg: rgba(255, 99, 82, .18);
  --shadow: 0 10px 40px rgba(0, 18, 45, .45);
  color-scheme: dark; overflow-x: clip;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 60' preserveAspectRatio='none'%3E%3Cpath d='M0 26 Q40 14 80 26 T160 26 T240 26 T320 26 T400 26 T480 26 V60 H0z' fill='%2350B6E6' fill-opacity='.55'/%3E%3Cpath d='M0 26 Q40 14 80 26 T160 26 T240 26 T320 26 T400 26 T480 26' fill='none' stroke='%23fff' stroke-width='2.5' stroke-opacity='.9'/%3E%3Cpath d='M0 34 Q40 24 80 34 T160 34 T240 34 T320 34 T400 34 T480 34' fill='none' stroke='%23E4F8FF' stroke-width='1.2' stroke-opacity='.55'/%3E%3C/svg%3E") center calc(var(--surface) - 26px) / 480px 60px repeat-x,
    radial-gradient(900px 260px at 50% calc(var(--surface) + 10px), rgba(190, 245, 255, .45), transparent 70%),
    radial-gradient(700px 500px at 50% 60%, rgba(40, 150, 220, .35), transparent 70%),
    linear-gradient(180deg, #F2FBFF 0, #CDEBF8 calc(var(--surface) - 40px), #8FD0EE calc(var(--surface) - 2px), #3FA2D8 var(--surface), #1773B4 calc(var(--surface) + 160px), #0B4F8A calc(var(--surface) + 560px), #073766 70%, #052449 100%);
}
html:has(body.aqua) { background: #052449; }
/* шапка на «небе»: светлое стекло, тёмно-синий текст */
body.aqua header.top { background: rgba(236, 249, 255, .72); border-bottom-color: rgba(255, 255, 255, .7); color: #0A3D66; }
body.aqua header.top .logo { color: #0A3D66; }
body.aqua .logo span { color: #1585C8; }
body.aqua header.top nav.tabs a { color: #1D4E78; }
body.aqua header.top nav.tabs a.on { background: linear-gradient(180deg, #FFFFFF, #D6F3FF); color: #063A66; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(21, 133, 200, .25), 0 4px 16px rgba(21, 133, 200, .25); }
body.aqua header.top nav.tabs a:hover { background: rgba(21, 133, 200, .10); }
body.aqua header.top .btn { background: rgba(255,255,255,.7); border-color: rgba(21, 133, 200, .35); color: #0A3D66; }
body.aqua header.top .hint, body.aqua header.top small { color: #3D6B8E; }

/* стеклянные панели: полупрозрачная заливка, светлая кромка, блик сверху */
body.aqua .card, body.aqua .scroll, body.aqua .form-card, body.aqua .glass {
  background: linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.07) 38%, rgba(255,255,255,.05) 100%);
  border: 1px solid rgba(200, 240, 255, .38); border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 50px rgba(0, 18, 45, .40), 0 0 40px rgba(56, 210, 255, .10);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
body.aqua #view { position: relative; z-index: 1; }
body.aqua #view > .hero:first-child { padding-top: calc(var(--surface) - 40px); }
body.aqua #view > .hero:first-child h1 { text-shadow: 0 2px 18px rgba(0, 30, 70, .45); }
body.aqua #view > .hero:first-child > a.hint:first-child { color: #0A3D66; }

/* подводный герой */
.deep-hero { position: relative; padding: 0 0 18px; overflow-x: clip; }
.deep-hero::before { content: ""; position: absolute; left: 50%; top: calc(var(--surface) - 70px); width: 1200px; height: 760px; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(from 168deg at 50% 0, rgba(255,255,255,.10) 0 1.6deg, transparent 1.6deg 6deg);
  -webkit-mask-image: radial-gradient(60% 90% at 50% 0, #000 20%, transparent 75%); mask-image: radial-gradient(60% 90% at 50% 0, #000 20%, transparent 75%); }
.deep-brand { height: calc(var(--surface) - 10px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6px; }
.deep-brand .word { font: 600 clamp(64px, 11vw, 116px)/.78 "Cormorant Garamond", Georgia, serif; letter-spacing: -.01em;
  background: linear-gradient(180deg, #FFFFFF 0%, #DDF4FF 46%, #7CCBEE 56%, #E9FAFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(20, 110, 170, .45); filter: drop-shadow(0 2px 3px rgba(10, 70, 120, .35)) drop-shadow(0 0 22px rgba(255,255,255,.7)); }
.deep-brand small { margin-top: 16px; font: 600 13px/1 var(--body); letter-spacing: .42em; text-transform: uppercase; color: #F2FBFF; text-shadow: 0 1px 6px rgba(0, 40, 90, .6); }
.deep-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, .95fr); gap: 24px; align-items: start; margin-top: 34px; }
.deep-text h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; max-width: 18ch; text-shadow: 0 2px 18px rgba(0, 30, 70, .45); }
.deep-text p { color: var(--ink2); }
.deep-text .steps { grid-template-columns: 1fr; gap: 12px; margin: 18px 0 22px; }
.deep-art { position: relative; display: flex; justify-content: center; }
.deep-bottle { width: 100%; max-width: 290px; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 20, 60, .5)); animation: deep-float 7s ease-in-out infinite; }
@keyframes deep-float { 50% { transform: translateY(-12px) rotate(2deg); } }
.deep-side h3 { margin: 4px 0 12px; font: 600 26px/1 "Cormorant Garamond", Georgia, serif; color: #FFFFFF; letter-spacing: .02em; }
.deep-side ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deep-side a { display: block; height: 100%; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink2); font-size: 13px; line-height: 1.35;
  background: rgba(255,255,255,.06); border: 1px solid rgba(200, 240, 255, .18); transition: background .2s, border-color .2s, transform .2s; }
.deep-side a:hover, .deep-side a:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(200, 240, 255, .5); transform: translateY(-2px); }
.deep-side small { display: block; color: #7BE2FF; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.deep-side b { display: block; color: #FFFFFF; font-size: 15px; margin-bottom: 2px; }
.deep-side .hint { margin-top: 10px; }
body.aqua .form-card { scroll-margin-top: 90px; }

/* декор: водоросли по нижним углам и поднимающиеся пузырьки */
.sea-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sea-deco .weed { position: absolute; bottom: -6px; width: 300px; opacity: .95; }
.sea-deco .weed.l { left: -20px; }
.sea-deco .weed.r { right: -20px; transform: scaleX(-1); }
.sea-deco .weed svg { width: 100%; height: auto; display: block; }
.sea-deco .bubbles i { position: absolute; bottom: -30px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95) 0 12%, rgba(200, 244, 255, .35) 30%, rgba(127, 219, 255, .12) 70%); border: 1px solid rgba(232, 251, 255, .55);
  animation: deep-rise var(--d) linear var(--w) infinite; }
@keyframes deep-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(14px, -50vh); } 90% { opacity: .8; } 100% { transform: translate(-6px, -100vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .deep-bottle, .sea-deco .bubbles i { animation: none; } .sea-deco .bubbles { display: none; } }

@media (max-width: 1000px) {
  .deep-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
  .deep-side { grid-column: 1 / -1; }
  .deep-side ul { grid-template-columns: repeat(3, 1fr); }
  .sea-deco .weed { width: 200px; }
}
@media (max-width: 720px) {
  body.aqua { --surface: 124px; }
  .deep-brand small { letter-spacing: .24em; font-size: 11px; }
  .deep-grid { grid-template-columns: 1fr; margin-top: 26px; gap: 18px; }
  .deep-art { order: -1; height: 210px; overflow: visible; }
  .deep-bottle { max-width: 180px; }
  .deep-side ul { grid-template-columns: 1fr 1fr; }
  .sea-deco .weed { width: 130px; opacity: .7; }
}

body.aqua .btn { background: rgba(255,255,255,.10); border-color: rgba(200,240,255,.4); color: var(--ink); }
body.aqua .btn:hover { background: rgba(255,255,255,.18); }
body.aqua .btn.primary { color: #3A2400; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #FFE08A 0%, #F7B733 52%, #E39A12 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 24px rgba(247, 183, 51, .35); }
body.aqua .btn.primary:hover { filter: brightness(1.06); background: linear-gradient(180deg, #FFE7A3 0%, #F9C14C 52%, #EBA31F 100%); }
body.aqua .btn.danger { color: var(--bad); }
body.aqua input, body.aqua select, body.aqua textarea { background: rgba(3, 30, 58, .45); border-color: rgba(190, 236, 255, .35); color: var(--ink); box-shadow: inset 0 2px 6px rgba(0,0,0,.18); }
body.aqua input::placeholder, body.aqua textarea::placeholder { color: rgba(205, 233, 245, .55); }
body.aqua select option { background: #0B3A66; color: #F2FBFF; }
body.aqua .steps li::before { background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(120, 225, 255, .25)); color: #04233F; box-shadow: 0 0 14px rgba(120,225,255,.5); }
body.aqua .badge.cat { color: #9BEBFF; }
body.aqua footer.foot { border-top-color: rgba(190, 236, 255, .18); position: relative; z-index: 1; }
body.aqua .empty { border-color: rgba(190, 236, 255, .35); }
@media (prefers-reduced-transparency: reduce) { body.aqua .card, body.aqua .form-card, body.aqua .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0B3A66; } }

/* ==========================================================================
   Клиентская часть (body.sage): шалфейный фон, белая скульптурная панель, холмы, сосны и белая волна
   ========================================================================== */
body.sage {
  --ink: #1F2A22; --ink2: #4A574D; --muted: #748077;
  --bg: #F3F4F0; --card: #FFFFFF; --soft: #ECEFE8; --line: #DDE2D8;
  --cobalt: #3D6A4A; --cobalt-2: #2F5539; --on-cobalt: #FFFFFF; --lapis: #E1EADF;
  --saffron: #C99A3B; --modal-bg: #FFFFFF;
  --shadow: 0 2px 4px rgba(31, 42, 34, .05), 0 14px 34px rgba(31, 42, 34, .10);
  --hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C60 90 110 100 160 112 S260 80 320 96 V180 H0Z' fill='%23C9D6C6'/%3E%3Cpath d='M0 142 C70 120 130 136 200 130 S290 116 320 126 V180 H0Z' fill='%23A9BFA8'/%3E%3Cpath d='M0 160 C80 150 150 166 230 156 S300 150 320 154 V180 H0Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background: radial-gradient(1200px 700px at 50% 0%, #6E8571, #56695A 60%, #46574A);
  color-scheme: light;
}
html:has(body.sage) { background: #46574A; }
@media (prefers-color-scheme: dark) {
  body.sage { --ink: #E9EEE7; --ink2: #BFCBBF; --muted: #93A194; --bg: #232B25; --card: #2A332C; --soft: #313B33; --line: #3B463D;
    --cobalt: #8FC09B; --cobalt-2: #A8D2B2; --on-cobalt: #16201A; --lapis: #34433A; --modal-bg: #2A332C;
    --shadow: 0 2px 4px rgba(0,0,0,.3), 0 14px 34px rgba(0,0,0,.35);
    background: radial-gradient(1200px 700px at 50% 0%, #34423A, #222B25 60%, #1A211C); color-scheme: dark; }
  html:has(body.sage) { background: #1A211C; }
}
/* шапка и подвал лежат на зелёном фоне */
body.sage header.top { background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; position: static; }
body.sage header.top .logo, body.sage header.top .logo span { color: #F4F6F1; }
body.sage header.top .icon-btn { color: #F4F6F1; }
body.sage header.top .icon-btn:hover { background: rgba(255,255,255,.12); }
body.sage header.top #loginBtn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #F4F6F1; }
body.sage nav.tabs a { color: #DDE6DA; }
body.sage nav.tabs a:hover { background: rgba(255,255,255,.12); }
body.sage nav.tabs a.on { background: #F4F6F1; color: #1F2A22; }
body.sage footer.foot { border-top: 0; }
body.sage footer.foot .in { color: #CBD6C8; }
body.sage footer.foot a { color: #F4F6F1; }
/* белая панель, как отлитая из гипса */
body.sage .wrap { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 100%, #fff 0%), var(--bg)); border-radius: 36px; margin-top: 8px; margin-bottom: 24px; padding-block: 8px 40px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 30px 60px rgba(20, 30, 22, .35), 0 6px 14px rgba(20, 30, 22, .18); }
@media (min-width: 1112px) { body.sage .wrap { padding-left: 32px; padding-right: 32px; max-width: 1112px; } }
body.sage .hero.scape { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: center; padding: 28px 0 8px; }
body.sage .hero.scape h1 { font-weight: 800; letter-spacing: -.03em; }
body.sage .scape-art { position: relative; margin-right: -32px; }
body.sage .scape-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(31, 42, 34, .18)); }
@media (max-width: 860px) { body.sage .hero.scape { grid-template-columns: 1fr; } body.sage .scape-art { order: -1; margin: 0 -8px; } }
body.sage .search { border-radius: 22px; box-shadow: var(--shadow); }
body.sage .trust li .ic { color: var(--cobalt); }
body.sage .card { border-radius: 22px; box-shadow: 0 1px 2px rgba(31,42,34,.04), 0 8px 22px rgba(31,42,34,.06); }
body.sage .listing .pic { background: linear-gradient(180deg, #EEF2EB, #DDE6DA); }
body.sage .listing .pic::before { background: var(--hills) bottom / 100% 70% no-repeat; opacity: 1; }
body.sage .listing .pic .ic { color: var(--cobalt); border-radius: 50%; }
body.sage .btn.primary { border-radius: 999px; }
body.sage .badge.cat { background: var(--lapis); color: var(--cobalt); }
/* цена и кнопка в карточке каталога всегда на одних местах */
.listing .foot { flex-direction: column; align-items: stretch; gap: 10px; }
.listing .foot .btn, .listing .foot .badge { width: 100%; justify-content: center; }
.listing .foot .badge { padding: 9px 10px; }

/* ==========================================================================
   Админка (body.night): тёмно-синяя ночь, электрический синий градиент, голубые акценты, полоса света
   ========================================================================== */
body.night {
  --ink: #EAF0FF; --ink2: #B7C3E8; --muted: #8592BE;
  --bg: #060B22; --card: #0D1430; --soft: #121B3D; --line: #1F2B57;
  --cobalt: #4C8DFF; --cobalt-2: #74A8FF; --on-cobalt: #FFFFFF; --lapis: rgba(76, 141, 255, .16);
  --saffron: #FFB648; --modal-bg: #0D1430;
  --ok: #5EE3A6; --ok-bg: rgba(46, 204, 133, .14); --warn: #FFCB6B; --warn-bg: rgba(255, 182, 72, .14); --bad: #FF8A80; --bad-bg: rgba(255, 99, 82, .14);
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --grad: linear-gradient(140deg, #1A4DFF 0%, #2F7BFF 45%, #63B8FF 100%);
  background:
    radial-gradient(900px 420px at 8% -6%, rgba(54, 110, 255, .55), transparent 62%),
    radial-gradient(700px 380px at 100% 10%, rgba(40, 90, 255, .18), transparent 70%),
    #060B22;
  color-scheme: dark;
}
html:has(body.night) { background: #060B22; }
body.night header.top { background: rgba(6, 11, 34, .6); border-bottom-color: rgba(76, 141, 255, .16); }
body.night .logo span { color: #6FB3FF; }
body.night nav.tabs a { color: var(--ink2); }
body.night nav.tabs a:hover { background: rgba(76, 141, 255, .12); }
body.night nav.tabs a.on { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(47, 123, 255, .45); }
body.night .hero h1 { font-weight: 800; }
body.night .hero p { color: var(--muted); }
body.night .card, body.night .kpi, body.night .scroll {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)), var(--card);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
body.night .kpi { position: relative; overflow: hidden; }
body.night .kpi.hl { background: var(--grad); border-color: transparent; color: rgba(255,255,255,.85); box-shadow: 0 16px 40px rgba(26, 77, 255, .35); }
body.night .kpi.hl b { color: #fff; }
body.night .kpi.hl::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent); pointer-events: none; }
body.night .kpi .goal.met { background: rgba(94, 227, 166, .14); }
body.night .btn { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink); }
body.night .btn:hover { border-color: #3A4C8A; background: rgba(76,141,255,.08); }
body.night .btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(47, 123, 255, .35); }
body.night .btn.primary:hover { filter: brightness(1.08); }
body.night .btn.danger { color: var(--bad); }
body.night input, body.night select, body.night textarea { background: #0A1128; border-color: var(--line); }
body.night table.t th { background: #101A3B; color: #93A3D6; }
body.night table.t tr:hover td { background: rgba(76, 141, 255, .05); }
body.night .badge { background: #16214A; color: #B7C3E8; }
body.night .badge.ok { background: var(--ok-bg); color: var(--ok); } body.night .badge.warn { background: var(--warn-bg); color: var(--warn); } body.night .badge.bad { background: var(--bad-bg); color: var(--bad); }
body.night .empty { border-color: var(--line); }
.logo small { margin-left: 8px; font: 600 14px var(--body); color: var(--muted); letter-spacing: 0; }
table.t td.row { display: table-cell; white-space: nowrap; }
table.t td.row > .btn { margin: 2px 4px 2px 0; }

/* ==========================================================================
   Приложение исполнителя (body.peak): туманные горы с белым заголовком, светло-серое поле, белые карточки, оранжевые иконки
   ========================================================================== */
body.peak {
  --ink: #1E2A2E; --ink2: #4C5A5E; --muted: #7A878B;
  --bg: #F1F3F3; --card: #FFFFFF; --soft: #EAEEEE; --line: #DFE4E4;
  --cobalt: #2F4A50; --cobalt-2: #22383D; --on-cobalt: #FFFFFF; --lapis: #E3ECEC;
  --orange: #EE7A2B; --saffron: #EE7A2B; --modal-bg: #FFFFFF;
  --shadow: 0 2px 6px rgba(30, 42, 46, .06), 0 12px 28px rgba(30, 42, 46, .08);
  --peaks: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201200%20420%22%20preserveAspectRatio=%22xMidYMax%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22s%22%20x1=%220%22%20y1=%220%22%20x2=%220%22%20y2=%221%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%23A9C2C2%22/%3E%3Cstop%20offset=%22.6%22%20stop-color=%22%237E9C9E%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%235E7C80%22/%3E%3C/linearGradient%3E%3ClinearGradient%20id=%22m%22%20x1=%220%22%20y1=%220%22%20x2=%220%22%20y2=%221%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%23FFFFFF%22%20stop-opacity=%220%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23DDE7E6%22%20stop-opacity=%22.55%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width=%221200%22%20height=%22420%22%20fill=%22url%28%23s%29%22/%3E%3Cpath%20d=%22M0%20300%20L120%20230%20L210%20262%20L330%20190%20L430%20250%20L520%20214%20L640%20262%20L760%20200%20L880%20246%20L1000%20206%20L1120%20250%20L1200%20230%20V420%20H0Z%22%20fill=%22%237F9A9C%22/%3E%3Cpath%20d=%22M380%20330%20L560%20150%20L640%20205%20L700%20120%20L760%20168%20L820%20140%20L980%20330Z%22%20fill=%22%233B5459%22/%3E%3Cpath%20d=%22M700%20120%20L740%20152%20L722%20150%20L712%20166%20L694%20148%20L676%20158Z%20M560%20150%20L594%20184%20L576%20180%20L566%20194%20L552%20176%20L536%20174Z%20M820%20140%20L846%20162%20L830%20160%20L822%20172%20L808%20160Z%22%20fill=%22%23E9EFEF%22/%3E%3Cpath%20d=%22M640%20205%20L700%20120%20L712%20166%20L690%20210Z%22%20fill=%22%232C4247%22%20opacity=%22.7%22/%3E%3Crect%20y=%22250%22%20width=%221200%22%20height=%22120%22%20fill=%22url%28%23m%29%22/%3E%3Cpath%20d=%22M0%20360%20L140%20300%20L260%20336%20L420%20286%20L560%20330%20L700%20296%20L860%20340%20L1020%20300%20L1200%20336%20V420%20H0Z%22%20fill=%22%232A3D42%22/%3E%3Cpath%20d=%22M0%20400%20L180%20360%20L360%20392%20L560%20356%20L760%20394%20L960%20364%20L1200%20392%20V420%20H0Z%22%20fill=%22%231C2B2F%22/%3E%3C/svg%3E");
  color-scheme: light;
}
html:has(body.peak) { background: #F1F3F3; }
@media (prefers-color-scheme: dark) {
  body.peak { --ink: #E8EEEE; --ink2: #B9C6C8; --muted: #8C9A9D; --bg: #182124; --card: #1F2A2E; --soft: #243236; --line: #2E3D41;
    --cobalt: #8FB8BE; --cobalt-2: #A9CCD1; --on-cobalt: #10191B; --lapis: #253538; --modal-bg: #1F2A2E; color-scheme: dark; }
  html:has(body.peak) { background: #182124; }
}
body.peak header.top { position: absolute; left: 0; right: 0; top: 0; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.peak header.top .logo, body.peak header.top .logo span { color: #FFFFFF; }
body.peak header.top .logo small { color: rgba(255,255,255,.75); }
body.peak header.top .icon-btn { color: #FFFFFF; }
body.peak header.top .icon-btn:hover { background: rgba(255,255,255,.15); }
body.peak header.top #install { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); color: #fff; }
body.peak .wrap { padding-top: 0; }
body.peak .hero { position: relative; margin: 0 calc(50% - 50vw) 22px; padding: 96px calc(50vw - 50%) 34px; min-height: 290px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; color: #FFFFFF;
  background: linear-gradient(180deg, rgba(20, 32, 36, .18) 0%, rgba(20, 32, 36, .04) 40%, rgba(20, 32, 36, .58) 100%), var(--peaks) center bottom / cover no-repeat; }
body.peak .hero > * { max-width: min(100%, 720px); }
body.peak .hero .row { max-width: 100%; }
body.peak { overflow-x: hidden; }
body.peak .hero h1 { color: #FFFFFF; font-size: clamp(28px, 4vw, 42px); text-shadow: 0 2px 18px rgba(0,0,0,.25); max-width: 22ch; }
body.peak .hero p, body.peak .hero .hint { color: rgba(255,255,255,.88); }
body.peak .hero b { color: #FFFFFF; }
body.peak .hero .badge { background: rgba(255,255,255,.2); color: #fff; }
body.peak .hero .badge.ok { background: rgba(126, 240, 184, .25); color: #E9FFF4; }
body.peak .hero .badge.warn { background: rgba(255, 210, 122, .28); color: #FFF5DF; }
body.peak .hero .who, body.peak .hero .rating { color: rgba(255,255,255,.9); }
body.peak .hero .btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); color: #fff; }
body.peak .hero .btn:hover { background: rgba(255,255,255,.26); }
body.peak .hero .btn.primary, body.peak .btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
body.peak .btn.primary:hover { background: #D96A1F; border-color: #D96A1F; }
body.peak .btn.dark { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
body.peak .card { border: 0; border-radius: 6px; box-shadow: var(--shadow); }
body.peak .card h3 { font-weight: 800; }
body.peak .meta .ic, body.peak .card .ic { color: var(--orange); }
body.peak .badge.cat { background: #FCEBDD; color: #B4561A; }
body.peak h2 { text-align: center; margin: 26px 0 16px; }
body.peak .section-h { justify-content: center; }
body.peak input, body.peak select, body.peak textarea { border-radius: 6px; }
body.peak input:focus, body.peak select:focus, body.peak textarea:focus { border-color: var(--orange); outline-color: rgba(238, 122, 43, .2); }
body.peak .chips label:has(input:checked) { background: #FCEBDD; border-color: var(--orange); color: #B4561A; }
body.peak .check input, body.peak .chips input { accent-color: var(--orange); }
body.peak nav.bottom a.on { color: var(--orange); }
body.peak .empty { background: var(--card); border: 0; box-shadow: var(--shadow); border-radius: 6px; }
body.peak .scroll { border: 0; border-radius: 6px; box-shadow: var(--shadow); }
@media (max-width: 720px) { body.peak .hero { background: linear-gradient(180deg, rgba(20, 32, 36, .30) 0%, rgba(20, 32, 36, .45) 45%, rgba(20, 32, 36, .72) 100%), var(--peaks) 62% bottom / cover no-repeat; } }

/* ==========================================================================
   Главная (body.ocean): морская панорама, стеклянный поиск, глубина темнеет к низу
   ========================================================================== */
body.ocean {
  --ink: #EAF7FA; --ink2: #B9DCE4; --muted: #86B4C0;
  --bg: #072634; --card: rgba(8, 44, 60, .62); --soft: rgba(255,255,255,.06); --line: rgba(120, 214, 232, .28);
  --cobalt: #4FD1E8; --cobalt-2: #86E3F2; --on-cobalt: #04222E; --lapis: rgba(79, 209, 232, .16);
  --saffron: #C9DB4A; --modal-bg: #0B3446;
  --shadow: 0 18px 50px rgba(0, 12, 20, .55);
  color-scheme: dark;
  background: linear-gradient(180deg, #0D3B4F 0%, #0A3043 30%, #072433 60%, #03121B 100%);
}
html:has(body.ocean) { background: #03121B; }
body.ocean header.top { background: rgba(4, 24, 34, .72); border-bottom-color: rgba(120, 214, 232, .16); }
body.ocean .logo span { color: #C9DB4A; }
body.ocean nav.tabs a { color: #C5E3EA; }
body.ocean nav.tabs a:hover { background: rgba(255,255,255,.08); }
body.ocean nav.tabs a.on { background: transparent; color: #C9DB4A; box-shadow: inset 0 -2px 0 #C9DB4A; border-radius: 0; }
body.ocean footer.foot { border-top-color: rgba(120, 214, 232, .14); }
body.ocean .glass {
  background: linear-gradient(180deg, rgba(120, 214, 232, .14), rgba(8, 44, 60, .55) 35%, rgba(6, 34, 48, .72));
  border: 1px solid rgba(140, 224, 240, .32); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 40px rgba(0, 10, 18, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
body.ocean .btn { background: rgba(255,255,255,.06); border-color: rgba(140, 224, 240, .4); color: var(--ink); }
body.ocean .btn:hover { background: rgba(255,255,255,.12); }
body.ocean .btn.primary { background: linear-gradient(180deg, #E2EE73, #B9CE36); border: 0; color: #1E2A08; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 16px rgba(185, 206, 54, .3); }
body.ocean input, body.ocean select { background: rgba(2, 20, 30, .55); border-color: rgba(140, 224, 240, .32); color: var(--ink); }
body.ocean select option { background: #0B3446; }
/* первый экран: панорама и поиск поверх неё */
.sea-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: end;
  margin: 0 calc(50% - 50vw); padding: 120px calc(50vw - 50%) 28px; min-height: 460px; overflow: hidden; }
.sea-art { position: absolute; inset: 0; z-index: 0; }
.sea-art svg { width: 100%; height: 100%; display: block; }
.sea-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 24, 34, .35), transparent 30%, transparent 55%, rgba(7, 38, 52, .92)); }
.sea-copy, .sea-search { position: relative; z-index: 1; }
.sea-copy h1 { color: #FFFFFF; max-width: 18ch; text-shadow: 0 3px 22px rgba(0, 20, 30, .55); }
.sea-copy p { color: #DDF2F5; font-size: 17px; max-width: 46ch; text-shadow: 0 1px 10px rgba(0, 20, 30, .5); }
.sea-search { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sea-search h2 { font-size: 17px; margin: 0; color: #fff; }
.sea-search .btn { width: 100%; margin-top: 4px; }
@media (max-width: 820px) { .sea-hero { grid-template-columns: 1fr; padding-top: 170px; } }
/* полоса направлений */
.sea-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: -8px; position: relative; z-index: 2; overflow: hidden; }
.sea-feature { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; text-decoration: none; color: var(--ink2); font-size: 14px; }
.sea-feature + .sea-feature { border-left: 1px solid rgba(140, 224, 240, .2); }
.sea-feature:hover { background: rgba(255,255,255,.05); }
.sea-feature b { display: block; color: #fff; font: 800 17px/1.3 var(--display); margin-bottom: 4px; }
.sea-feature .sf-ic { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(201, 219, 74, .25), rgba(79, 209, 232, .18)); color: #C9DB4A; box-shadow: inset 0 0 0 1px rgba(201,219,74,.35); }
.sea-feature .sf-ic .ic { width: 30px; height: 30px; }
.sea-feature .more { grid-column: 2; justify-self: end; font-weight: 600; color: var(--cobalt); font-size: 13px; padding: 5px 12px; border: 1px solid rgba(140,224,240,.35); border-radius: 6px; }
@media (max-width: 720px) { .sea-strip { grid-template-columns: 1fr; } .sea-feature + .sea-feature { border-left: 0; border-top: 1px solid rgba(140,224,240,.2); } }
/* строка категорий */
.sea-cats { display: flex; gap: 4px; overflow-x: auto; margin: 14px 0; padding: 6px; scrollbar-width: none; }
.sea-cats::-webkit-scrollbar { display: none; }
.sea-cats a { white-space: nowrap; padding: 9px 14px; border-radius: 8px; text-decoration: none; color: #DDF2F5; font-weight: 600; font-size: 14px; }
.sea-cats a:first-child { color: #C9DB4A; }
.sea-cats a:hover { background: rgba(255,255,255,.08); }
/* три панели */
.sea-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sea-panels .panel { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sea-panels h3 { color: #fff; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid rgba(140,224,240,.2); }
.sea-panels .steps { grid-template-columns: 1fr; margin: 0; gap: 10px; }
.sea-panels .steps li::before { background: rgba(201, 219, 74, .2); color: #C9DB4A; }
.sea-panels .btn { align-self: flex-start; margin-top: auto; }
.mini { display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink2); padding: 6px; border-radius: 8px; }
.mini-row:hover { background: rgba(255,255,255,.06); }
.mini-row b { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.mini-ic { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: rgba(79, 209, 232, .14); color: var(--cobalt); flex: none; }
@media (max-width: 860px) { .sea-panels { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .sea-hero { padding-top: 250px; }
  .sea-art { bottom: auto; height: 300px; }
  .sea-art::after { background: linear-gradient(180deg, rgba(4, 24, 34, .3), transparent 35%, transparent 60%, #0A3043 100%); }
}

/* ==========================================================================
   Аренда для праздника (body.gala): графит, золото, узкие заголовки заглавными, колонна банкетного зала
   ========================================================================== */
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(/assets/fonts/oswald-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(/assets/fonts/oswald-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(/assets/fonts/oswald-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(/assets/fonts/oswald-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
body.gala {
  --ink: #F4EFE6; --ink2: #CFC6B6; --muted: #9C9384;
  --bg: #2A2826; --card: #33302D; --soft: #3A3633; --line: #4A4540;
  --cobalt: #E8B04B; --cobalt-2: #F2C46E; --on-cobalt: #241A08; --lapis: rgba(232, 176, 75, .14);
  --saffron: #E8B04B; --modal-bg: #33302D;
  --gold: #E8B04B; --cond: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --shadow: 0 14px 34px rgba(0, 0, 0, .35);
  background: #2A2826; color-scheme: dark;
}
html:has(body.gala) { background: #2A2826; }
body.gala .gold { color: var(--gold); }
body.gala h1, body.gala h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .01em; font-weight: 700; }
body.gala h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 16px; }
body.gala header.top { background: rgba(42, 40, 38, .9); border-bottom-color: var(--line); }
body.gala .logo span { color: var(--gold); }
body.gala nav.tabs a { color: var(--ink2); }
body.gala nav.tabs a:hover { background: rgba(255,255,255,.06); }
body.gala nav.tabs a.on { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
body.gala .btn { border-radius: 4px; background: transparent; border-color: var(--line); color: var(--ink); }
body.gala .btn.primary { background: var(--gold); border-color: var(--gold); color: #241A08; font-family: var(--cond); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
body.gala .btn.primary:hover { background: #F2C46E; border-color: #F2C46E; }
body.gala input, body.gala select { background: #24221F; border-color: var(--line); border-radius: 4px; color: var(--ink); }
/* боковая колонна зала (на широком экране) */
.gala-side { display: none; }
@media (min-width: 1180px) {
  body.gala .gala-side { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 26vw; max-width: 380px; z-index: 0; border-right: 1px solid #4A4540; }
  body.gala .gala-side svg { width: 100%; height: 100%; display: block; }
  body.gala header.top .bar, body.gala nav.tabs, body.gala .wrap, body.gala footer.foot .in { margin-left: min(26vw, 380px); margin-right: auto; max-width: min(1000px, calc(100vw - min(26vw, 380px))); }
}
/* первый экран */
.gala-hero { padding: 28px 0 8px; }
.gala-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.gala-contacts .ic { color: var(--gold); width: 16px; height: 16px; }
.gala-hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: .98; margin: 0 0 18px; max-width: none; }
.gala-hero h1 span { display: block; }
.gala-hero p { color: var(--ink2); font-size: 17px; max-width: 54ch; }
.gala-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 18px; max-width: 560px; }
.gala-search label { flex: 1 1 220px; }
.gala-sec { margin-top: 36px; }
/* плитки праздников */
.gala-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gala-ev { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.gala-ev:hover { border-color: var(--gold); }
.gala-ev .art { width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 4px; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(232, 176, 75, .22), transparent 60%), linear-gradient(180deg, #3C3732, #2C2926); }
.gala-ev .art svg { width: 60%; height: auto; }
.gala-ev b { font-family: var(--cond); text-transform: uppercase; font-weight: 500; letter-spacing: .03em; font-size: 15px; }
@media (max-width: 560px) { .gala-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* чем удобнее */
.gala-why { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gala-why div { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: rgba(255,255,255,.02); }
.gala-why b { display: block; font-family: var(--cond); text-transform: uppercase; font-weight: 500; letter-spacing: .03em; font-size: 16px; margin-bottom: 6px; }
.gala-why p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .gala-why { grid-template-columns: 1fr; } }
.gala-cater { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 28px; padding: 18px 20px; border: 1px solid var(--gold, #E8B04B); border-radius: 6px; text-decoration: none; color: var(--ink);
  background: linear-gradient(90deg, rgba(232, 176, 75, .14), rgba(232, 176, 75, .03)); }
.gala-cater b { display: block; font-family: var(--cond); text-transform: uppercase; font-weight: 500; letter-spacing: .03em; font-size: 18px; margin-bottom: 4px; }
.gala-cater > span:first-child { color: var(--muted); font-size: 14px; }
.gala-cater .btn { flex: none; }
@media (max-width: 600px) { .gala-cater { flex-direction: column; align-items: stretch; } }
/* бегущая лента */
.gala-band { margin: 34px calc(50% - 50vw) 8px; border-block: 1px solid var(--line); overflow: hidden; padding: 12px 0; }
@media (min-width: 1180px) { .gala-band { margin-left: 0; margin-right: 0; } }
.gala-band > div { display: flex; gap: 22px; align-items: center; width: max-content; animation: galaRun 40s linear infinite; }
.gala-band span { font-family: var(--cond); text-transform: uppercase; font-weight: 700; font-size: 24px; white-space: nowrap; }
.gala-band i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); flex: none; }
@keyframes galaRun { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gala-band > div { animation: none; } }
/* каталог */
body.gala .card.listing { background: var(--card); border-color: var(--line); border-radius: 6px; }
body.gala .listing .pic { background: radial-gradient(circle at 50% 40%, rgba(232, 176, 75, .2), transparent 60%), linear-gradient(180deg, #3C3732, #2C2926); border-bottom-color: var(--line); }
body.gala .listing .pic::before { display: none; }
body.gala .listing .pic .ic { color: var(--gold); background: transparent; box-shadow: none; border: 1px solid rgba(232,176,75,.5); border-radius: 50%; }
body.gala .listing h3 { font-family: var(--cond); text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
body.gala .price { color: var(--gold); }
body.gala .badge { background: #3A3633; color: var(--ink2); }
body.gala .badge.warn { background: rgba(232,176,75,.16); color: var(--gold); }
body.gala footer.foot { border-top-color: var(--line); }

/* админка: карточки состояния резервной копии */
.card.warn-card { border-color: var(--warn); background: var(--warn-bg); margin: 0 0 16px; }
.card.ok-card { border-color: var(--ok); background: var(--ok-bg); margin: 0 0 16px; }
.warn-card code, .ok-card code { font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.18); }

/* светлые шапки: золото чуть подложено тенью, чтобы знак и название читались */
body:not(.night):not(.gala):not(.ocean) .logo, body.aqua .logo { filter: drop-shadow(0 1px 1px rgba(40, 26, 0, .45)); }

/* ==========================================================================
   Реклама запуска: лента на всех страницах клиента, ролики на главной и у исполнителя
   ========================================================================== */
.launch-ribbon { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0px); background: linear-gradient(90deg, rgba(10, 20, 48, .96), rgba(22, 41, 94, .96) 55%, rgba(10, 20, 48, .96)); color: #F4EBD3; border-top: 1px solid rgba(232, 185, 78, .45); box-shadow: 0 -8px 30px rgba(0, 8, 30, .35); }
body:has(.launch-ribbon) footer.foot { padding-bottom: 76px; }
.launch-ribbon .in { max-width: 1080px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.launch-ribbon .lr-mark { flex: none; width: 22px; height: 22px; background: url(/assets/logo-mark-small.svg) center / contain no-repeat; }
.launch-ribbon .lr-text { flex: 1 1 300px; min-width: 0; }
.launch-ribbon .lr-text b { color: #F2D27F; font-weight: 600; }
.launch-ribbon .lr-link { color: #F2D27F; }
.launch-ribbon .lr-btn { padding: 6px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #2E1C00; background: linear-gradient(180deg, #FFD98A, #E8B94E); }
.launch-ribbon .lr-x { background: none; border: 0; color: #C9B27A; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.launch-ribbon .lr-x:focus-visible, .launch-ribbon a:focus-visible { outline: 2px solid #F2D27F; outline-offset: 2px; }

.launch-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: center; padding: 26px; margin: 18px 0; }
.launch-promo .lp-kick { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.launch-promo h2 { margin: 8px 0 10px; font-size: clamp(26px, 3.4vw, 36px); }
.launch-promo p { color: var(--ink2); max-width: 52ch; }
.launch-promo .row { margin-top: 16px; flex-wrap: wrap; }
.promo-vid { margin: 0; position: relative; }
.promo-vid video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: #061536; box-shadow: 0 18px 50px rgba(0, 10, 40, .35); }
.promo-vid figcaption { position: absolute; top: 10px; right: 10px; }
.vlang { display: flex; border-radius: 999px; overflow: hidden; background: rgba(6, 21, 54, .7); border: 1px solid rgba(255,255,255,.25); }
.vlang button { font: 700 12px/1 var(--body); color: #DDE6FF; background: transparent; border: 0; padding: 7px 10px; cursor: pointer; min-height: 32px; }
.vlang button[aria-pressed="true"] { background: #F2D27F; color: #2E1C00; }
section.hero.pro-landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 28px; align-items: center; }
.pro-landing .row { flex-wrap: wrap; }
@media (max-width: 720px) {
  .launch-promo, section.hero.pro-landing { grid-template-columns: 1fr; }
  .launch-promo .promo-vid, .pro-landing .promo-vid { max-width: 280px; margin: 0 auto; }
  .launch-ribbon .in { font-size: 13px; }
}
@media (max-width: 480px) { .launch-ribbon .lr-more { display: none; } .launch-ribbon .lr-text { flex-basis: 160px; } }

/* боковые рекламные колонки: в пустых полях слева и справа от контента, только на широких экранах */
.ad-rail { display: none; }
@media (min-width: 1600px) {
  .ad-rail { --side: calc((100vw - 1080px) / 2); display: flex; justify-content: center; position: fixed; top: 132px; width: var(--side); z-index: 5; pointer-events: none; }
  .ad-rail.l { left: 0; } .ad-rail.r { right: 0; }
  body.gala .ad-rail.l { --side: min(26vw, 380px); }
  body.gala .ad-rail.r { --side: calc(100vw - min(26vw, 380px) - 1000px); }
  .ad-rail .ad-in { pointer-events: auto; width: min(250px, calc(var(--side) - 48px)); display: flex; flex-direction: column; gap: 12px; }
  .ad-rail .ad-kick { font: 700 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-align: center; }
  .ad-rail .btn { justify-content: center; width: 100%; }
  .ad-rail .promo-vid video { max-height: calc(100vh - 560px); width: auto; max-width: 100%; margin: 0 auto; }
}
/* на широком экране ролик исполнителя уже в боковой колонке — в середине экрана входа его не дублируем */
@media (min-width: 1600px) { section.hero.pro-landing { grid-template-columns: 1fr; } section.hero.pro-landing > .promo-vid { display: none; } }
/* подпись колонки читается на любом фоне (горы, вода, графит) */
@media (min-width: 1600px) { .ad-rail .ad-kick { align-self: center; padding: 6px 12px; border-radius: 999px; background: rgba(10, 20, 48, .78); color: #F2D27F; } }

/* переключатель языка RU / UZ в шапке */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid currentColor; background: rgba(255,255,255,.06); cursor: pointer; font: 700 12px/1 var(--body); color: inherit; min-height: 34px; }
.lang-switch span { padding: 6px 9px; border-radius: 999px; }
.lang-switch span.on { background: linear-gradient(180deg, #F2D27F, #E8B94E); color: #2E1C00; }
.lang-switch:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
/* узкий телефон: шапка с переключателем языка помещается в одну строку */
@media (max-width: 480px) {
  header.top .bar { gap: 8px; }
  .logo { font-size: 19px; letter-spacing: .14em; }
  .logo::before { width: 28px; height: 28px; margin-right: 8px; }
  .lang-switch { min-height: 30px; padding: 2px; }
  .lang-switch span { padding: 5px 6px; }
  header.top .bar .btn.sm { padding-inline: 10px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* фирменный моушн-ролик на главной: текст слева, ролик справа; на телефоне — вертикальный ролик под текстом */
.brand-film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; align-items: center; padding: 22px; margin: 18px 0; }
.brand-film .bf-kick { font: 700 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #B07A1C; }
.brand-film h2 { margin: 8px 0 10px; font-size: clamp(24px, 3vw, 34px); }
.brand-film p { margin: 0 0 16px; color: var(--ink2); }
.promo-vid.film video { aspect-ratio: 16 / 9; }
@media (max-width: 720px) {
  .brand-film { grid-template-columns: 1fr; }
  .promo-vid.film { max-width: 320px; width: 100%; margin: 0 auto; }
  .promo-vid.film video { aspect-ratio: 9 / 16; }
}

/* Instagram и Telegram внизу каждой страницы: QR на компьютере, кнопки на телефоне */
.insta-foot { max-width: 1080px; margin: 28px auto 90px; padding: 0 16px; }
.insta-foot .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 24px; padding: 20px 24px; border-radius: 20px; }
.insta-foot .ig-copy > b { display: block; margin: 0 0 8px; font-size: clamp(20px, 2.4vw, 26px); }
.insta-foot p { margin: 0; color: var(--ink2); }
.insta-foot .socs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.insta-foot .soc { display: flex; align-items: center; gap: 16px; }
.insta-foot .soc b { display: block; margin: 6px 0 10px; font-size: 18px; }
.insta-foot .ig-qr { flex: none; width: 120px; height: 120px; padding: 8px; background: #FFF8E6; border-radius: 14px; box-shadow: 0 0 0 2px #E8B94E, 0 10px 30px rgba(176, 122, 28, .25); }
.insta-foot .ig-kick { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #C9962F; }
.insta-foot .btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 1100px) { .insta-foot .in { grid-template-columns: 1fr; } }
body.gala .insta-foot .in { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .insta-foot .ig-qr, .insta-foot .ig-scan { display: none; }
  .insta-foot .in { padding: 18px; }
  .insta-foot .socs { grid-template-columns: 1fr; gap: 12px; }
  .insta-foot .soc b { margin: 4px 0 8px; }
}
body.gala .insta-foot .in { background: #24221F; border: 1px solid var(--line); border-radius: 6px; }
@media (min-width: 1180px) {
  body.gala .insta-foot { position: relative; z-index: 1; margin-left: calc(min(26vw, 380px) + 16px); margin-right: auto; max-width: min(1000px, calc(100vw - min(26vw, 380px) - 32px)); padding: 0; }
}

/* календарь (слева) и часы (справа) под рекламой в боковых колонках */
  .rail-w { pointer-events: auto; border-radius: 18px; padding: 14px 14px 12px; background: linear-gradient(160deg, #0F2150, #070F26); border: 1px solid rgba(232,185,78,.45);
  box-shadow: 0 14px 40px rgba(0,10,40,.35), inset 0 1px 0 rgba(255,227,160,.15); color: #fff; font-family: var(--body, sans-serif); }
.cal-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cal-h b { font: 600 19px/1 'Cormorant Garamond', Georgia, serif; color: #F2D27F; letter-spacing: .04em; text-transform: capitalize; }
.cal-h span { font-size: 11px; color: #9FB0D8; letter-spacing: .12em; text-transform: uppercase; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12px; }
.cal-g .wd { color: #C9962F; font-weight: 700; font-size: 10px; letter-spacing: .06em; padding: 2px 0 4px; }
.cal-g .wd.we, .cal-g .d.we { color: #F2B8A0; }
.cal-g .d { padding: 5px 0; border-radius: 50%; color: #DDE6FF; }
.cal-g .d.o { opacity: .25; }
.cal-g .d.t { background: radial-gradient(circle, #FFE3A0, #E8B94E 70%); color: #2E1C00; font-weight: 800; box-shadow: 0 0 12px rgba(232,185,78,.7); }
.cal-f { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(232,185,78,.25); font-size: 12px; color: #C7D2F0; text-align: center; }
.clk { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.clk svg { width: 150px; height: 150px; filter: drop-shadow(0 0 10px rgba(232,185,78,.35)); }
.clk .dig { font: 700 30px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .06em; color: #FFE3A0; font-variant-numeric: tabular-nums; }
.clk .dig small { font-size: 16px; color: #C9962F; }
.clk .cap { font-size: 11px; color: #9FB0D8; letter-spacing: .2em; text-transform: uppercase; }

/* блок с роликами услуги на её странице: текст слева, вертикальный ролик справа */
.svc-film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: center; padding: 22px 26px; margin: 22px 0; position: relative; z-index: 1; }
.svc-film .bf-kick { font: 700 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #C9962F; }
.svc-film h2 { margin: 8px 0 10px; font-size: clamp(22px, 2.8vw, 32px); }
.svc-film p { margin: 0; color: var(--ink2); max-width: 46ch; }
.svc-film .promo-vid video { max-height: 520px; width: auto; max-width: 100%; margin: 0 auto; }
body.gala .svc-film { background: #24221F; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 720px) {
  .svc-film { grid-template-columns: 1fr; padding: 18px; }
  .svc-film .promo-vid { max-width: 280px; width: 100%; margin: 0 auto; }
}

/* «Сколько вам лет?» на главной */
.age-box { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; padding: 26px 28px; margin: 18px 0; }
.age-box .ak { font: 700 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #E8B94E; }
.age-box h2 { margin: 8px 0 8px; font-size: clamp(24px, 3vw, 34px); }
.age-box p { margin: 0 0 16px; color: var(--ink2); }
.age-form { display: flex; gap: 10px; flex-wrap: wrap; }
.age-form input { width: 160px; font: 700 22px/1 var(--body); letter-spacing: .12em; text-align: center; padding: 12px; }
.age-res { position: relative; overflow: hidden; min-height: 250px; border-radius: 22px; padding: 22px 24px; background: radial-gradient(120% 120% at 30% 0%, #16295C, #070F26 70%);
  border: 1px solid rgba(232,185,78,.5); box-shadow: inset 0 1px 0 rgba(255,227,160,.2), 0 18px 50px rgba(0,10,40,.35); color: #fff; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; }
.age-num { grid-row: span 2; animation: agePop .7s cubic-bezier(.3,1.6,.4,1) both; font: 700 120px/0.9 Oswald, 'Arial Narrow', sans-serif; letter-spacing: -.02em; text-align: center;
  background: linear-gradient(180deg, #FFF3C4 0%, #F0C255 40%, #B07A1C 70%, #F7D888 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(232,185,78,.45)); }
.age-num small { display: block; font: 700 16px/1.2 var(--body); letter-spacing: .25em; text-transform: uppercase; -webkit-text-fill-color: #E8B94E; margin-top: 6px; }
.age-line { font: 800 20px/1.3 var(--body); }
.age-line em { font-style: normal; color: #FFE3A0; }
.age-sub { font: 600 15px/1.4 var(--body); color: #C7D2F0; }
.age-chips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.age-chip { animation: chipIn .5s ease both; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); text-align: center; }
.age-chip b { display: block; font: 700 22px/1.1 Oswald, sans-serif; color: #FFE3A0; }
.age-chip span { display: block; margin-top: 4px; font-size: 12px; color: #C7D2F0; }
.age-chip .mu { font-size: 30px; line-height: 1.1; }
.age-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(232,185,78,.25); }
.age-cta span { color: #C7D2F0; font-size: 14px; }
.conf { position: absolute; inset: 0; pointer-events: none; }
.conf i { position: absolute; top: -14px; left: var(--x); width: 8px; height: 12px; background: var(--c); border-radius: 2px; transform: rotate(var(--r)); animation: ageFall var(--t) linear var(--w) both; }
.age-empty { grid-column: 1 / -1; text-align: center; color: #9FB0D8; }
 @media (max-width: 720px) { .age-box { grid-template-columns: 1fr; padding: 18px; } .age-res { padding: 18px; gap: 4px 14px; } .age-num { font-size: 92px; }
  .age-line { font-size: 17px; } .age-chips { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .age-chip { padding: 8px 4px; } .age-chip b { font-size: 16px; } .age-cta { flex-direction: column; align-items: stretch; text-align: center; } }
.age-empty b { display: block; font: 700 90px/1 Oswald, sans-serif; color: rgba(232,185,78,.35); }
@keyframes agePop { from { opacity: 0; transform: scale(.4) rotate(-8deg); } }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px); } }
.age-chip:nth-child(2) { animation-delay: .12s; } .age-chip:nth-child(3) { animation-delay: .24s; }
@keyframes ageFall { to { transform: translateY(330px) rotate(calc(var(--r) + 540deg)); opacity: 0; } }
.age-line, .age-sub, .age-cta { animation: chipIn .5s ease .1s both; }
@media (prefers-reduced-motion: reduce) { .age-num, .age-chip, .age-line, .age-sub, .age-cta { animation: none; } .conf { display: none; } }

/* аренда: фильтр по категориям каталога и подсказки шаблона карточки */
.rcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.rcats button { font: 600 14px/1 var(--body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; min-height: 38px; }
.rcats button small { opacity: .6; margin-left: 4px; }
.rcats button.on { background: var(--gold, #E8B94E); border-color: var(--gold, #E8B94E); color: #241A08; }
body.gala .rcats button { border-radius: 4px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.rcat-tag { display: inline-block; font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rcat-tips { font-size: 13px; line-height: 1.45; color: var(--ink2); background: rgba(232,185,78,.1); border: 1px dashed rgba(232,185,78,.5); border-radius: 10px; padding: 10px 12px; }

/* витрина «Что можно арендовать» на странице аренды */
.showcase .hint { margin: -6px 0 14px; }
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.show-item { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.show-item .art { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(232,185,78,.14); color: var(--gold, #E8B94E); }
.show-item b { font-size: 16px; line-height: 1.25; }
.show-item .price { font-weight: 700; color: var(--gold, #C9962F); }
.show-item .price small { font-weight: 500; color: var(--muted); }
.show-item .btn { margin-top: auto; align-self: flex-start; }
body.gala .show-item { border-radius: 6px; }

/* админка → Статистика */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); margin-top: 10px; }
.seg button { border: 0; background: transparent; color: var(--ink); font: 600 14px/1 var(--body); padding: 9px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.seg button.on { background: #E8B94E; color: #241A08; }
.kpi .dl { display: inline-block; margin-left: 6px; font: 700 12px/1 var(--body); color: var(--muted); }
.kpi .dl.up { color: #3BB273; } .kpi .dl.down { color: #E5534B; }
.kpi small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.a-box { min-width: 0; } .a-box.wide { grid-column: 1 / -1; }
.a-box h3 { margin: 0 0 12px; font-size: 16px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--body); fill: var(--muted); }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 13px; color: var(--ink2); }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.hbars, .funnel { display: flex; flex-direction: column; gap: 8px; }
.hb, .fn { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.hb-l, .fn-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.hb-t, .fn-t { height: 10px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; }
.hb-t i { display: block; height: 100%; background: #38C6E8; border-radius: 5px; }
.fn-t i { display: block; height: 100%; background: #E8B94E; border-radius: 5px; }
.fn small { color: var(--muted); min-width: 34px; text-align: right; }
.tbl-wrap { overflow-x: auto; margin-bottom: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { cursor: pointer; color: var(--muted); font-weight: 600; user-select: none; }
.tbl th[data-dir="asc"]::after { content: ' ▲'; } .tbl th[data-dir="desc"]::after { content: ' ▼'; }
@media (max-width: 760px) { .a-grid { grid-template-columns: 1fr; } .hb, .fn { grid-template-columns: minmax(80px, 40%) 1fr auto; } .fn small { display: none; } }
@media (max-width: 760px) {
  body.night .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-box .chart { min-width: 560px; }
  .a-box:has(.chart) { overflow-x: auto; }
}
