/* =========================================================
   ТОО «ТД Строительные материалы» — основной стиль
   ========================================================= */
:root {
  --navy: #172B42;
  --navy-900: #0F1E30;
  --navy-800: #13253A;
  --navy-700: #1E3756;
  --navy-600: #2A4669;
  --orange: #F28C28;
  --orange-600: #DD7712;
  --orange-100: #FDEBD8;
  --white: #FFFFFF;
  --gray-50: #F6F7F9;
  --gray-100: #EEF1F4;
  --gray-200: #E2E6EB;
  --gray-300: #C9D0D8;
  --gray-500: #7A8899;
  --gray-700: #46566A;
  --text: #172B42;
  --text-muted: #5B6B7F;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 48, .06), 0 2px 8px rgba(15, 30, 48, .04);
  --shadow: 0 10px 30px -10px rgba(15, 30, 48, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 30, 48, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: #fff; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.h-display { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.h-1 { font-size: clamp(34px, 4.6vw, 60px); }
.h-2 { font-size: clamp(28px, 3.4vw, 46px); }
.h-3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-muted); line-height: 1.65; }
.section--navy .lead, .on-dark .lead { color: rgba(255, 255, 255, .72); }
.accent { color: var(--orange); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::after { content: ''; width: 32px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), background .35s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--orange-600);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(242, 140, 40, .65); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); flex-shrink: 0; }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { --fg: var(--navy); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--navy { --bg: var(--navy); }
.btn--navy::before { background: var(--navy-700); }
.btn--navy:hover { box-shadow: 0 14px 30px -12px rgba(23, 43, 66, .6); }
.btn--outline { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--gray-300); }
.btn--outline::before { background: var(--navy); }
.btn--outline:hover { --fg: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--wa { --bg: #25D366; }
.btn--wa::before { background: #1EB955; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease), color .4s;
  color: #fff;
}
.site-header.is-solid, .site-header.is-light {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--gray-200);
}
.site-header.is-solid { --header-h: 72px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .65; }
.logo-text strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; font-size: 15px; font-weight: 600;
  opacity: .88; transition: opacity .25s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px currentColor; opacity: .75; font-size: 12px; font-weight: 700; }
.lang-switch button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; cursor: pointer; color: inherit; }
.lang-switch button.is-active { background: var(--orange); color: #fff; }
.lang-switch button:disabled { cursor: help; opacity: .55; }
.header-phone { font-weight: 700; font-size: 15px; white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; color: inherit; border-radius: var(--radius-sm); }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-900); color: #fff;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; }
.nav-open .site-header { background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; }
.mobile-nav ul { display: grid; gap: 2px; }
.mobile-nav a.m-link { display: flex; justify-content: space-between; align-items: center; font-size: 26px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav a.m-link[aria-current="page"] { color: var(--orange); }
.mobile-nav .m-contacts { display: grid; gap: 12px; margin-top: auto; color: rgba(255,255,255,.75); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,30,48,.92) 0%, rgba(15,30,48,.7) 40%, rgba(15,30,48,.25) 75%, rgba(15,30,48,.15) 100%),
    linear-gradient(0deg, rgba(15,30,48,.85) 0%, rgba(15,30,48,0) 45%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-text { max-width: 860px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .accent { display: inline; }
.hero .lead { color: rgba(255,255,255,.8); max-width: 640px; margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-bottom { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.hero-bottom > div { padding: 24px 24px 0 0; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.88); }
.hero-bottom > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-bottom svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 1px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ''; width: 1px; height: 60px; background: linear-gradient(var(--orange), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* Page hero (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.page-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,30,48,.95), rgba(15,30,48,.65) 60%, rgba(15,30,48,.4)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 680px; margin-top: 24px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.adv-card { position: relative; background: #fff; padding: 40px 32px 44px; transition: background .45s var(--ease), color .45s var(--ease); overflow: hidden; }
.adv-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.adv-card:hover { background: var(--navy); color: #fff; }
.adv-card:hover::after { transform: scaleX(1); }
.adv-card:hover p { color: rgba(255,255,255,.7); }
.adv-num { font-size: 13px; font-weight: 700; color: var(--gray-500); letter-spacing: .1em; margin-bottom: 48px; display: block; transition: color .45s; }
.adv-card:hover .adv-num { color: var(--orange); }
.icon-box { width: 60px; height: 60px; border-radius: var(--radius); display: grid; place-items: center; background: var(--orange-100); color: var(--orange-600); margin-bottom: 28px; transition: transform .45s var(--ease), background .45s; }
.icon-box svg { width: 28px; height: 28px; }
.adv-card:hover .icon-box { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.05); }
.adv-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 700; }
.adv-card p { color: var(--text-muted); font-size: 15px; transition: color .45s; }

/* ---------- Catalog cards ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.catalog-grid > .cat-card { grid-column: span 2; }
.catalog-grid > .cat-card:nth-child(1), .catalog-grid > .cat-card:nth-child(2) { grid-column: span 3; }
.catalog-grid > .cat-card:nth-child(1) .cat-media, .catalog-grid > .cat-card:nth-child(2) .cat-media { aspect-ratio: 16 / 10; }
.cat-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.07); }
.cat-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,30,48,.35), transparent 50%); }
.cat-index { position: absolute; top: 20px; left: 20px; z-index: 2; background: rgba(255,255,255,.94); color: var(--navy); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; letter-spacing: .05em; }
.cat-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.cat-body h3 { font-size: 22px; font-weight: 700; }
.cat-body p { color: var(--text-muted); font-size: 15px; flex: 1; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cat-card .stretched { position: absolute; inset: 0; z-index: 1; }
.cat-actions .btn { position: relative; z-index: 2; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-text > * + * { margin-top: 22px; }
.split-text p { color: var(--text-muted); font-size: 17px; }
.section--navy .split-text p { color: rgba(255,255,255,.72); }
.photo-stack { position: relative; padding: 0 0 18% 0; }
.photo-stack .ph-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; width: 82%; box-shadow: var(--shadow); }
.photo-stack .ph-sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.section--gray .photo-stack .ph-sub { border-color: var(--gray-50); }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .ph-badge { position: absolute; left: -6%; top: 12%; background: var(--orange); color: #fff; padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 230px; font-weight: 700; line-height: 1.35; }
.photo-stack .ph-badge small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.check-list svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--orange); }

/* Values / audience */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { padding: 32px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--gray-200); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile h3 { font-size: 19px; margin: 22px 0 10px; font-weight: 700; }
.tile p { color: var(--text-muted); font-size: 15px; }
.section--navy .tile { background: var(--navy-700); border-color: rgba(255,255,255,.08); }
.section--navy .tile p { color: rgba(255,255,255,.65); }
.section--navy .tile .icon-box { background: rgba(242,140,40,.14); color: var(--orange); }

/* ---------- Production ---------- */
.prod-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; }
.prod-feature { background: var(--navy); padding: 36px 32px; transition: background .4s; }
.prod-feature:hover { background: var(--navy-700); }
.prod-feature .num { font-size: 44px; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 20px; letter-spacing: -.03em; }
.prod-feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.prod-feature p { color: rgba(255,255,255,.65); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--gray-200); }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-row: span 2; }
.gallery figure:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; color: #fff; font-weight: 600; font-size: 15px; background: linear-gradient(0deg, rgba(15,30,48,.85), transparent); transform: translateY(10px); opacity: 0; transition: .45s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.gallery-note { margin-top: 20px; font-size: 14px; color: var(--gray-500); display: flex; gap: 8px; align-items: center; }
.section--navy .gallery-note { color: rgba(255,255,255,.5); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,20,32,.94); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: .35s var(--ease); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; max-width: min(1200px, 100%); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- Buyers ---------- */
.buyers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.buyer-card { position: relative; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.buyer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.buyer-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,30,48,.95) 10%, rgba(15,30,48,.45) 60%, rgba(15,30,48,.25)); transition: background .5s; }
.buyer-card:hover img { transform: scale(1.06); }
.buyer-card--wholesale::before { background: linear-gradient(0deg, rgba(23,43,66,.97) 15%, rgba(23,43,66,.6) 60%, rgba(23,43,66,.35)); }
.buyer-body { padding: clamp(28px, 4vw, 48px); max-width: 560px; }
.buyer-tag { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.buyer-card h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 16px; }
.buyer-card p { color: rgba(255,255,255,.78); font-size: 17px; margin-bottom: 30px; }
.buyer-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.buyer-list li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }

/* ---------- Delivery / map ---------- */
.delivery { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.map-wrap { position: relative; border-radius: var(--radius-lg); background: var(--navy-800); padding: clamp(16px, 3vw, 36px); box-shadow: var(--shadow-lg); overflow: hidden; }
.map-wrap::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.kz-map { position: relative; width: 100%; height: auto; display: block; overflow: visible; }
.kz-shape { fill: url(#kzGrad); stroke: rgba(242,140,40,.75); stroke-width: 2; stroke-linejoin: round; }
.kz-route { fill: none; stroke: rgba(242,140,40,.55); stroke-width: 1.4; stroke-dasharray: 5 7; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.kz-city circle.dot { fill: #fff; stroke: var(--orange); stroke-width: 3; }
.kz-city circle.pulse { fill: var(--orange); opacity: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }
.kz-city text { fill: rgba(255,255,255,.85); font-size: 15px; font-weight: 600; font-family: var(--font); paint-order: stroke; stroke: var(--navy-800); stroke-width: 4px; }
.map-legend { position: relative; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; color: rgba(255,255,255,.65); font-size: 13px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--orange); }
.map-legend i.line { width: 22px; height: 0; border-radius: 0; box-shadow: none; border-top: 2px dashed var(--orange); background: none; }
.delivery-steps { display: grid; gap: 0; margin-top: 36px; counter-reset: step; }
.delivery-steps li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--gray-200); }
.section--navy .delivery-steps li { border-color: rgba(255,255,255,.12); }
.delivery-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-weight: 800; color: var(--orange); font-size: 15px; padding-top: 2px; }
.delivery-steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.delivery-steps span { color: var(--text-muted); font-size: 15px; }
.section--navy .delivery-steps span { color: rgba(255,255,255,.65); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; isolation: isolate; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 30%, rgba(23,43,66,.6)); }
.cta-band .lead { margin-top: 16px; color: rgba(255,255,255,.75); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Form ---------- */
.lead-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.lead-aside > * + * { margin-top: 22px; }
.lead-aside .contact-mini { display: grid; gap: 16px; margin-top: 36px; }
.contact-mini a, .contact-mini div { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.contact-mini .icon-box { width: 48px; height: 48px; margin: 0; border-radius: 50%; }
.contact-mini .icon-box svg { width: 22px; height: 22px; }
.contact-mini small { display: block; font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.section--navy .contact-mini small { color: rgba(255,255,255,.5); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 13px; font-weight: 700; color: var(--gray-700); letter-spacing: .02em; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: var(--gray-50);
  transition: border-color .25s, background .25s, box-shadow .25s; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23172B42' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-300); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(242,140,40,.14); }
.field.has-error input { border-color: #D64545; background: #FFF6F6; }
.field .error { font-size: 13px; color: #D64545; display: none; }
.field.has-error .error { display: block; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--gray-100); padding: 5px; border-radius: var(--radius-sm); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 4px; cursor: pointer; font-weight: 700; color: var(--gray-700); transition: .25s; font-size: 15px; }
.segmented input:checked + label { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + label { outline: 2px solid var(--orange); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--gray-500); flex: 1; min-width: 220px; }
.form-success { display: none; text-align: center; padding: 32px 8px; }
.form-success .icon-box { margin: 0 auto 24px; width: 72px; height: 72px; border-radius: 50%; background: #E6F8EE; color: #1EA35A; }
.form-success h3 { font-size: 26px; margin-bottom: 12px; }
.form-success p { color: var(--text-muted); margin-bottom: 24px; }
.is-sent .form-body { display: none; }
.is-sent .form-success { display: block; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: .35s var(--ease); }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,20,32,.7); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto; transform: translateY(24px) scale(.98); transition: transform .45s var(--ease); }
.modal.is-open .modal-dialog { transform: none; }
.modal-dialog .form-card { box-shadow: var(--shadow-lg); }
.modal-head { margin-bottom: 26px; padding-right: 40px; }
.modal-head h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.modal-head p { color: var(--text-muted); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gray-100); cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .35s var(--ease); z-index: 2; }
.modal-close:hover { background: var(--gray-200); transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; }
body.no-scroll { overflow: hidden; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); margin: 22px 0 8px; display: block; }
.contact-card .value { font-size: 19px; font-weight: 700; word-break: break-word; }
.contact-card .value a:hover { color: var(--orange); }
.contact-card .placeholder, .placeholder { color: var(--gray-500); font-weight: 600; }
.schedule { display: grid; gap: 6px; font-size: 16px; }
.schedule div { display: flex; justify-content: space-between; gap: 12px; }
.map-placeholder { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--gray-100); display: grid; place-items: center; text-align: center; padding: 32px; color: var(--gray-500); border: 1px dashed var(--gray-300); }
.map-placeholder iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.product-gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-100); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.product-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.product-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: none; transition: border-color .25s, opacity .25s; opacity: .7; }
.product-thumbs button.is-active, .product-thumbs button:hover { border-color: var(--orange); opacity: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info > * + * { margin-top: 22px; }
.price-box { padding: 24px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--gray-200); display: grid; gap: 16px; }
.price-box .label { font-size: 13px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .1em; }
.price-box .value { font-size: 20px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--gray-100); font-size: 14px; font-weight: 600; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--gray-200); font-size: 15px; }
.specs-table th { color: var(--text-muted); font-weight: 600; width: 45%; }
.products-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.empty-state { padding: 40px; border-radius: var(--radius-lg); border: 1px dashed var(--gray-300); background: var(--gray-50); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.empty-state p { color: var(--text-muted); max-width: 620px; }

/* Catalog page filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chips a { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--gray-200); font-weight: 600; font-size: 14px; transition: .25s; }
.chips a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: clamp(64px, 8vw, 100px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .logo { color: #fff; margin-bottom: 22px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.footer-links { display: grid; gap: 12px; font-size: 15px; }
.footer-links a:hover { color: var(--orange); }
.footer-about { font-size: 15px; max-width: 360px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 12px; }
.wa-float a { width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .35s var(--ease); position: relative; }
.wa-float a::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float a:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float .wa-tip { background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: .35s var(--ease); pointer-events: none; white-space: nowrap; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 400; opacity: 0; transition: .35s var(--ease); pointer-events: none; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.reveal-img.is-visible { clip-path: inset(0 0 0 0); }
.no-js .reveal, .no-js .reveal-img { opacity: 1; transform: none; clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; }
  html { scroll-behavior: auto; }
}

/* Image fallback bg while loading */
img[loading] { background: var(--gray-100); }
.hero-media img, .page-hero-media img { background: var(--navy-800); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav, .header-phone { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1024px) {
  .adv-grid, .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero-bottom { grid-template-columns: repeat(2, 1fr); }
  .hero-bottom > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid > .cat-card, .catalog-grid > .cat-card:nth-child(1), .catalog-grid > .cat-card:nth-child(2) { grid-column: span 1; }
  .catalog-grid > .cat-card:nth-child(1) .cat-media, .catalog-grid > .cat-card:nth-child(2) .cat-media { aspect-ratio: 4 / 3; }
  .catalog-grid > .cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .split, .delivery, .lead-section, .product-layout { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .photo-stack { max-width: 640px; }
  .product-info { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contacts-grid, .products-list { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery figure:nth-child(4) { grid-row: span 1; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .site-header.is-solid { --header-h: 64px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-text strong { font-size: 14px; }
  .logo-text small { font-size: 9px; }
  .lang-switch { display: none; }
  .hero { min-height: auto; }
  .hero-content { padding-top: calc(var(--header-h) + 72px); }
  .hero-actions .btn { width: 100%; }
  .hero-bottom { grid-template-columns: 1fr; margin-top: 48px; }
  .hero-bottom > div, .hero-bottom > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .scroll-cue { display: none; }
  .adv-grid, .tiles, .buyers, .contacts-grid, .products-list, .prod-features { grid-template-columns: 1fr; }
  .adv-card { padding: 32px 24px; }
  .adv-num { margin-bottom: 28px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-grid > .cat-card:last-child:nth-child(odd) { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .buyer-card { min-height: 460px; }
  .photo-stack .ph-badge { left: 0; top: auto; bottom: 30%; max-width: 200px; padding: 16px 18px; font-size: 14px; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .gallery figure:nth-child(6) { grid-column: span 2; }
  .kz-city text { font-size: 22px; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float a { width: 56px; height: 56px; }
  .wa-float .wa-tip { display: none; }
  .cta-band .actions .btn { width: 100%; }
  .form-foot .btn { width: 100%; }
  .empty-state .btn { width: 100%; }
}

/* Equal-width catalog grid (related products) */
.catalog-grid--even > .cat-card, .catalog-grid--even > .cat-card:nth-child(1), .catalog-grid--even > .cat-card:nth-child(2) { grid-column: span 2; }
.catalog-grid--even > .cat-card .cat-media { aspect-ratio: 4 / 3 !important; }
@media (max-width: 1024px) { .catalog-grid--even > .cat-card, .catalog-grid--even > .cat-card:nth-child(1), .catalog-grid--even > .cat-card:nth-child(2) { grid-column: span 1; } }
@media (max-width: 560px) { .header-actions > .btn { display: none; } }

/* Header fit fixes */
.header-inner { gap: 24px; }
.main-nav a { white-space: nowrap; padding: 10px 11px; font-size: 14.5px; }
.main-nav a::after { left: 11px; right: 11px; }
.hero-text { max-width: 1000px; }
@media (max-width: 1400px) and (min-width: 1181px) { .lang-switch { display: none; } .logo-text strong { font-size: 15px; } }
.site-header .container { max-width: 1440px; }
.header-actions .btn { padding: 0 18px; }
.segmented { position: relative; }
.segmented input { left: 0; top: 0; }
@media (max-width: 1500px) and (min-width: 1181px) { .lang-switch { display: none; } }

/* Map & buyers readability */
.delivery { grid-template-columns: 0.78fr 1.22fr; }
.map-wrap { padding: clamp(12px, 2vw, 24px); }
.kz-city text { font-size: 21px; }
.kz-route { stroke: rgba(242,140,40,.85); stroke-width: 2.4; }
.buyer-card::before { background: linear-gradient(0deg, rgba(15,30,48,.96) 25%, rgba(15,30,48,.7) 60%, rgba(15,30,48,.35)); }
@media (max-width: 1024px) { .delivery { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .kz-city text { font-size: 26px; } }
.mobile-nav a.m-link svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; }
.mobile-nav a.m-link { font-size: 22px; }
