/* Наше Аскарово — дизайн-система
   Цвета флага Башкортостана и долины Абзелила: ультрамарин неба, зелень лугов, золото курая,
   красная нить вышивки. Шрифты: Unbounded (заголовки) + Golos Text (текст). */

:root {
  --ink: #10172A;
  --ink-2: #3A4458;
  --muted: #5A6478;
  --line: #DCE2EA;
  --line-2: #EBEFF4;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;

  --sky: #1B3F8B;
  --sky-deep: #0E2557;
  --sky-soft: #E7EDF8;
  --meadow: #2E7D4E;
  --meadow-deep: #22663E;
  --meadow-soft: #E2F1E8;
  --kurai: #F4D030;
  --kurai-deep: #8A5F0B;
  --kurai-soft: #FBF1D8;
  --ember: #C62F2C;
  --ember-soft: #F8E4E0;
  --amber: #A65E00;

  /* Цвета логотипа */
  --azure: #1E9ED9;
  --azure-deep: #0D6EAD;
  --azure-soft: #E3F2FB;
  --logo-red: #CF2E2E;
  --logo-green: #348755;
  --logo-yellow: #F4D030;
  --logo-grey: #CFCFCF;
  --logo-white: #FFFFFF;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 23, 42, .06), 0 8px 24px -12px rgba(16, 23, 42, .18);
  --shadow-lift: 0 2px 4px rgba(16, 23, 42, .06), 0 18px 40px -18px rgba(16, 23, 42, .35);

  --display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --text: 'Golos Text', 'PT Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF2F8; --ink-2: #C9D2E0; --muted: #9AA6BA; --line: #2A3550; --line-2: #222C44;
    --bg: #0B1226; --surface: #131C33; --surface-2: #18223C;
    --sky-soft: #1A2A52; --meadow-soft: #133A29; --kurai-soft: #3A2E12; --ember-soft: #3D1D19;
    --kurai-deep: #F1C66A; --amber: #F0A64A; --meadow: #3FA26F; --ember: #E06A5A;
    --azure-soft: #10304A; --logo-grey: #4A5670;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EEF2F8; --ink-2: #C9D2E0; --muted: #9AA6BA; --line: #2A3550; --line-2: #222C44;
  --bg: #0B1226; --surface: #131C33; --surface-2: #18223C;
  --sky-soft: #1A2A52; --meadow-soft: #133A29; --kurai-soft: #3A2E12; --ember-soft: #3D1D19;
  --kurai-deep: #F1C66A; --amber: #F0A64A; --meadow: #3FA26F; --ember: #E06A5A;
  --azure-soft: #10304A; --logo-grey: #4A5670;
  color-scheme: dark;
}
:root[data-text="large"] { font-size: 112.5%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky); text-underline-offset: .18em; }
:root[data-theme="dark"] a, :root:not([data-theme="light"]) a { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a:not([class]) { color: #8FB0EE; } }
:root[data-theme="dark"] a:not([class]) { color: #8FB0EE; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--kurai); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--kurai); color: #10172A; padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* Типографика: шкала 1.25 */
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
.h-display { font: 800 clamp(2.6rem, 7.2vw, 5.8rem)/.95 var(--display); letter-spacing: -.035em; }
.h1 { font: 700 clamp(1.9rem, 4.2vw, 3rem)/1.05 var(--display); letter-spacing: -.025em; }
.h2 { font: 700 clamp(1.45rem, 2.6vw, 2rem)/1.1 var(--display); letter-spacing: -.02em; }
.h3 { font: 600 1.25rem/1.25 var(--text); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
p { margin: 0; }
.prose p + p { margin-top: .8em; }
.prose { max-width: 68ch; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--sky-deep) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  color: #fff;
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 11px; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.22), 0 4px 12px -4px rgba(0,0,0,.45); }
.brand-name { font: 800 .98rem/1 var(--display); letter-spacing: .02em; }
.brand-sub { font: 500 .78rem/1.2 var(--text); color: var(--logo-yellow); display: block; margin-top: 3px; letter-spacing: .01em; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { color: #DDE6F6; text-decoration: none; font-weight: 500; font-size: .93rem; padding: 9px 10px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.lang { display: inline-flex; border-radius: 999px; background: rgba(255,255,255,.08); padding: 3px; }
.lang a { color: #DDE6F6; text-decoration: none; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.lang a[aria-current="true"] { background: #fff; color: var(--sky-deep); }

@media (max-width: 1340px) { .nav { display: none; } }
@media (max-width: 560px) { .lang, .top .btn-add { display: none; } .brand-sub { display: none; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 1rem/1.1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: var(--sky-deep); color: #fff; }
.btn-go { background: var(--meadow); color: #fff; }
.btn-go:hover { background: var(--meadow-deep); color: #fff; }
.btn-gold { background: var(--kurai); color: #10172A; }
.btn-gold:hover { background: #F7DC5C; color: #10172A; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-danger { background: var(--surface); color: var(--ember); border-color: color-mix(in srgb, var(--ember) 35%, transparent); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .9rem; border-radius: var(--r-sm); }
.btn-lg { min-height: 56px; padding: 16px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.top .btn-add { min-height: 42px; padding: 10px 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--sky); color: var(--sky); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.tag-partner { background: var(--kurai); color: #10172A; }
.tag-plus { background: var(--sky-soft); color: var(--sky); }
.tag-ok { background: var(--meadow-soft); color: var(--meadow); }
.tag-warn { background: var(--kurai-soft); color: var(--kurai-deep); }
.tag-bad { background: var(--ember-soft); color: var(--ember); }
.tag-soft { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); font-weight: 500; }

/* Статус «открыто» */
.st { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; }
.st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.st-open, .st-always { color: var(--meadow); }
.st-open::before, .st-always::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--meadow) 18%, transparent); }
.st-closing { color: var(--amber); }
.st-closed { color: var(--muted); }
.st-unknown { color: var(--muted); font-weight: 500; }
.st-unknown::before { background: transparent; border: 1.5px solid currentColor; }

/* ---------- Баннер ---------- */
.hero { position: relative; color: #fff; background: var(--sky-deep); overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: end; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(130px, 13vw, 170px); }
.hero-title { text-wrap: balance; }
.hero-bash { font: 500 clamp(1rem, 1.8vw, 1.35rem)/1.2 var(--display); color: #F2D48A; margin-top: 18px; letter-spacing: .01em; }
.hero-lead { color: #D8E2F4; font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 46ch; margin-top: 14px; }
.hero-now { justify-self: end; width: 100%; max-width: 360px; display: grid; gap: 10px; }
.now-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg);
  background: rgba(10, 24, 60, .55); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
a.now-card:hover { background: rgba(10, 24, 60, .72); color: #fff; }
.now-card .ico-box { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; color: #F2D48A; }
.now-k { font-size: .82rem; color: #B9C9E6; }
.now-v { font: 700 1.15rem/1.2 var(--display); letter-spacing: -.01em; }
.now-v small { font: 500 .85rem var(--text); color: #D8E2F4; letter-spacing: 0; }

.search { position: relative; margin-top: 28px; max-width: 640px; }
.search-box {
  display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 18px; padding: 6px 6px 6px 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.search-box .ico { color: #5A6478; flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 1.06rem var(--text); color: #10172A; padding: 12px 8px; }
.search-box input::placeholder { color: #7A8497; }
.search-box .btn { min-height: 48px; border-radius: 13px; }
.search-box .btn .ico { color: #fff; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); overflow: hidden; z-index: 30; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-2); }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--sky-soft); }
.suggest .s-kind { margin-left: auto; font-size: .8rem; color: var(--muted); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.quick a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.quick a:hover { background: rgba(255,255,255,.2); }

/* Анимация баннера: горы и солнце поднимаются один раз */
.ridge, .sun-g { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ridge { animation: rise 1.3s cubic-bezier(.2,.8,.2,1) both; }
  .hero-art .r1 { animation-delay: .05s; } .hero-art .r2 { animation-delay: .15s; } .hero-art .r3 { animation-delay: .27s; } .hero-art .r4 { animation-delay: .4s; } .hero-art .r5 { animation-delay: .52s; }
  .hero-art .sun-g { animation: sunrise 1.8s cubic-bezier(.2,.8,.2,1) both; }
  .hero-art .kurai-ring { animation: spin 240s linear infinite; transform-box: fill-box; transform-origin: center; }
  .hero-copy > * { animation: fadein .9s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .12s; } .hero-copy > *:nth-child(3) { animation-delay: .2s; } .hero-copy > *:nth-child(4) { animation-delay: .28s; } .hero-copy > *:nth-child(5) { animation-delay: .36s; }
}
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sunrise { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.orn-band { height: 24px; background: var(--meadow-deep) url(/img/orn-gold.svg) repeat-x center / 64px 24px; }
.orn-band.navy { background-color: var(--sky-deep); }
.orn-line { height: 24px; background: url(/img/orn-navy.svg) repeat-x center / 64px 24px; opacity: .22; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 150px; }
  .hero-now { justify-self: stretch; max-width: none; grid-template-columns: 1fr 1fr; }
  .hero-now .now-bus { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .search-box .btn span { display: none; }
  .hero-now { gap: 8px; }
  .now-card { padding: 12px 14px; gap: 10px; border-radius: 16px; }
  .now-card .ico-box { display: none; }
  .now-card > .ico { display: none; }
  .now-v { font-size: 1.05rem; }
  .quick a { padding: 7px 12px; font-size: .86rem; }
}
.hero-sun-m { display: none; }
@media (max-width: 900px) { .hero-sun-m { display: block; position: absolute; right: -40px; top: -36px; width: 136px; height: 136px; z-index: -1; pointer-events: none; } .hero-copy { position: relative; } }
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) { .hero-sun-m .kurai-ring { animation: spin 240s linear infinite; transform-box: fill-box; transform-origin: center; } }

/* ---------- Секции ---------- */
main { display: block; }
.section { padding-top: clamp(44px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head .more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.section-head .more:hover { text-decoration: underline; }
.section-sub { color: var(--muted); margin-top: 8px; max-width: 60ch; }

.alertbar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--kurai-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--kurai) 45%, transparent); }
.alertbar.danger { background: var(--ember-soft); border-color: color-mix(in srgb, var(--ember) 35%, transparent); }
.alertbar .ico { color: var(--kurai-deep); flex: none; }
.alertbar.danger .ico { color: var(--ember); }
.alerts { display: grid; gap: 10px; margin-top: -36px; position: relative; z-index: 2; }

/* Категории */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.cat {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.cat:hover { border-color: color-mix(in srgb, var(--sky) 50%, var(--line)); box-shadow: var(--shadow); }
.cat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.tone-gold { background: var(--kurai-soft); color: var(--kurai-deep); }
.tone-blue { background: var(--sky-soft); color: var(--sky); }
.tone-green { background: var(--meadow-soft); color: var(--meadow); }
.tone-red { background: var(--ember-soft); color: var(--ember); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tone-blue { color: #8FB0EE; } }
.cat-name { font-weight: 650; font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.cat-count { font-size: .85rem; color: var(--muted); }

/* Карточки бизнесов */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.biz {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s, border-color .15s;
}
.biz:hover { box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--sky) 30%, var(--line)); }
.biz.is-partner { border: 2px solid var(--kurai); }
.biz-cover { aspect-ratio: 16 / 7; position: relative; overflow: hidden; }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.biz-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.biz-name { font: 600 1.08rem/1.3 var(--text); }
.biz-meta { color: var(--muted); font-size: .9rem; }
.biz-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

/* Обложка-заглушка: спокойный цвет категории, полоса орнамента снизу и знак в круге */
.ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 16px; background: url(/img/orn-light.svg) repeat-x center / 42px 16px; opacity: .55; }
.ph .ico { width: 30px; height: 30px; box-sizing: content-box; padding: 14px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.35); margin-bottom: 18px; }
.ph-gold { background-color: #B98318; color: #fff; }
.ph-blue { background-color: var(--sky); color: #fff; }
.ph-green { background-color: var(--meadow); color: #fff; }
.ph-red { background-color: #A23527; color: #fff; }
.b-hero .ph .ico { width: 48px; height: 48px; padding: 22px; }
.b-hero .ph::after { height: 24px; background-size: 64px 24px; bottom: 80px; }

/* Строка списка (компактная) */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.li:first-child { border-top: 0; }
a.li:hover { background: var(--surface-2); }
.li-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 600; }
.li-sub { font-size: .88rem; color: var(--muted); }
.li-end { flex: none; text-align: right; }

/* Вкладки-фильтры */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* Двухколоночные секции */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* События */
.events { display: grid; gap: 10px; }
.ev { display: flex; gap: 16px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; color: var(--ink); text-decoration: none; }
.ev:hover { border-color: color-mix(in srgb, var(--sky) 40%, var(--line)); box-shadow: var(--shadow); }
.ev-date { width: 78px; flex: none; border-radius: 14px; background: var(--sky); color: #fff; display: grid; place-content: center; text-align: center; padding: 10px 6px; position: relative; overflow: hidden; }
.ev-date::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: url(/img/orn-gold.svg) repeat-x center / 32px 12px; opacity: .9; }
.ev-day { font: 800 1.9rem/1 var(--display); }
.ev-mon { font-size: .82rem; color: #F2D48A; margin-top: 4px; }
.ev-body { display: grid; gap: 3px; align-content: center; padding: 4px 4px 4px 0; min-width: 0; }
.ev-kind { font-size: .82rem; font-weight: 600; color: var(--meadow); }
.ev-title { font-weight: 600; font-size: 1.06rem; line-height: 1.3; }
.ev.is-pinned .ev-date { background: var(--kurai); color: #10172A; }
.ev.is-pinned .ev-mon { color: #5C3F06; }

/* Транспорт */
.dep { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line-2); }
.dep:first-child { border-top: 0; }
.dep-time { font: 700 1.15rem var(--display); letter-spacing: -.01em; }
.dep.gone { opacity: .45; }
.dep.next .dep-time { color: var(--meadow); }
.soon { background: var(--meadow-soft); color: var(--meadow); font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.later { background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); }

/* Экстренные */
.sos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.sos a { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sos a:hover { border-color: var(--ember); }
.sos b { font: 800 2rem/1 var(--display); color: var(--ember); letter-spacing: -.02em; }
.sos a.main { background: var(--ember); border-color: var(--ember); color: #fff; }
.sos a.main b { color: #fff; }

/* Места */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.place { position: relative; min-height: 230px; border-radius: var(--r-xl); overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; isolation: isolate; }
.place-art { position: absolute; inset: 0; z-index: -1; }
.place-art svg { width: 100%; height: 100%; }
.place::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,18,46,0) 30%, rgba(8,18,46,.78)); }
.place-kind { font-size: .82rem; font-weight: 600; color: #F2D48A; }
.place-title { font: 700 1.12rem/1.2 var(--display); letter-spacing: -.01em; margin-top: 4px; }
.place-sum { font-size: .92rem; color: #DCE5F5; margin-top: 6px; }

/* Telegram-блок */
.tg { position: relative; border-radius: var(--r-xl); background: var(--sky-deep); color: #fff; padding: clamp(24px, 4vw, 44px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; isolation: isolate; }
.tg::before { content: ''; position: absolute; right: -40px; top: -40px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(232,178,58,.35), rgba(232,178,58,0) 68%); z-index: -1; }
.tg-posts { display: grid; gap: 10px; }
.tg-post { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 4px 18px 18px 18px; padding: 14px 16px; }
.tg-post time { font-size: .8rem; color: #B9C9E6; display: block; margin-bottom: 4px; }
@media (max-width: 860px) { .tg { grid-template-columns: 1fr; } }

/* Для бизнеса */
.biz-cta { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; }
@media (max-width: 860px) { .biz-cta { grid-template-columns: 1fr; } }
.tariffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.tariff { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 6px; align-content: start; background: var(--surface); }
.tariff.gold { border: 2px solid var(--kurai); background: var(--kurai-soft); }
.tariff-price { font: 700 1.5rem/1.1 var(--display); letter-spacing: -.02em; }
.tariff ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-2); }
.tariff li { display: flex; gap: 8px; }
.tariff li .ico { color: var(--meadow); flex: none; margin-top: 2px; }

/* ---------- Подвал ---------- */
.foot { margin-top: clamp(56px, 8vw, 96px); background: var(--sky-deep); color: #C9D5EC; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 32px; }
.foot h3 { font: 600 .95rem var(--text); color: #fff; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 28px; font-size: .85rem; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Нижнее меню телефона */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; font-size: .7rem; font-weight: 500; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--sky); font-weight: 700; }
  .tabbar a[aria-current="page"] .ico { stroke-width: 2.1; }
}

/* ---------- Страницы раздела ---------- */
.page-head { background: var(--sky-deep); color: #fff; padding: 36px 0 30px; position: relative; }
.page-head .lead { color: #D3DEF2; margin-top: 10px; }
.page-head a { color: #F2D48A; }
.crumbs { font-size: .88rem; color: #B9C9E6; margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #DDE6F6; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head + .orn-band { }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 22px 0 18px; }
.toolbar .grow { min-width: 220px; }
.field-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 14px; min-height: 48px; }
.field-search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; color: var(--ink); min-width: 0; padding: 10px 0; }
.field-search .ico { color: var(--muted); }
.switch-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; min-height: 44px; }

.layout-side { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.side-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.side-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.side-nav a:hover { background: var(--surface); }
.side-nav a[aria-current="true"] { background: var(--sky); color: #fff; font-weight: 600; }
.side-nav a span:last-child { color: inherit; opacity: .6; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } .side-nav { display: none; } }

.empty { text-align: left; padding: 40px 28px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.empty .orn-line { margin-bottom: 18px; width: 192px; }

/* ---------- Карточка бизнеса ---------- */
.b-hero { position: relative; height: clamp(220px, 34vw, 380px); background: var(--sky); overflow: hidden; }
.b-hero img { width: 100%; height: 100%; object-fit: cover; }
.b-hero .ph .ico { width: 72px; height: 72px; }
.b-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 100%; }
.b-gallery img:first-child { grid-row: 1 / -1; }
.b-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: -64px; position: relative; }
@media (max-width: 960px) { .b-wrap { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); }
.panel + .panel { margin-top: 14px; }
.panel-title { font: 600 1.1rem var(--text); margin-bottom: 12px; }
.b-title { font: 700 clamp(1.7rem, 3.6vw, 2.5rem)/1.08 var(--display); letter-spacing: -.025em; }
.b-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.b-actions .btn { flex-direction: column; gap: 4px; min-height: 68px; padding: 10px 6px; font-size: .9rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours-table td { padding: 7px 0; border-top: 1px solid var(--line-2); }
.hours-table tr:first-child td { border-top: 0; }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.today td { font-weight: 700; color: var(--meadow); }
.kv { display: grid; gap: 0; }
.kv a, .kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.kv > :first-child { border-top: 0; }
.kv span:last-child { font-weight: 600; text-align: right; color: var(--sky); overflow-wrap: anywhere; }
.map { height: 260px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); z-index: 0; }
.promo { border: 2px solid var(--kurai); background: var(--kurai-soft); border-radius: var(--r-lg); padding: 18px; }
.promo b { color: var(--kurai-deep); font-size: .85rem; }
.verified { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--meadow); font-weight: 600; }
.sticky-call { display: none; }
@media (max-width: 760px) {
  .sticky-call { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 44; }
  .sticky-call .btn { flex: 1; box-shadow: var(--shadow-lift); }
}

/* ---------- Формы ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .form-shell { grid-template-columns: 1fr; } .preview-col { order: -1; } }
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; }
.steps button { width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 8px; }
.steps .bar { height: 6px; border-radius: 999px; background: var(--line); }
.steps .lbl { font-size: .88rem; color: var(--muted); }
.steps .lbl::before { content: counter(st) '. '; }
.steps [aria-current="step"] .bar { background: var(--sky); }
.steps [aria-current="step"] .lbl { color: var(--sky); font-weight: 700; }
.steps .done .bar { background: var(--meadow); }
.steps .done .lbl { color: var(--meadow); }
@media (max-width: 560px) { .steps .lbl { font-size: .75rem; } }

.fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.fs legend { font: 700 1.35rem/1.2 var(--display); letter-spacing: -.015em; margin-bottom: 18px; padding: 0; }
.js .fs[hidden] { display: none; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .label { font-weight: 600; font-size: .97rem; }
.req { color: var(--ember); }
.hint { font-size: .86rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 13px 15px; min-height: 50px; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--sky) 35%, var(--line)); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 15%, transparent); }
.input[aria-invalid="true"] { border-color: var(--ember); }
.err { color: var(--ember); font-size: .88rem; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sky); flex: none; }
.check-card { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface); }
.check-card:has(input:checked) { border-color: var(--meadow); background: color-mix(in srgb, var(--meadow-soft) 60%, var(--surface)); }

.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.cat-pick label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--surface); font-weight: 500; font-size: .95rem; min-height: 54px; }
.cat-pick label:hover { border-color: color-mix(in srgb, var(--sky) 40%, var(--line)); }
.cat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pick label:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); color: var(--sky); font-weight: 600; }
.cat-pick label:has(input:focus-visible) { outline: 3px solid var(--kurai); outline-offset: 2px; }
.cat-pick .cat-ico { width: 34px; height: 34px; border-radius: 10px; }

.tag-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pick label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .92rem; background: var(--surface); min-height: 42px; }
.tag-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tag-pick label:has(input:checked) { background: var(--meadow); border-color: var(--meadow); color: #fff; }
.tag-pick label:has(input:focus-visible) { outline: 3px solid var(--kurai); outline-offset: 2px; }

/* Редактор часов */
.hours-ed { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.hours-presets { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.hrow { display: grid; grid-template-columns: 96px auto 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line-2); }
.hrow:first-of-type { border-top: 0; }
.hrow .dname { font-weight: 600; }
.hrow .times { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hrow input[type="time"] { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-height: 42px; }
.hrow.off .times { opacity: .35; pointer-events: none; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; color: var(--muted); }
.toggle input { appearance: none; -webkit-appearance: none; width: 42px; height: 26px; border-radius: 999px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background .15s; flex: none; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked { background: var(--meadow); }
.toggle input:checked::after { transform: translateX(16px); }
@media (max-width: 520px) { .hrow { grid-template-columns: 1fr auto; } .hrow .times { grid-column: 1 / -1; } }

/* Загрузка фото */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); border: 1.5px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--sky); font-weight: 600; font-size: .9rem; cursor: pointer; }
.photo-slot:hover { border-color: var(--sky); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .rm { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(16,23,42,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.form-nav { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.form-nav .hint { margin: 0 auto; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Превью */
.preview-col { position: sticky; top: 84px; display: grid; gap: 18px; }
.pv-label { font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tg-chat { background: #B5CDB0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 14px 14px; border-radius: var(--r-lg); padding: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tg-chat { background-color: #1D2A22; } }
.tg-msg { background: #fff; color: #10172A; border-radius: 6px 18px 18px 18px; overflow: hidden; max-width: 380px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 0; }
.tg-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; }
.tg-name { font-weight: 700; color: #1B3F8B; font-size: .95rem; }
.tg-img { margin-top: 10px; aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.tg-img img { width: 100%; height: 100%; object-fit: cover; }
.tg-img .tg-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; font: 700 1.05rem/1.15 var(--display); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.tg-text { padding: 10px 12px 8px; font-size: .94rem; line-height: 1.45; white-space: pre-line; }
.tg-text b { font-weight: 700; }
.tg-text .tg-link { color: #2A6FC9; }
.tg-time { text-align: right; font-size: .75rem; color: #8A93A3; padding: 0 12px 8px; }
.tg-btn { margin-top: 6px; max-width: 380px; background: rgba(255,255,255,.85); color: #2A6FC9; text-align: center; padding: 11px; border-radius: 12px; font-weight: 600; font-size: .94rem; }

.success { text-align: left; padding: clamp(24px, 5vw, 48px); }
.success-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--meadow-soft); color: var(--meadow); display: grid; place-items: center; margin-bottom: 18px; }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 6px 6px 14px; margin-top: 10px; }
.copybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .88rem; }

/* ---------- Админка ---------- */
.adm { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: #0C1430; color: #C9D5EC; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.adm-side a { color: #C9D5EC; text-decoration: none; padding: 10px 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .95rem; }
.adm-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-side a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.adm-side .count { background: var(--kurai); color: #10172A; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.adm-main { padding: clamp(18px, 3vw, 32px); min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: .94rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--line-2); vertical-align: top; }
.table th { background: var(--surface-2); font-size: .82rem; color: var(--muted); font-weight: 600; border-top: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.stat b { display: block; font: 700 1.7rem/1.1 var(--display); }
.review { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .review { grid-template-columns: 1fr; } }
.diff { background: var(--kurai-soft); border-radius: 8px; padding: 2px 6px; }
.notice { padding: 14px 16px; border-radius: var(--r-md); background: var(--sky-soft); color: var(--ink); }
.notice.ok { background: var(--meadow-soft); }
.notice.bad { background: var(--ember-soft); }
@media (max-width: 820px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
}

.login { min-height: 100vh; display: grid; place-items: center; background: var(--sky-deep); padding: 24px; }
.login .panel { width: 100%; max-width: 420px; }

/* Печать карточки (QR для двери) */
@media print { .top, .foot, .tabbar, .sticky-call, .no-print { display: none !important; } body { background: #fff; } }
html:not(.js) .no-js-hide{display:none}

.biz-cta .tariffs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: center; }
@media (max-width: 520px) { .biz-cta .tariffs { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; }
  .cat .cat-ico { width: 40px; height: 40px; border-radius: 12px; }
  .cat-name { font-size: .97rem; }
  .cat-count { font-size: .8rem; }
  .section-head .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); width: calc(100% + var(--gutter) * 2); }
  .section-head .tabs::-webkit-scrollbar { display: none; }
  .biz-cover { aspect-ratio: 16 / 6; }
}
[hidden] { display: none !important; }
.fs legend { float: left; width: 100%; }
.fs legend + * { clear: both; }
.tg-img .ph::after { display: none; }
.later:empty, .soon:empty { display: none; }

.dep.off { opacity: .55; }
.dep-list:not(.show-gone) [data-gone] { display: none; }
.dep-more { display: block; width: 100%; text-align: left; padding: 11px 18px; border: 0; border-top: 1px solid var(--line-2); background: none; color: var(--sky); font: 600 .9rem var(--text); cursor: pointer; }
.dep-list.show-gone .dep-more { display: none; }
.toolbar .chips-scroll { padding-left: 0; padding-right: 0; margin: 0; }
.top .wrap { gap: 16px; }

/* Логотип «Асҡар 1729» */
.foot-logo { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.2); }
.tg-ava { overflow: hidden; background: none; }
.tg-ava-img { width: 100%; height: 100%; display: block; }
.adm-side .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.login .brand-mark { width: 56px; height: 56px; border-radius: 14px; }


/* ================================================================
   Стиль логотипа «Асҡар 1729»
   Фигуры: зелёный щит, жёлтый круг, белая стела с серым контуром,
   курай с точками. Цвета: голубой, красный, зелёный, жёлтый.
   ================================================================ */

/* Значки разделов — цветные фигуры с белым кольцом и серым контуром, как элементы логотипа */
.tone-blue, .tone-green, .tone-gold, .tone-red {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--logo-grey);
}
.tone-blue { background: var(--azure); color: #fff; }
.tone-red { background: var(--logo-red); color: #fff; }
.tone-green { background: var(--logo-green); color: #fff; border-radius: 4px 4px 46% 46% / 4px 4px 38% 38% !important; }
.tone-gold { background: var(--logo-yellow); color: #4A3800; border-radius: 50% !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tone-blue { color: #fff; } }
.cat-pick label:has(input:checked) .cat-ico { box-shadow: 0 0 0 2px var(--sky-soft), 0 0 0 3.5px var(--sky); }

/* Обложки-заглушки: цвет раздела + белый круг со значком, как жёлтый круг на логотипе */
.ph-blue { background-color: var(--azure); }
.ph-green { background-color: var(--logo-green); }
.ph-red { background-color: var(--logo-red); }
.ph-gold { background-color: #E2B81A; }
.ph .ico { background: #fff; border: 3px solid var(--logo-grey); box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); }
:root .ph .ico { border-color: #CFCFCF; }
.ph-blue .ico { color: var(--azure-deep); }
.ph-green .ico { color: var(--logo-green); }
.ph-red .ico { color: var(--logo-red); }
.ph-gold .ico { color: #9A7600; }
.ph-gold::after { opacity: .7; }

/* Дата события — белая стела с серым контуром: число красное, как буквы «АСҠАР», месяц зелёный, как «1729» */
.ev-date { background: #fff; color: var(--logo-red); border: 2px solid #CFCFCF; padding-top: 18px; }
.ev-date::after { top: 4px; bottom: auto; left: 50%; right: auto; width: 26px; height: 14px; transform: translateX(-50%); background: url(/img/kurai.svg) no-repeat center / contain; opacity: 1; }
.ev-day { color: var(--logo-red); }
.ev-mon { color: var(--logo-green); font-weight: 700; }
.ev.is-pinned .ev-date { background: var(--logo-yellow); border-color: #E3B91C; }
.ev.is-pinned .ev-date::after { filter: brightness(0) invert(1); }
.ev.is-pinned .ev-mon { color: var(--logo-green); }

/* Шапки разделов: голубое сияние логотипа и курай справа */
.page-head {
  background:
    url(/img/kurai-white.svg) no-repeat right max(16px, calc((100vw - var(--wrap)) / 2)) bottom 18px / 190px auto,
    radial-gradient(120% 140% at 85% 120%, rgba(30, 158, 217, .55) 0%, rgba(30, 158, 217, 0) 60%),
    var(--sky-deep);
}
.page-head::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 700px) { .page-head { background-size: 120px auto, auto, auto; background-position: right 12px bottom 12px, 0 0, 0 0; } }
.page-head { background-blend-mode: soft-light, normal, normal; }
.page-head a { color: var(--logo-yellow); }

/* Экстренные номера — красный логотипа */
.sos a.main { background: var(--logo-red); border-color: var(--logo-red); }
.sos b { color: var(--logo-red); }

/* Карточки в баннере: значки в фигурах логотипа */
.hero-now .now-card .ico-box { color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.hero-now .now-card:nth-child(1) .ico-box { background: var(--logo-yellow); color: #4A3800; border-radius: 50%; }
.hero-now .now-card:nth-child(2) .ico-box { background: var(--logo-green); border-radius: 4px 4px 46% 46% / 4px 4px 38% 38%; }
.hero-now .now-card:nth-child(3) .ico-box { background: var(--azure); }
.hero-bash { color: var(--logo-yellow); }

/* Пустые состояния: вместо полоски орнамента — курай */
.empty .orn-line { width: 72px; height: 42px; background: url(/img/kurai.svg) no-repeat left center / contain; opacity: 1; }

/* Метка «Партнёр» и выбранные чипы */
.tag-partner { background: var(--logo-yellow); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--logo-grey); }

/* Тонкая трёхцветная нить логотипа под орнаментальной лентой */
.orn-band { position: relative; }
.orn-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, var(--azure) 0 33.33%, var(--logo-white) 33.33% 66.66%, var(--logo-green) 66.66%); }
.foot .orn-band::after { display: none; }

/* Обложки: голубой фон логотипа с мягким сиянием в центре, цвет раздела — у значка */
.ph-blue, .ph-green, .ph-red, .ph-gold { background-color: #1596D4; background-image: radial-gradient(circle at 50% 45%, #6CB6E6 0%, #2AA2DC 45%, #0F95D3 100%); }
.ph-green .ico { color: #fff; background: var(--logo-green); border-radius: 6px 6px 46% 46% / 6px 6px 38% 38%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #CFCFCF, 0 6px 18px -8px rgba(0,0,0,.35); }
.ph-gold .ico { color: #4A3800; background: var(--logo-yellow); border: 3px solid #fff; box-shadow: 0 0 0 1.5px #CFCFCF, 0 6px 18px -8px rgba(0,0,0,.35); }
.ph-red .ico { color: var(--logo-red); }
.ph-blue .ico { color: var(--azure-deep); }
.ph-gold::after { opacity: .55; }

/* ================================================================
   Исправления разметки (аудит всех страниц на 1440 / 1024 / 768 / 390 px)
   ================================================================ */

/* Кнопки переносят текст, а не вылезают за карточку */
.btn { white-space: normal; text-align: center; max-width: 100%; text-wrap: balance; }
.btn-sm { white-space: nowrap; }

/* Колонки сеток не растягиваются под длинное содержимое */
.split > *, .layout-side > *, .form-shell > *, .b-wrap > *, .review > *, .hero-inner > *, .tg > *, .biz-cta > *, .grid-2 > * { min-width: 0; }
@media (max-width: 900px) {
  .split, .layout-side { grid-template-columns: minmax(0, 1fr); }
  .hero-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) { .b-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .form-shell { grid-template-columns: minmax(0, 1fr); } }

/* Тарифы: ровная сетка без пустых колонок, кнопка всегда внизу карточки */
.tariffs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tariff { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tariff ul { margin-bottom: 10px; }
.tariff > .btn { margin-top: auto; width: 100%; }
.tariff span, .tariff li { overflow-wrap: anywhere; }
.biz-cta .tariffs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .biz-cta .tariffs { grid-template-columns: minmax(0, 1fr); } }

/* Блоки «CTA» с кнопкой справа складываются на телефоне */
@media (max-width: 640px) {
  .biz-cta { grid-template-columns: minmax(0, 1fr) !important; }
  .biz-cta > .btn { justify-self: start; }
}

/* Строки списков: длинный статус переносится, а не выталкивается */
.li-main { min-width: 0; overflow-wrap: anywhere; }
.li-end { flex: 0 1 auto; min-width: 0; max-width: 46%; text-align: right; }
.li-end .st { white-space: normal; justify-content: flex-end; text-align: right; line-height: 1.3; }
@media (max-width: 560px) {
  .li { flex-wrap: wrap; row-gap: 4px; }
  .li-end { flex-basis: 100%; max-width: none; text-align: left; padding-left: 56px; }
  .li-end .st { justify-content: flex-start; text-align: left; }
}

/* Расписание: время, описание и бейдж помещаются в узкой колонке */
.dep { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
.dep > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .dep { padding: 12px 14px; } .dep-time { font-size: 1.05rem; } }

/* Навигация формы переносится на телефоне */
.form-nav { flex-wrap: wrap; }
@media (max-width: 560px) {
  .form-nav [data-submit], .form-nav .btn-go { width: 100%; }
  .form-nav .hint { flex-basis: 100%; order: -1; text-align: left; margin: 0; }
}

/* Нижнее меню телефона: пять равных колонок, подписи не раздвигают экран */
@media (max-width: 760px) {
  .tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tabbar a { min-width: 0; padding-left: 0; padding-right: 0; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
}

/* Длинные слова и адреса в карточках */
.biz-name, .biz-meta, .b-title, .kv span, .panel { overflow-wrap: anywhere; }
.kv a, .kv div { min-width: 0; }
.kv span:first-child { flex: none; }

/* Длинные слова в заголовках («Конфиденциальность») не раздвигают экран телефона */
h1, h2, h3, .h1, .h2, .h-display, .b-title { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) {
  .h1 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .b-title { font-size: clamp(1.4rem, 6vw, 1.7rem); }
}

/* Экстренные номера: без «сироты» в последнем ряду */
.sos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); }
@media (max-width: 560px) { .sos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sos a.main { grid-column: 1 / -1; } }
/* Куда сходить: три карточки помещаются в ряд на планшете */
.places { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
/* Курай в шапках разделов не ложится под текст на телефоне */
@media (max-width: 700px) { .page-head { background: radial-gradient(120% 140% at 85% 120%, rgba(30, 158, 217, .55) 0%, rgba(30, 158, 217, 0) 60%), var(--sky-deep); } }

/* Стела «Асҡар 1729» на баннере: крупная на широких экранах, на узких — меньше и на переднем холме */
.hero-art .st-t, .hero-art .st-m { display: none; }
@media (max-width: 1239px) { .hero-art .st-d { display: none; } .hero-art .st-t { display: inline; } }
@media (max-width: 900px) { .hero-art .st-t { display: none; } .hero-art .st-m { display: inline; } }

/* На узких экранах одно солнце — маленькое у заголовка; большое из пейзажа скрываем, чтобы не было двух */
@media (max-width: 900px) { .hero-art .sun-g { display: none; } }
