/* ==========================================================================
   TOJIK ALMOS — corporate filter manufacturer, Kulob, Tajikistan
   Design system: "Trust & Authority" · Navy + Blue + Red + White
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #071A33;
  --navy-800: #0A2140;
  --navy-700: #0E2C52;
  --blue-600: #0E4FAD;
  --blue-500: #135FCB;
  --blue-400: #2E7CE4;
  --blue-050: #EAF2FD;
  --red-600:  #C21610;
  --red-500:  #E2231A;
  --red-050:  #FDECEA;

  /* Neutrals */
  --ink:      #0B1626;
  --slate-700:#33475F;
  --slate-500:#5A6B82;
  --slate-400:#8496AC;
  --line:     #E2E9F2;
  --steel:    #DDE5EF;
  --bg:       #F4F7FB;
  --bg-alt:   #EDF2F8;
  --white:    #FFFFFF;

  /* Semantic */
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: var(--slate-500);

  /* Type */
  --font-head: 'Montserrat', system-ui, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, 'Segoe UI', sans-serif;

  /* Spacing (8pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(11,22,38,.06), 0 1px 3px rgba(11,22,38,.08);
  --sh-md: 0 6px 18px rgba(11,22,38,.08), 0 2px 6px rgba(11,22,38,.05);
  --sh-lg: 0 20px 45px rgba(11,22,38,.14), 0 8px 18px rgba(11,22,38,.08);
  --sh-blue: 0 14px 30px rgba(19,95,203,.28);
  --sh-red: 0 14px 30px rgba(226,35,26,.26);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);

  color-scheme: light dark;
}

/* ------- Reset ------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.14; letter-spacing: -.01em; margin: 0; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

/* ------- Layout helpers ------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-9); }
@media (max-width: 720px){ .section { padding-block: var(--sp-8); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600);
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--red-500); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-4); color: var(--text-muted); font-size: 1.05rem; }

/* ------- Buttons ------- */
.btn {
  --btn-bg: var(--blue-500);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 14px 26px; border: 0; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: #fff; background: var(--btn-bg); white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: var(--sh-sm);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); box-shadow: var(--sh-blue); }
.btn-primary:hover { box-shadow: 0 18px 38px rgba(19,95,203,.36); }
.btn-red { background: linear-gradient(135deg, var(--red-500), var(--red-600)); box-shadow: var(--sh-red); }
.btn-red:hover { box-shadow: 0 18px 38px rgba(226,35,26,.34); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--steel); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue-400); color: var(--blue-600); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled { background: rgba(255,255,255,.94); border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.header .container { display: flex; align-items: center; gap: var(--sp-4); }

.brand { display: flex; align-items: center; gap: var(--sp-3); margin-right: auto; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; color: var(--navy-800); }
.brand-text span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav a {
  padding: 10px 13px; border-radius: var(--r-sm); font-weight: 500; font-size: .95rem; white-space: nowrap;
  color: var(--slate-700); position: relative; transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--blue-600); background: var(--blue-050); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Language toggle */
.lang { display: inline-flex; background: var(--bg-alt); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.lang button {
  border: 0; background: transparent; padding: 7px 13px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--slate-500);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang button.active { background: #fff; color: var(--blue-600); box-shadow: var(--sh-sm); }

.header-phone { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--ink); font-size: .92rem; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--red-500); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-sm); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 21px; } .burger span:nth-child(3){ top: 27px; }
body.menu-open .burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; padding-top: calc(var(--header-h) + var(--sp-8)); padding-bottom: var(--sp-8);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(46,124,228,.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(226,35,26,.16), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, #0C2547);
  color: #fff; overflow: hidden;
}
.hero::after {
  content:""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); align-items: center; }
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2); padding: 7px 15px; margin-bottom: var(--sp-5);
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: #DCE8FA;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #37D67A; box-shadow: 0 0 0 4px rgba(55,214,122,.22); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero h1 .accent { color: #6FB0FF; }
.hero-copy p.lead { margin-top: var(--sp-5); font-size: 1.15rem; line-height: 1.6; color: #C4D3E8; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-7); }
.hero-chip { display: flex; align-items: center; gap: var(--sp-3); }
.hero-chip .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); flex: none; }
.hero-chip .ic svg { width: 22px; height: 22px; color: #8FBBFF; }
.hero-chip b { display: block; font-family: var(--font-head); font-size: .98rem; color: #fff; }
.hero-chip span { font-size: .8rem; color: #9DB2CE; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-glow { position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(74,150,255,.5), rgba(74,150,255,0) 65%); filter: blur(10px); }
.hero-visual img { position: relative; z-index: 2; filter: drop-shadow(0 30px 45px rgba(0,0,0,.5)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
@media (prefers-reduced-motion: reduce){ .hero-visual img { animation: none; } }

/* marquee strip */
.strip { background: var(--navy-900); color: #9FB4D2; border-top: 1px solid rgba(255,255,255,.08); }
.strip .container { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; justify-content: center; padding-block: var(--sp-4); }
.strip span { font-family: var(--font-head); font-weight: 600; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: var(--sp-2); }
.strip span svg { width: 16px; height: 16px; color: var(--blue-400); }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { margin-top: calc(-1 * var(--sp-8)); position: relative; z-index: 5; }
.stats .grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-lg); }
.stat { text-align: center; padding: var(--sp-2); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem,3vw,2.3rem); color: var(--blue-600); line-height: 1; }
.stat .lab { margin-top: var(--sp-2); font-size: .9rem; color: var(--text-muted); }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 820px){ .stats .grid { grid-template-columns: repeat(2,1fr); } .stat:nth-child(3){ border-left: 0; } .stat:nth-child(odd){ border-left: 0; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.about-media { position: relative; }
.about-media .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 6px solid #fff; }

/* About factory slider (auto-crossfade) */
.slider { position: relative; }
.slider .slides { position: relative; height: 480px; }
.slider .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; visibility: hidden; transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 5s ease-out, visibility .9s;
}
.slider .slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.slider .slide.is-prev { opacity: 0; visibility: visible; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.slider-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.4);
  transition: background .25s var(--ease), width .25s var(--ease);
}
.slider-dots button:hover { background: rgba(255,255,255,.8); }
.slider-dots button.active { background: #fff; width: 22px; }
@media (prefers-reduced-motion: reduce) {
  .slider .slide { transition: opacity .35s linear, visibility .35s; transform: none; }
  .slider .slide.is-active { transform: none; }
}
.about-media .badge {
  position: absolute; left: -18px; bottom: -18px; background: linear-gradient(135deg,var(--blue-500),var(--blue-600));
  color: #fff; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); box-shadow: var(--sh-blue); max-width: 220px;
}
.about-media .badge b { font-family: var(--font-head); font-size: 1.7rem; display: block; }
.about-media .badge span { font-size: .82rem; color: #D6E6FF; }
.about-copy h2 { font-size: clamp(1.7rem,3.2vw,2.5rem); }
.about-copy p { margin-top: var(--sp-4); color: var(--slate-700); }
.about-list { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); }
.about-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.about-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-050); color: var(--blue-600); display: grid; place-items: center; margin-top: 2px; }
.about-list .tick svg { width: 15px; height: 15px; }
.about-list b { font-family: var(--font-head); display: block; font-size: 1rem; }
.about-list span { color: var(--text-muted); font-size: .94rem; }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products { background: linear-gradient(180deg,#fff, var(--bg-alt)); }
.prod-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-7); }
.prod-tab {
  border: 1.5px solid var(--steel); background: #fff; color: var(--slate-700);
  padding: 9px 20px; border-radius: var(--r-pill); font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  transition: all .2s var(--ease);
}
.prod-tab:hover { border-color: var(--blue-400); color: var(--blue-600); }
.prod-tab.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.prod-thumb { position: relative; aspect-ratio: 4/3; background: radial-gradient(circle at 50% 40%, #fff, var(--bg-alt)); display: grid; place-items: center; padding: var(--sp-5); }
.prod-thumb img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(11,22,38,.16)); transition: transform .3s var(--ease); }
.prod-card:hover .prod-thumb img { transform: scale(1.05); }
.prod-cat { position: absolute; top: var(--sp-3); left: var(--sp-3); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); color: #fff; }
.cat-air { background: var(--blue-500); } .cat-oil { background: var(--red-500); } .cat-cabin { background: #2E9E6B; }
.prod-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); border-top: 1px solid var(--line); }
.prod-body h3 { font-size: 1.12rem; }
.prod-body p { margin-top: var(--sp-2); font-size: .9rem; color: var(--text-muted); }
.prod-body .more { margin-top: var(--sp-4); display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue-600); }
.prod-body .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.prod-card:hover .more svg { transform: translateX(4px); }
.is-hidden { display: none !important; }

/* ==========================================================================
   PRODUCTION / GALLERY
   ========================================================================== */
.production { background: var(--navy-900); color: #fff; }
.production .section-head h2 { color: #fff; }
.production .section-head p { color: #A9BDD9; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--sp-3); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer; background: #0D2340; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figure::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,26,51,.72)); opacity: 0; transition: opacity .3s var(--ease); }
.gallery figure:hover::after { opacity: 1; }
.gallery figcaption { position: absolute; left: var(--sp-4); bottom: var(--sp-3); right: var(--sp-4); z-index: 2; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; transform: translateY(8px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.gallery figure:hover figcaption { transform: translateY(0); opacity: 1; }
.g-tall { grid-row: span 2; } .g-wide { grid-column: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,14,28,.9); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: var(--sp-5); }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox .lb-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; display: grid; place-items: center; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox .lb-nav svg { width: 24px; height: 24px; }
.lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
.lightbox .lb-nav:hover, .lightbox .lb-close:hover { background: rgba(255,255,255,.24); }

/* ==========================================================================
   EXPORT & WHOLESALE
   ========================================================================== */
.export { position: relative; overflow: hidden; }
.export .grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.export-copy h2 { font-size: clamp(1.7rem,3.2vw,2.5rem); }
.export-copy > p { margin-top: var(--sp-4); color: var(--slate-700); font-size: 1.05rem; }
.export-feats { margin-top: var(--sp-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.export-feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.export-feat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.export-feat .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-050); color: var(--blue-600); display: grid; place-items: center; margin-bottom: var(--sp-3); }
.export-feat .ic svg { width: 21px; height: 21px; }
.export-feat b { font-family: var(--font-head); font-size: 1rem; display: block; }
.export-feat span { font-size: .88rem; color: var(--text-muted); }
.export-cta { margin-top: var(--sp-7); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.export-panel { background: linear-gradient(155deg, var(--navy-800), var(--navy-700)); border-radius: var(--r-lg); padding: var(--sp-7); color: #fff; box-shadow: var(--sh-lg); position: relative; overflow: hidden; }
.export-panel::before { content:""; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(46,124,228,.5), transparent 70%); }
.export-panel h3 { color: #fff; font-size: 1.4rem; position: relative; }
.export-panel p.sub { color: #B7CAE6; margin-top: var(--sp-2); position: relative; }
.export-steps { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); position: relative; }
.export-step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.export-step .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #8FBBFF; }
.export-step b { font-family: var(--font-head); display: block; font-size: 1rem; }
.export-step span { font-size: .9rem; color: #A9BDD9; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.contact .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--sp-8); align-items: stretch; }
.contact-info { display: grid; gap: var(--sp-4); align-content: start; }
.contact-card { display: flex; gap: var(--sp-4); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.contact-card .ic { flex: none; width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.contact-card .ic.blue { background: linear-gradient(135deg,var(--blue-500),var(--blue-600)); }
.contact-card .ic.red { background: linear-gradient(135deg,var(--red-500),var(--red-600)); }
.contact-card .ic.green { background: linear-gradient(135deg,#28B463,#1E874B); }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-card .lab { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); font-weight: 700; }
.contact-card .val { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); line-height: 1.35; }
.contact-card .val a:hover { color: var(--blue-600); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-7); box-shadow: var(--sh-md); }
.contact-form h3 { font-size: 1.4rem; }
.contact-form > p { color: var(--text-muted); margin-top: var(--sp-2); font-size: .95rem; }
.field { margin-top: var(--sp-4); }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.field label .req { color: var(--red-500); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--steel); border-radius: var(--r-sm);
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-050); }
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.contact-form .btn { width: 100%; margin-top: var(--sp-5); }
.form-note { margin-top: var(--sp-3); font-size: .82rem; color: var(--slate-400); text-align: center; }

.map-wrap { margin-top: var(--sp-4); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); height: 220px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-900); color: #A9BDD9; padding-top: var(--sp-8); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer .brand-text b { color: #fff; } .footer .brand-text span { color: #6E85A6; }
.footer .brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.footer .about { margin-top: var(--sp-4); font-size: .92rem; line-height: 1.7; max-width: 320px; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--sp-4); }
.footer ul { display: grid; gap: var(--sp-3); }
.footer ul a, .footer ul li { font-size: .94rem; color: #A9BDD9; transition: color .18s var(--ease); display: inline-flex; align-items: center; gap: var(--sp-2); }
.footer ul a:hover { color: #fff; }
.footer ul svg { width: 16px; height: 16px; color: var(--blue-400); flex: none; }
.footer .social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer .social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s var(--ease), transform .2s var(--ease); }
.footer .social a:hover { background: var(--blue-500); transform: translateY(-2px); }
.footer .social svg { width: 20px; height: 20px; color: #fff; }
.footer .bar { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--sp-5); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: .86rem; color: #7A90B2; }

/* ==========================================================================
   MOBILE STICKY CALL / WHATSAPP BAR (shown on small screens only)
   ========================================================================== */
.mobile-cta { display: none; }
.mcta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 52px; border-radius: var(--r-pill); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  box-shadow: var(--sh-md); transition: transform .15s var(--ease);
}
.mcta:active { transform: scale(.98); }
.mcta svg { width: 20px; height: 20px; }
.mcta-call { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); }
.mcta-wa { background: linear-gradient(135deg, #28B463, #1E874B); }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px){ .header-phone { display: none; } }
@media (max-width: 1000px){
  .nav { display: none; }
  .burger { display: block; }
  .header-phone { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; margin-inline: auto; }
  .about .grid, .export .grid, .contact .grid { grid-template-columns: 1fr; }
  .about-media .slides { height: 360px; }
  .prod-grid { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }

  /* Mobile nav drawer */
  .nav.mobile {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-1);
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-md);
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    transform: translateY(-120%); transition: transform .32s var(--ease); pointer-events: none;
  }
  body.menu-open .nav.mobile { transform: translateY(0); pointer-events: auto; }
  .nav.mobile a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav.mobile a.btn { margin-top: var(--sp-3); color: #fff; justify-content: center; }
  .nav.mobile a.btn:hover { background: var(--red-600); color: #fff; }
}

/* Sticky call / WhatsApp bar — phones */
@media (max-width: 760px){
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px) saturate(1.3);
    border-top: 1px solid var(--line);
  }
  /* reserve space so the fixed bar never hides footer content */
  .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 620px){
  .prod-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .g-wide { grid-column: span 2; }
  .export-feats, .form-row { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .about-media .badge { position: static; margin-top: var(--sp-4); max-width: none; }
  .brand-text span { display: none; }
  .contact-form { padding: var(--sp-5); }

  /* Roomier, thumb-friendly hero on phones */
  .hero { padding-top: calc(var(--header-h) + var(--sp-6)); }
  .hero-visual { max-width: 300px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-chips { gap: var(--sp-4); }
  .about-media .slides { height: 300px; }
}

/* ==========================================================================
   DARK MODE — follows the device / OS setting (prefers-color-scheme)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* Neutrals → dark */
    --ink:        #EAF0F8;
    --text:       #EAF0F8;
    --text-muted: #9DAEC6;
    --slate-700:  #BCC8DA;
    --slate-500:  #9DAEC6;
    --slate-400:  #7789A3;
    --line:       #26374F;
    --steel:      #33445F;
    --bg:         #091320;
    --bg-alt:     #0D1A2B;
    --white:      #152238;   /* repurposed as the card surface */
    --surface:    #152238;
    --blue-050:   #16294380;  /* soft blue tint for icon chips */

    /* Deeper shadows for depth on dark surfaces */
    --sh-sm: 0 1px 2px rgba(0,0,0,.35);
    --sh-md: 0 6px 18px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.35);
    --sh-lg: 0 20px 45px rgba(0,0,0,.55), 0 8px 18px rgba(0,0,0,.4);
  }

  /* Surfaces that used literal white */
  .stats .grid,
  .prod-card,
  .prod-tab,
  .export-feat,
  .contact-card,
  .contact-form { background: var(--surface); }

  .products { background: linear-gradient(180deg, var(--bg), var(--bg-alt)); }
  .contact  { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
  .prod-thumb { background: radial-gradient(circle at 50% 40%, #1D2B45, var(--bg-alt)); }
  .about-media .frame { border-color: var(--surface); }

  /* Header translucency */
  .header { background: rgba(9,17,29,.78); }
  .header.scrolled { background: rgba(9,17,29,.95); border-bottom-color: var(--line); }

  /* Language toggle */
  .lang button.active { background: var(--surface); color: #86B7FF; }

  /* Accent colors need lightening for contrast on dark backgrounds */
  .eyebrow,
  .stat .num,
  .prod-body .more,
  .about-list .tick,
  .export-feat .ic { color: #6FB0FF; }

  .nav a:hover,
  .prod-tab:hover,
  .btn-ghost:hover { color: #6FB0FF; }

  /* Form fields */
  .field input, .field textarea, .field select { background: var(--surface); color: var(--ink); }
  .field select option { background: var(--surface); color: var(--ink); }
  .field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }

  /* Map: render the light OSM tiles as a dark map */
  .map-wrap iframe { filter: invert(.9) hue-rotate(180deg) brightness(.9) contrast(.95); }

  /* Keep the transparent logo readable on dark */
  .brand img { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }

  /* Header brand wordmark: navy → light so it stays legible on the dark bar
     (footer keeps its own #fff rule, which is more specific) */
  .brand-text b { color: var(--ink); }
  .brand-text span { color: var(--slate-400); }

  /* Mobile nav drawer + sticky CTA bar on dark */
  .nav.mobile { background: rgba(9,17,29,.98); border-bottom-color: var(--line); }
  .mobile-cta { background: rgba(9,17,29,.94); border-top-color: var(--line); }
}
