/* ═══════════════════════════════════════════════════════
   СФС-НН — стили
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Тёплая палитра Строй-Град, взято из логотипа */
  --accent: #CC852A;          /* тёплый янтарный (был холодный оранж) */
  --accent-light: #fdf5eb;    /* мягкий кремовый для фонов */
  --accent-dark: #a56618;     /* приглушённый для hover */
  --dark: #2a2622;            /* тёплый графит (был чёрный) */
  --dark2: #383129;           /* чуть светлее для меню/футера */
  --text: #2a2622;            /* тёплый графит для основного текста */
  --text-muted: #6b6560;      /* тёплый серо-бежевый */
  --border: rgba(60, 40, 20, 0.10);  /* тёплая рамка */
  --bg: #fff;
  --bg2: #faf7f2;             /* тёплый кремовый для секций */
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: middle; }
svg.i.acc { stroke: var(--accent); width: 14px; height: 14px; }

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(14px);} to {opacity:1;transform:translateY(0);} }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@keyframes countUp { from {opacity:0;transform:scale(0.9);} to {opacity:1;transform:scale(1);} }
@keyframes shake { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-6px);} 40%{transform:translateX(6px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(4px);} }
@keyframes rippleAnim { to { width:220px;height:220px;opacity:0; } }

.reveal { opacity:0; transform:translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-stagger > * { opacity:0; transform:translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-stagger.visible > * { opacity:1; transform:translateY(0); }
.reveal-stagger.visible > *:nth-child(1){transition-delay:.05s}
.reveal-stagger.visible > *:nth-child(2){transition-delay:.15s}
.reveal-stagger.visible > *:nth-child(3){transition-delay:.25s}
.reveal-stagger.visible > *:nth-child(4){transition-delay:.35s}
.reveal-stagger.visible > *:nth-child(5){transition-delay:.45s}
.reveal-stagger.visible > *:nth-child(6){transition-delay:.55s}

/* ── TOPBAR ─────────────────────────── */
.topbar { background: var(--dark); padding: 9px 32px; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.topbar-left { display: flex; gap: 24px; }
.topbar .ico-row { color: #cfcfcf; display: inline-flex; align-items: center; gap: 6px; }
.topbar-right { color: #9a9a9a; font-size: 13.5px; }

/* ── HEADER ─────────────────────────── */
.header { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s, padding 0.3s; }
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); padding: 10px 32px; }
.logo-area { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 64px; width: auto; display: block; flex-shrink: 0; transition: opacity 0.15s; }
.logo-area:hover .logo-img { opacity: 0.85; }
.footer-logo-img { height: 60px; width: auto; margin-bottom: 12px; opacity: 0.95; }
.header-right { display: flex; align-items: center; gap: 24px; }
.header-mobile-actions { display: none; align-items: center; gap: 4px; }
.mobile-call { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--accent); background: var(--accent-light); }
.mobile-call svg { width: 20px; height: 20px; }
.mobile-call:active { background: #ffe4d3; }
.burger { width: 42px; height: 42px; background: transparent; border: none; padding: 10px 9px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s; }
.burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-close { display: none; }
.nav-mobile-cta { display: none; }
.nav-backdrop { display: none; }
.phones { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.phones a { font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; transition: color 0.3s, transform 0.3s; }
.phones a:hover { color: var(--accent); transform: translateX(2px); }

/* ── NAV ────────────────────────────── */
.nav { background: var(--dark2); padding: 0 32px; display: flex; gap: 0; overflow-x: auto; }
.nav a { font-size: 13px; color: #bbb; padding: 12px 16px; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.nav a:hover, .nav a.active { color: #fff; border-bottom-color: var(--accent); background: rgba(255,255,255,0.04); }

/* ── BUTTONS ────────────────────────── */
.btn-main { background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); padding: 12px 22px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.3s, transform 0.3s, box-shadow 0.3s; font-family: inherit; position: relative; overflow: hidden; display: inline-block; text-align: center; }
.btn-main:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(212,96,26,0.3); }
.btn-out { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 22px; font-size: 14px; cursor: pointer; transition: background 0.3s, transform 0.3s, border-color 0.3s; font-family: inherit; display: inline-block; text-align: center; }
.btn-out:hover { background: var(--bg2); transform: translateY(-2px); border-color: #ccc; }

/* ── HERO ───────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; position: relative; overflow: hidden; }
.hero-left { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.dealers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; animation: fadeUp 1s ease 0.1s both; }
.hero-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; animation: fadeUp 1s ease 0.1s both; }
.hero-bullets { list-style: none; margin: 0 0 26px; padding: 0; animation: fadeUp 1.1s ease 0.35s both; }
.hero-bullets li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #333; padding: 6px 0; }
.hero-bullets li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.hero-price-badge { position: absolute; top: 16px; left: 16px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); padding: 8px 14px; box-shadow: 0 6px 18px rgba(212,96,26,0.35); animation: fadeIn 1s ease 0.7s both, float 5s ease-in-out 1.7s infinite; }
.hero-price-badge .hpb-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.hero-price-badge .hpb-value { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; }
.dealer-tag { font-size: 11px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); background: var(--bg2); transition: border-color 0.3s, color 0.3s, transform 0.3s; }
.dealer-tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-left h1 { font-size: 34px; font-weight: 700; line-height: 1.18; margin-bottom: 14px; letter-spacing: -0.5px; animation: fadeUp 1.1s ease 0.2s both; }
.hero-left h1 em { color: var(--accent); font-style: normal; }
.hero-left p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 28px; max-width: 400px; animation: fadeUp 1.1s ease 0.35s both; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; animation: fadeUp 1.1s ease 0.5s both; }
.hero-right { background: #111; position: relative; overflow: hidden; min-height: 440px; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.hero-overlay-badge { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.65); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 7px 12px; font-size: 12px; color: #ddd; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px); animation: fadeIn 1s ease 0.7s both, float 5s ease-in-out 1.7s infinite; }
.hero-overlay-badge svg { width: 14px; height: 14px; color: var(--accent); }
.hero-overlay-badge2 { position: absolute; bottom: 16px; right: 16px; background: rgba(212,96,26,0.18); border: 1px solid rgba(212,96,26,0.5); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 12px; color: #f4a070; animation: fadeIn 1s ease 0.9s both, float 5s ease-in-out 1.9s infinite; }

/* ── STATS ──────────────────────────── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { padding: 20px 16px; text-align: center; border-right: 1px solid var(--border); transition: background 0.2s; }
.stat:last-child { border-right: none; }
.stat:hover { background: var(--bg2); }
.stat:hover .n { color: var(--accent); }
.stat .n { font-size: 24px; font-weight: 700; transition: color 0.2s; }
.stat .l { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── SECTIONS ───────────────────────── */
.section { padding: 40px 32px; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.section-intro { font-size: 14px; color: var(--text-muted); max-width: 640px; margin-bottom: 24px; line-height: 1.6; }

/* ── BREADCRUMBS ────────────────────── */
.breadcrumbs { padding: 14px 32px; font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.breadcrumbs a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }
.breadcrumbs b { color: var(--text); font-weight: 500; }

/* ── CATEGORY CARDS ─────────────────── */
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg); transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease; display: block; }
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,0.08); border-color: #ddd; }
.cat-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cat-card-icon svg { width: 26px; height: 26px; color: var(--accent); }
.cat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cat-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.cat-card-link { font-size: 13px; font-weight: 600; color: var(--accent); transition: gap 0.2s; }
.cat-card:hover .cat-card-link { letter-spacing: 0.2px; }

/* ── PRODUCTS ───────────────────────── */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s; display: block; }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); border-color: #ccc; }
.pcard-img { height: 200px; position: relative; overflow: hidden; background: #111; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pcard:hover .pcard-img img { transform: scale(1.06); }
.pcard-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 3px 10px; border-radius: 5px; font-weight: 500; }
.tag-hot { background: var(--accent); color: #fff; }
.tag-new { background: #2563eb; color: #fff; }
.tag-rec { background: #1a1a1a; color: #fff; }
.pcard-body { padding: 16px; }
.pcard-brand { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.pcard-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; transition: color 0.2s; }
.pcard:hover .pcard-body h3 { color: var(--accent); }
.psub { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.pprice { font-size: 18px; font-weight: 700; color: var(--accent); }

/* ── SUBCATEGORY TABS ─────────────────── */
.subcat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding: 4px 0; }
.subcat-tab { background: transparent; border: 1.5px solid var(--border); color: var(--text); padding: 8px 16px; border-radius: 22px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; font-family: inherit; white-space: nowrap; }
.subcat-tab:hover { border-color: var(--accent); color: var(--accent); }
.subcat-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.subcat-group { margin-bottom: 40px; }
.subcat-group:last-child { margin-bottom: 0; }
.subcat-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); position: relative; }
.subcat-title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 60px; height: 2px; background: var(--accent); }

/* ── PORTFOLIO ──────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.portfolio-item { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: #111; position: relative; transition: transform 0.35s ease; }
.portfolio-item:hover { transform: scale(1.02); z-index: 1; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-item:hover img { transform: scale(1.08); }

/* ── PRODUCT DETAIL ─────────────────── */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.product-gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; min-height: 360px; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.product-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.4px; }
.product-short { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.product-price { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.product-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 22px; }
.size-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.size-table-head { background: var(--dark2); color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 500; }
.size-table-row { display: flex; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.size-table-row:nth-child(even) { background: var(--bg2); }
.size-table-row b { color: var(--accent); }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.product-note { font-size: 12px; color: var(--text-muted); }
.specs-block { margin-bottom: 36px; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.spec-row span { color: var(--text-muted); }
.spec-row b { font-weight: 500; }
.related-block { margin-top: 12px; }

/* ── WHY ────────────────────────────── */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.why-item { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: flex-start; gap: 12px; transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s; }
.why-item:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.07); border-color: #ddd; }
.why-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.45s ease; }
.why-item:hover .why-icon { transform: scale(1.1); }
.why-icon svg { width: 20px; height: 20px; }
.i-orange { background: var(--accent-light); color: var(--accent); }
.i-blue { background: #E6F1FB; color: #185FA5; }
.i-green { background: #EAF3DE; color: #3B6D11; }
.i-amber { background: #FAEEDA; color: #854F0B; }
.why-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.why-item p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── CTA ────────────────────────────── */
.cta-strip { background: linear-gradient(135deg, #1A1A1A 0%, #2a1a0d 100%); border-radius: var(--radius); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-strip::before { content:''; position: absolute; top:-40px; right:-40px; width:200px; height:200px; background: radial-gradient(circle, rgba(212,96,26,0.2) 0%, transparent 70%); }
.cta-strip h2 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.cta-strip p { font-size: 13px; color: #999; }

/* ── CONTACTS ───────────────────────── */
.contacts-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.contact-block { margin-bottom: 22px; }
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 6px; }
.contact-big { display: block; font-size: 22px; font-weight: 700; color: var(--text); transition: color 0.2s; }
.contact-big:hover { color: var(--accent); }
.contact-text { font-size: 15px; }
.contact-text-link { font-size: 15px; color: var(--accent); }

/* ── TEXT PAGE ──────────────────────── */
.text-page { max-width: 720px; font-size: 14px; line-height: 1.7; color: #333; }
.text-page p { margin-bottom: 14px; }
.text-page ul { margin: 14px 0 14px 20px; }
.text-page li { margin-bottom: 8px; }
.text-page b { color: var(--text); }

/* ── FOOTER ─────────────────────────── */
footer { background: var(--dark2); color: #aaa; padding: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer-logo { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 12px; line-height: 1.6; color: #777; }
footer h4 { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
footer ul li a { font-size: 12px; color: #777; position: relative; display: inline-block; transition: color 0.2s; }
footer ul li a:hover { color: #ddd; }
.footer-phones a { font-size: 15px; font-weight: 600; color: #fff; display: block; margin-bottom: 4px; transition: color 0.2s; }
.footer-phones a:hover { color: var(--accent); }
.footer-phones .fa { font-size: 11px; color: #666; margin-top: 6px; }
.footer-phones .fa a { color: #666; }
.footer-bottom { border-top: 1px solid #333; padding-top: 16px; display: flex; justify-content: space-between; font-size: 11px; color: #555; }
.footer-partners {
  border-top: 1px solid #333; padding: 16px 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px;
}
.fp-label { color: #888; }
.fp-brands { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.fp-brand {
  color: #a8a29e; padding: 4px 10px;
  border: 1px solid #444; border-radius: 4px;
  font-weight: 600; letter-spacing: 0.5px;
  font-size: 11px; text-transform: uppercase;
}

/* ── MODAL ──────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; pointer-events: none; transition: background 0.5s ease; padding: 20px; }
.modal-overlay.open { background: rgba(0,0,0,0.55); pointer-events: all; backdrop-filter: blur(3px); }
.modal { background: var(--bg); border-radius: 16px; padding: 32px 28px 24px; width: 100%; max-width: 440px; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.18); transform: translateY(24px) scale(0.97); opacity: 0; transition: transform 0.5s ease, opacity 0.4s ease; max-height: 92vh; overflow-y: auto; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; background: var(--bg2); border: none; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s, transform 0.45s; }
.modal-close:hover { background: #eee; color: var(--text); transform: rotate(90deg); }
.modal-icon { width: 52px; height: 52px; background: var(--accent-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.modal-icon svg { width: 26px; height: 26px; color: var(--accent); }
.modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.modal p.modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.modal-field { margin-bottom: 12px; }
.modal-field label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 5px; font-weight: 500; }
.modal-field input, .modal-field textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--text); background: var(--bg); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.modal-field input:focus, .modal-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,96,26,0.12); }
.modal-field textarea { resize: vertical; min-height: 70px; }
.modal-agree { font-size: 11px; color: var(--text-muted); margin: 12px 0 16px; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.modal-agree input { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

/* Радиокнопки «Когда удобно принять звонок» */
.call-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.call-time-opt { position: relative; cursor: pointer; display: block; }
.call-time-opt input { position: absolute; opacity: 0; pointer-events: none; }
.call-time-opt > span { display: flex; flex-direction: column; align-items: center; padding: 10px 8px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg); text-align: center; transition: all 0.15s; font-size: 13px; gap: 2px; }
.call-time-opt > span b { font-weight: 600; color: var(--text); font-size: 13px; }
.call-time-opt > span small { font-size: 11px; color: var(--text-muted); }
.call-time-opt:hover > span { border-color: var(--accent); }
.call-time-opt input:checked + span { border-color: var(--accent); background: rgba(212,96,26,0.08); box-shadow: 0 0 0 2px rgba(212,96,26,0.15); }
.call-time-opt input:checked + span b { color: var(--accent); }
.modal .btn-main { width: 100%; padding: 13px; font-size: 15px; }
.modal-note { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 12px; }
.modal-success { text-align: center; padding: 16px 0 8px; display: none; flex-direction: column; align-items: center; gap: 10px; }
.modal-success .success-icon { width: 64px; height: 64px; background: #eafaf0; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: countUp 0.4s ease; }
.modal-success .success-icon svg { width: 32px; height: 32px; color: #2a7a3a; }
.modal-success h3 { font-size: 18px; font-weight: 700; }
.modal-success p { font-size: 13px; color: var(--text-muted); }

/* ── WIZARD ─────────────────────────── */
.wizard-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.wizard-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg2); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--text-muted); transition: all 0.3s ease; flex-shrink: 0; }
.wizard-dot.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.wizard-dot.done { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.wizard-line { flex: 1; height: 1.5px; background: var(--border); transition: background 0.4s ease; }
.wizard-line.done { background: var(--accent); }
.wizard-panel { display: none; animation: fadeUp 0.4s ease both; }
.wizard-panel.active { display: block; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-option { border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 12px; cursor: pointer; text-align: left; transition: border-color 0.25s, background 0.25s, transform 0.25s; background: var(--bg); }
.service-option:hover { border-color: #ccc; transform: translateY(-2px); }
.service-option.selected { border-color: var(--accent); background: var(--accent-light); }
.service-option .so-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 8px; }
.service-option .so-icon svg { width: 100%; height: 100%; }
.service-option .so-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.service-option .so-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.wizard-nav { display: flex; gap: 8px; margin-top: 18px; }
.wizard-nav .btn-out { flex: 0 0 auto; padding: 12px 18px; }
.wizard-nav .btn-main { flex: 1; }
.summary-box { background: var(--bg2); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; font-size: 12px; color: var(--text-muted); }
.summary-box b { color: var(--text); }
.summary-row { display: flex; justify-content: space-between; padding: 3px 0; }
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.size-option { border: 1.5px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; text-align: center; transition: border-color 0.25s, background 0.25s; font-size: 13px; font-weight: 500; }
.size-option:hover { border-color: #ccc; }
.size-option.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.size-option .so-price { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: 3px; }

/* ── TOAST ──────────────────────────── */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px); background: #1a1a1a; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 99999; display: flex; align-items: center; gap: 8px; transition: transform 0.55s ease, opacity 0.4s ease; opacity: 0; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { color: #4ade80; width: 16px; height: 16px; }

/* ── RESPONSIVE ─────────────────────── */
/* ── TABLET (≤900px) ─────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 280px; order: -1; }  /* фото сверху на мобиле */
  .products, .cat-cards { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

/* ── MOBILE (≤700px) — бургер-меню, компактный хедер ─── */
@media (max-width: 700px) {
  .topbar { display: none; }

  /* хедер: только лого + мобильные действия */
  .header { padding: 12px 16px; gap: 8px; position: sticky; top: 0; }
  .header.scrolled { padding: 10px 16px; }
  .header-right { display: none; }
  .header-mobile-actions { display: flex; }
  .logo-img { height: 44px; }

  /* nav превращается в выезжающее меню справа */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 82%; max-width: 320px;
    flex-direction: column; align-items: stretch;
    background: var(--dark);
    padding: 74px 0 24px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; z-index: 200;
    box-shadow: -12px 0 32px rgba(0,0,0,0.3);
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    padding: 15px 24px; font-size: 15px; color: #ddd;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: normal;
  }
  .nav a:hover, .nav a.active { border-bottom-color: rgba(255,255,255,0.06); background: rgba(212,96,26,0.15); color: #fff; }
  .nav-close {
    display: block; position: absolute; top: 18px; right: 18px;
    background: transparent; border: none; color: #999;
    font-size: 22px; cursor: pointer; width: 36px; height: 36px;
    border-radius: 50%; transition: background 0.2s, color 0.2s;
  }
  .nav-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .nav-mobile-cta {
    display: flex; flex-direction: column; gap: 12px;
    padding: 20px 24px; margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-phone { font-size: 20px; font-weight: 700; color: var(--accent) !important; padding: 0 !important; border: none !important; }
  .nav-mobile-cta .btn-main { width: 100%; padding: 14px; font-size: 15px; }
  .nav-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0); pointer-events: none;
    transition: background 0.35s ease; z-index: 199;
  }
  .nav-backdrop.show { background: rgba(0,0,0,0.5); pointer-events: all; }

  /* секции */
  .section { padding: 32px 18px; }
  .breadcrumbs { padding: 12px 18px; font-size: 11px; }
  .section-title { font-size: 22px; }

  /* герой */
  .hero-left { padding: 28px 18px 36px; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 10px; }
  .hero-left h1 { font-size: 30px; line-height: 1.15; }
  .hero-bullets li { font-size: 14px; padding: 5px 0; }
  .btns { flex-direction: column; }
  .btns .btn-main, .btns .btn-out { width: 100%; text-align: center; }
  .hero-right { min-height: 240px; }
  .hero-price-badge { top: 12px; left: 12px; padding: 6px 12px; }
  .hero-price-badge .hpb-value { font-size: 17px; }
  .hero-overlay-badge2 { display: none; }

  /* карточки */
  .products, .cat-cards, .why, .footer-grid, .service-grid, .size-grid { grid-template-columns: 1fr; }
  .cat-card { padding: 20px; }
  .pcard-img { height: 220px; }

  /* портфолио: 2 колонки, но плотнее */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  /* статы: 2х2 */
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 12px; border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  /* footer компакт */
  .footer-grid { gap: 24px; }

  /* CTA */
  .cta-strip { padding: 24px 20px; }
  .cta-strip h2 { font-size: 18px; }
  .cta-strip .btn-main { width: 100%; }
}

/* ── очень маленькие (≤380px) ── */
@media (max-width: 380px) {
  .hero-left h1 { font-size: 26px; }
  .logo-brand { font-size: 16px; }
  .logo-img { height: 38px; }
  .logo-sub { display: none; }
}
