*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Светлая палитра (основной контент) */
  --bg: #faf7f2; --bg-section: #f2ede4;
  --surface: #ffffff; --border: #e0d8cc;
  /* Тёмная палитра (хедер, герой, футер) */
  --dark-bg: #1a1714; --darker-bg: #0e0c0b;
  /* Текст на светлом фоне */
  --text: #1c1916; --text-dim: #6b6157;
  /* Текст на тёмном фоне */
  --text-inv: #e8e2d9; --text-inv-dim: #9a9088;
  /* Золото (чуть насыщеннее для светлого фона) */
  --gold: #a07840; --gold-light: #bf9050; --gold-dim: #7c5827;
  /* Алиасы для совместимости */
  --white: #faf7f2; --cream: #f2ede4; --black: #0e0c0b; --dark: #1a1714; --mid: #f2ede4;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Jost', sans-serif; font-weight: 300; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* HEADER */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(26,23,20,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(160,120,64,0.25); padding: 0 5vw; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; flex-direction: row; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-main { font-family: 'Jost', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--gold); letter-spacing: 0.03em; line-height: 1; }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-inv-dim); }
.header-right { display: flex; align-items: center; gap: 24px; }
nav { display: flex; gap: 2rem; align-items: center; }
nav a { color: var(--text-inv-dim); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.25s; }
nav a:hover { color: var(--gold); }
.header-phone { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(160,120,64,0.45); color: var(--gold); text-decoration: none; padding: 10px 18px; transition: border-color 0.25s, background 0.25s; flex-shrink: 0; }
.header-phone:hover { border-color: var(--gold); background: rgba(160,120,64,0.1); }
.header-phone svg { flex-shrink: 0; }
.header-phone-num { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.02em; white-space: nowrap; }

/* HERO — тёмный блок, текст светлый */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 120px 5vw 80px; background: var(--dark-bg); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(160,120,64,0.08) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 20% 80%, rgba(160,120,64,0.05) 0%, transparent 60%); }
.hero-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(160,120,64,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(160,120,64,0.05) 1px, transparent 1px); background-size: 80px 80px; }
.hero-content { position: relative; max-width: 700px; animation: fadeUp 1.2s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 28px; }
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 32px; height: 1px; background: var(--gold-light); }
.hero h1 { font-family: 'Jost', sans-serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 600; line-height: 1.12; color: var(--text-inv); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-desc { font-size: 1rem; color: var(--text-inv-dim); max-width: 480px; margin-bottom: 48px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--bg); text-decoration: none; padding: 14px 32px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; font-family: 'Jost', sans-serif; transition: background 0.25s, transform 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(160,120,64,0.45); color: var(--gold); text-decoration: none; padding: 14px 32px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; transition: border-color 0.25s, background 0.25s; background: transparent; cursor: pointer; font-family: 'Jost', sans-serif; }
.btn-outline:hover { border-color: var(--gold); background: rgba(160,120,64,0.1); }
.hero-rotator { position: absolute; right: 5vw; bottom: 90px; max-width: 260px; text-align: right; animation: fadeUp 1.4s 0.3s ease both; padding-right: 20px; border-right: 1px solid rgba(160,120,64,0.35); }
.hero-rotator-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-inv-dim); margin-bottom: 10px; }
.hero-rotator-text { font-family: 'Jost', sans-serif; font-size: 1.4rem; font-weight: 500; color: var(--gold); line-height: 1.3; transition: opacity 0.3s ease; min-height: 2.6em; }

/* SECTIONS — светлый фон */
section { padding: 100px 5vw; }
.section-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 12px; }
.section-title { font-family: 'Jost', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--text); line-height: 1.2; }
.section-title em { font-style: normal; color: var(--gold); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 60px; gap: 24px; }

/* CATALOG */
#catalog { background: var(--bg-section); }
.catalog-toolbar { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-family: 'Jost', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(160,120,64,0.07); }
.search-input { flex: 1; min-width: 200px; max-width: 320px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-family: 'Jost', sans-serif; font-size: 0.85rem; }
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { outline: none; border-color: var(--gold); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.card:hover .card-overlay { opacity: 1; }
.card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-section); display: flex; align-items: center; justify-content: center; position: relative; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-section), var(--border)); color: rgba(160,120,64,0.35); }
.card-overlay { position: absolute; inset: 0; background: rgba(26,23,20,0.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.card-overlay span { border: 1px solid var(--gold); color: var(--gold); padding: 10px 24px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'Jost', sans-serif; }
.card-body { padding: 24px; }
.card-category { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 8px; }
.card-name { font-family: 'Jost', sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.card-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.card-price { font-family: 'Jost', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--gold); }
.card-badge { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 10px; border: 1px solid; font-family: 'Jost', sans-serif; }
.badge-premium { color: #7a5a2e; border-color: rgba(160,120,64,0.45); }
.badge-hit { color: #2f6b3a; border-color: rgba(74,154,90,0.4); }
.badge-econom { color: var(--text-dim); border-color: var(--border); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 80px 20px; }
.empty-state p { font-family: 'Jost', sans-serif; font-size: 1.3rem; color: var(--text-dim); }

/* ABOUT */
#about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--text-dim); margin-bottom: 20px; line-height: 1.9; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-chip { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); padding: 16px 18px; font-family: 'Jost', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.feature-icon { width: 36px; height: 36px; border: 1px solid rgba(160,120,64,0.35); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); font-size: 1rem; }
/* .feature/.feature-title/.feature-desc остаются для блока «Опт для наших клиентов» на главной */
.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature-title { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.feature-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

/* CONTACTS */
#contacts { background: var(--bg-section); }
#contacts .section-header { margin-bottom: 32px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-block { margin-bottom: 40px; }
.contact-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 10px; }
.contact-value { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.4rem; color: var(--text); }
.contact-value a { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-value a:hover { color: var(--gold); }
.contact-note { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.contact-owner { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--gold); margin: 0 0 4px; }
.contact-cta { padding: 48px; border: 1px solid var(--border); background: var(--surface); }
.contact-cta h3 { font-family: 'Jost', sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.contact-cta p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 32px; line-height: 1.7; }

/* FOOTER — тёмный */
footer { background: var(--darker-bg); border-top: 1px solid rgba(160,120,64,0.12); padding: 40px 5vw; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-copy { font-size: 0.72rem; color: var(--text-inv-dim); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.7rem; color: var(--text-inv-dim); text-decoration: none; letter-spacing: 0.1em; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* BURGER & MOBILE NAV */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.burger span { display: block; width: 22px; height: 1px; background: var(--gold); }
.mobile-nav { display: none; position: fixed; inset: 72px 0 0; background: var(--dark-bg); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.8rem; color: var(--text-inv); text-decoration: none; }
.mobile-nav a:hover { color: var(--gold); }

/* PRODUCT PAGE */
.product-page { padding: 120px 5vw 80px; min-height: 100vh; background: var(--bg); }
.breadcrumbs { display: flex; gap: 10px; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 40px; flex-wrap: wrap; align-items: center; }
.breadcrumbs a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span.sep { color: var(--gold-dim); }
.breadcrumbs span.current { color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; max-width: 1300px; margin: 0 auto; align-items: start; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 100px; }
.product-main-img { aspect-ratio: 4/3; background: var(--bg-section); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-main-img .card-img-placeholder { width: 100%; height: 100%; }
#productMainImgWrap { cursor: zoom-in; }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; background: rgba(14,12,11,0.7); color: var(--text-inv); font-size: 0.68rem; letter-spacing: 0.08em; padding: 6px 12px; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
#productMainImgWrap:hover .zoom-hint { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(14,12,11,0.94); display: flex; align-items: center; justify-content: center; padding: 40px; z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--text-inv); font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 8px; }
.lightbox-close:hover { color: var(--gold); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: var(--text-inv); font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--gold); border-color: var(--gold); background: rgba(160,120,64,0.12); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumbs button { width: 80px; aspect-ratio: 1; padding: 0; background: var(--bg-section); border: 1px solid var(--border); cursor: pointer; overflow: hidden; }
.product-thumbs button.active { border-color: var(--gold); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: 'Jost', sans-serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; color: var(--text); margin: 8px 0 16px; line-height: 1.15; }
.product-info h1 em { font-style: normal; color: var(--gold); }
.product-category { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); }
.product-price { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 2.1rem; color: var(--gold); margin: 24px 0 32px; }
.product-desc { color: var(--text-dim); line-height: 1.9; margin-bottom: 36px; font-size: 0.95rem; }
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 40px; }
.spec { background: var(--bg-section); border: 1px solid var(--border); padding: 16px 20px; }
.spec-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.spec-val { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 1rem; color: var(--text); }
.product-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* GEO / OPT */
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.geo-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); padding: 18px 20px; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
.geo-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.geo-name { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.geo-dist { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); }
.geo-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.geo-links a { font-size: 0.85rem; color: var(--gold-dim); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.geo-links a:hover { color: var(--gold); border-color: var(--gold); }
.opt-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 8px; }
.opt-term { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); padding: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; max-width: 780px; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.faq-q { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.faq-a { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }

/* RESPONSIVE — планшет */
@media (max-width: 900px) {
  nav { display: none; } .burger { display: flex; } .hero-rotator { display: none; }
  .header-right { gap: 14px; }
  .about-grid, .contacts-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
}

/* RESPONSIVE — телефон */
@media (max-width: 600px) {
  section { padding: 70px 5vw; }
  header { padding: 0 4vw; }
  .header-inner { height: 64px; gap: 10px; }
  .mobile-nav { inset: 64px 0 0; }
  .logo-img { height: 32px; }
  .header-right { gap: 8px; }
  .hero h1 { font-size: 2.4rem; }
  .catalog-grid { grid-template-columns: 1fr; }
  .header-phone { padding: 10px; border-radius: 50%; gap: 0; }
  .header-phone-num { display: none; }
  .about-features { grid-template-columns: 1fr; }
  .contact-cta { padding: 28px; }
  .product-specs { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-actions .btn-primary,
  .product-actions .btn-outline { width: 100%; justify-content: center; }
  .breadcrumbs { font-size: 0.65rem; gap: 6px; }
  .breadcrumbs span.current { max-width: 140px; }
  .lightbox { padding: 16px; }
  .lightbox-close { top: 10px; right: 12px; font-size: 1.8rem; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .zoom-hint { display: none; }
}

/* RESPONSIVE — маленький телефон */
@media (max-width: 400px) {
  .hero { padding: 100px 5vw 60px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; text-align: center; }
  .logo-main { font-size: 1.05rem; }
  .logo-sub { font-size: 0.55rem; letter-spacing: 0.15em; }
  .card-body { padding: 18px; }
  .contact-cta { padding: 20px; }
  .contact-cta h3 { font-size: 1.4rem; }
}