/* ============================================================================
   ЕВРОБЕСЕДКА — макет главной. Дизайн-система (черновик для показа)
   Направление: «ремесло и материал» — светлая льняная база, угольный текст,
   тёплый акцент, одна тёмная секция. Типографика: Golos Text + Literata.
   Всё построено на токенах, чтобы переносилось в Astro без переписывания.
   ========================================================================= */



:root {
  /* --- типографика --- */
  --font-sans: 'Golos Text', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-serif: 'Literata', Georgia, 'Times New Roman', serif;

  --h1: clamp(32px, 24px + 2.222vw, 56px);
  --h2: clamp(26px, 20.33px + 1.574vw, 43px);
  --h3: clamp(20px, 18.33px + 0.463vw, 25px);
  --h4: 18px;
  --lead: clamp(17px, 16.4px + 0.185vw, 19px);
  --body: 17px;
  --small: 15px;
  --caption: 13.5px;

  /* --- цвет --- */
  --bg:        #FBF8F2;
  --bg-alt:    #F3EDE2;
  --surface:   #FFFFFF;
  --line:      #E5DCCE;
  --line-soft: #EFE8DC;
  --ink:       #1F1C18;
  --ink-soft:  #4F4A42;
  --muted:     #6E675C;
  --wood:      #7A5A3A;
  --brand:     #A63A32;
  --brand-dark:#8A2E27;
  --brand-soft:#FBEDE9;
  --forest:    #22301F;
  --forest-2:  #2C3D27;
  --cream:     #F6F1E6;
  --ok:        #2E6B45;
  --focus:     #1D4ED8;

  /* --- ритм --- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --r-sm: 6px; --r: 12px; --r-lg: 18px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --shadow-xs: 0 1px 2px rgba(31,28,24,.05);
  --shadow-s:  0 2px 6px rgba(31,28,24,.06);
  --shadow-m:  0 12px 34px rgba(31,28,24,.10);
  --ease: cubic-bezier(.2,.7,.25,1);
}

/* --- база --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--body)/1.6 var(--font-sans);
  font-feature-settings: 'tnum' 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.015em; line-height: 1.14; text-wrap: balance; }
h1 { font-size: var(--h1); letter-spacing: -.02em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.bg-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--caption); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: var(--lead); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--muted); }
.serif { font-family: var(--font-serif); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.head-row .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.head-row > .link-arrow { margin-bottom: clamp(28px, 4vw, 48px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--brand); }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- кнопки --- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
  box-shadow: var(--shadow-xs);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-s); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); box-shadow: none; }
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-s); }
.btn--onDark { --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: rgba(246,241,230,.35); }
.btn--onDark:hover { --btn-bg: var(--cream); --btn-fg: var(--forest); border-color: var(--cream); }
.btn--wide { width: 100%; }

/* --- шапка --- */
.topbar { background: var(--forest); color: var(--cream); font-size: var(--caption); }
.topbar .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 38px; flex-wrap: wrap; }
.topbar b { font-weight: 600; }
.topbar .tb-right { margin-left: auto; display: flex; align-items: center; gap: var(--s4); }
.topbar a { text-decoration: underline; text-decoration-color: rgba(246,241,230,.35); text-underline-offset: 3px; }
.topbar a:hover { text-decoration-color: currentColor; }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.header-in { display: flex; align-items: center; gap: var(--s6); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 0; margin-left: auto; }
.nav a { padding: 10px 9px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.nav a:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: var(--s3); }
.header-cta .btn { white-space: nowrap; }
.cta-short { display: none; }
.header-phone { display: none; flex-direction: column; line-height: 1.15; font-weight: 650; white-space: nowrap; }
.header-phone span { font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* --- первый экран --- */
.hero { padding-block: clamp(28px, 4.5vw, 56px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 20px; max-width: 30em; }
.hero-actions { display: flex; gap: var(--s3); margin-top: 28px; flex-wrap: wrap; }
.hero-proof { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s4) var(--s5); margin-top: clamp(28px, 4vw, 44px); padding-top: var(--s5); border-top: 1px solid var(--line); }
.proof-item { display: flex; gap: 12px; align-items: flex-start; }
.proof-item svg { flex: none; color: var(--wood); margin-top: 2px; }
.proof-item b { display: block; font-size: 16px; }
.proof-item span { font-size: var(--caption); color: var(--muted); }

.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-photo { grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-m); background: #fff; }
.hero-photo-media { position: relative; }
.hero-photo img { aspect-ratio: 3 / 2; object-fit: cover; object-position: center 42%; width: 100%; }
.photo-tag {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: var(--r-sm);
  background: rgba(20,17,14,.74); backdrop-filter: blur(8px); color: #fff;
  font-weight: 700; font-size: 17px; letter-spacing: -.01em;
}
.hero-photo figcaption { padding: 14px 18px; background: #fff; font-size: var(--small); color: var(--ink-soft); }
.hero-photo figcaption b { font-weight: 600; color: var(--ink); }
.hero-side { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-s); }

/* --- полоса доверия --- */
.trust { border-block: 1px solid var(--line); background: var(--bg-alt); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s5) var(--s6); padding-block: clamp(24px, 3vw, 36px); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { flex: none; color: var(--brand); margin-top: 3px; }
.trust-item b { display: block; font-size: 15.5px; font-weight: 650; }
.trust-item span { display: block; font-size: var(--caption); color: var(--muted); margin-top: 2px; }

/* --- Bento-каталог --- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; border-radius: var(--r); overflow: hidden; color: #fff;
  isolation: isolate;
}
.cat-card--wide { grid-column: span 6; min-height: 380px; }
.cat-card--third { grid-column: span 4; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.cat-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,17,14,.82) 8%, rgba(20,17,14,.28) 48%, rgba(20,17,14,.05) 100%); }
.cat-card:hover img { transform: scale(1.035); }
.cat-body { padding: clamp(18px, 2vw, 26px); }
.cat-body h3 { font-size: var(--h3); }
.cat-body p { margin-top: 8px; font-size: var(--small); color: rgba(255,255,255,.82); max-width: 34em; }
.cat-meta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  font-size: var(--caption); font-weight: 600; backdrop-filter: blur(6px);
}
.chip--solid { background: #fff; color: var(--ink); border-color: #fff; }
.cat-price { font-weight: 700; font-size: 16px; }

/* --- карточки товаров --- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px, 1.8vw, 22px); }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: transparent; }
.card-media { position: relative; background: var(--bg-alt); }
.card-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-xs);
}
.badge--dark { background: rgba(20,17,14,.78); backdrop-filter: blur(6px); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; gap: 10px; }
.card-title { font-size: 17px; font-weight: 650; line-height: 1.3; }
.card-title a { display: block; }
.card-title a:hover { color: var(--brand); }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  padding: 3px 8px; border-radius: var(--r-sm);
  background: var(--bg-alt); border: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--muted);
}
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.price { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.price small { font-size: var(--caption); font-weight: 600; color: var(--muted); margin-right: 6px; letter-spacing: 0; }
.card-foot .go { font-size: var(--caption); font-weight: 600; color: var(--brand); }

/* --- процесс --- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2vw, 26px); counter-reset: step; }
.step { position: relative; padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.step-num { font-family: var(--font-serif); font-size: 30px; font-weight: 500; color: color-mix(in srgb, var(--brand) 70%, var(--ink)); line-height: 1; }
.step h3 { font-size: 18px; margin-top: 12px; }
.step p { margin-top: 8px; font-size: var(--small); color: var(--ink-soft); }
.step-time { display: inline-block; margin-top: 12px; font-size: var(--caption); font-weight: 600; color: var(--ok); }

/* --- материалы (тёмная секция) --- */
.materials { background: var(--forest); color: var(--cream); }
.materials .eyebrow { color: #D8A79B; }
.materials h2 { color: #fff; }
.mat-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.mat-list { display: grid; gap: var(--s4); margin-top: var(--s6); }
.mat-item { display: flex; gap: 12px; padding-top: var(--s4); border-top: 1px solid rgba(246,241,230,.16); }
.mat-item:first-child { border-top: 0; padding-top: 0; }
.mat-item svg { flex: none; color: #D8A79B; margin-top: 3px; }
.mat-item b { font-weight: 650; }
.mat-item p { color: rgba(246,241,230,.72); font-size: var(--small); margin-top: 4px; }
.mat-media { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mat-media img { border-radius: var(--r); object-fit: cover; aspect-ratio: 4/3; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.mat-media img:first-child { grid-column: span 2; aspect-ratio: 16/10; }

/* --- проекты --- */
.gallery-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.shot { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-alt); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .45s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot--big { grid-column: span 3; grid-row: span 2; }
.shot--big img { aspect-ratio: auto; height: 100%; min-height: 420px; }
.shot--sm { grid-column: span 3; }
.gallery-bento .shot:nth-child(4), .gallery-bento .shot:nth-child(5) { grid-column: span 3; }
.shot-cap {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px; font-size: var(--small); color: #fff;
  background: linear-gradient(to top, rgba(20,17,14,.78), rgba(20,17,14,0));
}

/* --- две возможности --- */
.options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(16px, 2vw, 24px); }
.option { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.option img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.option .option-body { padding: 20px 22px 22px; }
.option h3 { font-size: 19px; }
.option p { margin-top: 8px; font-size: var(--small); color: var(--ink-soft); }
.option .link-arrow { margin-top: 14px; font-size: var(--small); }

/* --- FAQ --- */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details[open] { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-alt) 60%, transparent)); }
.faq summary {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 20px 4px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq p { padding: 0 44px 22px 4px; color: var(--ink-soft); max-width: 68ch; }

/* --- заявка --- */
.form-band { background: var(--bg-alt); border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-s); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: var(--caption); font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  min-height: 48px; padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: var(--caption); color: var(--muted); margin-top: 12px; }
.form-side h2 { margin-top: 14px; }
.contact-list { display: grid; gap: 12px; margin-top: var(--s6); }
.contact-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.contact-row svg { color: var(--brand); flex: none; }
.contact-row b { font-weight: 650; }
.contact-row span { font-size: var(--caption); color: var(--muted); display: block; }
.contact-row:hover { border-color: var(--brand); }

/* --- футер --- */
.site-footer { background: var(--forest); color: rgba(246,241,230,.8); padding-top: clamp(40px, 5vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 3vw, 48px); padding-bottom: var(--s7); }
.site-footer h3 { font-size: 15px; color: #fff; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--small); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand .brand-mark { color: #D8A79B; }
.footer-note { margin-top: 16px; font-size: var(--small); color: rgba(246,241,230,.62); max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(246,241,230,.16); padding-block: var(--s5); font-size: var(--caption); color: rgba(246,241,230,.6); display: flex; gap: var(--s5); flex-wrap: wrap; justify-content: space-between; }

/* --- мобильная панель --- */
.mobile-bar { display: none; }

/* --- появление блоков (мягкое, отключаемое) --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --- адаптив --- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .mat-grid, .form-grid, .options { grid-template-columns: 1fr; }
  .hero-media { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-thumb { display: none; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .cat-card--wide { grid-column: span 6; min-height: 320px; }
  .cat-card--third { grid-column: span 6; min-height: 240px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-bento { grid-template-columns: repeat(2, 1fr); }
  .shot--big { grid-column: span 2; grid-row: auto; }
  .shot--sm, .gallery-bento .shot:nth-child(4), .gallery-bento .shot:nth-child(5) { grid-column: span 1; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mat-media img:first-child { aspect-ratio: 4/3; }
}
@media (max-width: 620px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .header-cta .btn { padding: 10px 14px; font-size: 15px; min-height: 44px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10.5px; }
  .brand-mark { width: 34px; height: 34px; }
  .topbar .wrap { gap: var(--s3); padding-block: 8px; }
  .topbar .tb-hide { display: none; }
  .header-phone { display: none; }
  .hero-proof { grid-template-columns: 1fr; gap: var(--s3); }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .option { grid-template-columns: 88px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 68px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    position: fixed; inset: auto 0 0 0; z-index: 60;
    background: var(--line); border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 6px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-soft);
  }
  .mobile-bar a:last-child { background: var(--brand); color: #fff; }
}

/* ============================================================================
   Дополнение: каталог (раздел) и карточка товара
   Компоненты той же системы: крошки, фильтры, сетка товаров, галерея,
   липкий блок заказа, таблица характеристик.
   ========================================================================= */

/* --- крошки и заголовок раздела --- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 24px 0 0; font-size: var(--caption); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .5; }

.page-head { max-width: 880px; padding: 18px 0 0; }
.page-head h1 { font-size: var(--h1); }
.page-head .lead { margin-top: 16px; max-width: 730px; }
.page-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* --- панель фильтров --- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 0; margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar .fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .flabel { font-size: var(--caption); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chip-filter { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--small); color: var(--ink-soft); }
.chip-filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar .count { margin-left: auto; font-size: var(--small); color: var(--muted); }

/* --- сетка и карточки товаров --- */
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); margin-top: 30px; }
.prod-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.prod-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.prod-media { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
.prod-media .badge { position: absolute; left: 12px; top: 12px; }
.prod-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 18px; }
.prod-body h3 { font-size: 17px; font-weight: 600; line-height: 1.28; letter-spacing: -.01em; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-foot { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 8px; }
.prod-price { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.prod-old { font-size: var(--small); color: var(--muted); text-decoration: line-through; }
.prod-go { margin-left: auto; font-size: var(--small); font-weight: 600; color: var(--brand); }

/* --- карточка товара: галерея + заказ --- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 364px; gap: clamp(24px, 3vw, 46px); margin-top: 24px; align-items: start; }
.pd-gallery { display: grid; gap: 12px; }
.pd-main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-alt); aspect-ratio: 3/2; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main .photo-tag { position: absolute; left: 14px; bottom: 14px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pd-thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line-soft); }
.pd-thumbs img.is-active { outline: 2px solid var(--brand); outline-offset: -2px; }

.pd-order { position: sticky; top: 16px; display: grid; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-s); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-price { font-size: clamp(28px, 24px + 1.1vw, 36px); font-weight: 660; letter-spacing: -.03em; }
.pd-rows { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.pd-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--small); }
.pd-row b { font-weight: 600; }
.pd-row span { color: var(--muted); }
.pd-actions { display: grid; gap: 10px; }
.pd-note { font-size: var(--caption); color: var(--muted); }
.pd-bullets { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: var(--small); }
.pd-bullets div { display: flex; gap: 8px; align-items: flex-start; }
.pd-bullets svg { flex: none; color: var(--brand); margin-top: 2px; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: 16px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--small); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.pd-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.prose p { margin: 0 0 14px; color: var(--ink-soft); }
.incl { display: grid; gap: 10px; padding: 20px; background: var(--bg-alt); border-radius: var(--r); }
.incl div { display: flex; gap: 10px; font-size: var(--small); }
.incl svg { flex: none; color: var(--ok); margin-top: 2px; }
.pd-similar { margin-top: 8px; }

@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd { grid-template-columns: 1fr; }
  .pd-order { position: static; }
}
@media (max-width: 900px) {
  .pd-cols { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prod-grid { grid-template-columns: 1fr; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
  .toolbar .count { margin-left: 0; width: 100%; }
}

/* --- каталожные страницы: варианты модели и живые фильтры --- */
a.prod-media { display: block; }
.prod-body h3 a { color: inherit; text-decoration: none; }
button.chip-filter { font: inherit; cursor: pointer; }
.chip-filter:hover { border-color: var(--ink); color: var(--ink); }
.prod-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-variants a { display: inline-flex; padding: 4px 10px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--bg); font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); text-decoration: none; }
.prod-variants a:hover { border-color: var(--ink); color: var(--ink); }
.prod-card.is-hidden { display: none; }

/* легаси-шапка: глобальные правила редизайна не должны раздувать иконки контактов */
.page-header .contact img { height: 32px; width: auto; }
.page-header .logo img { max-width: min(408px, 100%); height: auto; }

/* --- карточка товара (ProductPage) --- */
.pd-old { font-size: var(--small); color: var(--muted); text-decoration: line-through; }
.pd-thumbs img { cursor: pointer; }
.incl--dark { background: var(--forest); color: var(--cream); }
.incl--dark b { color: var(--cream); }
.pd-schemes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.pd-schemes a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pd-schemes img { width: 100%; height: auto; display: block; }
.pd-schemes a:hover { border-color: var(--brand); }
.pd-video { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #0f0d0b; margin-top: 18px; }
.pd-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.pd-video + .pd-video { margin-top: 14px; }
@media (max-width: 720px) { .pd-schemes { grid-template-columns: 1fr; } }

/* --- SEO-текст раздела (13.10.2026, восстановлен из старой версии) --- */
.cat-seo { padding-top: 0; }
.cat-seo__body { max-width: 840px; }
.cat-seo__body p, .cat-seo__body li { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 14px; }
.cat-seo__body h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.28; color: var(--ink); margin: 0 0 14px; }
.cat-seo__body h3 { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.35; color: var(--ink); margin: 30px 0 10px; }
.cat-seo__body > * + h2 { margin-top: 42px; }
.cat-seo__body ul { margin: 0 0 16px; padding-left: 22px; }
.cat-seo__body ul li { margin-bottom: 8px; }
.cat-seo__body a { color: var(--brand, #A63A32); text-decoration: underline; text-underline-offset: 2px; }
.cat-seo__body strong { color: var(--ink); }
@media (max-width: 720px) { .cat-seo__body > * + h2 { margin-top: 34px; } }

/* --- активный пункт меню + адаптив шапки нового дизайна (13.10.2026) --- */
.nav a.is-here { color: var(--ink); font-weight: 600; }
@media (min-width: 1081px) and (max-width: 1260px) {
  .header-in { gap: var(--s4); }
  .nav a { padding: 10px 6px; font-size: 13.5px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 18px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .header-cta .btn { padding: 10px 14px; font-size: 15px; }
}
