/* «Северная гравюра»: тёплая бумага, гранитные чернила, кирпич для действий, золото гербов для акцентов. */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215, U+2605, U+FEFF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/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-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/cormorant-garamond-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-cyrillic-500-italic.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-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }

:root {
  --paper: #F3EDE2; --surface: #FBF8F2; --ink: #1E2629; --ink-2: #4A5559;
  --brick: #A4462A; --brick-d: #86371F; --gold: #C49A3E; --sky: #8FA9B4; --moss: #5C6A4C;
  --line: #DDD3C2; --line-2: #C9BDA8;
  --ok: #3E5A3A; --bad: #A4462A;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 6px; --sec: 128px; --gut: 24px;
  /* совместимость с админкой */
  --muted: var(--ink-2); --sand: var(--paper);
}
@media (max-width: 1100px) { :root { --sec: 96px; } }
@media (max-width: 760px) { :root { --sec: 72px; --gut: 20px; } .hero-cta { order: 1; } .hero-lead { order: 2; } .proof { order: 3; } .proof-note { order: 4; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); font-feature-settings: "tnum" 1, "lnum" 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick-d); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 88px); }
h2 { font-size: clamp(32px, 3.6vw, 44px); }
h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--brick); }
p { margin: 0 0 16px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 640px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 16px; }
.skip:focus { left: 8px; }
.eyebrow, .sec-num, .meta, .foot-h, dt { font: 500 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 16px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.lead, .hero-lead { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 640px; }
.badge { display: inline-block; border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 99px; padding: 2px 12px; font-size: 13px; letter-spacing: .02em; }

.testmode { position: fixed; left: 16px; bottom: 16px; z-index: 30; background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; opacity: .75; }
.testmode-bar { background: #fff3c4; color: #5a4300; text-align: center; font-size: 14px; padding: 6px 16px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--brick); color: var(--surface); border: 1px solid var(--brick); border-radius: 99px; padding: 15px 28px; font: 500 16px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; margin: 0; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--brick-d); border-color: var(--brick-d); color: var(--surface); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr, .more:hover .arr { transform: translateX(4px); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 10px 20px; font-size: 15px; }
.btn.big { width: 100%; padding: 18px 24px; font-size: 17px; }
.btn:disabled { opacity: .6; }
.more { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.more:hover { color: var(--brick); }
button.link { background: none; border: 0; color: var(--brick); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
button.link.danger, .danger { color: var(--bad); }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 237, 226, .9); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { color: var(--ink); display: flex; }
.logo-mark.big svg { width: 56px; height: 56px; }
.logo-text b { display: block; font: 600 24px/1 var(--serif); letter-spacing: .02em; }
.logo-text small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.nav { display: flex; gap: 32px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current] { border-color: var(--gold); color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line-2); border-radius: 99px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu-panel { position: fixed; left: 0; right: 0; top: 72px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px var(--gut) 32px; display: flex; flex-direction: column; box-shadow: 0 24px 48px rgba(30, 38, 41, .12); }
.menu-panel a:not(.btn) { font: 600 30px/1.2 var(--serif); color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 24px; }
@media (max-width: 1100px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 520px) { .top-cta { display: none; } .top-in { gap: 16px; min-height: 64px; } .menu-panel { top: 64px; } }

/* первый экран */
.hero { position: relative; overflow: hidden; min-height: clamp(720px, 92vh, 920px); border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; right: 0; bottom: 0; width: 68%; height: 100%; display: block; -webkit-mask-image: linear-gradient(to right, transparent 0 26%, #000 46%), linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to right, transparent 0 26%, #000 46%), linear-gradient(to bottom, transparent, #000 22%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-in { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { max-width: 760px; margin-bottom: 32px; }
.hero h1 em { display: block; }
.hero-lead { max-width: 520px; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 40px 0 48px; }
.proof { display: flex; gap: 40px; flex-wrap: wrap; margin: 0; }
.proof div { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--gold); }
.proof b { font: 600 36px/1 var(--sans); letter-spacing: -.02em; }
.proof b span { font-size: 22px; color: var(--gold); margin-left: 4px; vertical-align: 8px; }
.proof span { font-size: 14px; color: var(--ink-2); }
.proof-note { font-size: 13px; color: var(--ink-2); margin: 16px 0 0; }
@media (max-width: 1100px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-art { position: static; width: 100%; height: clamp(280px, 52vw, 460px); -webkit-mask-image: none; mask-image: none; border-bottom: 1px solid var(--line); }
  .hero-in { width: 100%; padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; }

  .eyebrow { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 24px; }
  .hero-cta { margin: 24px 0 40px; gap: 12px; }
  .proof { gap: 24px; }
  .proof b { font-size: 36px; }
}

/* секции */
.sec { padding-top: var(--sec); }
.sec-tight { padding-top: 48px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--gut); align-items: end; margin-bottom: 64px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { margin: 0; }
.sec-num { margin: 0 0 16px; color: var(--brick); font-size: 12px; letter-spacing: .2em; }
.sec-aside p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } }
.page-head { padding-top: 96px; }
.page-head h1 { max-width: 900px; }
@media (max-width: 760px) { .page-head { padding-top: 48px; } }

/* карточки экскурсий */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 64px var(--gut); }
.card { grid-column: span 2; display: flex; flex-direction: column; }
.card-half { grid-column: span 3; }
.card-wide { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.card-img { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 8 / 5; background: var(--surface); outline: 1px solid rgba(30, 38, 41, .12); outline-offset: -1px; }
.card-img svg { width: 100%; height: 100%; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img svg { transform: scale(1.035); }
.card-body { padding-top: 24px; display: flex; flex-direction: column; flex: 1; }
.card-wide .card-body { padding-top: 0; }
.meta { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; }
.meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); display: inline-block; }
.card .card-title { font-size: 30px; line-height: 1.08; margin: 0 0 12px; }
.card-wide .card-title { font-size: 44px; }
.card-cta { margin: 24px 0 0; }
.card-cta .more { font-size: 15px; color: var(--brick); }
.cards.two .card { grid-column: span 3; }
.card-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .4s; }
.card-title a:hover { background-size: 100% 1px; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-sub { color: var(--ink-2); margin: 0 0 24px; }
.card-wide .card-sub { font-size: 18px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-foot p { margin: 0; }
.price { font: 600 20px/1.1 var(--sans); letter-spacing: -.01em; }
.price small { font: 400 14px var(--sans); color: var(--ink-2); }
.stars { font-size: 14px; white-space: nowrap; }
.stars span { color: var(--gold); }
.stars small { color: var(--ink-2); font-size: 14px; }
.stars.new { color: var(--ink-2); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card, .card-half { grid-column: span 1; } .card-wide { grid-column: span 2; grid-template-columns: 1fr; gap: 0; } .card-wide .card-body { padding-top: 24px; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; gap: 48px; } .card, .card-half, .card-wide { grid-column: span 1; } .card .card-title { font-size: 30px; } }

/* принципы */
.band { margin-top: var(--sec); padding-bottom: var(--sec); background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pillars > div { border-top: 1px solid var(--line-2); padding-top: 24px; }
.pillar-n { font: italic 500 64px/1 var(--serif); color: var(--gold); margin: 0 0 24px; }
.pillars h3 { font-size: 30px; }
.pillars p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 40px; } }

/* гид */
.guide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 96px; align-items: center; }
.guide-art svg { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.guide blockquote { margin: 16px 0 32px; font: italic 500 clamp(32px, 3.6vw, 52px)/1.12 var(--serif); text-wrap: balance; }
.guide blockquote::before { content: "«"; color: var(--gold); }
.guide blockquote::after { content: "»"; color: var(--gold); }
.sign { font: 600 22px var(--serif); margin-bottom: 32px; }
.sign small { display: block; font: 400 14px/1.5 var(--sans); color: var(--ink-2); max-width: 420px; margin-top: 4px; }
.about { align-items: start; padding-top: 96px; }
.about .proof { margin-top: 40px; }
.about .proof-note { margin-bottom: 32px; }
body:has(.about) .foot { margin-top: 96px; }
.about .guide-art { position: sticky; top: 120px; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; gap: 40px; } .guide-art svg { max-width: 240px; } .about .guide-art { position: static; } }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); counter-reset: st; }
.steps li { counter-increment: st; padding-top: 0; }
.steps li::before { content: counter(st); display: block; font: 500 88px/1 var(--serif); color: var(--gold); margin-bottom: 16px; }
.steps h3 { font-size: 24px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gut); } .steps li::before { font-size: 64px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; } .steps li::before { grid-row: span 2; font-size: 64px; margin: 0; } }

/* вопросы */
.faq-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding-bottom: 0; }
.faq-sec .sec-head { grid-template-columns: 1fr; border: 0; margin-bottom: 24px; padding: 0; }
@media (max-width: 900px) { .faq-sec { grid-template-columns: 1fr; gap: 16px; } }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font: 600 22px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brick); }
.pm { position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: var(--ink); transition: transform .25s; }
.pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details p { margin: -8px 0 24px; color: var(--ink-2); max-width: 680px; }

/* страница экскурсии */
.crumbs { font-size: 14px; color: var(--ink-2); padding: 24px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.tour-banner { border-radius: var(--r); overflow: hidden; aspect-ratio: 1200 / 360; outline: 1px solid rgba(30, 38, 41, .12); outline-offset: -1px; }
.tour-banner svg { width: 100%; height: 100%; display: block; }
.tour-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 80px; margin: 48px 0 var(--sec); align-items: start; }
.tour-main h1 { font-size: clamp(44px, 5.2vw, 72px); }
.tour-body aside { position: sticky; top: 96px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 40px 0 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.facts div { padding: 16px 16px 16px 0; }
.facts div + div { border-left: 1px solid var(--line-2); padding-left: 16px; }
.facts dt { font-size: 12px; margin-bottom: 8px; }
.facts dd { margin: 0; font: 600 20px/1.2 var(--sans); letter-spacing: -.01em; }
.facts small { display: block; font: 400 13px/1.4 var(--sans); color: var(--ink-2); margin-top: 4px; }
.tour-proof { font-size: 14px; color: var(--ink-2); }
.tour-proof .stars { color: var(--ink); font-weight: 600; margin-right: 8px; }
.prose { font-size: 17px; line-height: 1.7; }
.prose .lead { font: italic 500 28px/1.35 var(--serif); margin: 48px 0; padding-left: 24px; border-left: 2px solid var(--gold); max-width: none; }
.prose h2 { margin: 72px 0 24px; }
.prose h3 { margin: 40px 0 16px; font-size: 26px; }
.note { background: var(--surface); border-left: 2px solid var(--gold); padding: 16px 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 1px; background: var(--brick); }
.ticks.cols2 { columns: 2; column-gap: 48px; }
.ticks.cols2 li { break-inside: avoid; }
@media (max-width: 760px) { .ticks.cols2 { columns: 1; } }
.route { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: rt; position: relative; }
.route::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 28px; border-left: 1.5px dashed var(--line-2); }
.route li { counter-increment: rt; position: relative; padding: 8px 0 16px 64px; min-height: 56px; }
.route li::before { content: counter(rt); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--ink); font: 600 20px/1 var(--serif); }
.route li:first-child::before, .route li:last-child::before { background: var(--ink); color: var(--paper); }
@media (max-width: 1000px) {
  .tour-body { grid-template-columns: 1fr; gap: 48px; }
  .tour-body aside { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); }
  .facts div:nth-child(4) { border-top: 1px solid var(--line-2); }
  .tour-banner { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) { .prose .lead { font-size: 24px; margin: 32px 0; } .tour-banner { aspect-ratio: 4 / 3; } }

/* нижняя полоса брони на телефоне */
.mbar { display: none; }
.mbar.off { transform: translateY(110%); }
@media (max-width: 1000px) {
  .mbar { transition: transform .25s; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: rgba(251, 248, 242, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); }
  .mbar p { margin: 0; line-height: 1.2; }
  .mbar b { font: 600 20px var(--sans); display: block; }
  .mbar small { color: var(--ink-2); font-size: 13px; }
  .mbar .btn { padding: 12px 24px; }
  .tour ~ .foot, body:has(.mbar) .foot { padding-bottom: 80px; }
  body:has(.mbar) .testmode { bottom: 88px; }
}

/* бронь */
.booking { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 32px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(30, 38, 41, .18); }
.booking h2 { font-size: 32px; margin: 0 0 8px; }
.booking-price { margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.booking-price b { font: 600 28px var(--sans); letter-spacing: -.02em; color: var(--ink); margin-right: 4px; }
.booking > p.muted { font-size: 14px; }
@media (max-width: 520px) { .booking { padding: 24px 20px; margin: 0 calc(-1 * var(--gut) + 8px); } }
.cal { margin: 16px 0 24px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-head b { font: 600 22px var(--serif); }
.cal-head a, .cal-head span:empty { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; text-decoration: none; color: var(--ink); font-size: 20px; line-height: 1; }
.cal-head span:empty { border-color: transparent; }
.cal-head a:hover { border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .wd { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 8px; }
.day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: #6B7375; font-size: 15px; }
.day.past { color: #6B7375; text-decoration: line-through; text-decoration-color: var(--line-2); }
.day.free { opacity: 1; color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid var(--line-2); background: var(--paper); transition: border-color .15s, background .15s; }
.day.free:hover { border-color: var(--ink); }
.day.sel { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.times { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.times legend { font: 600 20px var(--serif); margin-bottom: 12px; padding: 0; }
.time { border: 1px solid var(--line-2); border-radius: 99px; padding: 10px 20px; cursor: pointer; display: inline-flex !important; gap: 8px; align-items: center; margin: 0 !important; font-weight: 500; background: var(--paper); }
.time input { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin: 0; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.time input:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.time:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.time:has(input:focus-visible) { outline: 2px solid var(--brick); outline-offset: 2px; }
.time small { color: inherit; opacity: .7; }
.total { font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 16px; margin-top: 24px; }
.total b { font: 600 28px var(--sans); letter-spacing: -.02em; }

.form label { display: block; margin: 16px 0; font-size: 14px; font-weight: 500; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 16px; font: 400 16px var(--sans); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(196, 154, 62, .25); }
.form select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2629' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px !important; }
.form fieldset { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin: 24px 0 8px; }
.form fieldset legend { font: 600 20px var(--serif); padding: 0 0 4px; }
.form .check { display: block; position: relative; padding-left: 32px; font-weight: 400; font-size: 14px; line-height: 1.5; cursor: pointer; }
.form .check input, .check input[type=checkbox] { -webkit-appearance: none; appearance: none; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; margin: 0; border: 1px solid var(--ink-2); border-radius: 4px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.form .check input:checked { background: var(--ink); border-color: var(--ink); }
.form .check input:checked::after { content: ""; width: 10px; height: 5px; border: solid var(--paper); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.form .check input:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.form .check.inline { display: inline-block; margin-right: 16px; }
.form .check small { font-size: 13px; }
.err { display: block; color: var(--bad); font-size: 14px; margin-top: 4px; }
.alert { background: #F5E3DA; color: #6e1d0c; border-radius: var(--r); padding: 12px 16px; border-left: 2px solid var(--brick); }
.ok { background: #E4EADC; color: #23391f; border-radius: var(--r); padding: 12px 16px; border-left: 2px solid var(--moss); }
.request { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.request summary { cursor: pointer; font: 600 20px var(--serif); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.request summary::-webkit-details-marker { display: none; }
.request summary::after { content: "+"; font: 400 24px var(--sans); color: var(--brick); }
.request[open] summary::after { content: "−"; }

/* простые страницы */
.prose-wide { max-width: 880px; padding-top: 96px; padding-bottom: var(--sec); }
.prose-wide h1 { margin-bottom: 32px; }
.prose-wide > p, .prose-wide > ul { font-size: 17px; }
.prose-wide h2 { margin-top: 64px; }
.prose-wide .form { max-width: 560px; }
@media (max-width: 760px) { .prose-wide { padding-top: 48px; } }
.legal { font-size: 15px; }
.legal h2 { font-size: 26px; margin-top: 40px; }

.booking-status { padding-top: 96px; padding-bottom: var(--sec); }
.booking-status h1 { font-size: clamp(40px, 5vw, 64px); }
.booking-status dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; margin: 24px 0; }
.booking-status dt { font-size: 12px; padding-top: 3px; }
.booking-status dd { margin: 0; }
.status { display: inline-block; font-weight: 600; font-size: 14px; padding: 6px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); }
.status.s-confirmed, .status.s-done { background: #E4EADC; border-color: #C3CFB5; color: var(--ok); }
.status.s-expired, .status.s-cancelled, .status.s-refunded { background: #F5E3DA; border-color: #E5C3B3; color: var(--bad); }
@media (max-width: 520px) { .booking-status dl { grid-template-columns: 1fr; gap: 4px; } .booking-status dd { margin-bottom: 12px; } }

/* подвал */
.foot { background: var(--ink); color: #D9D2C4; margin-top: var(--sec); font-size: 15px; }
.foot .strip { display: block; width: 100%; height: 160px; background: var(--paper); margin-bottom: -1px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px var(--gut); padding-top: 72px; padding-bottom: 40px; }
.foot a { color: #F3EDE2; text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: var(--gold); }
.foot-brand .logo-mark { color: var(--gold); margin-bottom: 24px; }
.foot-title { font: italic 500 36px/1.1 var(--serif); color: var(--paper); max-width: 440px; margin-bottom: 16px; }
.foot-brand p:last-child { max-width: 420px; color: #B9B2A5; }
.foot-h { color: var(--gold); margin-bottom: 16px; }
.foot span { display: block; padding: 4px 0; }
.legal-line { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; border-top: 1px solid #3A4448; padding-top: 24px; font-size: 13px; color: #B9B2A5; }
.legal-line span { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; }
.legal-line a { display: inline; color: #B9B2A5; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .foot .strip { height: 96px; } }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: auto; background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 16px 16px 16px 24px; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); z-index: 40; display: flex; gap: 16px; align-items: center; }
.cookie[hidden] { display: none; }
.cookie a { color: var(--gold); }
.cookie button { flex: none; background: var(--paper); color: var(--ink); border: 0; border-radius: 99px; padding: 8px 20px; cursor: pointer; font: 500 14px var(--sans); }

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

@media (max-width: 760px) { .hero-cta { margin: 0 0 32px; } .hero-cta .btn { width: 100%; } }

/* ---- админка ---- */
body.admin { background: #f6f3ef; font-size: 16px; }
.atop { background: #2a211c; color: #fff; }
.atop-in { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; min-height: 54px; }
.atop a { color: #f4e2cc; text-decoration: none; font-size: 15px; }
.atop nav { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.atop .alogo { font-weight: 700; color: #fff; }
.atop button.link { color: #f4e2cc; }
.amain { padding-bottom: 60px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.kpis div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpis span, .kpis small { display: block; color: var(--muted); font-size: 13px; }
.kpis b { font-size: 28px; }
.kpis b.good { color: var(--ok); } .kpis b.bad { color: var(--bad); }
.scroll { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.atable th, .atable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.atable tr.sum td { font-weight: 700; }
.atable .short { width: 110px; }
tr.s-cancelled, tr.s-expired, tr.s-refunded { color: #a49686; }
tr.s-request td:first-child { border-left: 3px solid var(--gold); }
.filters a { margin-right: 8px; } .filters a.on { font-weight: 700; color: var(--ink); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: #fff; border-radius: 12px; padding: 14px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.pre { white-space: pre-wrap; }
.plain { list-style: none; padding: 0; } .plain li { padding: 4px 0; }
form.inline { display: inline; }
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 24px; }
.sday { background: #fff; border-radius: 10px; padding: 8px; min-height: 90px; border: 1px solid var(--line); font-size: 13px; }
.sday.we { background: #fffaf2; }
.sday h3 { font: 600 13px var(--sans); margin: 0 0 6px; }
.slot { background: #eef5ea; border-radius: 6px; padding: 4px 6px; margin: 4px 0; }
.slot.taken { background: #f6e1d6; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; } }
.mail pre { white-space: pre-wrap; background: #fff; padding: 10px; border-radius: 8px; font-size: 13px; }
code { font-size: 13px; background: #efe8de; padding: 1px 5px; border-radius: 5px; word-break: break-all; }
body.admin h1 { font-size: 40px; margin-top: 24px; } body.admin h2 { font-size: 30px; margin-top: 32px; }

/* Схема Старого города */
.map-wrap { margin: 0; border: 1px solid var(--ink); background: var(--surface); overflow-x: auto; }
.city-map { display: block; width: 100%; height: auto; min-width: 720px; }
.map-pin path { transition: transform .2s; transform-box: fill-box; transform-origin: 50% 100%; }
.map-pin:hover path, .map-pin:focus-visible path { transform: scale(1.12); }
.map-pin:focus-visible { outline: none; }
.map-pin:focus-visible circle { stroke: var(--ink); stroke-width: 2; }
.map-legend { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px var(--gut); }
.map-legend li { display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; align-items: baseline; }
.map-legend a { font: 600 20px/1.25 var(--serif); color: var(--ink); text-decoration: none; }
.map-legend a:hover { color: var(--brick); }
.map-legend small { grid-column: 2; color: var(--ink-2); font-size: 14px; }
.map-n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--brick); color: var(--surface); font: 700 14px/28px var(--sans); text-align: center; }
.map-hint { display: none; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .map-hint { display: block; } }
