/* ==========================================================================
   MARKO DENOVA — дизайн-система
   Палитра: тёплый bone-фон, чернильный текст, бронзовый акцент
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --c-bg: #f7f5f0;
  --c-surface: #ffffff;
  --c-ink: #1b1a15;
  --c-ink-2: #403c33;
  --c-muted: #7d776a;
  --c-line: #e6e1d5;
  --c-line-2: #d8d2c3;
  --c-accent: #a5813f;
  --c-accent-2: #8a6a30;
  --c-dark: #15140f;
  --c-dark-2: #1e1d16;
  --c-danger: #b3423a;

  --ff-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-body: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --shadow: 0 14px 34px rgba(27, 26, 21, 0.09);
  --shadow-sm: 0 6px 18px rgba(27, 26, 21, 0.07);
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.14; color: var(--c-ink); }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }

::selection { background: rgba(165, 129, 63, 0.25); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--c-ink); color: #fff; padding: 10px 18px;
  border-radius: var(--radius); transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Утилиты ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 76px 0; }
.section--sm { padding: 52px 0; }
.section--alt { background: var(--c-surface); }
.section--line { border-top: 1px solid var(--c-line); }
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.kicker {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--c-muted); font-family: var(--ff-display); font-size: 20px; font-style: italic; }
.section-head .btn { margin-top: 26px; }

.lead { font-family: var(--ff-display); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; color: var(--c-ink-2); }

/* Появление при скролле (только при включённом JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-ink); color: #fff; }
.btn--primary:hover { background: var(--c-accent); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-2); }
.btn--ghost { border-color: var(--c-line-2); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-accent); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--wide { width: 100%; }
.btn--responsive { white-space: normal; word-break: break-word; }
@media (max-width: 640px) {
  .btn--responsive { width: 100%; text-align: center; padding: 16px 20px; }
}
.btn::after { content: "→"; font-size: 15px; line-height: 1; transition: transform 0.25s; }
.btn:hover::after { transform: translateX(4px); }
.btn--no-arrow::after { content: none; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-accent);
}
.link-more::after { content: "→"; transition: transform 0.25s; }
.link-more:hover { color: var(--c-accent-2); }
.link-more:hover::after { transform: translateX(5px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow 0.3s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand__logo { height: 46px; width: auto; filter: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--ff-display); font-size: 22px; letter-spacing: 0.16em; font-weight: 600; }
.brand__tag { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-muted); }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--c-line-2); color: var(--c-ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Основное меню */
.nav { display: flex; }
.nav-list { display: flex; align-items: stretch; gap: 4px; }
.nav-item { position: relative; display: flex; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 26px 13px; font-size: 14px; font-weight: 600;
  color: var(--c-ink-2); letter-spacing: 0.01em;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover, .nav-item.is-current > .nav-link { color: var(--c-ink); border-bottom-color: var(--c-accent); }
.nav-link .caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; opacity: 0.55; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(225deg) translateY(-1px); }

.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-top: 2px solid var(--c-accent);
  box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  padding: 10px 0; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 70;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown .nav-link { padding: 9px 22px; font-weight: 500; font-size: 14px; width: 100%; border: 0; }
.nav-dropdown .nav-link:hover { background: var(--c-bg); color: var(--c-accent); }
.nav-dropdown .nav-item { display: block; }
/* Третий уровень */
.nav-dropdown .nav-dropdown {
  top: -11px; left: 100%; border-radius: 0 var(--radius) var(--radius) 0;
  min-width: 270px;
}

.burger { display: none; }

/* Мобильная панель */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; visibility: hidden;
  transition: visibility 0.3s;
}
.mobile-nav.is-open { visibility: visible; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(15, 14, 10, 0.55); opacity: 0; transition: opacity 0.3s; }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 92vw);
  background: var(--c-surface); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--c-line); }
.mobile-nav__body { overflow-y: auto; padding: 10px 0 30px; flex: 1; }
.mobile-nav__body .m-link { display: block; padding: 13px 24px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--c-line); }
.mobile-nav__body .m-link:hover { color: var(--c-accent); }
.mobile-nav__body .m-link.is-current { color: var(--c-accent); }
.m-sub { display: none; background: var(--c-bg); }
.m-sub.is-open { display: block; }
.m-sub .m-link { padding-left: 40px; font-weight: 500; font-size: 14.5px; color: var(--c-ink-2); }
.m-sub .m-sub .m-link { padding-left: 56px; }
.m-toggle { position: relative; }
.m-toggle .m-caret {
  position: absolute; right: 24px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s;
}
.m-toggle[aria-expanded="true"] .m-caret { transform: translateY(-30%) rotate(225deg); }
.mobile-nav__foot { padding: 20px 24px; border-top: 1px solid var(--c-line); display: grid; gap: 12px; }
.mobile-nav__foot .phone { font-family: var(--ff-display); font-size: 24px; font-weight: 600; }

/* ---------- Слайдер ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-dark); }
.hero__viewport { position: relative; height: clamp(460px, 78vh, 700px); }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
  will-change: opacity, visibility;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }

/* Полосный слайдер: фото + карточка с текстом + фактурные плашки */
.hstrip { display: flex; gap: 6px; height: 100%; }
.hstrip__photo { flex: 1 1 48%; overflow: hidden; }
.hstrip__photo img { width: 100%; height: 100%; object-fit: cover; }
.hstrip__card { position: relative; flex: 0 0 17.5%; min-width: 210px; overflow: hidden; }
.hstrip__card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hstrip__card::after { content: ""; position: absolute; inset: 0; background: rgba(12, 11, 8, 0.62); }
.hstrip__card-inner {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 30px 22px; color: #e8ddc6;
}
.hstrip__title {
  font-family: var(--ff-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; line-height: 1.45; font-size: clamp(19px, 2vw, 27px); color: #ece3cd;
}
.hstrip__sub {
  font-family: var(--ff-display); font-style: italic;
  font-size: clamp(13px, 1.25vw, 16px); color: #cbbf9f; margin-top: 14px;
}
.hstrip__swatch { flex: 0 0 12.5%; overflow: hidden; }
.hstrip__swatch--wide { flex-basis: 20%; }
.hstrip__swatch img { width: 100%; height: 100%; object-fit: cover; }

/* Точки — круглые, внутри карточки */
.hero__dots { position: static; transform: none; display: flex; gap: 12px; margin-top: 36px; }
.hero__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35); transition: background 0.25s;
}
.hero__dot.is-active { background: #e8ddc6; }
.hero__dot:hover { background: #fff; }

/* Невидимые зоны клика по бокам: левая — назад, правая — вперёд */
.hero__zone {
  position: absolute; top: 0; bottom: 0; width: 20%;
  z-index: 4; background: transparent; border: 0; padding: 0;
}
.hero__zone--prev { left: 0; cursor: pointer; }
.hero__zone--next { right: 0; cursor: pointer; }
.hero__zone:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide img { transition: none; }
}

/* ---------- Заголовок внутренней страницы ---------- */
.page-hero {
  position: relative; background: var(--c-dark);
  padding: 66px 0 58px; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 8, 0.6), rgba(12, 11, 8, 0.75)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); max-width: 900px; }
.page-hero .lead { color: #ded6c4; margin-top: 16px; max-width: 760px; font-size: 19px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 18px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.62); }
.breadcrumbs li::after { content: "/"; opacity: 0.5; }
.breadcrumbs li:last-child { color: #fff; }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a:hover { color: var(--c-accent); }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 26px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { contain: layout; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--c-line-2); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__media--square { aspect-ratio: 1 / 1; }
.card__date {
  background: rgba(255, 255, 255, 0.92); color: var(--c-ink-2);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
}
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.card__title { font-size: 24px; line-height: 1.2; }
.card__title a:hover { color: var(--c-accent); }
.card__text { color: var(--c-muted); font-size: 14.5px; line-height: 1.65; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
@media (max-width: 480px) {
  .card__foot { flex-direction: row-reverse; justify-content: space-between; }
  .card__date { order: -1; }
}
.card__cat {
  align-self: flex-start; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent);
}

/* Крупная карточка (коллекции) */
.card--big .card__media { aspect-ratio: 16 / 10; }
.card--big .card__title { font-size: clamp(26px, 2.6vw, 34px); }
.card--big .card__body { padding: 26px 30px 30px; }

/* ---------- О компании (главная) ---------- */
.about { text-align: center; }
.about__logo { width: 74px; margin: 0 auto 26px; opacity: 0.9; }
.about__text { max-width: 780px; margin: 0 auto; display: grid; gap: 18px; }
.about__text p { color: var(--c-ink-2); font-size: 17px; line-height: 1.8; }
.about .btn { margin-top: 32px; }

/* ---------- Преимущества ---------- */
.advantages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.advantage {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.advantage__icon { height: 54px; width: auto; margin-bottom: 20px; }
.advantage h3 { font-size: 22px; margin-bottom: 10px; }
.advantage p { color: var(--c-muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- Полоса фактов ---------- */
.facts { background: var(--c-dark); color: #fff; }
.facts .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 44px; }
.fact { text-align: center; }
.fact__num { font-family: var(--ff-display); font-size: clamp(34px, 4vw, 50px); color: var(--c-accent); line-height: 1; }
.fact__label { margin-top: 10px; font-size: 13px; letter-spacing: 0.06em; color: #c9c2b2; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--c-line-2); }
.faq__item { border-bottom: 1px solid var(--c-line-2); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 22px; text-align: left; padding: 22px 4px;
  font-family: var(--ff-display); font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 600; color: var(--c-ink); transition: color 0.2s;
}
.faq__q:hover { color: var(--c-accent); }
.faq__icon {
  position: relative; flex: 0 0 auto; width: 30px; height: 30px;
  border: 1px solid var(--c-line-2); border-radius: 50%; margin-top: 3px;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--c-accent);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--ease);
}
.faq__icon::before { width: 12px; height: 1.6px; }
.faq__icon::after { width: 1.6px; height: 12px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 46px 24px 4px; color: var(--c-ink-2); line-height: 1.75; font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--c-dark); overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.cta__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 11, 8, 0.85), rgba(12, 11, 8, 0.55)); }
.cta .container { position: relative; padding-block: 66px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.cta p { color: #cec7b6; max-width: 520px; }
.cta__phone { display: block; font-family: var(--ff-display); font-size: clamp(28px, 4vw, 40px); color: #fff; margin-top: 14px; }
.cta__phone:hover { color: var(--c-accent); }
.cta__actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--c-dark); color: #b9b2a3; font-size: 14.5px; }
.site-footer a:hover { color: var(--c-accent); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 46px; }
  .footer-brand__logo { height: 58px; width: auto; margin-bottom: 18px; border-radius: var(--radius); display: inline-block; }
.footer-brand p { line-height: 1.7; color: #97917f; font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid #3a372e; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social a:hover { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.site-footer h3 { color: #fff; font-family: var(--ff-body); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { display: grid; gap: 11px; }
.footer-contacts { display: grid; gap: 16px; }
.footer-contacts .fc-label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #7d7768; margin-bottom: 3px; }
.footer-contacts a { color: #e6e0d2; font-size: 16px; }
.footer-bottom { border-top: 1px solid #2c2a22; padding: 22px 0; font-size: 13px; color: #7f7a6c; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Контент страниц ---------- */
.content { padding: 54px 0 76px; }
.prose { max-width: 820px; }
.prose--wide { max-width: 1000px; }
.prose p { margin-bottom: 18px; color: var(--c-ink-2); line-height: 1.8; font-size: 16.5px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 40px 0 16px; }
.prose h3 { font-size: 24px; margin: 32px 0 12px; }
.prose ul { margin: 0 0 20px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; color: var(--c-ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; background: var(--c-accent); transform: rotate(45deg); }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-accent-2); }

.page-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 46px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 18px); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.side-nav__title { padding: 16px 20px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); border-bottom: 1px solid var(--c-line); }
.side-nav a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px; font-size: 14.5px; border-bottom: 1px solid var(--c-line); transition: background 0.15s, color 0.15s; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover { background: var(--c-bg); color: var(--c-accent); }
.side-nav a.is-current { background: var(--c-bg); color: var(--c-accent); font-weight: 700; }
.side-nav .count { color: var(--c-muted); font-size: 12.5px; }

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px; align-items: start; }
.product__media { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px; }
.product__media img { width: 100%; border-radius: 2px; margin-inline: auto; }
.product__lead { font-family: var(--ff-display); font-size: 21px; line-height: 1.5; color: var(--c-ink-2); margin-bottom: 20px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 6px; }
.specs { margin-top: 26px; border-top: 1px solid var(--c-line); }
.specs div { display: flex; gap: 18px; padding: 13px 2px; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.specs dt { color: var(--c-muted); min-width: 130px; }
.specs dd { font-weight: 600; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
  background: var(--c-surface); border: 1px solid var(--c-line-2);
  border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--c-ink-2); transition: border-color 0.2s, color 0.2s;
}
a.badge:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-line); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 6, 0.75));
  color: #fff; font-size: 13px; transform: translateY(6px); opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* Лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(8, 7, 5, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 88vw; max-height: 78vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #cfc9ba; font-size: 14px; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__btn:hover { background: var(--c-accent); border-color: var(--c-accent); }
.lightbox__btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Новости ---------- */
.news-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--c-muted); margin-bottom: 14px; }
.news-meta .dot { width: 4px; height: 4px; background: var(--c-accent); border-radius: 50%; }
.article { max-width: 820px; margin: 0 auto; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin: 26px 0 34px; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Прайс / документы ---------- */
.doc-list { display: grid; gap: 16px; max-width: 760px; }
.doc-item {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.doc-item:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.doc-item__ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: var(--radius);
  background: rgba(165, 129, 63, 0.12); color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
}
.doc-item__ic svg { width: 24px; height: 24px; flex-shrink: 0; }
.doc-item__t { font-weight: 600; }
.doc-item__s { font-size: 13px; color: var(--c-muted); }
.doc-item__arrow { margin-left: auto; color: var(--c-accent); font-size: 20px; transition: transform 0.2s; }
.doc-item:hover .doc-item__arrow { transform: translateX(5px); }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contacts-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; max-width: 420px; }
.contact-cards { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.contact-card {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 28px 4px; border-bottom: 1px solid var(--c-line);
}
.contact-card .label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-accent); padding-top: 4px;
}
.contact-card .value {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 500;
  line-height: 1.35; color: var(--c-ink); letter-spacing: 0.01em;
}
.contact-card .value a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.25s, color 0.25s; }
.contact-card .value a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.contact-card--social { align-items: start; }
.contact-card--social .value { font-family: var(--font-body); font-size: 15px; }
.social-list { display: grid; gap: 12px; }
.social-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit; transition: color 0.25s;
}
.social-link:hover { color: var(--c-accent); }
.social-link:hover .social-ic { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.social-link__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.social-ic {
  flex: 0 0 auto;
  width: 42px; height: 42px; border: 1px solid var(--c-line-2); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, background 0.25s, color 0.25s; color: var(--c-ink-2);
}
.social-ic svg { width: 17px; height: 17px; fill: currentColor; }
.social-ic:hover { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.map-frame { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: var(--c-surface); min-height: 380px; height: 100%; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(0.85); }

/* ---------- Формы ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; background: var(--c-surface);
  border: 1px solid var(--c-line-2); border-radius: var(--radius);
  font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(165, 129, 63, 0.15);
}
.field--error input, .field--error textarea { border-color: var(--c-danger); }
.field__error { display: none; margin-top: 6px; font-size: 13px; color: var(--c-danger); }
.field--error .field__error { display: block; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-accent); flex: 0 0 auto; }
.field--check label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13.5px; color: var(--c-muted); line-height: 1.6; margin: 0; }
.field--check a { color: var(--c-accent); text-decoration: underline; }
.form-note { font-size: 13px; color: var(--c-muted); }
.form-success {
  display: none; padding: 18px 20px; background: rgba(60, 130, 80, 0.1);
  border: 1px solid rgba(60, 130, 80, 0.4); border-radius: var(--radius);
  color: #2f6b43; font-size: 15px;
}
.form-success.is-visible { display: block; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 11, 8, 0.66); opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(3px); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; width: min(470px, 100%); background: var(--c-surface);
  border-radius: var(--radius); padding: 38px 36px 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  transform: translateY(24px) scale(0.98); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__title { font-size: 30px; margin-bottom: 8px; }
.modal__sub { color: var(--c-muted); font-size: 14.5px; margin-bottom: 24px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--c-muted); transition: background 0.2s, color 0.2s; }
.modal__close:hover { background: var(--c-bg); color: var(--c-ink); }
.modal__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* ---------- Прочее ---------- */
.team-note {
  background: var(--c-surface); border: 1px dashed var(--c-line-2);
  border-radius: var(--radius); padding: 40px; text-align: center;
  color: var(--c-muted); max-width: 760px; margin: 0 auto;
}
.not-found { text-align: center; padding: 110px 0 130px; }
.not-found__num { font-family: var(--ff-display); font-size: clamp(80px, 16vw, 150px); line-height: 1; color: var(--c-accent); }
.not-found h1 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 12px; }
.not-found p { color: var(--c-muted); margin-bottom: 30px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .site-header .container { gap: 16px; }
  .advantages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .page-grid { grid-template-columns: 1fr; }
  .side-nav { position: static; }
}
@media (max-width: 900px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: 1fr; gap: 30px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .facts .container { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .hstrip__swatch { display: none; }
  .hstrip__photo { flex-basis: 56%; }
  .hstrip__card { flex-basis: 44%; min-width: 0; }
  .cta .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .section { padding: 54px 0; }
  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding: 46px 0 34px; }
  .brand__logo { height: 38px; }
  .brand__tag { display: none; }
  .header-actions .btn { display: none; }
  .hero__viewport { height: clamp(430px, 88vh, 560px); }
  .hstrip__photo { flex: 1 1 100%; }
  .hstrip__card { position: absolute; inset: 0; flex: none; width: 100%; }
  .hstrip__card::after { background: rgba(12, 11, 8, 0.72); }
  .page-hero { padding: 46px 0 40px; }
  .page-hero__bg img { object-position: 100% center; transform: scale(1.18); transform-origin: right center; }
  .page-hero h1 { text-align: center; }
  .page-hero .lead { text-align: center; margin-left: auto; margin-right: auto; }
  .breadcrumbs { justify-content: center; }
  .modal__dialog { padding: 24px 20px 20px; max-height: calc(100vh - 20px); -webkit-overflow-scrolling: touch; }
  .modal__title { font-size: 24px; }
  .modal__sub { font-size: 14px; margin-bottom: 18px; }
  .modal__close { width: 44px; height: 44px; top: 10px; right: 10px; }
  .field input, .field textarea, .field select { padding: 16px; font-size: 16px; }
  .field textarea { min-height: 100px; }
  .field--check label { font-size: 13px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; }
}

/* Строка мобильного пункта с подменю */
.m-row { display: flex; align-items: center; border-bottom: 1px solid var(--c-line); }
.m-row .m-link { border-bottom: 0; flex: 1; }
.m-row .m-toggle { width: 56px; padding: 13px 0; display: inline-flex; align-items: center; justify-content: center; color: var(--c-muted); }

/* Чипсы материалов */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.chips span { padding: 8px 16px; border: 1px solid var(--c-line-2); border-radius: 999px; font-size: 13.5px; background: var(--c-surface); }
.chips a { padding: 8px 16px; border: 1px solid var(--c-line-2); border-radius: 999px; font-size: 13.5px; background: var(--c-surface); transition: all 0.2s; }
.chips a:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* Коллаж */
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* Шапка: шире контейнера контента (сдвиг влево) и запас по ширине */
.site-header .container { max-width: 1600px; }
.brand__text { display: none; }
.header-callback { white-space: nowrap; }
@media (max-width: 1559px) { .header-callback { display: none; } }
@media (max-width: 1440px) {
  .site-header .container { gap: 20px; }
  .nav-link { padding: 26px 11px; font-size: 13.5px; }
  .nav-list { gap: 2px; }
}
@media (max-width: 1200px) { .nav { display: none; } .burger { display: inline-flex; } }

/* Плавающая кнопка «Написать» (главная) */
.mail-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-ink); color: #f7f5f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(12, 11, 8, 0.28);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mail-fab svg { width: 24px; height: 24px; fill: currentColor; }
.mail-fab:hover { background: var(--c-accent); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(12, 11, 8, 0.34); }
.mail-fab:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .mail-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
