:root {
  --brown: #5c4033;
  --brown-dark: #3d2a22;
  --brown-light: #8b6f5c;
  --gold: #c9a86c;
  --gold-light: #f5efe6;
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2d2420;
  --text-muted: #7a6e66;
  --border: #e8e0d8;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 80px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(45, 36, 32, 0.08);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-family: var(--font); font-size: 15px; font-weight: 600;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn--primary:hover { background: var(--brown-dark); border-color: var(--brown-dark); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--brown); border-color: var(--border); }
.btn--outline:hover { border-color: var(--brown); }
.btn--gold { background: var(--gold); color: var(--brown-dark); border-color: var(--gold); }
.btn--gold:hover { filter: brightness(1.05); }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--transition), box-shadow var(--transition);
}
.header--scrolled { border-color: var(--border); box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  width: 44px; height: 44px; background: var(--brown); color: var(--gold);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
}
.logo__text { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--brown); line-height: 1.2; }
.logo__sub { display: block; font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__link { font-size: 14px; font-weight: 600; color: var(--text-muted); transition: color var(--transition); }
.nav__link:hover, .nav__link--active { color: var(--brown); }

.header__phone { font-size: 14px; font-weight: 700; color: var(--brown); flex-shrink: 0; }
.header__cta {
  padding: 10px 20px; background: var(--brown); color: #fff; font-size: 14px; font-weight: 600;
  border-radius: 10px; flex-shrink: 0; transition: background var(--transition);
}
.header__cta:hover { background: var(--brown-dark); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: var(--brown); border-radius: 2px; transition: all var(--transition); }
.burger--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger--active span:nth-child(2) { opacity: 0; }
.burger--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero { padding: calc(var(--header-h) + 48px) 0 80px; background: linear-gradient(135deg, var(--gold-light) 0%, var(--bg) 60%); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__badge {
  display: inline-block; padding: 6px 14px; background: var(--gold-light); color: var(--brown);
  font-size: 13px; font-weight: 700; border-radius: 100px; margin-bottom: 20px;
}
.hero__title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 50px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; color: var(--brown-dark); }
.hero__title span { color: var(--gold); }
.hero__text { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; max-width: 460px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__stats { display: flex; gap: 32px; }
.hero__stats li strong { display: block; font-size: 26px; font-weight: 800; color: var(--brown); }
.hero__stats li span { font-size: 13px; color: var(--text-muted); }
.hero__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--surface); }
.section-header { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-label { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); font-weight: 700; margin-bottom: 12px; color: var(--brown-dark); }
.section-subtitle { font-size: 16px; color: var(--text-muted); }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.category-card:hover img { transform: scale(1.05); }
.category-card__overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(45,36,32,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff;
}
.category-card__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.category-card__count { font-size: 13px; opacity: 0.8; }

/* Product cards */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card__link { display: block; }
.product-card__image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px;
  background: var(--gold); color: var(--brown-dark); font-size: 11px; font-weight: 700;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em; z-index: 1;
}
.product-card__body { padding: 18px; }
.product-card__cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.product-card__title { font-size: 16px; font-weight: 700; margin: 6px 0 4px; color: var(--brown-dark); }
.product-card__meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.product-card__price { font-size: 18px; font-weight: 800; color: var(--brown); }

/* Catalog layout */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.catalog-sidebar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: sticky; top: calc(var(--header-h) + 24px);
}
.catalog-sidebar__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brown); margin-bottom: 16px; }
.filter__cats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.filter__cat {
  padding: 10px 14px; border-radius: 8px; border: none; background: none;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-muted);
  text-align: left; cursor: pointer; transition: all var(--transition);
}
.filter__cat:hover { background: var(--gold-light); color: var(--brown); }
.filter__cat--active { background: var(--brown); color: #fff; }
.filter__group { margin-bottom: 24px; }
.filter__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.filter__select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 14px; background: var(--bg); color: var(--text);
}
.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.catalog-count { font-size: 14px; color: var(--text-muted); }

/* Product detail */
.breadcrumb-bar { padding: calc(var(--header-h) + 24px) 0 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 13px; color: var(--text-muted); padding-bottom: 20px; }
.breadcrumb a:hover { color: var(--brown); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-detail__gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.product-detail__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail__badge {
  position: absolute; top: 16px; left: 16px; padding: 6px 14px;
  background: var(--gold); color: var(--brown-dark); font-size: 12px; font-weight: 700; border-radius: 8px;
}
.product-detail__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.product-detail__title { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin: 8px 0 16px; color: var(--brown-dark); }
.product-detail__price { font-size: 32px; font-weight: 800; color: var(--brown); margin-bottom: 20px; }
.product-detail__desc { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.product-detail__specs { margin-bottom: 24px; }
.product-detail__specs li {
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.product-detail__specs li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.product-detail__meta { display: flex; gap: 24px; margin-bottom: 28px; font-size: 14px; color: var(--text-muted); }
.product-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Advantages */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage { padding: 28px 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.icon-box {
  width: 48px; height: 48px; margin: 0 auto 14px;
  background: var(--gold-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brown);
}
.icon-box svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.advantage .icon-box { margin-bottom: 14px; }
.advantage__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--brown-dark); }
.advantage__text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Page hero */
.page-hero { padding: calc(var(--header-h) + 48px) 0 48px; background: var(--gold-light); }
.page-hero--compact { padding-bottom: 40px; }
.page-hero__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 12px; display: block; }
.page-hero__title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--brown-dark); margin-bottom: 12px; }
.page-hero__text { font-size: 17px; color: var(--text-muted); max-width: 560px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__image { border-radius: var(--radius); overflow: hidden; }
.split__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__text { font-size: 16px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.split__list { margin-top: 20px; }
.split__list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.split__list-icon { color: var(--gold); font-weight: 700; flex-shrink: 0; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.stat-box { text-align: center; padding: 28px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-box__num { display: block; font-size: 36px; font-weight: 800; color: var(--brown); }
.stat-box__label { font-size: 14px; color: var(--text-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info__item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info__icon {
  width: 44px; height: 44px; background: var(--gold-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--brown);
}
.contact-info__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-info__label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info__value { font-size: 16px; font-weight: 600; color: var(--brown-dark); }
.contact-map { border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.contact-map img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--brown-dark); }
.form__subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form__group { margin-bottom: 20px; }
.form__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form__input {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font); font-size: 15px; background: var(--bg); transition: border-color var(--transition);
}
.form__input:focus { outline: none; border-color: var(--brown); }
.form__input--error { border-color: #dc2626; }
.form__select { appearance: none; }
.form__textarea { resize: vertical; min-height: 100px; }
.form__error { display: block; font-size: 13px; color: #dc2626; margin-top: 6px; min-height: 18px; }
.form__success { margin-top: 16px; padding: 14px; background: #f0fdf4; color: #16a34a; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }

/* CTA */
.cta-banner { padding: 72px 0; background: var(--brown); text-align: center; color: #fff; }
.cta-banner__title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin-bottom: 12px; }
.cta-banner__text { font-size: 17px; opacity: 0.85; margin-bottom: 28px; }
.cta-banner .btn--gold { font-size: 16px; padding: 16px 36px; }

/* Footer */
.footer { background: var(--brown-dark); color: #a89890; padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer .logo__text { color: #fff; }
.footer .logo__mark { background: var(--gold); color: var(--brown-dark); }
.footer__desc { font-size: 14px; line-height: 1.6; margin-top: 12px; }
.footer__title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer__link { display: block; font-size: 14px; margin-bottom: 10px; transition: color var(--transition); }
.footer__link:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; padding: 24px 0; font-size: 13px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner, .split, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .categories-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--surface); flex-direction: column; align-items: flex-start;
    padding: 32px 24px; gap: 20px; transform: translateX(100%); transition: transform var(--transition); z-index: 99;
  }
  .nav--open { transform: translateX(0); }
  .nav__link { font-size: 18px; }
  .header__phone, .header__cta { display: none; }
  .burger { display: flex; }
  .categories-grid, .products-grid, .advantages, .stats-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 60px 0; }
}

/* Mobile menu вЂ” Android fix */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .header {
    z-index: 1200 !important;
  }

  .header--menu-open {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .burger {
    position: relative;
    z-index: 1202;
  }

  .header .nav,
  #nav.nav,
  #nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: calc(var(--header-height, var(--header-h, 72px)) + 8px) 24px 32px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1 !important;
    isolation: isolate !important;
    z-index: 1201 !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform 0.28s ease, visibility 0.28s ease !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18) !important;
    gap: 0 !important;
  }

  .header .nav--open,
  #nav.nav--open,
  #nav.nav--open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1199;
    background-color: rgba(15, 23, 42, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .nav-backdrop--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
