/* =========================================================
   WAELBAU — Design System
   Solar · Elektromeister · Smart Home · Mülheim a. d. Ruhr
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---------- Theme Tokens ---------- */
:root {
  /* Accents */
  --solar:    #ffd23f;   /* Solar-Gelb   */
  --solar-2:  #ffb703;
  --elektro:  #2e8bff;   /* Elektro-Blau */
  --elektro-2:#0a5cff;
  --smart:    #1fd6c4;   /* Smart-Home-Türkis */
  --smart-2:  #0bb3a4;

  /* Dark base (default) */
  --bg:        #0a0e14;
  --bg-soft:   #0f1620;
  --bg-card:   #131c28;
  --bg-card-2: #18222f;
  --line:      rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --ink:       #f4f7fb;
  --ink-soft:  #aab6c6;
  --ink-dim:   #6c7a8d;

  --shadow-sm: 0 4px 18px rgba(0,0,0,.35);
  --shadow-md: 0 18px 50px rgba(0,0,0,.45);
  --shadow-glow-solar:  0 10px 40px rgba(255,210,63,.22);
  --shadow-glow-elektro:0 10px 40px rgba(46,139,255,.25);
  --shadow-glow-smart:  0 10px 40px rgba(31,214,196,.22);

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --grad-tri: linear-gradient(110deg, var(--solar) 0%, var(--elektro) 52%, var(--smart) 100%);
}

/* ---------- Light mode ---------- */
html[data-theme="light"] {
  --bg:        #f6f8fc;
  --bg-soft:   #eef2f8;
  --bg-card:   #ffffff;
  --bg-card-2: #f4f7fb;
  --line:      rgba(10,14,20,.09);
  --line-strong: rgba(10,14,20,.16);
  --ink:       #0e1622;
  --ink-soft:  #45546a;
  --ink-dim:   #7c8aa0;
  --shadow-sm: 0 4px 18px rgba(20,40,80,.08);
  --shadow-md: 0 18px 50px rgba(20,40,80,.12);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--elektro); color: #fff; }

/* ---------- Background atmosphere ---------- */
.bg-atmos {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(620px 420px at 12% 8%, rgba(255,210,63,.10), transparent 60%),
    radial-gradient(720px 520px at 88% 22%, rgba(46,139,255,.12), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(31,214,196,.10), transparent 60%);
  transition: opacity .5s var(--ease);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; padding: clamp(70px, 9vw, 130px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px;
}
.eyebrow::before { content:""; width: 30px; height: 2px; border-radius: 2px; background: var(--grad-tri); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); }

.text-gradient {
  background: var(--grad-tri);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl-solar  { color: var(--solar);   }
.hl-elektro{ color: var(--elektro); }
.hl-smart  { color: var(--smart);   }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 15px 28px; border-radius: 100px; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  color: #0a0e14; background: var(--grad-tri); background-size: 200% 200%;
  box-shadow: var(--shadow-glow-elektro);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(46,139,255,.4); background-position: 100% 50%; }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-strong); background: rgba(255,255,255,.02);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--smart); color: var(--smart); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent; padding: 8px 0;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.brand .logomark {
  width: 40px; height: 40px; border-radius: 12px; position: relative; flex: none;
  background: var(--grad-tri); box-shadow: var(--shadow-glow-elektro);
  display: grid; place-items: center; overflow: hidden;
}
.brand .logomark::after {
  content:""; position: absolute; inset: 3px; border-radius: 9px; background: var(--bg);
}
.brand .logomark svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.brand b { font-weight: 800; }
.brand span { color: var(--ink-soft); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  padding: 9px 15px; border-radius: 100px; color: var(--ink-soft);
  position: relative; transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--bg-card); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  transition: transform .4s var(--ease-bounce), color .3s, border-color .3s;
}
.theme-toggle:hover { transform: rotate(35deg) scale(1.08); color: var(--solar); border-color: var(--solar); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
html[data-theme="light"] .theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .moon { display: block; }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); z-index: 99;
  background: var(--bg-soft); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .5s var(--ease);
  padding: 100px 28px 40px; display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open { transform: translateX(0); box-shadow: -30px 0 80px rgba(0,0,0,.4); }
.mobile-menu a { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .4s; }
.scrim.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 100px; background: var(--bg-card);
  font-family: var(--font-display); font-size: .8rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--smart); box-shadow: 0 0 12px var(--smart); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:1 } 50%{ transform: scale(1.5); opacity:.5 } }
.hero h1 { margin-bottom: 22px; }
.hero h1 .word { display: inline-block; }
.hero p.lead { max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.hero-stats .stat .lbl { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); aspect-ratio: 4/5;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-card:hover img { transform: scale(1.06); }
.hero-card .scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(46,139,255,.08) 50%, transparent 100%);
  mix-blend-mode: screen;
}
.hero-float {
  position: absolute; background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(14px); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 13px;
}
.hero-float .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hero-float .ic svg { width: 22px; height: 22px; }
.hero-float .t b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.hero-float .t small { color: var(--ink-soft); font-size: .8rem; }
.hero-float.f1 { top: 8%; left: -34px; animation: floaty 6s ease-in-out infinite; }
.hero-float.f2 { bottom: 12%; right: -28px; animation: floaty 7s ease-in-out infinite .8s; }
.hero-float.f3 { bottom: 40%; left: -42px; animation: floaty 8s ease-in-out infinite .4s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }

/* ---------- Marquee / trust ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 70px; white-space: nowrap; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 14px; }
.marquee-track span::after { content:"◆"; color: var(--smart); font-size: .7rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content:""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(420px 200px at var(--mx,50%) 0%, color-mix(in srgb, var(--accent, var(--elektro)) 15%, transparent), transparent 70%);
}
.card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent, var(--elektro)) 45%, var(--line)); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent, var(--elektro)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--elektro)) 30%, transparent);
  transition: transform .5s var(--ease-bounce);
}
.card:hover .ic { transform: translateY(-4px) rotate(-6deg) scale(1.05); }
.card .ic svg { width: 30px; height: 30px; color: var(--accent, var(--elektro)); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--accent, var(--elektro)); }
.card .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .more svg { transform: translateX(5px); }
.card .num-tag { position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--line-strong); }

/* accent helpers */
.a-solar   { --accent: var(--solar);   }
.a-elektro { --accent: var(--elektro); }
.a-smart   { --accent: var(--smart);   }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1s var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
.media-badge {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  background: color-mix(in srgb, var(--bg-card) 86%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
}
.media-badge .seal { width: 50px; height: 50px; border-radius: 12px; background: var(--grad-tri); display: grid; place-items: center; flex: none; }
.media-badge .seal svg { width: 26px; height: 26px; color: #0a0e14; }

.feature-list { display: grid; gap: 18px; margin-top: 30px; }
.feature-list li { display: flex; gap: 15px; align-items: flex-start; }
.feature-list .chk { width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--smart) 16%, transparent); display: grid; place-items: center; flex: none; margin-top: 3px; }
.feature-list .chk svg { width: 15px; height: 15px; color: var(--smart); }
.feature-list b { font-family: var(--font-display); display: block; margin-bottom: 2px; }
.feature-list span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-box { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 30px 26px; text-align: center; transition: transform .4s var(--ease), border-color .4s; }
.stat-box:hover { transform: translateY(-6px); border-color: var(--smart); }
.stat-box .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem,4vw,3rem); line-height: 1; }
.stat-box .lbl { color: var(--ink-soft); margin-top: 10px; font-size: .92rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step .n { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; background: var(--grad-tri); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--ink-soft); font-size: .94rem; }
.step::after { content:""; position: absolute; top: 30px; left: 64px; right: -22px; height: 2px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.step:last-child::after { display: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-rows: 230px; }
.gtile { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gtile:hover img { transform: scale(1.1); }
.gtile .cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; transform: translateY(8px); opacity: 0; transition: all .4s var(--ease); }
.gtile:hover .cap { transform: translateY(0); opacity: 1; }
.gtile .cap b { font-family: var(--font-display); display: block; font-size: 1.05rem; }
.gtile .cap small { opacity: .8; }
.gtile.wide { grid-column: span 2; }
.gtile.tall { grid-row: span 2; }

/* ---------- Testimonials ---------- */
.tslider { position: relative; overflow: hidden; }
.ttrack { display: flex; transition: transform .7s var(--ease); }
.tcard { flex: 0 0 100%; padding: 6px; }
.tcard-inner { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 46px clamp(28px,5vw,60px); text-align: center; max-width: 820px; margin-inline: auto; }
.tcard .stars { display: flex; gap: 4px; justify-content: center; margin-bottom: 22px; color: var(--solar); }
.tcard .stars svg { width: 22px; height: 22px; }
.tcard blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem,2.2vw,1.6rem); line-height: 1.45; letter-spacing: -.01em; margin-bottom: 28px; }
.tcard .who { display: flex; align-items: center; gap: 14px; justify-content: center; }
.tcard .who .av { width: 52px; height: 52px; border-radius: 50%; background: var(--grad-tri); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #0a0e14; }
.tcard .who .meta { text-align: left; }
.tcard .who b { font-family: var(--font-display); }
.tcard .who small { color: var(--ink-soft); }
.tnav { display: flex; gap: 12px; justify-content: center; margin-top: 34px; }
.tnav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); display: grid; place-items: center; transition: all .3s var(--ease); }
.tnav button:hover { background: var(--grad-tri); color: #0a0e14; border-color: transparent; transform: translateY(-2px); }
.tnav button svg { width: 20px; height: 20px; }
.tdots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.tdots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: all .3s; }
.tdots button.active { width: 28px; border-radius: 6px; background: var(--grad-tri); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius); overflow: hidden; padding: clamp(50px,7vw,90px); text-align: center; border: 1px solid var(--line); }
.cta-band::before { content:""; position: absolute; inset: 0; z-index: -1; background: var(--grad-tri); opacity: .14; }
.cta-band::after { content:""; position: absolute; inset: 0; z-index: -1; background: var(--bg-card); }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 600px; margin: 0 auto 32px; color: var(--ink-soft); }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:first-child { padding-top: 0; }
.contact-info .ic { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--bg-card); border: 1px solid var(--line); }
.contact-info .ic svg { width: 22px; height: 22px; color: var(--smart); }
.contact-info .info-item b { font-family: var(--font-display); display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-dim); margin-bottom: 4px; }
.contact-info .info-item a, .contact-info .info-item p { font-size: 1.08rem; }

.form { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px,4vw,42px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .9rem; margin-bottom: 8px; }
.field label .req { color: var(--solar); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 1rem;
  background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--elektro); box-shadow: 0 0 0 4px rgba(46,139,255,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--elektro); }
.consent label { font-size: .9rem; color: var(--ink-soft); }
.consent a { color: var(--smart); text-decoration: underline; }
.form-note { display: none; padding: 16px; border-radius: 12px; margin-top: 16px; font-size: .95rem; }
.form-note.show { display: block; }
.form-note.ok { background: color-mix(in srgb, var(--smart) 14%, transparent); border: 1px solid var(--smart); color: var(--ink); }
.form-note.err { background: color-mix(in srgb, #ff5a5a 14%, transparent); border: 1px solid #ff5a5a; color: var(--ink); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 16/8; background: var(--bg-card); }
.map-embed .map-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 30% 40%, rgba(46,139,255,.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(31,214,196,.12), transparent 50%),
    repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 18px, var(--bg-card) 18px, var(--bg-card) 36px);
}
.map-embed .pin { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; background: var(--grad-tri); transform: rotate(-45deg); display: grid; place-items: center; box-shadow: var(--shadow-md); margin: 0 auto 18px; animation: drop 2.5s var(--ease-bounce) infinite; }
.map-embed .pin svg { transform: rotate(45deg); width: 24px; height: 24px; color: #0a0e14; }
@keyframes drop { 0%,100%{ transform: rotate(-45deg) translateY(0) } 50%{ transform: rotate(-45deg) translateY(-10px) } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: 170px; padding-bottom: 60px; text-align: center; }
.page-hero .crumbs { font-family: var(--font-display); font-size: .85rem; color: var(--ink-dim); margin-bottom: 18px; }
.page-hero .crumbs a:hover { color: var(--smart); }
.page-hero h1 { max-width: 14ch; margin: 0 auto 20px; }
.page-hero p { max-width: 640px; margin: 0 auto; }

/* ---------- Service detail blocks ---------- */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: clamp(40px,6vw,80px) 0; border-bottom: 1px solid var(--line); }
.svc-block:nth-child(even) .svc-text { order: 2; }
.svc-block .svc-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.svc-block .svc-ic svg { width: 32px; height: 32px; color: var(--accent); }
.svc-block h2 { margin-bottom: 16px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.svc-tags span { font-family: var(--font-display); font-size: .82rem; font-weight: 500; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.team-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-card .ph { aspect-ratio: 1; overflow: hidden; }
.team-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.team-card:hover .ph img { transform: scale(1.08); }
.team-card .body { padding: 24px; }
.team-card .body b { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.team-card .body .role { color: var(--smart); font-family: var(--font-display); font-weight: 500; font-size: .9rem; margin-bottom: 10px; }
.team-card .body p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Values ---------- */
.value-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .4s var(--ease), border-color .4s; }
.value-card:hover { transform: translateY(-6px); border-color: var(--accent, var(--elektro)); }
.value-card .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: color-mix(in srgb, var(--accent,var(--elektro)) 14%, transparent); }
.value-card .ic svg { width: 26px; height: 26px; color: var(--accent,var(--elektro)); }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Cert badges ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 18px; }
.cert { display: flex; gap: 14px; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; transition: border-color .3s, transform .3s; }
.cert:hover { border-color: var(--solar); transform: translateY(-4px); }
.cert .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--solar) 16%, transparent); }
.cert .ic svg { width: 22px; height: 22px; color: var(--solar); }
.cert b { font-family: var(--font-display); display: block; font-size: .98rem; }
.cert small { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.faq-q .pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--grad-tri); color: #0a0e14; border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { color: var(--ink-soft); padding-bottom: 24px; max-width: 90%; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 150px; }
.legal-body { max-width: 820px; margin-inline: auto; }
.legal-body h2 { font-size: 1.55rem; margin: 44px 0 16px; }
.legal-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: 14px; font-size: 1rem; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body a { color: var(--smart); text-decoration: underline; }
.legal-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; margin-bottom: 18px; }
.legal-card p { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; margin-top: 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer .brand { margin-bottom: 18px; }
.footer-col h4 { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim); margin-bottom: 18px; }
.footer-col p { color: var(--ink-soft); font-size: .95rem; max-width: 30ch; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col ul a { color: var(--ink-soft); font-size: .95rem; transition: color .3s, padding .3s; }
.footer-col ul a:hover { color: var(--ink); padding-left: 5px; }
.footer-contact a { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); margin-bottom: 12px; transition: color .3s; }
.footer-contact a:hover { color: var(--smart); }
.footer-contact svg { width: 18px; height: 18px; color: var(--smart); flex: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: .88rem; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .3s var(--ease); }
.footer-bottom .socials a:hover { background: var(--grad-tri); color: #0a0e14; border-color: transparent; transform: translateY(-3px); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader .pl-logo { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader .pl-mark { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-tri); position: relative; animation: plspin 1.4s var(--ease-bounce) infinite; }
.preloader .pl-mark::after { content:""; position: absolute; inset: 5px; border-radius: 13px; background: var(--bg); }
@keyframes plspin { 0%,100%{ transform: rotate(0) scale(1) } 50%{ transform: rotate(180deg) scale(.85) } }
.preloader .pl-bar { width: 180px; height: 4px; border-radius: 4px; background: var(--bg-card); overflow: hidden; }
.preloader .pl-bar i { display: block; height: 100%; width: 40%; background: var(--grad-tri); border-radius: 4px; animation: plbar 1.2s var(--ease) infinite; }
@keyframes plbar { 0%{ transform: translateX(-100%) } 100%{ transform: translateX(350%) } }
.preloader .pl-name { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.3rem; }

/* ---------- Chat widget ---------- */
.chat-fab { position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--grad-tri); box-shadow: var(--shadow-glow-elektro); display: grid; place-items: center; transition: transform .4s var(--ease-bounce); }
.chat-fab:hover { transform: scale(1.1) rotate(8deg); }
.chat-fab svg { width: 28px; height: 28px; color: #0a0e14; }
.chat-fab .badge { position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--solar); color: #0a0e14; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.chat-panel { position: fixed; bottom: 100px; right: 26px; z-index: 90; width: min(360px, calc(100vw - 40px)); background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow-md); overflow: hidden; transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; transform-origin: bottom right; transition: all .4s var(--ease); }
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.chat-head { background: var(--grad-tri); padding: 20px 22px; color: #0a0e14; }
.chat-head b { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.chat-head small { opacity: .8; }
.chat-body { padding: 22px; display: grid; gap: 14px; }
.chat-msg { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: .94rem; color: var(--ink-soft); }
.chat-body .btn { width: 100%; justify-content: center; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-60px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(60px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-r.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay: .08s; } [data-delay="2"]{ transition-delay: .16s; }
[data-delay="3"]{ transition-delay: .24s; } [data-delay="4"]{ transition-delay: .32s; }
[data-delay="5"]{ transition-delay: .4s; } [data-delay="6"]{ transition-delay: .48s; }

/* Text reveal (hero words) */
.reveal-text .word { opacity: 0; transform: translateY(110%); display: inline-block; animation: wordUp .8s var(--ease) forwards; }
@keyframes wordUp { to { opacity: 1; transform: none; } }

.parallax { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step::after { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .hero-float.f1 { left: -10px; } .hero-float.f2 { right: -6px; } .hero-float.f3 { left: -10px; }
  .split, .contact-grid, .svc-block { grid-template-columns: 1fr; gap: 36px; }
  .svc-block:nth-child(even) .svc-text { order: 0; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .team-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 180px; }
  .gtile.wide { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
