@charset "utf-8";

/* ==========================================================================
   РОВНО — лендинг производственной компании
   Дизайн-система: светлый эко-минимализм, кремовый + графит + дерево + олива
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифты (самостоятельный хостинг, вариативный Manrope)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Токены
   -------------------------------------------------------------------------- */
:root {
  /* палитра */
  --cream: #f7f5f0;
  --cream-deep: #f0ebe1;
  --cream-soft: #fbfaf7;
  --white: #ffffff;
  --ink: #1a1a1a;
  --graphite: #2e2c28;
  --muted: #6d685f;
  --muted-light: #948e83;
  --line: #e5dfd2;
  --line-soft: #eee9df;
  --wood: #8b5a2b;
  --wood-2: #a67b5b;
  --wood-soft: #f3e9dc;
  --olive: #6b705c;
  --olive-soft: #eef0e8;
  --dark: #1e1d1a;
  --dark-line: rgba(247, 245, 240, 0.14);

  /* типографика */
  --font: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --lh-body: 1.65;

  /* сетка */
  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --section-y: clamp(64px, 8.5vw, 132px);

  /* радиусы и тени */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-card: 0 26px 60px -40px rgba(60, 45, 25, 0.45);
  --shadow-float: 0 24px 60px -24px rgba(46, 35, 22, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 100px;
}

/* --------------------------------------------------------------------------
   3. Сброс и база
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg,
iframe { display: block; max-width: 100%; }

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

ul, ol { padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; color: inherit; }

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

::selection {
  background: var(--wood);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   4. Утилиты и типографика
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--soft { background: var(--cream-deep); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wood);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--light { color: var(--wood-2); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head__title { max-width: none; }
.section-head .eyebrow { white-space: nowrap; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
}
.section-head__aside { padding-bottom: 6px; }
.section-head__aside p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.0625rem;
}
.section-head__aside p + p { margin-top: 14px; }

.lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.text-wood { color: var(--wood); }
.text-olive { color: var(--olive); }

/* --------------------------------------------------------------------------
   5. Кнопки и ссылки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 14px 30px -18px rgba(26, 26, 26, 0.7);
}
.btn--primary:hover {
  background: var(--wood);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -18px rgba(139, 90, 43, 0.65);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}
.btn--light:hover { background: var(--white); transform: translateY(-2px); }

.btn--sm { min-height: 46px; padding: 0 22px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--wood); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5.1 Плашка о технических работах
   -------------------------------------------------------------------------- */
.notice {
  position: relative;
  z-index: 80;
  background: linear-gradient(90deg, #6f4320 0%, #8b5a2b 52%, #a67b5b 100%);
  color: var(--cream);
}
.notice-dismissed .notice { display: none; }
.notice__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
  padding-block: 9px;
}
.notice__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 5px 12px;
  border: 1px solid rgba(247, 245, 240, 0.38);
  border-radius: var(--r-pill);
  background: rgba(247, 245, 240, 0.12);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.notice__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f2c94c;
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.22);
  animation: noticePulse 2.4s var(--ease) infinite;
}
@keyframes noticePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.notice__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(247, 245, 240, 0.92);
}
.notice__text strong { color: #fff; font-weight: 800; }
.notice__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.notice__text a:hover { color: #f3e3d1; }
.notice__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid rgba(247, 245, 240, 0.28);
  color: var(--cream);
  flex: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.notice__close:hover {
  background: rgba(247, 245, 240, 0.16);
  border-color: rgba(247, 245, 240, 0.6);
}

/* --------------------------------------------------------------------------
   6. Хедер
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header.is-scrolled {
  background: rgba(251, 250, 247, 0.94);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 30px -26px rgba(46, 35, 22, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: var(--header-h);
  transition: min-height 0.35s var(--ease);
}
.header.is-scrolled .header__inner { min-height: 72px; }

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.logo img {
  width: clamp(154px, 14.8vw, 214px);
  height: auto;
  transition: width 0.35s var(--ease);
}
.header.is-scrolled .logo img { width: clamp(136px, 12.4vw, 182px); }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--graphite);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--wood); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--wood); }

.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  margin-left: auto;
}
.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.header__phone-label {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 700;
}
.header__phone-number {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header__phone-number:hover { color: var(--wood); }

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { top: 23px; transform: translateX(-50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 23px; transform: translateX(-50%) rotate(-45deg); }

/* мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: calc(var(--header-h) + 26px) var(--gutter) 32px;
  background: var(--cream);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-menu__link span {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--wood);
  font-weight: 700;
}
.mobile-menu__foot { display: grid; gap: 14px; }
.mobile-menu__contacts { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__phone { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.mobile-menu__note { font-size: 0.8125rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 68px) clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 88% 18%, rgba(166, 123, 91, 0.14), transparent 62%),
    radial-gradient(50% 60% at 4% 90%, rgba(107, 112, 92, 0.1), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__content { max-width: 640px; min-width: 0; }
.hero h1 {
  font-size: clamp(2.05rem, 4.5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--wood);
}
.hero__lead {
  max-width: 45ch;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.62;
}
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 30px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero__fact strong {
  display: block;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.hero__fact span {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}

.hero__media { position: relative; min-width: 0; }
.hero__frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--cream-deep);
  aspect-ratio: 4 / 3.35;
  box-shadow: 0 40px 80px -50px rgba(46, 35, 22, 0.65);
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(155deg, rgba(166, 123, 91, 0.05) 0%, rgba(139, 90, 43, 0.16) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.08);
  pointer-events: none;
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.hero__frame:hover img { transform: scale(1.05); }

.hero__badge {
  position: absolute;
  left: clamp(-12px, -1vw, 0px);
  bottom: clamp(20px, 3vw, 38px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 223, 210, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
}
.hero__badge-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wood-soft);
  color: var(--wood);
  flex: none;
}
.hero__badge strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.hero__badge span {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.hero__chip {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(26, 26, 26, 0.78);
  color: var(--cream);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   8. Преимущества (полоса под hero)
   -------------------------------------------------------------------------- */
.advantages {
  border-block: 1px solid var(--line);
  background: var(--cream-soft);
}
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.advantage {
  display: flex;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 34px) clamp(16px, 2.4vw, 34px);
  border-left: 1px solid var(--line);
}
.advantage:first-child { border-left: 0; padding-left: 0; }
.advantage:last-child { padding-right: 0; }
.advantage__icon {
  flex: none;
  color: var(--wood);
  margin-top: 2px;
}
.advantage h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin-bottom: 6px;
}
.advantage p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Услуги
   -------------------------------------------------------------------------- */
.services { background: var(--cream); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--wood), var(--wood-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover {
  transform: translateY(-5px);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}
.service:hover::before { transform: scaleX(1); }

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.service__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--wood);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.service:hover .service__icon { background: var(--wood-soft); }
.service__num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted-light);
  padding-top: 6px;
}
.service h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.service p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: -6px;
}
.service__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wood);
}
.service__more svg { transition: transform 0.3s var(--ease); }
.service__more:hover svg { transform: translateX(4px); }

/* десятая карточка шире — закрывает ряд и акцентирует нестандартные детали */
.services__grid .service:last-child { grid-column: span 2; }
.services__grid .service:last-child p { max-width: 62ch; }

/* --------------------------------------------------------------------------
   10. Каталог
   -------------------------------------------------------------------------- */
.catalog { background: var(--cream-deep); }
.catalog__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--wood-2); color: var(--wood); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.product:hover {
  transform: translateY(-5px);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}
.product.is-hidden { display: none; }

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.product:hover .product__media img { transform: scale(1.05); }
.product__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood);
}
.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: clamp(20px, 2.2vw, 28px);
}
.product h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.product p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.product__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.product__specs li {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--cream);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--graphite);
  letter-spacing: 0.01em;
}
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.product__price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}
.product__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ink);
}
.product__cta svg { transition: transform 0.3s var(--ease); }
.product__cta:hover { color: var(--wood); }
.product__cta:hover svg { transform: translateX(4px); }

.catalog__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(26px, 3vw, 40px);
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 38px);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.catalog__note p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 62ch;
}
.catalog__note p strong { color: var(--ink); font-weight: 800; }

/* породы шпона */
.species { margin-top: clamp(48px, 6vw, 88px); }
.species__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.species h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.species__head p { font-size: 0.875rem; color: var(--muted); }
.species__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.wood {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-soft);
}
.wood__swatch {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.wood__swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.wood:hover .wood__swatch img { transform: scale(1.06); }
.wood__name {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(26, 26, 26, 0.55), transparent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wood__body { padding: 16px 16px 18px; }
.wood__body p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}
.wood__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}
.wood__tags li {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  background: var(--olive-soft);
  border-radius: 4px;
  padding: 4px 7px;
}

/* --------------------------------------------------------------------------
   11. Производство
   -------------------------------------------------------------------------- */
.production { background: var(--cream); }
.production__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}
.production__copy p {
  color: var(--muted);
  max-width: 52ch;
}
.production__copy p + p { margin-top: 16px; }
.production__features {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.production__feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.production__feature svg { color: var(--wood); margin-top: 3px; }
.production__feature strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 3px;
}
.production__feature span {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, 17vw);
  gap: clamp(8px, 1vw, 14px);
}
.gallery__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-deep);
  cursor: zoom-in;
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 26, 26, 0.42));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }
.gallery__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(247, 245, 240, 0.92);
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }

/* лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(20, 19, 17, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(1200px, 100%);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(247, 245, 240, 0.35);
  color: var(--cream);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(247, 245, 240, 0.14); border-color: rgba(247, 245, 240, 0.7); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgba(247, 245, 240, 0.7);
}

/* --------------------------------------------------------------------------
   12. Видео
   -------------------------------------------------------------------------- */
.video {
  position: relative;
  padding-block: var(--section-y);
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.video::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 85% 0%, rgba(139, 90, 43, 0.3), transparent 65%),
    radial-gradient(40% 60% at 0% 100%, rgba(107, 112, 92, 0.22), transparent 65%);
  pointer-events: none;
}
.video .wrap { position: relative; }
.video__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.video h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.03em;
}
.video__head p {
  color: rgba(247, 245, 240, 0.68);
  font-size: 1rem;
  max-width: 46ch;
}
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(247, 245, 240, 0.12);
}
.video__frame iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #14120f;
  cursor: pointer;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.video__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.video__poster:hover img { transform: scale(1.025); }
.video__poster.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.video__play {
  position: absolute;
  right: clamp(16px, 2.4vw, 28px);
  top: clamp(16px, 2.4vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: var(--r-pill);
  background: rgba(26, 26, 26, 0.86);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.video__play-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  flex: none;
}
.video__poster:hover .video__play { background: var(--wood); transform: translateY(-2px); }

.video__note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, 0.55);
}
.video__note a {
  color: rgba(247, 245, 240, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video__note a:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { background: var(--cream); }
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.faq__aside p {
  color: var(--muted);
  margin-top: 18px;
  max-width: 34ch;
}
.faq__aside .btn { margin-top: 28px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--wood); }
.faq__icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::before { width: 10px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 10px; transition: opacity 0.3s; }
.faq__item[open] .faq__icon { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { opacity: 0; }
.faq__answer {
  padding: 0 46px 24px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   14. Контакты и форма
   -------------------------------------------------------------------------- */
.contacts { background: var(--cream-deep); }
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}
.contacts__info {
  display: grid;
  gap: 0;
  min-width: 0;
  margin-top: 4px;
}
.contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--wood);
}
.contact-row__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 4px;
}
.contact-row__value {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.contact-row > div { min-width: 0; }
.contact-row__note { overflow-wrap: break-word; }
.contact-row__value a:hover { color: var(--wood); }
.contact-row__note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: var(--graphite);
  transition: all 0.25s var(--ease);
}
.social-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.form-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -55px rgba(46, 35, 22, 0.55);
}
.form-card__head { margin-bottom: 24px; }
.form-card h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.form-card__head p {
  font-size: 0.875rem;
  color: var(--muted);
}
.form__subject {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--wood-soft);
  border: 1px solid #e6d6c2;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6c4620;
  line-height: 1.4;
}
.form__subject.is-visible { display: flex; }
.form__subject span { flex: 1; }
.form__subject button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #6c4620;
  flex: none;
}
.form__subject button:hover { background: rgba(139, 90, 43, 0.12); }
.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { position: relative; display: block; }
.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder { color: var(--muted-light); font-weight: 400; }
.field input:hover { border-color: #d6cfbf; }
.field input:focus {
  outline: none;
  border-color: var(--wood);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.1);
}
.field.has-error input { border-color: #b3261e; background: #fdf6f5; }

.field__optional {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-light);
}
.field textarea {
  width: 100%;
  min-height: 108px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream-soft);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: inherit;
  resize: vertical;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea::placeholder { color: var(--muted-light); font-weight: 400; }
.field textarea:hover { border-color: #d6cfbf; }
.field textarea:focus {
  outline: none;
  border-color: var(--wood);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.1);
}
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b3261e;
}
.field.has-error .field__error { display: block; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}
.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid #cfc8b9;
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.checkbox input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath fill='none' stroke='%23F7F5F0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 4.5 4.2 7.7 11 1'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--ink);
}
.checkbox a { color: var(--graphite); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.checkbox a:hover { color: var(--wood); text-decoration-color: var(--wood); }
.checkbox.has-error { color: #b3261e; }
.checkbox.has-error input { border-color: #b3261e; }

.form__submit { margin-top: 6px; }
.form__hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.6875rem;
  color: var(--muted-light);
  line-height: 1.5;
}
.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.form__status.is-success,
.form__status.is-error { margin-top: 16px; }
.form-card.is-sent {
  justify-content: center;
  min-height: 460px;
}
.form__status.is-success {
  display: block;
  padding: 20px 22px;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: var(--olive-soft);
  color: #4a5344;
  border: 1px solid #d5dbcb;
}
.form__status.is-error {
  display: block;
  background: #fdf3f2;
  color: #8c2a22;
  border: 1px solid #f0d3d0;
}
.form[hidden] { display: none; }

/* карта */
.map {
  position: relative;
  margin-top: clamp(30px, 4vw, 52px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  min-height: 380px;
}
.map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  filter: saturate(0.92) contrast(1.02);
}
.map__hint {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-float);
}

/* --------------------------------------------------------------------------
   15. Подвал
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-top: clamp(48px, 6vw, 84px);
  background: var(--dark);
  color: rgba(247, 245, 240, 0.72);
  font-size: 0.875rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(38px, 5vw, 60px);
  border-bottom: 1px solid var(--dark-line);
}
.footer__brand img {
  width: 210px;
  height: auto;
  margin-bottom: 20px;
}
.footer__brand p {
  max-width: 34ch;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.6);
}
.footer__phone {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.footer__phone:hover { color: var(--wood-2); }
.footer h4 {
  margin-bottom: 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.45);
}
.footer__links { display: grid; gap: 9px; }
.footer__links a { color: rgba(247, 245, 240, 0.78); width: fit-content; }
.footer__links a:hover { color: var(--cream); }
.footer__links--inline { display: flex; flex-wrap: wrap; gap: 14px; }

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.footer__socials a {
  padding: 7px 13px;
  border: 1px solid rgba(247, 245, 240, 0.18);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(247, 245, 240, 0.72);
  transition: all 0.25s var(--ease);
}
.footer__socials a:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px 32px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.45);
}
.footer__requisites { max-width: 62ch; }
.footer__requisites strong { color: rgba(247, 245, 240, 0.72); font-weight: 600; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a { color: rgba(247, 245, 240, 0.55); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247, 245, 240, 0.25); }
.footer__legal a:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   16. FAB и кнопка «наверх»
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: clamp(14px, 2.2vw, 28px);
  bottom: clamp(14px, 2.2vw, 28px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 18px 40px -16px rgba(26, 26, 26, 0.65);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.fab__btn:hover { background: var(--wood); transform: translateY(-2px); }
.fab__btn svg { transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); }
.fab__btn .fab__icon-close { position: absolute; opacity: 0; transform: rotate(-45deg); }
.fab.is-open .fab__btn .fab__icon-chat { opacity: 0; transform: rotate(45deg); }
.fab.is-open .fab__btn .fab__icon-close { opacity: 1; transform: none; }
.fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139, 90, 43, 0.6);
  animation: fabPulse 2.8s var(--ease) infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.fab__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 70px -30px rgba(46, 35, 22, 0.45);
  transform-origin: bottom right;
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.fab.is-open .fab__panel { opacity: 1; visibility: visible; transform: none; }
.fab__panel h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.fab__panel p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.fab__links { display: grid; gap: 6px; }
.fab__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--graphite);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.fab__link:hover { background: var(--cream); color: var(--ink); }
.fab__link-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--wood);
  flex: none;
}
.fab__link:hover .fab__link-icon { background: var(--wood-soft); }
.fab__link small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

.to-top {
  position: fixed;
  right: clamp(14px, 2.2vw, 28px);
  bottom: calc(clamp(14px, 2.2vw, 28px) + 68px);
  z-index: 69;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--graphite);
  box-shadow: 0 12px 30px -18px rgba(46, 35, 22, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--white); color: var(--wood); }

/* --------------------------------------------------------------------------
   17. Анимации появления
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(0.96); }

/* --------------------------------------------------------------------------
   18. Внутренние юридические страницы
   -------------------------------------------------------------------------- */
.legal-page { background: var(--cream); }
.legal-hero {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.legal-hero p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.75rem;
  color: var(--muted-light);
}
.breadcrumbs a:hover { color: var(--wood); }
.legal {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 64px) var(--section-y);
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}
.legal__toc h2 {
  margin-bottom: 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 700;
}
.legal__toc ol { display: grid; gap: 8px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; font-size: 0.8125rem; line-height: 1.4; }
.legal__toc a { color: var(--muted); }
.legal__toc a::before { content: counter(toc) ". "; color: var(--muted-light); }
.legal__toc a:hover { color: var(--wood); }
.legal__body { max-width: 74ch; }
.legal__body h2 {
  margin: 36px 0 14px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p,
.legal__body li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #45423d;
}
.legal__body p + p { margin-top: 12px; }
.legal__body ul { margin: 12px 0; display: grid; gap: 8px; }
.legal__body ul li { position: relative; padding-left: 18px; }
.legal__body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wood-2);
}
.legal__body a { color: var(--wood); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--ink); font-weight: 700; }
.legal__requisites {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--graphite);
}
.legal__requisites strong { font-weight: 700; }
.legal__note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   19. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .nav__list { gap: 16px; }
  .nav__link { font-size: 0.875rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 80px; }
  .logo img { width: 152px; }
  .header.is-scrolled .logo img { width: 138px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__actions { gap: 10px; }
  .header__actions .btn { min-height: 46px; padding: 0 18px; font-size: 0.8125rem; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__media { max-width: 720px; }
  .hero__content { max-width: 720px; }
  .hero__frame { aspect-ratio: 16 / 10; }
  .hero__frame img { object-position: 38% 50%; }
  .hero__badge { left: 14px; bottom: 14px; }

  .advantages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantage { border-left: 0; padding-left: 0; padding-right: 0; }
  .advantage:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .advantage:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .species__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }

  .production__intro { grid-template-columns: 1fr; gap: 32px; }
  .video__head { grid-template-columns: 1fr; gap: 16px; }
  .faq__inner { grid-template-columns: 1fr; gap: 32px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root {
    --fs-body: 1rem;
    --section-y: clamp(52px, 12vw, 76px);
  }
  :root { --header-h: 70px; }
  .logo img { width: 138px; }
  .header.is-scrolled .logo img { width: 126px; }
  .notice__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding-block: 9px 11px;
  }
  .notice__badge { grid-column: 1; justify-self: start; }
  .notice__close { grid-column: 2; grid-row: 1; margin-left: 0; width: 28px; height: 28px; }
  .notice__text { grid-column: 1 / -1; font-size: 0.75rem; }
  [data-reveal="right"] { transform: translateY(24px); }
  .hero { padding-block: 28px 48px; }
  .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { gap: 12px; padding-top: 20px; }
  .hero__fact strong { font-size: 1.25rem; }
  .hero__fact span { font-size: 0.6875rem; }
  .hero__badge { max-width: none; right: 12px; left: 12px; bottom: 12px; padding: 14px 16px; }
  .hero__badge-icon { width: 38px; height: 38px; }
  .hero__badge strong { font-size: 0.8125rem; }
  .hero__badge span { font-size: 0.6875rem; }
  .hero__chip { top: 12px; right: 12px; padding: 8px 12px; font-size: 0.5625rem; }

  .advantages__grid { grid-template-columns: 1fr; }
  .advantage { border-left: 0; padding: 18px 0; }
  .advantage:nth-child(even) { padding-left: 0; border-left: 0; }
  .advantage:nth-child(n + 2) { border-top: 1px solid var(--line); }

  .services__grid,
  .catalog__grid { grid-template-columns: 1fr; }
  .services__grid .service:last-child { grid-column: auto; }
  .species__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .species__head { flex-direction: column; gap: 6px; }

  .gallery {
    grid-auto-rows: 150px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(6) { grid-column: span 1; }

  .map iframe { height: 320px; }
  .map { min-height: 320px; }

  .form__row { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }

  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; gap: 16px; }
  .footer__legal { gap: 8px 16px; }

  .legal__body h2 { margin-top: 28px; }
  .legal__toc { padding: 18px; }
}

@media (max-width: 420px) {
  .logo img { width: 120px; }
  .header.is-scrolled .logo img { width: 112px; }
  .footer__brand img { width: 176px; }
  .header__actions .btn { padding: 0 14px; }
  .species__grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hero__fact strong { font-size: 1.0625rem; }
  .hero__fact span { font-size: 0.625rem; }
}

/* --------------------------------------------------------------------------
   20. Доступность: уменьшение движения
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .form-card { padding: 20px 14px; }
  .form .btn {
    padding: 0 12px;
    gap: 8px;
    font-size: 0.8125rem;
    white-space: normal;
    line-height: 1.2;
    min-height: 52px;
  }
  .form__hint { font-size: 0.625rem; }
  .field textarea { min-height: 96px; }
  .contacts__grid { gap: 22px; }

  .logo img { width: 104px; }
  .header.is-scrolled .logo img { width: 100px; }
  .header__actions { gap: 6px; }
  .header__actions .btn { min-height: 42px; padding: 0 10px; font-size: 0.6875rem; }
  .header__actions .btn svg { display: none; }
  .burger { width: 42px; height: 42px; }
  .burger span:nth-child(1) { top: 16px; }
  .burger span:nth-child(2) { top: 21px; }
  .burger span:nth-child(3) { top: 26px; }
}

@media (min-width: 1600px) {
  :root { --container: 1360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. Печать
   -------------------------------------------------------------------------- */
@media print {
  .notice, .header, .fab, .to-top, .mobile-menu, .video, .map { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}

/* --------------------------------------------------------------------------
   22. Заглушки для ленивых изображений и фолбэк без JS
   -------------------------------------------------------------------------- */
.no-js [data-reveal] { opacity: 1; transform: none; }
img.is-loaded { animation: imgFade 0.6s var(--ease); }
@keyframes imgFade { from { opacity: 0.4; } to { opacity: 1; } }
