/* Добрая керамика — editorial storefront.
   Real product photography carries the brand; glaze teal and terracotta are accents. */

:root {
  --brand-bg: #f6f2ea;
  --brand-paper: #fbf9f4;
  --brand-surface: #ebe6dc;
  --brand-surface-2: #dedbd1;
  --brand-ink: #192321;
  --brand-ink-soft: #4d5a56;
  --brand-primary: #77aaa6;
  --brand-primary-strong: #2b7672;
  --brand-primary-deep: #205955;
  --brand-accent: #c56847;
  --brand-accent-strong: #9c4c32;
  /* 4.5:1 к paper, bg и surface — прежний #747d78 давал лишь 3.4–4.0 */
  --brand-muted: #5f6762;
  --brand-line: #d6d0c5;
  --glaze-stone: #dce1da;
  --maxw: 1320px;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 2px 4px rgb(25 35 33 / .04), 0 24px 64px rgb(25 35 33 / .11);
  --font-display: "Fraunces Variable", Georgia, serif;
  --font-sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* Любой класс с display перебивает браузерное `[hidden] { display: none }`, потому что
   специфичность класса выше. Скрипты прячут элементы атрибутом hidden, поэтому правило
   должно выигрывать всегда — иначе «скрытый» блок остаётся на экране. */
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.reveal-delay-120 { --reveal-delay: 120ms; }
.brand-accent { color: var(--brand-primary-strong); }
.full-grid-row { grid-column: 1 / -1; }
.space-top-12 { margin-top: 12px; }
.product-contact-note { margin-top: 18px; font-size: 14px; }
.related-heading { margin-bottom: 20px; }
.related-heading h2 { font-size: 28px; }
.product-loading { grid-column: 1 / -1; color: var(--brand-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reveal-delay-45 { --reveal-delay: 45ms; }
.reveal-delay-90 { --reveal-delay: 90ms; }
.reveal-delay-135 { --reveal-delay: 135ms; }
.reveal-delay-180 { --reveal-delay: 180ms; }
.reveal-delay-225 { --reveal-delay: 225ms; }
.reveal-delay-270 { --reveal-delay: 270ms; }
.reveal-delay-315 { --reveal-delay: 315ms; }
.reveal-delay-360 { --reveal-delay: 360ms; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 8% 12%, rgb(197 104 71 / .055), transparent 25rem),
    var(--brand-bg);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body.cart-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
h1 em, h2 em, blockquote { color: var(--brand-primary-strong); font-weight: 400; font-style: italic; }
p, figure, blockquote { margin: 0; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--brand-primary-deep); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 120; padding: 10px 14px; color: #fff; background: var(--brand-ink); transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(100%, var(--maxw)); margin-inline: auto; padding-inline: clamp(20px, 4.4vw, 64px); }
.eyebrow, .section-number {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand-primary-deep); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.section-number::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.mark {
  background: currentColor;
  -webkit-mask: url("img/symbol.svg") center / contain no-repeat;
  mask: url("img/symbol.svg") center / contain no-repeat;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(246 242 234 / .88); backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgb(25 35 33 / .11);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-ink); text-decoration: none; }
.brand .mark { width: 48px; height: 31px; flex: none; }
.brand b { font: 600 19px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.brand b span { color: var(--brand-primary-strong); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cart-btn { margin-left: 0; }
.nav a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px;
  color: var(--brand-ink-soft); border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--brand-ink); background: rgb(255 255 255 / .55); }
.cart-btn {
  position: relative; width: 46px; height: 46px; margin-left: 8px; display: grid; place-items: center;
  color: var(--brand-ink); background: transparent; border: 1px solid var(--brand-ink);
  border-radius: 50%; cursor: pointer; transition: color .2s ease, background .2s ease, transform .15s ease;
}
.cart-btn:hover { color: var(--brand-bg); background: var(--brand-ink); }
.cart-btn:active { transform: scale(.95); }
.cart-btn__ico { width: 20px; height: 20px; }
.cart-btn__count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; color: #fff; background: var(--brand-accent);
  border-radius: 99px; box-shadow: 0 0 0 3px var(--brand-bg); font-size: 10px; font-weight: 800;
}
.cart-btn__count.bump { animation: badge-bump .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes badge-bump { 50% { transform: scale(1.35); } }

/* Hero */
.hero { overflow: clip; padding: clamp(58px, 7vw, 106px) 0 clamp(60px, 8vw, 118px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr); gap: clamp(44px, 7vw, 110px); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-wordmark { max-width: 8.8ch; margin-top: 24px; font-size: clamp(58px, 7.1vw, 105px); }
.hero-wordmark__line { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
.hero-wordmark__line--tail { margin-left: clamp(.45ch, 1.2vw, .8ch); }
.hero .lead { max-width: 48ch; margin-top: 30px; color: var(--brand-ink-soft); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.btn {
  --_bg: var(--brand-ink); --_fg: var(--brand-bg);
  min-height: 50px; padding: 12px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--_fg); background: var(--_bg); border: 1px solid transparent; border-radius: 999px;
  font: 650 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(25 35 33 / .14); }
.btn:active { transform: translateY(0); }
.btn--primary { --_bg: var(--brand-primary-deep); --_fg: #fff; }
.btn--primary:hover { --_bg: var(--brand-ink); }
.btn--accent { --_bg: var(--brand-accent); --_fg: #fff; }
.btn--accent:hover { --_bg: var(--brand-accent-strong); }
.btn--ghost { --_bg: transparent; --_fg: var(--brand-ink); border-color: var(--brand-line); }
.btn--ghost:hover { --_bg: var(--brand-paper); }
.btn--block { width: 100%; }
.text-link {
  min-height: 44px; display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand-ink); text-underline-offset: 5px; font-size: 14px; font-weight: 650;
  transition: gap .2s ease, color .2s ease;
}
.text-link:hover { gap: 15px; color: var(--brand-primary-deep); }
.hero-visual { position: relative; width: min(100%, 630px); justify-self: end; isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; inset: 9% -8% -7% 17%; z-index: -1;
  background: var(--brand-accent); border-radius: 52% 48% 42% 58% / 44% 55% 45% 56%; opacity: .88;
  transform: rotate(3deg);
}
.hero-photo { display: block; width: 86%; height: auto; margin-left: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 48% 48% 9% 9% / 24% 24% 7% 7%; box-shadow: var(--shadow); }
.hero-visual > picture { display: block; }
.hero-seal {
  position: absolute; left: 0; top: 12%; width: clamp(112px, 13vw, 168px); aspect-ratio: 1;
  display: grid; place-items: center; color: var(--brand-ink); background: var(--brand-paper);
  border: 1px solid var(--brand-line); border-radius: 50%; transform: rotate(-8deg); box-shadow: var(--shadow);
}
.hero-seal .mark { width: 68%; height: 45%; }
.hero-visual figcaption {
  position: absolute; right: -2%; bottom: 8%; width: min(250px, 52%); padding: 18px 20px;
  color: #fff; background: var(--brand-primary-deep); box-shadow: var(--shadow);
}
.hero-visual figcaption span { display: block; margin-bottom: 6px; opacity: .72; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-visual figcaption b { font: 500 17px/1.25 var(--font-display); }

.craft-line { border-block: 1px solid var(--brand-line); }
.craft-line .wrap { min-height: 82px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.craft-line span { padding: 8px 18px; color: var(--brand-ink-soft); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.craft-line span + span { border-left: 1px solid var(--brand-line); }
.craft-line b { margin-right: 8px; color: var(--brand-accent); font-size: 10px; }

/* Sections */
section { scroll-margin-top: 88px; }
.section-head { max-width: 62ch; }
.section-head h2 { margin-top: 20px; font-size: clamp(42px, 5.3vw, 74px); }
.section-head p { margin-top: 24px; color: var(--brand-ink-soft); font-size: 17px; }
.about { padding: clamp(84px, 11vw, 154px) 0; }
.about .wrap { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr); gap: clamp(52px, 9vw, 128px); align-items: center; }
.about-copy { margin: 0; }
.about-copy .text-link { margin-top: 28px; }
.about-panel {
  position: relative; overflow: hidden; padding: clamp(34px, 5vw, 58px);
  color: var(--brand-paper); background: var(--brand-primary-deep); border-radius: 48% 48% 6px 6px / 20% 20% 6px 6px;
}
.about-mark { position: absolute; right: -7%; top: -4%; width: 54%; height: 36%; color: rgb(255 255 255 / .08); transform: rotate(12deg); }
.about-facts { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.about-facts li { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: start; padding: 24px 0; border-bottom: 1px solid rgb(255 255 255 / .18); }
.about-facts li:last-child { border-bottom: 0; }
.about-facts b { color: #fff; font: 500 32px/1 var(--font-display); }
.about-facts span { color: rgb(255 255 255 / .72); font-size: 13px; }
.about-facts strong { display: block; margin-bottom: 4px; color: #fff; font-size: 14px; }

/* Catalog */
.catalog { padding: clamp(78px, 10vw, 138px) 0; background: var(--brand-paper); border-block: 1px solid var(--brand-line); }
.catalog-intro { display: grid; grid-template-columns: 1fr minmax(280px,.55fr); gap: clamp(40px, 8vw, 110px); align-items: end; margin-bottom: 46px; }
.catalog-note { padding-bottom: 10px; color: var(--brand-ink-soft); }
.catalog-count { display: block; margin-bottom: 18px; color: var(--brand-ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.catalog-count b { margin-right: 8px; color: var(--brand-accent); font: 500 28px/1 var(--font-display); }
.catalog-note p { font-size: 15px; }
.filters { display: flex; gap: 9px; overflow-x: auto; margin-bottom: 34px; padding-bottom: 3px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  min-height: 44px; flex: 0 0 auto; padding: 9px 17px; color: var(--brand-ink-soft); background: transparent;
  border: 1px solid var(--brand-line); border-radius: 999px; font: 600 13px/1 var(--font-sans); cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.chip:hover { color: var(--brand-primary-deep); border-color: var(--brand-primary-strong); }
.chip[aria-pressed="true"] { color: #fff; background: var(--brand-ink); border-color: var(--brand-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: clamp(28px, 3.5vw, 48px) clamp(18px, 2.5vw, 30px); }
.catalog-error { grid-column: 1 / -1; max-width: 560px; padding: 24px; background: var(--brand-surface); border-left: 3px solid var(--brand-accent); }
.catalog-error b { display: block; font: 500 23px/1.2 var(--font-display); }
.catalog-error p { margin: 8px 0 18px; color: var(--brand-muted); font-size: 14px; }
.card { min-width: 0; }
.card a { color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4/5; display: block; overflow: hidden; background: var(--brand-surface); }
.card-media > picture, .product-media > picture, .cart-item .thumb > picture { display: block; width: 100%; height: 100%; }
.ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media > picture > img.ph { transition: transform .55s cubic-bezier(.2,.75,.2,1), filter .35s ease; }
.card:hover .card-media > picture > img.ph { transform: scale(1.035); filter: saturate(1.05); }
.ph--empty { display: grid; place-items: center; background: var(--glaze-stone); }
.ph--empty .mark { width: 45%; height: 33%; color: var(--brand-muted); opacity: .65; }
.cat-tag, .card-index {
  position: absolute; z-index: 2; top: 14px; padding: 6px 10px;
  color: var(--brand-ink); background: rgb(251 249 244 / .9); backdrop-filter: blur(8px);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.cat-tag { left: 14px; }
.card-index { right: 14px; }
.card-body { padding: 16px 0 0; }
.card-meta { margin-bottom: 5px; color: var(--brand-muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.card-title { display: block; width: 100%; padding-right: 8px; overflow-wrap: anywhere; font: 500 23px/1.15 var(--font-display); letter-spacing: -.025em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--brand-line); }
.price { color: var(--brand-ink); font-size: 16px; font-weight: 750; }
.add {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  color: var(--brand-ink); background: transparent; border: 1px solid var(--brand-ink); border-radius: 50%;
  cursor: pointer; transition: color .2s ease, background .2s ease, transform .18s ease;
}
/* Иконки-штрихи вместо текстовых «+», «−», «×»: центруются геометрически */
.glyph { width: 22px; height: 22px; display: block; }
.qty .glyph { width: 16px; height: 16px; }
.cart-close .glyph { width: 20px; height: 20px; }
.add:hover { color: #fff; background: var(--brand-primary-deep); border-color: var(--brand-primary-deep); transform: rotate(8deg); }
.add:disabled { color: var(--brand-muted); background: var(--brand-surface); border-color: var(--brand-line); cursor: not-allowed; transform: none; }

/* Contact */
.contact { padding: clamp(74px, 9vw, 128px) 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 0; }
.contact-card { padding: clamp(38px, 6vw, 76px); color: #fff; background: var(--brand-ink); }
.contact-card .section-number { color: var(--brand-primary); }
.contact-card h2 { margin-top: 24px; color: #fff; font-size: clamp(48px, 6.2vw, 82px); }
.contact-card h2 em { color: var(--brand-primary); }
.contact-card > p { max-width: 48ch; margin-top: 24px; color: rgb(255 255 255 / .67); }
.channels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 34px; }
.channel {
  min-height: 70px; padding: 14px 16px; display: flex; align-items: center; gap: 13px;
  color: #fff; background: rgb(255 255 255 / .055); border: 1px solid rgb(255 255 255 / .15);
  text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.channel:hover { background: rgb(255 255 255 / .11); border-color: rgb(255 255 255 / .4); transform: translateY(-2px); }
.channel--wide { grid-column: 1 / -1; }
.channel .ico { width: 24px; height: 24px; flex: none; }
.channel > span, .channel span span { display: block; }
.channel b { font-size: 14px; }
.channel span span { color: rgb(255 255 255 / .58); font-size: 11px; }
.social-disclaimer { margin-top: 12px; color: rgb(255 255 255 / .54); font-size: 10px; line-height: 1.45; }
/* Фото входа вместо прежней цитатной панели: снимок говорит о лавке больше */
.contact-photo { position: relative; margin: 0; overflow: hidden; display: flex; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: clamp(24px, 3vw, 36px);
  color: #fff; font: italic 500 clamp(19px, 1.7vw, 25px)/1.15 var(--font-display); letter-spacing: -.02em;
  background: linear-gradient(to top, rgb(25 35 33 / .82), rgb(25 35 33 / .55) 45%, transparent);
}
.contact-aside { position: relative; overflow: hidden; padding: clamp(38px, 6vw, 72px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--brand-primary); }
.contact-aside__mark { position: absolute; top: 9%; left: 12%; width: 76%; height: 40%; color: rgb(25 35 33 / .14); transform: rotate(-7deg); }
.contact-aside blockquote { position: relative; max-width: 13ch; color: var(--brand-ink); font: italic 500 clamp(30px, 3vw, 46px)/1.08 var(--font-display); letter-spacing: -.03em; }
.contact-note { position: relative; margin-top: 28px; color: var(--brand-ink-soft); font-size: 13px; }
.contact-note strong { color: var(--brand-ink); }

/* Как нас найти — адрес, часы и самостоятельно отрисованная схема проезда */
.visit {
  margin-top: 1px; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  background: var(--brand-paper); border: 1px solid var(--brand-line);
}
.visit-info { padding: clamp(38px, 5vw, 64px); }
.visit-info .section-number { color: var(--brand-primary-strong); }
.visit-info h2 { margin-top: 22px; font-size: clamp(40px, 4.6vw, 62px); }
.visit-info > p { max-width: 42ch; margin-top: 22px; color: var(--brand-ink-soft); }
.visit-facts { margin: 34px 0 0; display: grid; gap: 22px; }
.visit-fact dt {
  display: flex; align-items: center; gap: 9px; color: var(--brand-muted);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.visit-fact dt .ico { width: 17px; height: 17px; flex: none; color: var(--brand-primary-strong); }
.visit-fact dd { margin: 7px 0 0 26px; font-size: 19px; font-weight: 500; }
.visit-fact dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--brand-line); }
.visit-fact dd a:hover { border-bottom-color: var(--brand-primary-strong); }
.visit-fact__hint { display: block; margin-top: 3px; color: var(--brand-muted); font-size: 13px; font-weight: 400; }
.visit-note { margin: 30px 0 0; max-width: 46ch; color: var(--brand-ink-soft); font-size: 13px; line-height: 1.6; }
.visit-note strong { color: var(--brand-ink); }
.visit-note a { color: var(--brand-primary-strong); text-underline-offset: 3px; }
.visit-map { margin: 0; display: flex; flex-direction: column; border-left: 1px solid var(--brand-line); }
.visit-map__frame { width: 100%; flex: 1; min-height: 420px; border: 0; }
.visit-map__slot { flex: 1; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 48px); text-align: center; background: var(--brand-surface); }
.visit-map__lead { margin: 0; font-family: var(--font-display); font-size: 22px; }
.visit-map__warn { max-width: 44ch; margin: 0; color: var(--brand-ink-soft); font-size: 13px; line-height: 1.55; }
.visit-map__cap { padding: 20px clamp(20px, 3vw, 28px); border-top: 1px solid var(--brand-line); }
.visit-map__links { display: flex; flex-wrap: wrap; gap: 10px; }
.visit-map__cap small { display: block; margin-top: 14px; color: var(--brand-muted); font-size: 12px; line-height: 1.5; }
.visit-map__cap small a { color: inherit; text-underline-offset: 3px; }

/* Мастер-классы — своя услуга, поэтому отдельная секция под каталогом,
   а не приписка к адресу */
.workshop { padding: clamp(74px, 9vw, 128px) 0; background: var(--brand-surface); }
.workshop .wrap { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
.workshop-photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.workshop-photo img { width: 100%; height: 100%; object-fit: cover; }
.workshop-copy h2 { margin-top: 22px; font-size: clamp(42px, 5vw, 68px); }
.workshop-copy > p { max-width: 46ch; margin-top: 22px; color: var(--brand-ink-soft); }
.workshop-prices { margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.workshop-price { padding: 20px; background: var(--brand-paper); border: 1px solid var(--brand-line); }
.workshop-price dt { color: var(--brand-muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.workshop-price dd { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.workshop-price dd span { display: block; margin-top: 4px; color: var(--brand-muted); font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }
.workshop-when { display: flex; align-items: flex-start; gap: 9px; max-width: 46ch; margin: 24px 0 26px; color: var(--brand-ink-soft); font-size: 14px; line-height: 1.55; }
.workshop-when .ico { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--brand-primary-strong); }

/* Footer */
.site-footer { padding: 42px 0; border-top: 1px solid var(--brand-line); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer small { color: var(--brand-muted); font-size: 12px; }
.site-footer small a { color: inherit; text-underline-offset: 3px; }
.site-footer small a:hover { color: var(--brand-ink); }

.privacy-page { padding: clamp(56px, 8vw, 112px) 0; }
.privacy-document { max-width: 820px; }
.privacy-document h1 { font-family: var(--font-display); font-size: clamp(40px, 7vw, 76px); line-height: .96; letter-spacing: -.04em; margin: 12px 0 24px; }
.privacy-document h2 { font-family: var(--font-display); font-size: clamp(25px, 4vw, 38px); line-height: 1.05; margin: 48px 0 14px; }
.privacy-document p, .privacy-document li { color: var(--brand-muted); line-height: 1.7; }
.privacy-document strong { color: var(--brand-ink); }
.privacy-document ul { display: grid; gap: 10px; padding-left: 22px; }
.privacy-status { border: 1px solid var(--brand-line); border-left: 5px solid var(--brand-accent); padding: 20px; background: var(--brand-surface); }

/* News */
.news-page { min-height: 70vh; }
.news-hero { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 7vw, 92px); border-bottom: 1px solid var(--brand-line); }
.news-hero .wrap { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.news-heading { max-width: 850px; }
.news-heading h1 { margin-top: 22px; font-size: clamp(52px, 7.3vw, 104px); }
.news-heading h1 em { display: block; color: var(--brand-primary-strong); font-weight: 400; }
.news-heading p { max-width: 52ch; margin-top: 28px; color: var(--brand-ink-soft); font-size: clamp(17px, 1.5vw, 20px); }
.news-hero .btn { flex: none; margin-bottom: 10px; }
.news-feed { padding: clamp(54px, 8vw, 112px) 0 clamp(80px, 10vw, 140px); }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 42px); }
.news-card { min-width: 0; overflow: hidden; background: var(--brand-paper); border: 1px solid var(--brand-line); border-radius: var(--radius); box-shadow: 0 14px 44px rgb(25 35 33 / .07); }
/* Снимки из Telegram чаще вертикальные. Кроп 16/10 съедал у них почти всё и
   оставлял непонятный кусок, поэтому кадр вписывается целиком. */
.news-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-surface); }
.news-card__media img { width: 100%; height: 100%; object-fit: contain; }
.news-card__body { padding: clamp(24px, 3.5vw, 42px); }
.news-card__date { display: block; color: var(--brand-accent-strong); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.news-card__text { display: -webkit-box; overflow: hidden; margin: 16px 0 26px; color: var(--brand-ink-soft); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 8; }
.news-status { grid-column: 1 / -1; padding: clamp(38px, 6vw, 72px); color: var(--brand-ink-soft); background: var(--brand-paper); border: 1px solid var(--brand-line); border-radius: var(--radius); text-align: center; }

/* Cart drawer */
.cart-backdrop { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; background: rgb(25 35 33 / .52); backdrop-filter: blur(4px); transition: opacity .22s ease, visibility .22s ease; }
.cart-backdrop.open { visibility: visible; opacity: 1; }
.cart {
  position: fixed; inset: 0 0 0 auto; z-index: 100; width: min(450px,100%); height: 100dvh;
  display: flex; flex-direction: column; color: var(--brand-ink); background: var(--brand-paper);
  box-shadow: -30px 0 90px rgb(25 35 33 / .2); transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.75,.2,1);
}
.cart[aria-hidden="true"] { visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
.cart.open { transform: none; }
.cart-head { min-height: 78px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--brand-line); }
.cart-head h3 { font-size: 27px; }
.cart-close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--brand-ink); background: transparent; border: 1px solid var(--brand-line); border-radius: 50%; font-size: 22px; cursor: pointer; }
.cart-close:hover { background: var(--brand-surface); }
.demo-banner { margin: 18px 24px 0; padding: 14px 16px; color: var(--brand-accent-strong); background: rgb(197 104 71 / .1); border-left: 3px solid var(--brand-accent); font-size: 12px; line-height: 1.55; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.cart-empty { margin-top: 40px; color: var(--brand-ink-soft); text-align: center; }
.cart-quantity-note { padding: 14px 16px; color: var(--brand-accent-strong); background: rgb(197 104 71 / .1); border-left: 3px solid var(--brand-accent); font-size: 12px; line-height: 1.55; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--brand-line); }
.cart-item .thumb { width: 64px; height: 74px; overflow: hidden; background: var(--brand-surface); }
.cart-item .thumb .ph { object-fit: cover; }
.cart-item .t b { font: 500 17px/1.2 var(--font-display); }
.cart-item .t span { display: block; margin-top: 5px; color: var(--brand-muted); font-size: 12px; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--brand-ink); border: 1px solid var(--brand-line); border-radius: 50%; background: transparent; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 1.5ch; text-align: center; font-weight: 700; }
.cart-foot { padding: 20px 24px 24px; display: grid; gap: 12px; background: var(--brand-bg); border-top: 1px solid var(--brand-line); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.cart-total b { font: 500 26px/1 var(--font-display); }

/* Prototype strip */
.proto-strip { padding: 7px 16px; color: #fff; background: var(--brand-accent-strong); text-align: center; font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.proto-strip a { text-underline-offset: 3px; }

/* Product page */
.product { padding: clamp(44px, 7vw, 94px) 0; }
.product [data-product] { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr); gap: clamp(42px, 8vw, 108px); align-items: start; }
.product-media { position: sticky; top: 92px; min-width: 0; }
.product-gallery { min-width: 0; }
.product-gallery__stage { overflow: hidden; aspect-ratio: 4/5; background: var(--brand-surface); border-radius: 48% 48% 4px 4px / 20% 20% 4px 4px; }
.product-gallery__asset { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-gallery__asset:is(video) { background: var(--brand-ink); }
.product-gallery__thumbs { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.product-gallery__thumb { flex: none; padding: 8px 11px; color: var(--brand-muted); background: var(--brand-paper); border: 1px solid var(--brand-line); border-radius: 999px; font: 600 11px/1 var(--font-sans); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.product-gallery__thumb:hover, .product-gallery__thumb.is-active { color: #fff; background: var(--brand-ink); border-color: var(--brand-ink); }
.product-info { padding-top: 3vw; }
.breadcrumb { margin-bottom: 22px; color: var(--brand-muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { color: var(--brand-ink-soft); text-decoration: none; }
.product-info h1 { font-size: clamp(46px, 6vw, 82px); }
.product-info .price { display: block; margin: 22px 0; font-size: 23px; }
.product-info .desc { max-width: 52ch; color: var(--brand-ink-soft); font-size: 17px; }
.product-description { display: grid; gap: 13px; }
.product-description p { margin: 0; }
.product-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.product-accessory { max-width: 52ch; margin-top: 22px; padding: 18px 20px; background: color-mix(in oklch, var(--brand-primary) 12%, var(--brand-paper)); border-left: 3px solid var(--brand-primary-strong); }
.product-accessory b { font: 600 18px/1.2 var(--font-display); }
.product-accessory p { margin-top: 7px; color: var(--brand-ink-soft); font-size: 14px; line-height: 1.55; }
.product-accessory a { color: var(--brand-primary-deep); text-underline-offset: 3px; }
.spec { margin-top: 26px; padding-top: 20px; display: grid; gap: 0; border-top: 1px solid var(--brand-line); }
.spec div { padding: 12px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--brand-line); font-size: 13px; }
.spec dt { color: var(--brand-muted); }
.related { margin-top: clamp(68px, 9vw, 120px); }
.related-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.card--compact .card-title { font-size: 16px; }
.card--compact .card-body { padding-top: 11px; }
.card--compact .card-foot { margin-top: 9px; padding-top: 9px; }
.card--compact .price { font-size: 13px; }
.card--compact .add { width: 36px; height: 36px; }
.card--compact .glyph { width: 17px; height: 17px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; padding: 13px 20px; color: #fff; background: var(--brand-ink); border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%,18px); transition: opacity .2s ease, transform .2s ease; font-size: 13px; font-weight: 650; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 980px) {
  /* Пять пунктов меню перестают помещаться в строку раньше, чем прячутся на 760px */
  .nav a { padding: 0 9px; font-size: 13px; }
  .hero .wrap { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero-wordmark { font-size: clamp(52px, 7vw, 72px); }
  .about .wrap, .contact .wrap, .product [data-product] { grid-template-columns: 1fr 1fr; gap: 42px; }
  .channels { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .visit-map { border-left: 0; border-top: 1px solid var(--brand-line); }
  .craft-line .wrap { grid-template-columns: repeat(2,1fr); padding-block: 14px; }
  .craft-line span:nth-child(3) { border-left: 0; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header .wrap { min-height: 66px; }
  .brand b { font-size: 18px; }
  .hero { padding-top: 52px; }
  .hero .wrap, .about .wrap, .contact .wrap, .product [data-product], .catalog-intro, .workshop .wrap { grid-template-columns: 1fr; }
  .contact-photo { min-height: 340px; }
  .workshop-photo { order: -1; }
  .hero .wrap { gap: 54px; }
  .hero-wordmark { font-size: clamp(50px, 15vw, 72px); }
  .hero-wordmark__line { white-space: normal; }
  .hero-wordmark__line--tail { margin-left: .55ch; }
  .hero-visual { width: min(94%,560px); justify-self: center; }
  .hero-photo { width: 88%; }
  .hero-seal { left: -2%; }
  .craft-line span { min-height: 54px; display: flex; align-items: center; justify-content: center; }
  .about-panel { border-radius: 42% 42% 4px 4px / 12% 12% 4px 4px; }
  .catalog-intro { gap: 28px; }
  .catalog-note { max-width: 52ch; }
  .contact .wrap { padding-inline: 20px; }
  .contact-aside { min-height: 410px; }
  .product-media { position: static; }
  .site-footer .wrap { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 20px; }
  .proto-strip { padding-inline: 12px; font-size: 10px; line-height: 1.4; }
  .hero-wordmark { font-size: clamp(46px, 14.5vw, 64px); }
  .hero .lead { font-size: 16px; }
  .hero-cta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-visual figcaption { right: -2%; width: 60%; padding: 14px; }
  .hero-seal { width: 104px; }
  .craft-line .wrap { padding-inline: 10px; }
  .craft-line span { padding: 8px; font-size: 9px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 12px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: 18px; }
  .card-meta { font-size: 8px; letter-spacing: .05em; }
  .card-foot { margin-top: 10px; }
  .price { font-size: 14px; }
  .add { width: 44px; height: 44px; }
  .cat-tag { max-width: calc(100% - 56px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .card-index { display: none; }
  .contact .wrap { padding-inline: 0; }
  .channels { grid-template-columns: 1fr; }
  .contact-card, .contact-aside { padding-inline: 24px; }
  .contact-aside { min-height: 350px; }
  .workshop-prices { grid-template-columns: 1fr; }
  .visit { border-inline: 0; }
  .visit-info { padding-inline: 24px; }
  .visit-map__links .btn { flex: 1 1 100%; justify-content: center; }
  .product-cta { align-items: stretch; flex-direction: column; }
  .product-cta .btn { width: 100%; }
  .cart-item { grid-template-columns: 54px 1fr; }
  .cart-item .thumb { width: 54px; height: 64px; }
  .cart-item .qty { grid-column: 2; }
}

@media (max-width: 360px) {
  .site-header .wrap { gap: 10px; }
  .cart-btn { margin-left: 0; }
}

/* ============================================================
   Visual enrichment — tactile texture, motion & depth.
   Additive layer: everything degrades gracefully and the
   reduced-motion block below neutralises all animation.
   ============================================================ */

/* Paper grain — a faint tactile tooth over the warm background,
   the way a studio wall or bisque surface catches light. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgb(25 35 33 / .18) .5px, transparent .65px);
  background-size: 3px 3px; opacity: .08; mix-blend-mode: multiply;
}

/* Scroll reveal — sections and cards settle into place as they enter. */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* Living hero — the accent blob breathes, the seal drifts, a soft glaze glow. */
.hero-visual::before {
  background: linear-gradient(150deg, var(--brand-accent), var(--brand-accent-strong));
  animation: blob-breathe 13s ease-in-out infinite;
}
@keyframes blob-breathe {
  0%, 100% { border-radius: 52% 48% 42% 58% / 44% 55% 45% 56%; transform: rotate(3deg) scale(1); }
  50%      { border-radius: 46% 54% 55% 45% / 52% 44% 56% 48%; transform: rotate(1deg) scale(1.02); }
}
.hero-visual::after {
  content: ""; position: absolute; z-index: -1; inset: 6% 10% auto auto;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgb(119 170 166 / .5), transparent 68%);
  filter: blur(14px); animation: glow-drift 16s ease-in-out infinite;
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-16px, 22px); }
}
.hero-seal { animation: seal-float 7.5s ease-in-out infinite; }
@keyframes seal-float {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-5deg) translateY(-12px); }
}
.hero-photo { transition: transform .6s cubic-bezier(.2,.75,.2,1); }
.hero-visual:hover .hero-photo { transform: scale(1.015); }

/* Primary buttons get a soft light sweep on hover. */
.btn--primary, .btn--accent { position: relative; overflow: hidden; }
.btn--primary::after, .btn--accent::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn--primary:hover::after, .btn--accent:hover::after { transform: translateX(120%); }

/* Craft-line becomes a slow moving ribbon — the quiet rhythm of a working studio. */
.craft-line { overflow: hidden; background: linear-gradient(var(--brand-paper), var(--brand-bg)); }
.craft-line .wrap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.craft-track {
  display: flex; width: max-content; align-items: stretch;
}
.craft-track span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 22px clamp(30px, 5vw, 58px); white-space: nowrap;
  color: var(--brand-ink-soft); font-size: 13px; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase;
  border-right: 1px solid var(--brand-line);
}
.craft-track b { color: var(--brand-accent); font-size: 11px; }

/* Section eyebrow numbers get a small pulsing glaze dot. */
.section-number::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px; border-radius: 50%;
  background: var(--brand-accent); animation: dot-pulse 2.6s ease-in-out infinite;
}
@keyframes dot-pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* Richer product cards — a gentle lift, a glaze wash and a hint to look closer. */
.card { transition: transform .3s cubic-bezier(.2,.75,.2,1); }
.card:hover { transform: translateY(-6px); }
.card-media { box-shadow: 0 1px 2px rgb(25 35 33 / .05); transition: box-shadow .3s ease; }
.card:hover .card-media { box-shadow: 0 18px 40px rgb(25 35 33 / .16); }
.card-media::after {
  content: "Смотреть →"; position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 34px 16px 14px; color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(transparent, rgb(25 35 33 / .78));
  transform: translateY(100%); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.75,.2,1), opacity .35s ease;
}
.card:hover .card-media::after, .card a.card-media:focus-visible::after { transform: none; opacity: 1; }
.card-title { background: linear-gradient(var(--brand-primary-deep), var(--brand-primary-deep)) no-repeat left bottom / 0% 1.5px; transition: background-size .3s ease, color .2s ease; }
.card:hover .card-title { color: var(--brand-primary-deep); background-size: 100% 1.5px; }

/* Add-button gets a subtle glaze ring on hover for tactility. */
.add { box-shadow: 0 0 0 0 rgb(32 89 85 / .25); }
.add:hover { box-shadow: 0 0 0 5px rgb(32 89 85 / .12); }

/* Contact & about panels catch a faint moving sheen. */
.about-panel::after, .contact-aside::after {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgb(255 255 255 / .12), transparent 65%);
  pointer-events: none; animation: glow-drift 18s ease-in-out infinite;
}
.contact-aside::after { background: radial-gradient(circle, rgb(255 255 255 / .22), transparent 65%); }

/* Channels reveal a left glaze accent on hover. */
.channel { position: relative; }
.channel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-primary); transform: scaleY(0); transform-origin: bottom;
  transition: transform .25s ease;
}
.channel:hover::before { transform: scaleY(1); }

@media (max-width: 760px) {
  .craft-track span { padding: 16px 26px; font-size: 11px; }
  .news-hero .wrap { display: grid; gap: 30px; }
  .news-heading h1 em { display: inline; }
  .news-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .craft-track { animation: none !important; flex-wrap: wrap; justify-content: center; }
}

/* Витрина на главной ведёт в полный каталог отдельной страницей */
.catalog-more { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: center; }
.catalog--page { padding-top: clamp(48px, 6vw, 88px); }
.catalog--page h1 { font-size: clamp(48px, 6.2vw, 84px); }

/* ---------- Выездное меню слева ---------- */
.nav-toggle { display: grid; width: 44px; height: 44px; place-items: center; color: var(--brand-ink); background: transparent; border: 1px solid var(--brand-line); border-radius: 50%; cursor: pointer; }
.nav-toggle .glyph { width: 22px; height: 22px; }
.site-header .brand { margin-right: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav a[aria-current="page"] { color: var(--brand-ink); background: rgb(255 255 255 / .6); }
.nav {
  position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(320px, 86vw); height: 100dvh;
  flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 0 16px 24px;
  overflow-y: auto; background: var(--brand-paper);
  box-shadow: 30px 0 90px rgb(25 35 33 / .2);
  transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.75,.2,1);
}
.nav:not(.open) { visibility: hidden; transition: transform .28s cubic-bezier(.2,.75,.2,1), visibility 0s .28s; }
.nav.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.75,.2,1); }
.nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 74px; margin: 0 -16px 10px; padding: 0 16px; border-bottom: 1px solid var(--brand-line); }
.nav-head__title { color: var(--brand-muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.nav-close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--brand-ink); background: transparent; border: 1px solid var(--brand-line); border-radius: 50%; cursor: pointer; }
.nav-close .glyph { width: 20px; height: 20px; }
.nav a { min-height: 52px; padding: 0 14px; border-radius: var(--radius-sm); font-size: 16px; }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; background: rgb(25 35 33 / .52); backdrop-filter: blur(4px); transition: opacity .22s ease, visibility .22s ease; }
.nav-backdrop.open { visibility: visible; opacity: 1; }
body.nav-open { overflow: hidden; }
/* .site-header — sticky со своим z-index, то есть отдельный контекст наложения:
   z-index шторки внутри него не может перебить фон-затемнение снаружи. Поднимаем
   контекст целиком, пока меню открыто. */
body.nav-open .site-header { z-index: 110; }

/* ---------- Тизеры разделов на главной ---------- */
.teasers { padding: clamp(64px, 8vw, 112px) 0; background: var(--brand-surface); }
.teasers .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.teaser { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); background: var(--brand-paper); border: 1px solid var(--brand-line); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.teaser__label { color: var(--brand-primary-deep); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.teaser b { margin-top: 16px; font: 500 clamp(26px, 2.4vw, 34px)/1.05 var(--font-display); letter-spacing: -.03em; }
.teaser__text { margin-top: 14px; color: var(--brand-ink-soft); font-size: 15px; line-height: 1.6; }
.teaser__more { margin-top: auto; padding-top: 22px; color: var(--brand-primary-deep); font-size: 14px; font-weight: 650; }

/* ---------- Полоса «как нас найти» на главной ---------- */
.visit-strip { padding: clamp(64px, 8vw, 112px) 0; }
.visit-strip .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.visit-strip__copy h2 { margin-top: 22px; font-size: clamp(40px, 4.6vw, 62px); }
.visit-strip__copy > p { max-width: 44ch; margin: 22px 0 30px; color: var(--brand-ink-soft); }
.visit-strip__photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.visit-strip__photo img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }

/* ---------- Галерея ---------- */
.gallery { padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 10vw, 140px); }
.gallery-head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 56px); }
.gallery-head h1 { margin-top: 22px; font-size: clamp(48px, 6.2vw, 84px); }
.gallery-head p { max-width: 54ch; margin-top: 24px; color: var(--brand-ink-soft); font-size: clamp(16px, 1.4vw, 19px); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.gallery-item { padding: 0; overflow: hidden; aspect-ratio: 1; background: var(--brand-surface); border: 0; border-radius: var(--radius-sm); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.75,.2,1); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--video { position: relative; background: var(--brand-ink); }
.gallery-item--video video { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.gallery-video-label { position: absolute; right: 12px; bottom: 12px; padding: 8px 10px; color: #fff; background: rgb(25 35 33 / .72); border-radius: 999px; font-size: 11px; font-weight: 700; }
/* Каждый шестой кадр крупнее — сетка перестаёт читаться как таблица */
.gallery-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.lightbox { max-width: min(94vw, 1100px); max-height: 92vh; padding: 0; background: transparent; border: 0; }
.lightbox::backdrop { background: rgb(25 35 33 / .88); }
.lightbox img { max-width: 100%; max-height: 88vh; margin: 0 auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox video { max-width: 100%; max-height: 88vh; display: block; margin: 0 auto; background: #000; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: rgb(25 35 33 / .55); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox-close .glyph { width: 20px; height: 20px; }
.lightbox figure { position: relative; margin: 0; }

/* ---------- Страничные варианты перенесённых секций ---------- */
.about--page, .workshop--page { padding-top: clamp(48px, 6vw, 88px); }
.contact--page { padding-top: 0; }
.about--page h1, .workshop--page h1 { font-size: clamp(44px, 5.4vw, 74px); }
.contact--page .contact-card h1 { margin-top: 0; font-size: clamp(48px, 6.2vw, 82px); color: #fff; }
.contact--page .contact-card h1 em { color: var(--brand-primary); }

@media (max-width: 1100px) {
  .teasers .wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header .wrap { gap: 12px; }
  .visit-strip .wrap { grid-template-columns: 1fr; }
  .visit-strip__photo { order: -1; }
}

@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item:nth-child(6n + 1) { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 400px) {
  /* На 320px логотип с двумя кнопками не помещается в строку. Ужимать кнопки
     нельзя — они упрутся в минимум 44px для касания, поэтому убираем знак. */
  .site-header .wrap { gap: 10px; }
  .brand .mark { display: none; }
  .brand b { font-size: 16px; }
  .header-actions { gap: 6px; }
}
