/* ==========================================================
   ЛАВ Мебель — эталонная главная
   Часть 1/3: переменные, reset, типографика, шапка, hero
   ========================================================== */

:root {
  /* Палитра — тёплая, "домашняя", соответствующая мебельному бренду */
  --c-bg:        #ffffff;
  --c-bg-soft:   #f8f5f0;
  --c-bg-warm:   #f2ece2;
  --c-dark:      #1d1b19;
  --c-dark-2:    #2a2724;
  --c-gray:      #6b6b6b;
  --c-gray-lt:   #d9d2c6;
  --c-line:      #e6e0d5;
  --c-accent:    #9b0412;   /* фирменный бордовый */
  --c-accent-2:  #b7061a;
  --c-accent-dk: #730309;
  --c-success:   #2d7d46;
  --c-white:     #ffffff;

  /* Типографика */
  --font-head: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Тени */
  --sh-sm: 0 2px 6px rgba(29,27,25,.06);
  --sh-md: 0 8px 24px rgba(29,27,25,.08);
  --sh-lg: 0 18px 46px rgba(29,27,25,.12);
  --sh-accent: 0 14px 36px rgba(155,4,18,.22);

  /* Радиусы */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Контейнер */
  --container: 1280px;
  --gap: 24px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-dark);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open { overflow: hidden; }

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; border: 0; background: none; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--c-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(30px, 4.5vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }

/* ---------- КОНТЕЙНЕР ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: clamp(48px, 6vw, 88px) 0;
}

.section--soft { background: var(--c-bg-soft); }
.section--warm { background: var(--c-bg-warm); }

.section__head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(32px, 4vw, 56px);
}

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

.section__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--c-dark);
}

.section__subtitle {
  color: var(--c-gray);
  font-size: 17px;
  margin: 0;
}

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .01em;
  transition: transform .18s, box-shadow .22s, background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: var(--sh-accent);
}
.btn--primary:hover { background: var(--c-accent-dk); color: var(--c-white); }

.btn--outline {
  background: transparent;
  color: var(--c-dark);
  border-color: var(--c-dark);
}
.btn--outline:hover { background: var(--c-dark); color: var(--c-white); }

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--c-white);
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.2); color: var(--c-white); }

.btn--lg { padding: 18px 38px; font-size: 16px; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--full { width: 100%; }

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: var(--sh-md); }

.header__top {
  background: var(--c-dark);
  color: #cfc7ba;
  font-size: 13px;
  padding: 8px 0;
}
.header__top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.header__top a { color: #cfc7ba; }
.header__top a:hover { color: var(--c-white); }
.header__top-list {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.header__top-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.header__top-list svg { width: 14px; height: 14px; fill: var(--c-accent-2); flex-shrink: 0; }

.header__main {
  padding: 16px 0;
}
.header__main .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo { flex-shrink: 0; }
.header__logo img { height: 46px; width: auto; }

.header__nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.header__nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--c-dark);
  position: relative;
  padding: 6px 0;
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--c-accent);
  transition: right .25s;
}
.header__nav a:hover::after { right: 0; }

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.header__phone {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--c-dark);
  line-height: 1.15;
  white-space: nowrap;
}
.header__phone:hover { color: var(--c-accent); }
.header__phone-note {
  font-size: 12px;
  color: var(--c-gray);
}

.header__cta { flex-shrink: 0; }

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-bg-soft);
  position: relative;
}
.header__burger span,
.header__burger::before,
.header__burger::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--c-dark);
  border-radius: 2px;
  transition: .25s;
}
.header__burger::before { top: 15px; }
.header__burger span    { top: 21px; }
.header__burger::after  { top: 27px; }
.header__burger.is-open::before { top: 21px; transform: rotate(45deg); }
.header__burger.is-open span    { opacity: 0; }
.header__burger.is-open::after { top: 21px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  color: var(--c-white);
  overflow: hidden;
  background: linear-gradient(120deg, #17120f 0%, #2a1d18 55%, #4a1f1f 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 30%, rgba(155,4,18,.35), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(155,4,18,.22), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
}

.hero__content { max-width: 640px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: .04em;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent-2);
  box-shadow: 0 0 0 4px rgba(183,6,26,.28);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(183,6,26,.28); }
  50%      { box-shadow: 0 0 0 8px rgba(183,6,26,.05); }
}

.hero__title {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--c-white);
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  color: #ffcc6b;
  display: inline-block;
}
.hero__lead {
  font-size: clamp(15px, 1.3vw, 18px);
  color: #ddd5ca;
  margin: 0 0 32px;
  max-width: 560px;
}
.hero__features {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0 0 36px;
}
.hero__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 210px;
}
.hero__feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero__feature-icon svg {
  width: 20px; height: 20px;
  fill: #ffcc6b;
}
.hero__feature-text {
  font-size: 13.5px;
  line-height: 1.4;
  color: #d8cfc2;
}
.hero__feature-text strong {
  display: block;
  color: var(--c-white);
  font-size: 14.5px;
  margin-bottom: 2px;
  font-weight: 700;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- HERO FORM ---------- */
.hero__form-wrap {
  background: var(--c-white);
  color: var(--c-dark);
  border-radius: var(--r-lg);
  padding: 32px 30px 28px;
  box-shadow: var(--sh-lg);
  position: relative;
}
.hero__form-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--c-dark);
}
.hero__form-note {
  font-size: 13.5px;
  color: var(--c-gray);
  margin: 0 0 20px;
}

/* Поля формы */
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-gray);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  font-size: 15px;
  color: var(--c-dark);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(155,4,18,.08);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #b4aca0; }
.form-field textarea { resize: vertical; min-height: 84px; }

.form-consent {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--c-gray);
  margin: 14px 0 18px;
  cursor: pointer;
  line-height: 1.45;
  align-items: flex-start;
}
.form-consent input {
  width: 18px; height: 18px;
  accent-color: var(--c-accent);
  margin: 1px 0 0;
  flex-shrink: 0;
  cursor: pointer;
}
.form-consent a { color: var(--c-accent); text-decoration: underline; }

.form-success,
.form-error {
  display: none;
  padding: 16px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-top: 14px;
}
.form-success {
  background: #eaf6ee;
  color: var(--c-success);
  border: 1px solid #bfe1c8;
}
.form-error {
  background: #fdecec;
  color: var(--c-accent);
  border: 1px solid #f5c2c2;
}
.form-success.is-visible,
.form-error.is-visible { display: block; }


/* ==========================================================
   Часть 2/3: секции контента (цифры, каталог, направления, отрасли)
   ========================================================== */

/* ---------- ЦИФРЫ ---------- */
.stats {
  padding: 0;
  margin-top: -56px;
  position: relative;
  z-index: 5;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.stats__item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--c-line);
  position: relative;
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stats__label {
  font-size: 13.5px;
  color: var(--c-gray);
  line-height: 1.35;
  font-weight: 500;
}

/* ---------- О КОМПАНИИ ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 5;
}
.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s;
}
.about__media:hover img { transform: scale(1.04); }
.about__media-badge {
  position: absolute;
  left: 24px; bottom: 24px;
  right: 24px;
  background: rgba(29,27,25,.85);
  backdrop-filter: blur(10px);
  color: var(--c-white);
  padding: 18px 22px;
  border-radius: var(--r-md);
}
.about__media-badge strong {
  display: block;
  font-size: 26px;
  font-family: var(--font-head);
  font-weight: 800;
  color: #ffcc6b;
  margin-bottom: 4px;
}
.about__media-badge span {
  font-size: 13px;
  color: #d8cfc2;
}

.about__text p {
  color: var(--c-dark-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.about__feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.about__feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--c-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about__feature-icon svg {
  width: 22px; height: 22px;
  fill: var(--c-accent);
}
.about__feature-text strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-dark);
  margin-bottom: 3px;
}
.about__feature-text span {
  font-size: 13px;
  color: var(--c-gray);
  line-height: 1.4;
}

/* ---------- КАТАЛОГ ПРОДУКЦИИ ---------- */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.catalog__item {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-sm);
  transition: transform .3s, box-shadow .3s;
  background: var(--c-bg-soft);
}
.catalog__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}
.catalog__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s;
}
.catalog__item:hover img { transform: scale(1.06); }
.catalog__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 45%, transparent 70%);
}
.catalog__item-body {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 2;
  color: var(--c-white);
}
.catalog__item-title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--c-white);
}
.catalog__item-price {
  font-size: 13.5px;
  color: #ffcc6b;
  font-weight: 600;
}
.catalog__item-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: .3s;
  color: var(--c-white);
  font-weight: 600;
}
.catalog__item:hover .catalog__item-arrow {
  opacity: 1;
  transform: translateY(0);
}

.catalog__more {
  text-align: center;
  margin-top: 40px;
}

/* ---------- НАПРАВЛЕНИЯ (4 крупные карточки) ---------- */
.directions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.direction {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: var(--c-white);
  box-shadow: var(--sh-md);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.direction:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  color: var(--c-white);
}
.direction img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s;
}
.direction:hover img { transform: scale(1.06); }
.direction::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,5,5,.85) 0%, rgba(10,5,5,.35) 55%, transparent 85%);
}
.direction__body {
  position: relative;
  z-index: 2;
  padding: 32px;
  width: 100%;
}
.direction__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--c-white);
}
.direction__desc {
  font-size: 14.5px;
  color: #ded5ca;
  margin: 0 0 16px;
  max-width: 480px;
  line-height: 1.5;
}
.direction__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #ffcc6b;
}
.direction__link svg { width: 16px; height: 16px; transition: transform .25s; fill: #ffcc6b; }
.direction:hover .direction__link svg { transform: translateX(4px); }

/* ---------- ОТРАСЛИ ---------- */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry {
  padding: 28px 22px;
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.industry:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--c-accent);
}
.industry__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.industry__icon svg {
  width: 26px; height: 26px;
  fill: var(--c-white);
}
.industry__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-dark);
}
.industry__desc {
  font-size: 13.5px;
  color: var(--c-gray);
  line-height: 1.55;
  margin: 0;
}


/* ==========================================================
   Часть 3/3: контент-блоки 2, футер, модалка, адаптив
   ========================================================== */

/* ---------- ОБОРУДОВАНИЕ ---------- */
.equip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.equip__item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  transition: transform .25s, box-shadow .25s;
}
.equip__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.equip__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--c-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.equip__icon svg { width: 24px; height: 24px; fill: var(--c-accent); }
.equip__title {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--c-dark);
}
.equip__desc {
  font-size: 13px;
  color: var(--c-gray);
  line-height: 1.5;
  margin: 0;
}

/* ---------- ЭТАПЫ / УСЛУГИ ---------- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 40px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
  opacity: .35;
}
.step__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-dark);
}
.step__desc {
  font-size: 13.5px;
  color: var(--c-gray);
  line-height: 1.55;
  margin: 0;
}

/* ---------- ГАРАНТИИ ---------- */
.guarantees {
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.guarantees::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(155,4,18,.28), transparent 70%);
  pointer-events: none;
}
.guarantees h2 { color: var(--c-white); }
.guarantees .section__kicker { color: #ffcc6b; }
.guarantees .section__subtitle { color: #b8afa1; }
.guarantees__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guarantee {
  padding: 26px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  transition: background .25s, border-color .25s, transform .25s;
}
.guarantee:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,204,107,.4);
  transform: translateY(-3px);
}
.guarantee__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(155,4,18,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.guarantee__icon svg { width: 24px; height: 24px; fill: #ffcc6b; }
.guarantee__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-white);
}
.guarantee__desc {
  font-size: 13.5px;
  color: #b8afa1;
  line-height: 1.55;
  margin: 0;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dk) 100%);
  color: var(--c-white);
  border-radius: var(--r-xl);
  padding: clamp(44px, 5vw, 76px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.cta::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.cta::after  { width: 420px; height: 420px; bottom: -220px; right: -120px; }
.cta__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta h2 {
  color: var(--c-white);
  margin-bottom: 14px;
  font-size: clamp(26px, 3.2vw, 38px);
}
.cta p {
  color: rgba(255,255,255,.88);
  font-size: 17px;
  margin: 0 0 30px;
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn--primary {
  background: var(--c-white);
  color: var(--c-accent);
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
}
.cta .btn--primary:hover {
  background: #fff5e6;
  color: var(--c-accent-dk);
}
.cta .btn--ghost { border-color: rgba(255,255,255,.5); }

/* ---------- ПОРТФОЛИО ---------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.portfolio__item {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--sh-sm);
  transition: transform .3s, box-shadow .3s;
}
.portfolio__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.portfolio__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s;
}
.portfolio__item:hover img { transform: scale(1.06); }
.portfolio__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
}
.portfolio__body {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 2;
  color: var(--c-white);
}
.portfolio__cat {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffcc6b;
  font-weight: 700;
  margin-bottom: 6px;
}
.portfolio__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  margin: 0 0 4px;
}
.portfolio__meta {
  font-size: 13px;
  color: #d8cfc2;
}

/* ---------- ОТЗЫВЫ ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  background: var(--c-white);
  padding: 30px 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.review__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.review__stars svg { width: 18px; height: 18px; fill: #f7b500; }
.review__text {
  font-size: 14.5px;
  color: var(--c-dark-2);
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-dark);
  margin: 0 0 2px;
}
.review__role {
  font-size: 12.5px;
  color: var(--c-gray);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 900px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--c-line);
}
.faq__item:first-child { border-top: 1px solid var(--c-line); }
.faq__question {
  width: 100%;
  padding: 24px 60px 24px 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-dark);
  position: relative;
  transition: color .2s;
  line-height: 1.4;
}
.faq__question:hover { color: var(--c-accent); }
.faq__question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-bg-warm);
  color: var(--c-accent);
  font-size: 22px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, background .2s;
  line-height: 1;
}
.faq__item.is-open .faq__question::after {
  content: '−';
  background: var(--c-accent);
  color: var(--c-white);
  transform: translateY(-50%) rotate(180deg);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 60px 0 0;
}
.faq__item.is-open .faq__answer {
  padding: 0 60px 24px 0;
}
.faq__answer p {
  font-size: 15px;
  color: var(--c-dark-2);
  line-height: 1.7;
  margin: 0;
}

/* ---------- SEO-ТЕКСТ ---------- */
.seo-text {
  padding: 60px 0 40px;
  color: var(--c-dark-2);
}
.seo-text h2 {
  margin-bottom: 24px;
  font-size: clamp(22px, 2.4vw, 30px);
}
.seo-text p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: #4a4844;
}
.seo-text ul {
  margin: 16px 0 24px 20px;
  list-style: disc;
}
.seo-text li {
  font-size: 15px;
  line-height: 1.7;
  color: #4a4844;
  margin-bottom: 8px;
}

/* ---------- ФУТЕР ---------- */
.footer {
  background: var(--c-dark);
  color: #b8afa1;
  padding: 60px 0 24px;
  margin-top: 60px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__col-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-white);
  margin: 0 0 18px;
  letter-spacing: .02em;
}
.footer__list li { margin-bottom: 10px; }
.footer__list a {
  font-size: 14px;
  color: #b8afa1;
  transition: color .2s;
}
.footer__list a:hover { color: var(--c-white); }
.footer__about {
  font-size: 13.5px;
  line-height: 1.65;
  color: #b8afa1;
  margin-bottom: 16px;
}
.footer__contacts-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
}
.footer__contacts-item svg { width: 16px; height: 16px; fill: var(--c-accent-2); flex-shrink: 0; margin-top: 3px; }
.footer__contacts-item a { color: var(--c-white); font-weight: 600; }
.footer__contacts-item a:hover { color: #ffcc6b; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: #7a7268;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- МОДАЛЬНОЕ ОКНО ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 10, .72);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__box {
  position: relative;
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 40px 36px 34px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--sh-lg);
  animation: slideUp .3s;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal__close:hover { background: var(--c-line); }
.modal__close svg { width: 16px; height: 16px; fill: var(--c-dark); }
.modal__title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--c-dark);
  padding-right: 40px;
}
.modal__subtitle {
  font-size: 14px;
  color: var(--c-gray);
  margin: 0 0 24px;
}

/* ---------- КНОПКА НАВЕРХ ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-accent);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
  transform: translateY(10px);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--c-accent-dk); }
.back-to-top svg { width: 22px; height: 22px; fill: var(--c-white); }

/* ---------- МОБИЛЬНОЕ МЕНЮ ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: var(--c-white);
  z-index: 150;
  padding: 24px 24px 40px;
  transform: translateX(100%);
  transition: transform .3s;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.mobile-menu__close svg { width: 16px; height: 16px; fill: var(--c-dark); }
.mobile-menu__list li { border-bottom: 1px solid var(--c-line); }
.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--c-dark);
}
.mobile-menu__footer {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.mobile-menu__phone {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 14px;
}

/* ---------- АНИМАЦИЯ ПОЯВЛЕНИЯ ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   АДАПТИВ
   ========================================================== */

@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .header__main .container { justify-content: space-between; }
  .catalog__grid,
  .industries__grid,
  .equip__grid { grid-template-columns: repeat(3, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1),
  .stats__item:nth-child(2) { border-bottom: 1px solid var(--c-line); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__content { max-width: none; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__media { aspect-ratio: 16 / 10; }
  .directions__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .guarantees__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .header__top { display: none; }
  .header__phone { font-size: 15px; }
  .header__phone-note { display: none; }
  .header__contacts { gap: 0; }
  .header__cta .btn { display: none; }

  .stats { margin-top: -32px; }
  .catalog__grid,
  .industries__grid,
  .equip__grid,
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .catalog__item { aspect-ratio: 3 / 4; }
  .direction { min-height: 260px; }
  .direction__body { padding: 24px 20px; }
  .direction__title { font-size: 22px; }
  .guarantees__grid { grid-template-columns: 1fr; }
  .guarantees { border-radius: var(--r-lg); padding: 32px 22px; }
  .cta { border-radius: var(--r-lg); padding: 36px 22px; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .portfolio__title { font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 44px 0 20px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .modal__box { padding: 32px 22px 26px; }
  .modal__title { font-size: 20px; }

  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

@media (max-width: 500px) {
  .catalog__grid,
  .industries__grid,
  .equip__grid,
  .steps__grid,
  .portfolio__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .stats__item:last-child { border-bottom: 0; }
  .hero__features { gap: 16px; }
  .hero__feature { max-width: none; flex: 1 1 100%; }
  .about__features { grid-template-columns: 1fr; }
  .header__logo img { height: 38px; }
  .btn { padding: 13px 22px; font-size: 14px; }
  .btn--lg { padding: 15px 26px; font-size: 15px; }
}

