/* Музейная лавка: синяя глазурь, ганч, золотая линия.
   Раскладка: тёмная шапка и герой на лазурите, витрина на светлом ганче,
   все фото товаров стоят в стрельчатых нишах (токча). */
:root {
  --night: #0b1c44;
  --lapis: #15327a;
  --lapis-soft: #24479c;
  --turq: #1b9aa3;
  --turq-deep: #0f7078;
  --gold: #d6a23e;
  --gold-deep: #a87a1f;
  --anor: #b3243b;
  --ganch: #f1f4f8;
  --white: #ffffff;
  --ink: #131c33;
  --ink-soft: #55607a;
  --line: #d5dce8;

  --display: "El Messiri", "Georgia", "Times New Roman", serif;
  --body: "Onest", "Helvetica Neue", Arial, sans-serif;

  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V46C0 22 30 10 50 0c20 10 50 22 50 46v79z'/%3E%3C/svg%3E");
  --stars-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 40 40'%3E%3Cpolygon points='40,20 34.14,25.86 34.14,34.14 25.86,34.14 20,40 14.14,34.14 5.86,34.14 5.86,25.86 0,20 5.86,14.14 5.86,5.86 14.14,5.86 20,0 25.86,5.86 34.14,5.86 34.14,14.14' fill='none' stroke='%23d6a23e' stroke-opacity='.2' stroke-width='.7'/%3E%3C/svg%3E");
  --stars-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%230b1c44'/%3E%3Cpolygon points='40,20 34.14,25.86 34.14,34.14 25.86,34.14 20,40 14.14,34.14 5.86,34.14 5.86,25.86 0,20 5.86,14.14 5.86,5.86 14.14,5.86 20,0 25.86,5.86 34.14,5.86 34.14,14.14' fill='%231b9aa3'/%3E%3Ccircle cx='20' cy='20' r='5' fill='%23f1f4f8'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23d6a23e'/%3E%3Ccircle cx='40' cy='0' r='3' fill='%23d6a23e'/%3E%3Ccircle cx='0' cy='40' r='3' fill='%23d6a23e'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%23d6a23e'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ganch);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.5rem;
  border: 1.5px solid transparent; border-radius: 4px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #e4b558; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn-lapis { background: var(--lapis); color: var(--white); }
.btn-lapis:hover { background: var(--lapis-soft); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Верхняя полоса: часы работы, язык, валюта */
.topbar { background: var(--night); color: #c9d3ea; font-size: .875rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.topbar-note { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.topbar-controls { display: flex; align-items: center; gap: .75rem; flex: none; }
.seg { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
.seg button { background: none; border: 0; padding: .3rem .7rem; color: #c9d3ea; font-size: .875rem; }
.seg button + button { border-left: 1px solid rgba(255,255,255,.25); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--night); font-weight: 600; }
.currency select {
  appearance: none; background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c9d3ea' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .6rem center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 4px;
  padding: .3rem 1.7rem .3rem .7rem; color: #c9d3ea; font-size: .875rem;
}
.currency option { color: var(--ink); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.logo-mark { width: 38px; height: 38px; }
.logo-mark polygon { fill: var(--lapis); }
.logo-mark circle { fill: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font: 700 1.55rem/1 var(--display); color: var(--lapis); letter-spacing: .01em; }
.logo-text small { font-size: .78rem; color: var(--ink-soft); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { border-color: var(--turq); color: var(--turq-deep); }
.cart-btn {
  display: flex; align-items: center; gap: .5rem; flex: none;
  background: var(--lapis); color: var(--white); border: 0; border-radius: 4px;
  min-height: 44px; padding: 0 .9rem 0 .8rem; font-weight: 600;
}
.cart-btn:hover { background: var(--lapis-soft); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cart-count {
  min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 1rem;
  background: var(--gold); color: var(--night); font-size: .82rem; line-height: 1.5rem; text-align: center;
  font-variant-numeric: tabular-nums;
}

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); padding: 0; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; stroke: var(--lapis); stroke-width: 2; stroke-linecap: round; fill: none; }

/* Герой */
.hero { background: var(--lapis) var(--stars-line); color: var(--white); }
.hero-in {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-text { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 600; letter-spacing: -.005em; }
.hero-text p { max-width: 34rem; font-size: 1.1rem; color: #d7deef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-arch {
  position: relative; width: min(100%, 380px); aspect-ratio: 4 / 5;
  padding: 12px; isolation: isolate;
}
.hero-arch::before, .hero-arch::after {
  content: ""; position: absolute; z-index: -1;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}
.hero-arch::before { inset: 0; background: var(--gold); }
.hero-arch::after { inset: 2px; background: var(--night); }
.hero-arch img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}
.hero-caption { font-size: .875rem; color: #b9c4e0; text-align: center; }

/* Аркада: край тёмного блока вырезан стрельчатыми арками */
.hero, .footer { position: relative; }
.hero { padding-bottom: 44px; }
.hero::after, .footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 44px;
  background: repeat-x center bottom / 88px 44px;
}
.hero::after {
  bottom: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M0 30V22C0 12 18 6 30 0c12 6 30 12 30 22v8z' fill='%23f1f4f8'/%3E%3Cpath d='M0 22C0 12 18 6 30 0c12 6 30 12 30 22' fill='none' stroke='%23d6a23e' stroke-width='1'/%3E%3C/svg%3E");
}
.footer::before {
  bottom: calc(100% - 1px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M0 30V22C0 12 18 6 30 0c12 6 30 12 30 22v8z' fill='%230b1c44'/%3E%3Cpath d='M0 22C0 12 18 6 30 0c12 6 30 12 30 22' fill='none' stroke='%23d6a23e' stroke-width='1'/%3E%3C/svg%3E");
}

/* Ниша для фото */
.niche {
  position: relative; aspect-ratio: 4 / 5; --pad: 9px; background: #dfe6f1;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}
.niche img {
  position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: cover;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}

/* Категории */
.cats { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.cats h2 { margin-bottom: 1.8rem; }
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.8rem, 2vw, 1.6rem); }
.cat { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; text-align: center; background: none; border: 0; padding: 0; }
.cat .niche { background: var(--lapis); transition: background-color .2s; }
.cat:hover .niche { background: var(--turq); }
.cat-name { font: 600 1.15rem/1.2 var(--display); }
.cat-count { font-size: .875rem; color: var(--ink-soft); }

/* Каталог */
.catalog { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.catalog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: .45rem .95rem; font-weight: 500;
}
.filters button:hover { border-color: var(--lapis); }
.filters button[aria-selected="true"] { background: var(--lapis); border-color: var(--lapis); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2.2vw, 2rem); }
.card { display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.card-open { background: none; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: .85rem; }
.card .niche { width: 100%; }
.card-open:hover .niche { background: var(--gold); }
.card-name { font: 600 1.15rem/1.25 var(--display); }
.card-origin { font-size: .875rem; color: var(--ink-soft); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add {
  background: none; border: 1.5px solid var(--lapis); border-radius: 4px; color: var(--lapis);
  min-height: 38px; padding: 0 .8rem; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.add:hover { background: var(--lapis); color: var(--white); }

/* Как получить заказ */
.visit { background: var(--white); border-top: 1px solid var(--line); }
.visit-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 5vw, 3.5rem); }
.visit h3 { font-size: 1.35rem; font-weight: 600; color: var(--lapis); margin-bottom: .5rem; }
.visit p { color: var(--ink-soft); max-width: 30rem; }

/* Подвал */
.footer { background: var(--night); color: #b9c4e0; font-size: .95rem; margin-top: 43px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem; }
.footer-name { display: block; font: 700 1.6rem/1 var(--display); color: var(--white); margin-bottom: .7rem; }
.footer h4 { color: var(--white); font-weight: 600; margin-bottom: .5rem; }
.footer p { max-width: 26rem; }
.footer p + p { margin-top: .6rem; }
.footer a { color: var(--gold); }
.footer .footer-made { max-width: var(--wrap, none); border-top: 1px solid rgba(255,255,255,.14); padding-block: 1rem 1.2rem; font-size: .875rem; text-align: center; }

/* Окно товара */
.product { width: min(860px, calc(100% - 32px)); border: 0; border-radius: 6px; padding: 0; background: var(--white); color: var(--ink); }
.product::backdrop { background: rgba(11, 28, 68, .6); }
.product-in { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(1.2rem, 4vw, 2.5rem); padding: clamp(1.2rem, 4vw, 2.5rem); align-items: center; }
.product-info { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; min-width: 0; }
.product-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.product-cat { color: var(--turq-deep); font-weight: 600; font-size: .9rem; }
.product-origin { color: var(--ink-soft); font-size: .95rem; }
.product-price { font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: .4rem; }
.close {
  width: 40px; height: 40px; border: 0; border-radius: 4px; background: none;
  font-size: 1.7rem; line-height: 1; color: var(--ink-soft);
}
.close:hover { background: var(--ganch); color: var(--ink); }
.product > .close { position: absolute; top: .5rem; right: .5rem; z-index: 1; }

/* Корзина */
.backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(11, 28, 68, .6); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 31;
  width: min(440px, 100%); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s .25s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .25s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 3px solid var(--gold); background: var(--lapis) var(--stars-line); color: var(--white); }
.drawer-head h2 { font-size: 1.5rem; }
.drawer-head .close { color: var(--white); }
.drawer-head .close:hover { background: rgba(255,255,255,.15); color: var(--white); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.drawer-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .9rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.cart-list { display: flex; flex-direction: column; gap: 1rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-item .niche { --pad: 4px; }
.cart-item-name { font-weight: 600; line-height: 1.3; }
.cart-item-price { font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; }
.qty button { width: 34px; height: 36px; border: 0; background: none; font-size: 1.1rem; }
.qty button:hover { background: var(--ganch); }
.qty span { min-width: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-empty { color: var(--ink-soft); padding-block: 2rem; text-align: center; }

.back { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--lapis); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field legend { font-weight: 600; font-size: .92rem; }
.field legend { margin-bottom: .35rem; }
.field input:not([type="radio"]), .field textarea {
  width: 100%; border: 1px solid #b8c2d6; border-radius: 4px; padding: .65rem .8rem; background: var(--white);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--lapis); outline-offset: 0; border-color: var(--lapis); }
.field .invalid { border-color: var(--anor); }
.radio { display: flex; align-items: center; gap: .55rem; font-weight: 400 !important; padding: .25rem 0; }
.radio input { accent-color: var(--lapis); width: 1.1rem; height: 1.1rem; }
.form-error { color: var(--anor); font-weight: 500; }
.done { align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.done-mark { width: 84px; height: 84px; }
.done-mark polygon { fill: var(--turq); }
.done-mark path { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: 1.7rem; }
.done p { color: var(--ink-soft); max-width: 22rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 40; transform: translate(-50%, 1rem);
  background: var(--night); color: var(--white); padding: .7rem 1.1rem; border-radius: 4px; border-bottom: 3px solid var(--gold);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Страницы музея ---------- */
.topbar-note a, .footer-links a { color: inherit; }
.nav a[aria-current="page"] { border-color: var(--gold); color: var(--lapis); }
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { color: #b9c4e0; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

.phero { background: center / cover no-repeat var(--lapis); }
.phero-in { display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; padding-block: clamp(3.5rem, 9vw, 7rem); }
.phero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 600; max-width: 18ch; }
.phero p { max-width: 36rem; font-size: 1.1rem; color: #e3e8f5; }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--ink-soft); margin-top: .4rem; }
.section-head > a:not(.btn) { color: var(--lapis); font-weight: 600; text-underline-offset: 4px; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-rev { grid-template-columns: .85fr 1.15fr; }
.split-niche { width: min(100%, 360px); justify-self: center; background: var(--gold); --pad: 3px; }
.split-photo { width: 100%; border-radius: 6px; }
.prose { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.prose p { max-width: 68ch; line-height: 1.7; }
.prose h3 { font-size: 1.45rem; font-weight: 600; color: var(--lapis); margin-top: .8rem; }
.prose-long { margin-inline: auto; max-width: 72ch; }

.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.ncard { display: flex; flex-direction: column; gap: .55rem; text-decoration: none; min-width: 0; }
.ncard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border-bottom: 3px solid var(--gold); }
.ncard-meta { font-size: .875rem; color: var(--turq-deep); font-weight: 600; }
.ncard-title { font: 600 1.25rem/1.25 var(--display); }
.ncard:hover .ncard-title { color: var(--lapis); text-decoration: underline; text-underline-offset: 4px; }

.band { background: center / cover no-repeat var(--night); color: var(--white); }
.band-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; padding-block: clamp(3rem, 7vw, 5rem); }
.band p { max-width: 40rem; color: #d7deef; font-size: 1.05rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.5vw, 1rem); }
.gallery button, .plan { padding: 0; border: 0; background: none; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.plan { margin-top: 1rem; border: 1px solid var(--line); }
.plan img { width: 100%; max-height: 520px; object-fit: contain; background: var(--white); }

.soon-list { display: flex; flex-direction: column; gap: .9rem; align-self: stretch; }
.soon-list li { display: flex; flex-direction: column; gap: .15rem; padding-left: 1rem; border-left: 3px solid var(--gold); }
.soon-list span { color: var(--ink-soft); font-size: .95rem; }

.contacts { display: grid; grid-template-columns: repeat(3, auto); gap: 1.2rem 3rem; margin: 0; }
.contacts dt { font-size: .875rem; color: var(--ink-soft); }
.contacts dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 600; }
.contacts a { color: var(--lapis); }

.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
.ccard {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .15rem; align-items: center;
  padding: 1.2rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-bottom: 3px solid var(--gold);
  border-radius: 6px; text-decoration: none; min-width: 0;
}
.section-white .ccard { background: var(--ganch); }
.ccard-icon { grid-row: span 2; width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--lapis); fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ccard-label { font-size: .875rem; color: var(--ink-soft); align-self: end; }
.ccard-value { font-size: 1.1rem; font-weight: 600; align-self: start; overflow-wrap: anywhere; }
a.ccard:hover { border-color: var(--lapis); }
a.ccard:hover .ccard-value { color: var(--lapis); }
.map { position: relative; margin-top: clamp(1rem, 2.5vw, 1.6rem); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: clamp(300px, 45vw, 460px); border: 0; }
.map .btn { position: absolute; left: 1rem; bottom: 1rem; }

.card-link { text-decoration: none; }
.card-link:hover .niche { background: var(--gold); }

.sheet { width: min(820px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 0; border-radius: 6px; padding: 0; background: var(--white); color: var(--ink); }
.sheet::backdrop { background: rgba(11, 28, 68, .7); }
.sheet > .close { position: sticky; top: .5rem; display: block; margin: .5rem .5rem -48px auto; background: var(--white); z-index: 1; }
.article h2, .article .ncard-meta { padding-right: 44px; }
.sheet-photo { width: fit-content; max-width: calc(100% - 32px); background: var(--night); overflow: hidden; }
.sheet-photo > .close { position: absolute; top: .5rem; right: .5rem; margin: 0; }
.sheet-img { display: block; max-width: 100%; max-height: calc(100vh - 64px); width: auto; height: auto; }
.article { padding: clamp(1.2rem, 4vw, 2.5rem); }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.article-imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; align-self: stretch; }
.article-imgs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--night); }
.video button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.500z' fill='%230b1c44'/%3E%3C/svg%3E") center / 34px no-repeat;
}
.video button:hover::after { background-color: #e4b558; }

.mgrid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.mcard { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.mcard h2, .mcard > a:not(.btn) { display: block; }
.mcard img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border-bottom: 3px solid var(--gold); }
.mcard p { color: var(--ink-soft); line-height: 1.7; }
.mcard .btn { align-self: flex-start; margin-top: auto; }
.branches { display: flex; flex-direction: column; gap: .8rem; }
.branch-col { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.branch-col h2 + .branches { margin-top: -.2rem; }
.branch-col .branches + h2 { margin-top: .8rem; }
.branches li { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--turq); border-radius: 4px; }
.branches span { color: var(--ink-soft); font-size: .9rem; }
.branches-mon li { border-left-color: var(--gold); }
.branches-note { color: var(--ink-soft); font-size: .95rem; }

/* Узкие экраны */
@media (max-width: 1000px) {
  .header-in { gap: .75rem; min-height: 64px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .cart-btn { margin-left: 0; }
  .menu-btn + .cart-btn, .cart-btn + .menu-btn { margin-left: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 3px solid var(--gold); box-shadow: 0 12px 24px rgba(11, 28, 68, .15);
    padding: .25rem clamp(16px, 4vw, 40px) .75rem;
  }
  .header.menu-open .nav { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { border-color: var(--line); color: var(--turq-deep); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .ngrid { grid-template-columns: repeat(2, 1fr); }
  .ccards { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-arch { width: min(100%, 300px); }
  .cats-grid { display: flex; overflow-x: auto; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); scroll-snap-type: x proximity; }
  .cat { flex: 0 0 38%; scroll-snap-align: start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card-foot { flex-direction: column; align-items: stretch; }
  .visit-in, .footer-in, .split, .split-rev, .contacts, .ccards { grid-template-columns: 1fr; }
  .ngrid, .vgrid, .mgrid { grid-template-columns: 1fr; }
  .logo-text strong { font-size: 1.3rem; }
  .logo-mark { width: 32px; height: 32px; }
  .section-head { align-items: start; flex-direction: column; }
  .article-imgs { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .contacts dd { font-size: 1.05rem; overflow-wrap: anywhere; }
  .seg button { padding: .3rem .6rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .product-in { grid-template-columns: 1fr; }
  .product-niche { width: min(60%, 240px); margin-inline: auto; }
  .topbar-in { gap: .5rem; }
  .topbar-note { font-size: .8rem; }
  .topbar-controls { margin-left: auto; gap: .4rem; }
  .cart-btn > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
