/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --graphite: #1a1918;
  --dark-2: #242220;
  --text: #2c2b29;
  --text-muted: #6b6965;
  --concrete: #9a9690;
  --gray-light: #f4f3f0;
  --gray-mid: #eae8e4;
  --border: #dbd8d3;
  --accent: #e8610b;
  --accent-h: #cf5509;
  --white: #ffffff;
  --radius: 8px;
  --shadow-sm: 0 1px 8px rgba(0,0,0,0.07);
  --shadow: 0 2px 16px rgba(0,0,0,0.09);
  --shadow-md: 0 6px 28px rgba(0,0,0,0.13);
}

/* ===== СБРОС ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, dl { list-style: none; }

/* ===== КОНТЕЙНЕР ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-h); border-color: var(--accent-h); box-shadow: 0 4px 20px rgba(232,97,11,0.35); }

.btn--ghost { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); border-color: var(--white); }

.btn--border { background: transparent; color: var(--text); border-color: var(--border); }
.btn--border:hover { background: var(--gray-light); border-color: var(--concrete); }

.btn--sm  { padding: 8px 18px; font-size: 14px; }
.btn--lg  { padding: 16px 34px; font-size: 16px; }


/* ===== ШАПКА ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--graphite);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.2s;
}
.header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.4); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-size: 21px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.4px;
  line-height: 1.1;
}
.logo-sub {
  font-size: 11px;
  color: var(--concrete);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.header__nav {
  display: flex;
  gap: 22px;
  flex: 1;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  white-space: nowrap;
  transition: color 0.15s;
}
.header__nav a:hover { color: var(--white); }

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}
.header__addr {
  font-size: 12px;
  color: var(--concrete);
  display: none;
}
.header__phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.15s;
}
.header__phone:hover { color: var(--accent); }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.28s, opacity 0.28s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-nav {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0 20px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__link {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color 0.15s, background 0.15s;
}
.mobile-nav__link:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.mobile-nav__phone {
  display: block;
  margin: 12px 24px 0;
  padding: 13px 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.15s;
}
.mobile-nav__phone:hover { background: var(--accent-h); }


/* ===== СЕКЦИИ — БАЗОВЫЕ СТИЛИ ===== */
.section { padding: 88px 0; }
.section--dark { background: var(--graphite); color: var(--white); }
.section--gray { background: var(--gray-light); }

.section__header { text-align: center; margin-bottom: 56px; }
.section__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--graphite);
  letter-spacing: -0.7px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section__title--light { color: var(--white); }
.section__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
.section--dark .section__sub { color: var(--concrete); }


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: min(92vh, 740px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(18,16,14,0.9) 0%,
    rgba(18,16,14,0.75) 55%,
    rgba(18,16,14,0.38) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 780px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.badge {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(232,97,11,0.15);
  border: 1px solid rgba(232,97,11,0.45);
  color: #f5a870;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0.15px;
}
.hero__title {
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 38px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }


/* ===== ПРОДУКЦИЯ ===== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px 26px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: rgba(0,0,0,0); }
.product-card:hover::after { transform: scaleX(1); }

.product-card__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0.7;
}
.product-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--graphite);
  line-height: 1.3;
  margin-bottom: 10px;
}
.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.products__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--gray-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
}
.products__note p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  max-width: 680px;
}


/* ===== ПРЕИМУЩЕСТВА ===== */
.adv__layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.adv__photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2/3;
  max-height: 560px;
}
.adv__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.05);
}
.adv__content .section__title { margin-bottom: 36px; }
.adv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 36px;
}
.adv-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.adv-item__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
}
.adv-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
  line-height: 1.3;
}
.adv-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}


/* ===== ДОСТАВКА ===== */
.delivery__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.delivery__content .section__title { margin-bottom: 18px; }
.delivery__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.delivery__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.delivery__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.delivery__list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.delivery__tip {
  background: #fff7f2;
  border: 1px solid #f5ccb0;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: #7d4626;
  line-height: 1.6;
  margin-bottom: 28px;
}
.delivery__tip strong { display: block; margin-bottom: 3px; font-size: 14px; color: #6b3918; }
.delivery__photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}
.delivery__photo img { width: 100%; height: 100%; object-fit: cover; }


/* ===== КАК ЗАКАЗАТЬ ===== */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.step {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.step__num {
  font-size: 52px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.13;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 10px;
  line-height: 1.3;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.order__cta { text-align: center; }


/* ===== КОНТАКТЫ ===== */
#contacts { padding-bottom: 0; }
.contacts__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 52px;
}
.contacts__brand { margin-bottom: 28px; }
.contacts__name {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--graphite);
  letter-spacing: -0.6px;
  margin-bottom: 4px;
}
.contacts__tag {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}
.contacts__dl { margin-bottom: 28px; }
.contacts__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-mid);
}
.contacts__row:first-child { border-top: 1px solid var(--gray-mid); }
.contacts__row dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--concrete);
}
.contacts__row dd { font-size: 15px; color: var(--text); }
.contacts__phone {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.4px;
  transition: color 0.15s;
}
.contacts__phone:hover { color: var(--accent-h); }

.contacts__photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.contacts__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Карта */
.map-wrap {
  line-height: 0;
  margin-top: 0;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: none;
}
.map-cta {
  padding: 24px 24px;
  display: flex;
  justify-content: center;
}


/* ===== FOOTER ===== */
.footer {
  background: var(--graphite);
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 2px;
}
.footer__addr {
  font-size: 13px;
  color: var(--concrete);
}
.footer__phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.15s;
}
.footer__phone:hover { color: var(--accent); }


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

/* Показываем адрес в шапке только на широких экранах */
@media (min-width: 1080px) {
  .header__addr { display: block; }
}

/* Планшет */
@media (max-width: 1023px) {
  .header__nav { display: none; }
  .header__right .btn--sm { display: none; }
  .burger { display: flex; }

  .adv__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .adv__photo {
    aspect-ratio: 16/7;
    max-height: 300px;
  }
  .adv__grid {
    grid-template-columns: 1fr 1fr;
  }

  .delivery__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .delivery__photo { aspect-ratio: 16/9; }
}

/* Мобильный */
@media (max-width: 767px) {
  .section { padding: 60px 0; }
  .section__header { margin-bottom: 36px; }

  .products__grid { grid-template-columns: 1fr 1fr; }

  .steps__grid { grid-template-columns: 1fr 1fr; }

  .contacts__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contacts__photo { aspect-ratio: 16/9; }

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

  .hero { min-height: 0; }
  .hero__content { padding-top: 48px; padding-bottom: 48px; }

  .header__inner { height: 60px; gap: 12px; }
  .logo-name { font-size: 18px; }
  .header__phone { font-size: 13px; }
}

/* Узкий мобильный */
@media (max-width: 479px) {
  .products__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .adv__grid { grid-template-columns: 1fr; }

  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .products__note { flex-direction: column; align-items: flex-start; }

  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
}
