/* ============================================================
   DOBROLAD — e-commerce design system
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  --bg: #FBFAF7;
  --bg-card: #FFFFFF;
  --bg-soft: #F4F2EC;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-mute: #8B8682;
  --line: #E6E2D9;
  --line-soft: #EFEBE2;
  --accent: #0F4D2E;
  --accent-hover: #0A3A22;
  --accent-soft: #E8F0EB;
  --cta: #C9622E;
  --cta-hover: #B05425;
  --gold: #B58A4E;
  --red: #B5371F;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20,18,14,.04), 0 0 0 1px rgba(20,18,14,.03);
  --shadow-md: 0 4px 12px rgba(20,18,14,.06), 0 1px 3px rgba(20,18,14,.04);
  --shadow-lg: 0 12px 32px rgba(20,18,14,.08), 0 4px 8px rgba(20,18,14,.04);
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1280px;
}

html, body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 500; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

.promo { background: var(--ink); color: #F5F1E7; text-align: center; font-size: 13px; padding: 10px 16px; letter-spacing: 0.02em; }
.promo strong { color: #fff; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.brand { font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--ink); letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.brand-tag { font-family: var(--font-sans); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.18em; text-transform: uppercase; display: block; }
.nav-main { display: flex; align-items: center; gap: 32px; }
.nav-main a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; transition: color .2s; padding: 6px 0; position: relative; }
.nav-main a:hover { color: var(--accent); }
.nav-main a.active { color: var(--ink); }
.nav-main a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: background .2s, color .2s; }
.header-icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.header-icon-btn svg { width: 20px; height: 20px; }
.phone-link { color: var(--ink); font-weight: 600; font-size: 15px; }
.mobile-menu-toggle { display: none; }
@media (max-width: 920px) {
  .nav-main { display: none; }
  .phone-link { display: none; }
  .mobile-menu-toggle { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; color: var(--ink); }
}

.mobile-drawer { position: fixed; inset: 0; background: rgba(20,18,14,.55); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mobile-drawer.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 90%); background: var(--bg); padding: 24px 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease-out; }
.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 2px; margin-top: 30px; }
.mobile-drawer a { display: block; padding: 14px 12px; font-size: 16px; font-weight: 500; color: var(--ink); border-radius: var(--r-sm); }
.mobile-drawer a:hover { background: var(--bg-soft); }
.drawer-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: var(--r-md); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; transition: all .2s; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-block { width: 100%; }

section { padding: 64px 0; }
@media (max-width: 768px) { section { padding: 40px 0; } }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { margin-bottom: 12px; }
.section-sub { font-size: 1.05rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head-center { text-align: center; margin-bottom: 48px; }

.hero { padding: 24px 0 48px; background: linear-gradient(180deg, var(--bg) 0%, #F6F2E8 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; min-height: 540px; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: 18px; padding: 6px 14px; background: var(--accent-soft); border-radius: var(--r-pill); }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 24px; }
.hero-sub { font-size: 1.15rem; margin-bottom: 36px; max-width: 540px; color: var(--ink-soft); }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-image { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; min-height: auto; }
  .hero-image { aspect-ratio: 3/4; max-width: 480px; margin: 0 auto; }
  .hero-trust { gap: 16px; }
  .hero-trust-item { font-size: 13px; }
}

.categories { background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { background: var(--bg-soft); border-radius: var(--r-lg); padding: 24px 18px; text-align: center; transition: all .25s; border: 1px solid transparent; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--accent); background: #fff; box-shadow: var(--shadow-md); }
.cat-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border-radius: 50%; color: var(--accent); }
.cat-icon svg { width: 28px; height: 28px; }
.cat-name { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--ink-mute); }
@media (max-width: 768px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 18px 14px; }
}

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.product-card { background: var(--bg-card); border-radius: var(--r-md); overflow: hidden; transition: all .25s; display: flex; flex-direction: column; border: 1px solid var(--line-soft); }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line); }
.product-card-img { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); letter-spacing: 0.04em; }
.product-badge.discount { background: var(--cta); }
.product-badge.new { background: var(--accent); }
.product-card-body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mute); font-weight: 600; }
.product-card-name { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; margin: 2px 0 8px; min-height: 42px; }
.product-card-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price-new { font-size: 20px; font-weight: 700; color: var(--ink); }
.price-old { font-size: 14px; text-decoration: line-through; color: var(--ink-mute); }
.product-card-cta { margin-top: 14px; padding: 10px 14px; background: var(--bg-soft); color: var(--ink); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; text-align: center; transition: all .2s; border: 1px solid transparent; }
.product-card:hover .product-card-cta { background: var(--accent); color: #fff; }
@media (max-width: 768px) {
  .product-card-name { font-size: 14px; min-height: 38px; }
  .price-new { font-size: 17px; }
  .price-old { font-size: 12px; }
  .product-card-body { padding: 12px 12px 14px; }
}

.benefits { background: var(--bg-soft); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.benefit { text-align: center; }
.benefit-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 50%; color: var(--accent); box-shadow: var(--shadow-sm); }
.benefit-icon svg { width: 30px; height: 30px; }
.benefit h3 { margin-bottom: 8px; font-size: 17px; }
.benefit p { font-size: 14px; line-height: 1.55; }
@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.search-wrap { position: relative; max-width: 540px; margin: 0 auto 40px; }
.search-input { width: 100%; padding: 14px 20px 14px 48px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; font-size: 15px; outline: none; transition: all .2s; }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-chip { padding: 8px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.filter-chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.reviews-strip { background: var(--bg-card); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card { background: var(--bg); padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); }
.review-stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 14px; }
.review-text { color: var(--ink); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.review-name { font-weight: 600; }
.review-city { color: var(--ink-mute); font-size: 12px; }
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-card { padding: 22px; }
}

.site-footer { background: var(--ink); color: #BFBAA8; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #918B7A; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #BFBAA8; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.footer-contact-line svg { width: 16px; height: 16px; color: #918B7A; }
.footer-bottom { border-top: 1px solid #2A2A2A; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #6A6450; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.txt-c { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
