/* ============================================================
   LaserWoodCraft — style.css
   Единый файл стилей для всего сайта.
   Все страницы подключают именно этот файл.
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   1. CSS ПЕРЕМЕННЫЕ (токены дизайна)
   Меняй значения здесь — изменится на всём сайте.
   ──────────────────────────────────────────────────────────── */
:root {
  /* Палитра — тёплые деревянные тона */
  --cream:      #F7F2E8;   /* фон страницы */
  --sand:       #EDE4D0;   /* фон секций, карточек */
  --sand-dk:    #DDD0B5;   /* границы, разделители */
  --gold:       #B8925A;   /* акцент, кнопки, иконки */
  --gold-dk:    #9A7540;   /* hover состояние gold */
  --bark:       #3D2B1F;   /* основной тёмный текст, navbar */
  --bark-lt:    #6B4C35;   /* вторичный тёмный */
  --muted:      #8A7060;   /* серо-коричневый для подписей */
  --white:      #FFFDF9;   /* белый с лёгким тёплым оттенком */
  --red:        #C0392B;   /* ошибки валидации */

  /* Типографика */
  --font-display: 'Playfair Display', Georgia, serif;  /* заголовки */
  --font-body:    'Inter', system-ui, sans-serif;       /* текст */

  /* Размеры */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;

  /* Тени */
  --shadow-sm:  0 1px 4px rgba(61,43,31,.08);
  --shadow-md:  0 4px 16px rgba(61,43,31,.12);
  --shadow-lg:  0 8px 32px rgba(61,43,31,.16);

  /* Макет */
  --container:  1140px;   /* макс. ширина контента */
  --nav-h:      72px;     /* высота шапки */
}


/* ────────────────────────────────────────────────────────────
   2. СБРОС И БАЗОВЫЕ СТИЛИ
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;           /* плавный скролл по якорям */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--bark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}


/* ────────────────────────────────────────────────────────────
   3. ТИПОГРАФИКА — ШКАЛА РАЗМЕРОВ
   ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--bark);
}

h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; font-weight: 600; font-family: var(--font-body); }

p { color: var(--bark-lt); line-height: 1.75; }

/* Маленький лейбл — рубрика над заголовком */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}


/* ────────────────────────────────────────────────────────────
   4. КОНТЕЙНЕР И СЕТКА
   ──────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Простая колоночная сетка через CSS Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }


/* ────────────────────────────────────────────────────────────
   5. КНОПКИ
   ──────────────────────────────────────────────────────────── */

/* Первичная кнопка — тёмная */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background .18s, transform .15s, box-shadow .15s;
}

.btn-dark {
  background: var(--bark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--bark-lt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Акцентная кнопка — золотая */
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Контурная кнопка */
.btn-outline {
  background: transparent;
  color: var(--bark);
  border: 1.5px solid var(--sand-dk);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* ────────────────────────────────────────────────────────────
   6. НАВИГАЦИЯ (sticky header)
   ──────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 242, 232, .95); /* полупрозрачный cream */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-dk);
  display: flex;
  align-items: center;
}

.navbar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Логотип */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Заглушка логотипа если нет файла */
.logo-placeholder {
  width: 36px;
  height: 36px;
  background: var(--bark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bark);
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ссылки навигации */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.nav-links button {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--bark-lt);
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links button:hover {
  color: var(--bark);
  background: var(--sand);
}

/* Активная страница */
.nav-links a.active {
  color: var(--bark);
  font-weight: 600;
}

/* Dropdown меню Portfolio */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--bark-lt);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-dropdown > button:hover,
.nav-dropdown.open > button {
  color: var(--bark);
  background: var(--sand);
}

/* Стрелочка у dropdown */
.nav-dropdown > button .chevron {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}
.nav-dropdown.open > button .chevron {
  transform: rotate(180deg);
}

/* Выпадающий список */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--bark-lt);
  transition: background .12s, color .12s;
}
.dropdown-menu a:hover {
  background: var(--sand);
  color: var(--bark);
}

/* Кнопка Contact в навигации */
.nav-cta {
  margin-left: 12px;
  padding: 9px 22px !important;
  background: var(--bark) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  transition: background .15s !important;
}
.nav-cta:hover {
  background: var(--gold-dk) !important;
}

/* Бургер для мобильных */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.nav-burger:hover { background: var(--sand); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
/* Анимация бургера → крестик */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню (скрыто по умолчанию) */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--sand-dk);
  padding: 16px 24px 24px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: block; }
.nav-mobile a,
.nav-mobile .mob-section-title {
  display: block;
  padding: 11px 0;
  font-size: 16px;
  color: var(--bark-lt);
  border-bottom: 1px solid var(--sand);
}
.nav-mobile .mob-section-title {
  font-weight: 600;
  color: var(--bark);
  padding-top: 18px;
  border-bottom: none;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .mob-cta {
  display: block;
  margin-top: 16px;
  text-align: center;
  padding: 13px;
  background: var(--bark);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* ────────────────────────────────────────────────────────────
   7. HERO СЕКЦИЯ (главная страница)
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Фоновое фото */
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bark); /* цвет пока нет фото */
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center 40%;
}

/* Тёмный оверлей поверх фото */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30,18,10,.75) 0%,
    rgba(30,18,10,.35) 60%,
    rgba(30,18,10,.1)  100%
  );
}

/* Контент hero */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 80px 0;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255,253,249,.8);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Декоративная полоска под hero */
.hero-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
}


/* ────────────────────────────────────────────────────────────
   8. СЕКЦИЯ ФИЧЕЙ (3 колонки под hero)
   ──────────────────────────────────────────────────────────── */
.features {
  background: var(--sand);
  padding: 60px 0;
  border-bottom: 1px solid var(--sand-dk);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-item {
  padding: 24px 40px;
  text-align: center;
}

/* Вертикальные разделители между колонками */
.feature-item + .feature-item {
  border-left: 1px solid var(--sand-dk);
}

.feature-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
}


/* ────────────────────────────────────────────────────────────
   9. ОБЩИЕ СЕКЦИИ СТРАНИЦ
   ──────────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--sand);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-header h2 { margin-bottom: 14px; }
.section-header p  { font-size: 16px; }

/* Декоративный разделитель */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px auto 0;
  max-width: 200px;
  justify-content: center;
}
.divider span { flex: 1; height: 1px; background: var(--sand-dk); }
.divider .dot  { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }


/* ────────────────────────────────────────────────────────────
   10. КАРТОЧКИ ПРОДУКТОВ (на главной)
   ──────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sand-dk);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Фото товара */
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;        /* фиксированное соотношение */
  object-fit: cover;
  background: var(--sand);  /* цвет пока нет фото */
}

/* Заглушка фото */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  gap: 8px;
}
.img-placeholder svg {
  width: 32px;
  opacity: .4;
}

.product-card-body {
  padding: 22px 24px 28px;
}
.product-card-body h4 {
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 14px;
  margin-bottom: 20px;
}


/* ────────────────────────────────────────────────────────────
   11. ОТЗЫВ (testimonial)
   ──────────────────────────────────────────────────────────── */
.testimonial {
  padding: 72px 0;
  background: var(--white);
  text-align: center;
}

.testimonial-quote {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: clamp(16px, 2vw, 20px);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--bark);
  line-height: 1.65;
  position: relative;
}

/* Большие кавычки */
.testimonial-quote::before {
  content: '\201C';
  font-size: 80px;
  color: var(--gold);
  opacity: .3;
  position: absolute;
  top: -20px;
  left: -20px;
  line-height: 1;
  font-family: var(--font-display);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sand-dk);
  background: var(--sand);
}

.testimonial-author-info {
  text-align: left;
}
.testimonial-author-name {
  font-weight: 600;
  font-size: 15px;
}
.testimonial-author-role {
  font-size: 13px;
  color: var(--muted);
}


/* ────────────────────────────────────────────────────────────
   12. CTA БАННЕР (Have a Project in Mind?)
   ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--bark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Декоративные деревянные круги */
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184,146,90,.15);
}
.cta-banner::before {
  width: 500px; height: 500px;
  top: -200px; left: -100px;
}
.cta-banner::after {
  width: 400px; height: 400px;
  bottom: -200px; right: -100px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
}
.cta-banner p {
  color: rgba(255,253,249,.65);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 36px;
  position: relative;
}
.cta-banner .btn-gold { position: relative; }


/* ────────────────────────────────────────────────────────────
   13. PORTFOLIO СТРАНИЦА
   ──────────────────────────────────────────────────────────── */

/* Шапка портфолио */
.portfolio-hero {
  background: var(--sand);
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--sand-dk);
  text-align: center;
}
.portfolio-hero h1 { margin-bottom: 14px; }
.portfolio-hero p  { max-width: 560px; margin: 0 auto; }

/* Фильтр по категориям */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 48px 0 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 99px;           /* pill форма */
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  border: 1.5px solid var(--sand-dk);
  background: transparent;
  color: var(--muted);
  transition: all .18s;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--bark);
}
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Сетка портфолио */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--sand);
}

/* Фото портфолио */
.portfolio-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.portfolio-item:hover img { transform: scale(1.05); }

/* Оверлей при hover */
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,18,10,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  padding: 20px;
  text-align: center;
}
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }

.portfolio-item-overlay span {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* Скрытые элементы при фильтрации */
.portfolio-item.hidden {
  display: none;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,12,6,.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-panel {
  width: min(92vw, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox .lightbox-panel img {
  max-width: 100%;
  max-height: 74vh;
}

.lightbox-caption {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.lightbox-quote {
  min-width: min(300px, 100%);
  justify-content: center;
}


/* ────────────────────────────────────────────────────────────
   14. ABOUT СТРАНИЦА
   ──────────────────────────────────────────────────────────── */
.about-hero {
  padding: 72px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--sand);
}

.about-text h1 { margin-bottom: 24px; }
.about-text p  { margin-bottom: 18px; }

/* Список достижений/фактов */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--sand-dk);
}
.stat-box .stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-box .stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* Блок ценностей */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.value-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.value-card h4 { margin-bottom: 8px; }
.value-card p  { font-size: 14px; }


/* ────────────────────────────────────────────────────────────
   15. CONTACT СТРАНИЦА
   ──────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
  padding: 72px 0;
}

.contact-info h1 { margin-bottom: 18px; }
.contact-info > p { margin-bottom: 40px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.contact-item-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-item-text span {
  font-size: 15px;
  color: var(--bark);
}

/* Социальные иконки */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}
.social-link {
  width: 40px;
  height: 40px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .15s, transform .15s;
  border: 1px solid var(--sand-dk);
}
.social-link:hover {
  background: var(--gold);
  transform: translateY(-2px);
}


/* ────────────────────────────────────────────────────────────
   16. ФОРМА (order + contact)
   Стили взяты из order_form.html и объединены сюда
   ──────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Секция формы */
.form-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--sand-dk);
}
.form-section:last-child { border-bottom: none; }

.form-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.step-badge {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Поля */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 6px;
}
.field label .req { color: var(--gold); }

.field-hint {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Инпуты */
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--sand-dk);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--bark);
  outline: none;
  transition: border-color .15s;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}
.field input::placeholder,
.field textarea::placeholder { color: #B8A898; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Двухколоночная строка */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Размеры */
.dims-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.dims-row .field { margin-bottom: 0; }

.unit-toggle {
  display: flex;
  gap: 8px;
  max-width: 160px;
  margin-top: 12px;
}
.unit-toggle button {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--sand-dk);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all .15s;
  font-family: var(--font-body);
}
.unit-toggle button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Загрузка файлов */
.drop-zone {
  border: 2px dashed var(--sand-dk);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--gold);
  background: #FDF8F0;
}
.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
}
.drop-icon { font-size: 36px; margin-bottom: 8px; }
.drop-text { font-size: 14px; font-weight: 500; color: var(--bark); }
.drop-sub  { font-size: 12px; color: var(--muted); margin-top: 4px; }

.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }

.reference-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
  background: var(--sand);
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius-sm);
}

.reference-item[hidden] {
  display: none;
}

.reference-item img {
  width: 82px;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
}

.reference-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reference-item-body strong {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.reference-item-body span {
  color: var(--bark);
  font-weight: 700;
}

.reference-item-body small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-remove {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.reference-remove:hover {
  color: var(--bark);
}
.file-item {
  display: flex;
  align-items: center;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
}
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); margin: 0 10px; font-size: 11px; flex-shrink: 0; }
.file-remove {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: color .15s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
}
.file-remove:hover { color: var(--red); }

.file-error { font-size: 12px; color: var(--red); margin-top: 6px; }

/* Валидация */
.field-error { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.field input.invalid,
.field textarea.invalid,
.field select.invalid { border-color: var(--red) !important; }

/* Submit секция */
.form-submit {
  padding: 24px 32px 32px;
  text-align: center;
}

/* Экран успеха */
.success-screen {
  display: none;
  padding: 60px 32px;
  text-align: center;
}
.success-icon { font-size: 52px; margin-bottom: 16px; }
.success-screen h2 { font-size: 28px; margin-bottom: 10px; }
.success-screen p { font-size: 15px; color: var(--muted); max-width: 320px; margin: 0 auto; }


/* ────────────────────────────────────────────────────────────
   17. ФУТЕР
   ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--bark);
  color: rgba(255,253,249,.7);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo-name { color: var(--white); }
.footer-brand .nav-logo-sub  { color: rgba(255,253,249,.5); }

.footer-brand p {
  font-size: 14px;
  color: rgba(255,253,249,.6);
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,253,249,.6);
  padding: 4px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,253,249,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,253,249,.4);
}


/* ────────────────────────────────────────────────────────────
   18. УТИЛИТЫ
   ──────────────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.hidden { display: none !important; }


/* ────────────────────────────────────────────────────────────
   19. АДАПТАЦИЯ — МОБИЛЬНЫЕ (< 768px)
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Скрываем десктопное меню, показываем бургер */
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* Hero */
  .hero { min-height: 70vh; }
  .hero-content { padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Фичи — в одну колонку */
  .features-grid { grid-template-columns: 1fr; }
  .feature-item + .feature-item { border-left: none; border-top: 1px solid var(--sand-dk); }

  /* Продукты — 1 колонка */
  .products-grid { grid-template-columns: 1fr; }

  /* Portfolio — 2 колонки */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  /* Форма */
  .form-section { padding: 22px 18px; }
  .row-2 { grid-template-columns: 1fr; }
  .dims-row { grid-template-columns: 1fr 1fr; }
  .form-submit { padding: 20px 18px 28px; }

  /* Футер */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Очень маленькие экраны (< 480px) */
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-brand   { grid-column: span 1; }
  .about-stats    { grid-template-columns: 1fr; }
  .filter-bar     { gap: 6px; }
  .filter-btn     { padding: 7px 14px; font-size: 12px; }
}


/* ────────────────────────────────────────────────────────────
   20. УВАЖАЕМ НАСТРОЙКИ ПОЛЬЗОВАТЕЛЯ (доступность)
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
