/* ============================================================
   SAYDING.AZ — Main Stylesheet
   Modern dark premium theme for siding distributor
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==================== ROOT VARIABLES ==================== */
:root {
  --bg:          #0a0a0f;
  --bg-2:        #0d0d15;
  --bg-card:     #111119;
  --bg-card-2:   #15151f;
  --bg-hover:    #1a1a27;

  --gold:        #e8c97a;
  --gold-light:  #f5e0a8;
  --gold-dim:    rgba(232, 201, 122, 0.11);
  --gold-border: rgba(232, 201, 122, 0.24);

  --blue:        #4a9eff;
  --blue-dim:    rgba(74, 158, 255, 0.10);
  --blue-border: rgba(74, 158, 255, 0.24);

  --text:        #f0f0f5;
  --text-2:      #9898aa;
  --text-3:      #5c5c70;

  --border:      rgba(255, 255, 255, 0.07);

  --font:        'Inter', system-ui, -apple-system, sans-serif;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;

  --shadow:      0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 40px rgba(232, 201, 122, 0.14);
  --shadow-blue: 0 8px 40px rgba(74, 158, 255, 0.14);

  --t: 0.28s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --section-py: 96px;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(232,201,122,0.28); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232,201,122,0.5); }

/* ==================== LAYOUT ==================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-py) 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  padding: 5px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  background: var(--gold-dim);
}
.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  transition: all var(--t) var(--ease);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--gold);
  color: #0a0a0f;
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 32px rgba(232,201,122,0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--gold-border);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.btn-outline-gold:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--gold);
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--t) var(--ease);
}
.btn-ghost:hover::after { width: calc(100% - 24px); }
.btn-ghost-blue { color: var(--blue); }
.btn-ghost-blue::after { background: var(--blue); }

/* ==================== BADGES ==================== */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-docke {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.badge-uplast {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--t) var(--ease);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.logo span { color: var(--gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 13px;
  border-radius: var(--r-sm);
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.055);
}

.nav-cta { flex-shrink: 0; }

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--gold);
  color: #0a0a0f;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: 90px 28px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 16px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.mobile-menu .nav-link:hover { background: none; color: var(--gold); }
.mobile-menu .btn-primary { margin-top: 20px; width: 100%; }

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 0 90px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 5% 35%, rgba(74,158,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 55% 75% at 95% 65%, rgba(232,201,122,0.07) 0%, transparent 60%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,201,122,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,201,122,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 75%);
}

.hero-layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #e8c97a 0%, #f5e0a8 45%, #e8c97a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-brands {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-brand-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease);
}
.hero-card:hover { transform: translateX(-4px); }
.hero-card--gold { border-color: var(--gold-border); }
.hero-card--gold::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-card--blue { border-color: var(--blue-border); }
.hero-card--blue::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.hero-card-brand {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.hero-card--gold .hero-card-brand { color: var(--gold); }
.hero-card--blue .hero-card-brand { color: var(--blue); }
.hero-card-desc {
  font-size: 0.835rem;
  color: var(--text-2);
  line-height: 1.55;
}
.hero-card-meta {
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* ==================== ABOUT / STATS ==================== */
.about { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-label { text-align: left; }
.about-text h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.2;
}
.about-text p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.about-text .btn { margin-top: 8px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--t) var(--ease);
}
.stat-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.45;
}

/* ==================== BRANDS ==================== */
.brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.brand-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: all var(--t) var(--ease);
}
.brand-card:hover { transform: translateY(-5px); }

.brand-card--docke {
  background: linear-gradient(145deg, #18120a 0%, #110e06 100%);
  border-color: var(--gold-border);
}
.brand-card--docke::before {
  content: '';
  position: absolute; top: -40%; right: -15%;
  width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232,201,122,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.brand-card--uplast {
  background: linear-gradient(145deg, #091018 0%, #060c14 100%);
  border-color: var(--blue-border);
}
.brand-card--uplast::before {
  content: '';
  position: absolute; top: -40%; left: -15%;
  width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(74,158,255,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.brand-name {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  line-height: 1;
  position: relative;
}
.brand-card--docke .brand-name { color: var(--gold); }
.brand-card--uplast .brand-name { color: var(--blue); }

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
  position: relative;
}

.brand-desc {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 0.93rem;
  position: relative;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
}
.brand-tag {
  font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.brand-card--docke .brand-tag {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.brand-card--uplast .brand-tag {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}
.brand-card--uplast .btn-ghost { color: var(--blue); }
.brand-card--uplast .btn-ghost::after { background: var(--blue); }

/* ==================== CATEGORIES ==================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.cat-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.cat-thumb {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cat-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  box-sizing: border-box;
  opacity: 0.88;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.cat-card:hover .cat-thumb-img {
  transform: scale(1.06);
  opacity: 1;
}
.cat-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon svg { width: 26px; height: 26px; color: rgba(255,255,255,0.8); }

.cat-body { padding: 20px 22px; }
.cat-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cat-desc { font-size: 0.83rem; color: var(--text-2); line-height: 1.5; }

.cat-thumb--korabelny { background: linear-gradient(160deg, #1c1308 0%, #2a1c10 50%, #181008 100%); }
.cat-thumb--kamen     { background: linear-gradient(160deg, #141020 0%, #1e1830 50%, #10101e 100%); }
.cat-thumb--derevo    { background: linear-gradient(160deg, #0e1205 0%, #1a1e08 50%, #10140a 100%); }
.cat-thumb--blokhaus  { background: linear-gradient(160deg, #1a0e06 0%, #261608 50%, #160c06 100%); }
.cat-thumb--timber    { background: linear-gradient(160deg, #0a0e18 0%, #10182a 50%, #080c18 100%); }
.cat-thumb--soffit    { background: linear-gradient(160deg, #0a0a16 0%, #12121e 50%, #08080e 100%); }

/* ==================== ADVANTAGES ==================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.adv-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.adv-card:hover::after { transform: scaleX(1); }
.adv-card:hover {
  border-color: rgba(232,201,122,0.14);
  transform: translateY(-3px);
}

.adv-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.adv-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.adv-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.adv-desc { font-size: 0.845rem; color: var(--text-2); line-height: 1.6; }

/* ==================== CTA BLOCK ==================== */
.cta-section { padding: 60px 0; }
.cta-inner {
  background: linear-gradient(140deg, #1a1309 0%, #100e08 40%, #080c12 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232,201,122,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  position: relative;
}
.cta-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* ==================== CONTACT on index ==================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-info > p {
  color: var(--text-2);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 17px; height: 17px; stroke: var(--gold); }
.contact-item-text { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }
.contact-item-text a { color: var(--text); font-weight: 600; }
.contact-item-text a:hover { color: var(--gold); }
.contact-item-text strong { display: block; color: var(--text); font-weight: 600; font-size: 0.82rem; margin-bottom: 2px; letter-spacing: 0.04em; text-transform: uppercase; }

.socials { display: flex; gap: 10px; margin-top: 28px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
  color: var(--text-2);
}
.social-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.social-link:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ==================== CONTACT FORM ==================== */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 38px;
}
.contact-form-wrap h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; letter-spacing: 0.03em; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--t);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold-border);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px rgba(232,201,122,0.07);
}
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-body { transition: all var(--t); }
.form-body.hidden { display: none; }

.form-success {
  display: none;
  text-align: center;
  padding: 28px 16px;
}
.form-success.visible { display: block; }
.form-success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-success-icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.form-success h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-2); font-size: 0.875rem; }

/* ==================== CATALOG PAGE ==================== */
.catalog-page { padding: 120px 0 80px; }

.catalog-header { margin-bottom: 44px; }
.catalog-header h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.catalog-header p { color: var(--text-2); font-size: 0.95rem; }

.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: 68px;
  flex-shrink: 0;
}
.filter-btn {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 15px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
  font-family: var(--font);
}
.filter-btn:hover { border-color: rgba(232,201,122,0.3); color: var(--text); }
.filter-btn.active {
  background: var(--gold);
  color: #0a0a0f;
  border-color: var(--gold);
  font-weight: 700;
}

.catalog-results {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 22px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t) var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.product-thumb {
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.product-thumb-logo {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  opacity: 0.10;
  line-height: 1;
}
.product-thumb-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.product-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-series {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-name {
  font-size: 0.985rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.product-desc {
  font-size: 0.825rem;
  color: var(--text-2);
  line-height: 1.58;
  flex: 1;
  margin-bottom: 16px;
}

/* ── Color carousel ───────────────────────────────────── */
.color-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.color-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.color-carousel::-webkit-scrollbar { display: none; }

.carousel-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-2);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.color-slide {
  flex-shrink: 0;
  width: 68px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.color-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 6px 4px 2px;
  background: transparent;
  display: block;
  pointer-events: none;
}
.color-slide span {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-3);
  padding: 3px 4px 5px;
  line-height: 1.25;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.color-slide:hover {
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}
.color-slide:hover span { color: var(--text); }
.color-slide.active {
  border-color: var(--gold);
}
.color-slide.active span { color: var(--gold); }

/* ── Plain dots (fallback for no images) ──────────────── */
.color-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  position: relative;
}
.color-dot[title]::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.68rem;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.color-dot:hover::after { opacity: 1; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-3);
}
.no-products p { font-size: 1rem; margin-top: 8px; }

/* ==================== CERTIFICATES PAGE ==================== */
.sert-page { padding: 120px 0 80px; }
.sert-header { margin-bottom: 48px; }
.sert-header h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.sert-header p { color: var(--text-2); font-size: 0.95rem; }

.sert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t) var(--ease);
  cursor: pointer;
}
.sert-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.sert-thumb {
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #14121e, #0e0c18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity var(--t);
  position: relative;
  overflow: hidden;
}
.sert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.sert-thumb .sert-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sert-thumb svg { width: 36px; height: 36px; stroke: var(--text-3); opacity: 0.5; }
.sert-placeholder-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sert-body { padding: 16px 18px; }
.sert-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.sert-sub { font-size: 0.78rem; color: var(--text-3); }

/* ==================== CONTACTS PAGE ==================== */
.contacts-page { padding: 120px 0 80px; }
.contacts-header { margin-bottom: 52px; }
.contacts-header h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.contacts-header p { color: var(--text-2); font-size: 0.95rem; }

/* ==================== MAP ==================== */
.map-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 56px;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  filter: grayscale(0.3) invert(0.92) hue-rotate(175deg) brightness(0.85) contrast(0.9);
}
.map-open-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--bg);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all var(--t) var(--ease);
}
.map-open-link:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(232,201,122,0.15);
}
.map-open-link svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 14px; font-size: 1.3rem; }
.footer-brand > p {
  font-size: 0.865rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-2);
  margin-bottom: 10px;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-3); transition: color var(--t); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-in.visible { opacity: 1; transform: translateY(0); }
.animate-in.delay-1 { transition-delay: 0.08s; }
.animate-in.delay-2 { transition-delay: 0.16s; }
.animate-in.delay-3 { transition-delay: 0.24s; }
.animate-in.delay-4 { transition-delay: 0.32s; }

.hero-content > * {
  animation: fadeInUp 0.7s var(--ease) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }

.hero-visual { animation: fadeIn 0.9s var(--ease) 0.3s both; }

/* ── Product card real image ───────────────────────────── */
.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
  padding: 12px;
  transition: opacity 0.25s ease;
}

/* ── Sert thumb as link ────────────────────────────────── */
a.sert-thumb {
  display: block;
  text-decoration: none;
}
a.sert-thumb:hover img {
  transform: scale(1.04);
  transition: transform 0.4s var(--ease);
}
.sert-thumb img {
  transition: transform 0.4s var(--ease);
}

/* ── Works gallery ─────────────────────────────────────── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.works-item {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease), opacity 0.3s;
  opacity: 0.9;
}
.works-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr 360px; gap: 40px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .sert-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .brands-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }

  .cta-inner { padding: 40px 28px; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .sert-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .brand-card { padding: 34px 28px; }
  .brand-name { font-size: 2rem; }
}

@media (max-width: 520px) {
  :root { --section-py: 52px; }

  .hero-title { font-size: 2.3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }

  .categories-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .sert-grid { grid-template-columns: 1fr 1fr; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-inner { padding: 32px 22px; }
  .cta-actions { flex-direction: column; align-items: stretch; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }

  .filter-row { gap: 6px; }
  .filter-label { min-width: auto; width: 100%; }
}
