/* ==========================================================================
   Promax Media — hlavní stylopis (redesign 2026)
   ========================================================================== */

/* ── RESET + TOKENS ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:        #e8412a;
  --red-dark:   #c73520;
  --red-glow:   rgba(232, 65, 42, .35);

  --bg:         #0d0a0a;
  --surface:    rgba(255, 255, 255, .04);
  --surface2:   rgba(255, 255, 255, .07);
  --border:     rgba(255, 255, 255, .08);
  --border2:    rgba(255, 255, 255, .14);
  --text:       #f0ebe8;
  --muted:      rgba(240, 235, 232, .55);
  --muted2:     rgba(240, 235, 232, .35);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --container:  1200px;
  --header-h:   68px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── BG LAYERS ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 15% 50%, rgba(180,30,20,.18) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 85% 20%, rgba(120,20,10,.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(80,10,5,.25) 0%, transparent 60%);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
}

/* ── NAV ── */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,10,10,.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
nav#main-nav.scrolled { background: rgba(13,10,10,.92); }

.nav-logo {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--red), #ff6b50);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff;
  box-shadow: 0 0 16px var(--red-glow); flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: .875rem; font-weight: 500;
  padding: .45rem .85rem; border-radius: var(--radius-sm);
  transition: color .2s, background .2s; position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 99px;
  background: var(--red); box-shadow: 0 0 8px var(--red-glow);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .5rem 1.2rem; border-radius: 10px;
  font-size: .875rem; font-weight: 600; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, #ff5540 100%);
  box-shadow: 0 0 22px var(--red-glow), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s, filter .2s;
  position: relative; overflow: hidden;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.nav-cta:active { transform: scale(.98); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .4rem; color: var(--text); border-radius: var(--radius-sm);
  transition: background .2s;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle svg { display: block; }
.nav-toggle__close { display: none; }

/* ── SECTION WRAPPER ── */
.section {
  position: relative; z-index: 1;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
}
.section-inner, .container {
  max-width: var(--container); margin: 0 auto;
}

/* ── SECTION LABELS ── */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: .75rem;
}
.section-title-center {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem;
}
.section-sub-center {
  text-align: center; color: var(--muted); font-size: 1rem;
  max-width: 520px; margin: 0 auto 3.5rem;
}

/* ── FLOATING BLOBS ── */
.glow-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(70px); z-index: 0;
  animation: float 7s ease-in-out infinite;
}
.glow-blob-r { width: 350px; height: 350px; background: rgba(180,30,15,.14); }
.glow-blob-l { width: 250px; height: 250px; background: rgba(100,10,5,.12); animation-delay: -3.5s; }

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center;
  padding: 80px clamp(1.5rem, 8vw, 6rem) 2rem;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  width: 100%; max-width: 1280px; margin: 0 auto;
}
.hero-content { display: flex; flex-direction: column; gap: 1.75rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: .4rem 1rem; border-radius: 99px;
  background: rgba(232,65,42,.1); border: 1px solid rgba(232,65,42,.25);
  font-size: .78rem; font-weight: 600; color: #ff7a68;
  letter-spacing: .06em; text-transform: uppercase;
  animation: fadeUp .6s ease both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 6px var(--red-glow);
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  animation: fadeUp .6s .1s ease both;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 30%, #ff9f90 70%, var(--red));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.025rem; line-height: 1.75; color: var(--muted);
  max-width: 520px; animation: fadeUp .6s .2s ease both;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  animation: fadeUp .6s .3s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.75rem; border-radius: var(--radius-md);
  font-size: .95rem; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--red) 0%, #ff5540 100%);
  box-shadow: 0 0 28px var(--red-glow), 0 4px 14px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-primary:hover {
  transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: 0 0 40px var(--red-glow), 0 8px 24px rgba(0,0,0,.5);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.75rem; border-radius: var(--radius-md);
  font-size: .95rem; font-weight: 600; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .2s, border-color .2s, transform .2s;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--surface2); border-color: var(--border2);
  transform: translateY(-2px);
}

/* Alias for legal/404 pages */
.btn, .btn--primary { display: inline-flex; align-items: center; gap: 8px; padding: .75rem 1.75rem; border-radius: var(--radius-md); font-size: .95rem; font-weight: 700; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--red) 0%, #ff5540 100%); box-shadow: 0 0 28px var(--red-glow), 0 4px 14px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s, filter .2s; border: none; cursor: pointer; font-family: inherit; }
.btn:hover, .btn--primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn--outline { background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.btn--outline:hover { background: var(--surface2); border-color: var(--border2); filter: none; }

.hero-stats {
  display: flex; gap: 2rem; padding-top: .5rem;
  animation: fadeUp .6s .4s ease both;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.stat-num span { color: var(--red); }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

/* Hero visual card */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fadeIn .8s .2s ease both; position: relative;
}
.visual-card {
  width: 100%; max-width: 480px; aspect-ratio: 1 / .85;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); backdrop-filter: blur(20px);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
}
.visual-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,65,42,.18) 0%, transparent 70%);
  pointer-events: none;
}
.vc-top { display: flex; align-items: center; justify-content: space-between; }
.vc-dots { display: flex; gap: 6px; }
.vc-dot { width: 10px; height: 10px; border-radius: 50%; }
.vc-dot:nth-child(1) { background: #e84242; }
.vc-dot:nth-child(2) { background: #f5a623; }
.vc-dot:nth-child(3) { background: #29d458; }
.vc-status {
  font-size: .72rem; font-weight: 600; color: #4ade80;
  letter-spacing: .05em; display: flex; align-items: center; gap: 5px;
}
.vc-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; animation: pulse 2s ease infinite;
}
.vc-code {
  font-family: 'Courier New', monospace; font-size: .78rem; line-height: 1.7;
  color: rgba(240,235,232,.7);
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-md); padding: 1rem 1.2rem;
  flex: 1; overflow: hidden;
}
.vc-code .kw { color: #ff8b73; }
.vc-code .fn { color: #79c0ff; }
.vc-code .str { color: #a5d6ff; }
.vc-code .cm { color: rgba(255,255,255,.28); font-style: italic; }
.vc-code .var { color: #ffa657; }
.vc-services { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.vc-chip {
  display: flex; align-items: center; gap: 7px;
  padding: .55rem .85rem; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  font-size: .78rem; font-weight: 500; color: var(--muted);
  transition: background .2s, border-color .2s, color .2s; cursor: default;
}
.vc-chip:hover { background: rgba(232,65,42,.08); border-color: rgba(232,65,42,.2); color: var(--text); }

/* ══════════════ O NÁS ══════════════ */
#o-nas { border-top: 1px solid var(--border); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-content { display: flex; flex-direction: column; gap: 1.5rem; }
.about-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.about-body { display: flex; flex-direction: column; gap: 1rem; }
.about-body p { color: var(--muted); line-height: 1.8; font-size: .95rem; }
.about-body strong { color: var(--text); font-weight: 600; }

.about-visual { position: relative; }
.about-img-wrap {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0,0,0,.5); aspect-ratio: 4/3;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.stat-float {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: .9rem 1.4rem; border-radius: 14px;
  background: rgba(13,10,10,.75); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border2); box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.stat-float-1 { top: -18px; right: -18px; }
.stat-float-2 { bottom: -18px; left: -18px; }
.stat-float-num {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -.05em;
  background: linear-gradient(120deg, #fff, var(--red));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-float-label { font-size: .75rem; color: var(--muted); font-weight: 500; }

/* ══════════════ SLUŽBY ══════════════ */
#sluzby { border-top: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.services-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }

.service-card {
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1rem;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  cursor: default; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,65,42,.06), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover {
  background: var(--surface2); border-color: rgba(232,65,42,.2);
  transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .svc-icon { box-shadow: 0 0 24px var(--red-glow); }

.svc-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(232,65,42,.18), rgba(232,65,42,.06));
  border: 1px solid rgba(232,65,42,.2);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .25s; flex-shrink: 0;
}
.svc-icon svg {
  width: 20px; height: 20px; stroke: var(--red); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.svc-title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.svc-desc { font-size: .845rem; color: var(--muted); line-height: 1.75; }

/* ══════════════ REFERENCE ══════════════ */
#reference { border-top: 1px solid var(--border); }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.ref-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ref-card:hover {
  transform: translateY(-5px); border-color: rgba(232,65,42,.25);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.ref-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.ref-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.ref-card:hover .ref-thumb img { transform: scale(1.04); }
.ref-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,10,10,.7));
  pointer-events: none;
}
.ref-ext {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(13,10,10,.7); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, background .2s;
  z-index: 2;
}
.ref-ext svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ref-card:hover .ref-ext { opacity: 1; transform: translateY(0); }
.ref-ext:hover { background: var(--red); }

.ref-body { padding: 1.1rem 1.25rem 1.25rem; }
.ref-name { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.ref-desc { font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* ══════════════ KONTAKT ══════════════ */
#kontakt { border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 2.25rem; display: flex; flex-direction: column; gap: 1.5rem;
  box-shadow: 0 0 60px rgba(0,0,0,.4);
}
.contact-form-head {
  display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center;
}
.contact-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,65,42,.2), rgba(232,65,42,.06));
  border: 1px solid rgba(232,65,42,.25);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-form-head h3 { font-size: 1.25rem; font-weight: 700; }
.contact-form-head p { font-size: .875rem; color: var(--muted); line-height: 1.65; }

.form-fields { display: flex; flex-direction: column; gap: .75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; padding: .7rem 1rem;
  font-family: inherit; font-size: .875rem; color: var(--text);
  transition: border-color .2s, background .2s; outline: none; resize: none;
}
input::placeholder, textarea::placeholder { color: var(--muted2); }
input:focus, textarea:focus {
  border-color: rgba(232,65,42,.4); background: rgba(232,65,42,.04);
}
textarea { height: 110px; }

/* Honeypot */
.contact-form__honeypot {
  position: absolute; left: -9999px; opacity: 0; pointer-events: none;
  width: 1px; height: 1px; overflow: hidden;
}

.btn-submit {
  width: 100%; padding: .85rem; border-radius: var(--radius-md); border: none; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--red), #ff5540);
  box-shadow: 0 0 24px var(--red-glow), 0 4px 14px rgba(0,0,0,.4);
  transition: filter .2s, transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover {
  filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: 0 0 36px var(--red-glow), 0 8px 24px rgba(0,0,0,.5);
}
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Form status */
.contact-form__status { display: none; }
.contact-form__loading { display: none; }
.contact-form__error { display: none; padding: .75rem 1rem; border-radius: 10px; background: rgba(232,65,42,.1); border: 1px solid rgba(232,65,42,.2); color: #ff7a68; font-size: .875rem; }
.contact-form__success { display: none; padding: .75rem 1rem; border-radius: 10px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); color: #4ade80; font-size: .875rem; }

#contact-form.is-loading .contact-form__status { display: block; }
#contact-form.is-loading .contact-form__loading { display: block; color: var(--muted); font-size: .875rem; }
#contact-form.is-error .contact-form__status { display: block; }
#contact-form.is-error .contact-form__error { display: block; }
#contact-form.is-success .contact-form__status { display: block; }
#contact-form.is-success .contact-form__success { display: block; }

/* Contact info */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-intro { color: var(--muted); line-height: 1.75; font-size: .95rem; }
.contact-cards { display: flex; flex-direction: column; gap: .75rem; }

.contact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .2s, border-color .2s;
}
.contact-card:hover { background: var(--surface2); border-color: var(--border2); }
.contact-card-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(232,65,42,.1); border: 1px solid rgba(232,65,42,.15);
  display: flex; align-items: center; justify-content: center;
}
.contact-card-icon svg { width: 17px; height: 17px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-card-body { display: flex; flex-direction: column; gap: 2px; }
.contact-card-label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted2); }
.contact-card-main { font-size: .95rem; font-weight: 600; color: var(--text); }
.contact-card-main a { color: inherit; text-decoration: none; }
.contact-card-main a:hover { color: var(--red); }
.contact-card-sub { font-size: .8rem; color: var(--muted); line-height: 1.55; margin-top: 2px; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1; border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1.5rem, 8vw, 6rem);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.footer-copy { font-size: .8rem; color: var(--muted2); }
.footer-copy strong { color: var(--muted); font-weight: 600; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: .8rem; color: var(--muted2); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .2s, border-color .2s;
  backdrop-filter: blur(12px);
}
.scroll-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: rgba(232,65,42,.12); border-color: rgba(232,65,42,.3); color: var(--text); }

/* ── MOBILE NAV OVERLAY ── */
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(13,10,10,.96); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 2rem;
}
.nav-overlay.is-open { display: flex; }
.nav-overlay a {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--muted); text-decoration: none; padding: .75rem 1.5rem;
  border-radius: var(--radius-md); transition: color .2s, background .2s;
  width: 100%; max-width: 300px; text-align: center;
}
.nav-overlay a:hover, .nav-overlay a.active { color: var(--text); background: var(--surface); }
.nav-overlay .nav-overlay-cta {
  margin-top: 1rem; background: linear-gradient(135deg, var(--red), #ff5540);
  color: #fff !important; box-shadow: 0 0 20px var(--red-glow);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: 120ms; }

/* ── LEGAL PAGES ── */
.site-main { position: relative; z-index: 1; padding-top: var(--header-h); }

.legal { padding: clamp(3rem, 6vh, 5rem) clamp(1.5rem, 8vw, 6rem); }
.legal .container { max-width: var(--container); margin: 0 auto; }
.legal__header { margin-bottom: 2.5rem; }
.legal__header h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.legal__lead { color: var(--muted); font-size: 1rem; }
.legal__content { display: flex; flex-direction: column; gap: 2rem; }
.legal__section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; color: var(--text); }
.legal__section p, .legal__section li { color: var(--muted); line-height: 1.8; font-size: .925rem; }
.legal__section ol, .legal__section ul { padding-left: 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.legal__section table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .85rem; }
.legal__section th, .legal__section td { padding: .6rem .85rem; border: 1px solid var(--border); text-align: left; }
.legal__section th { background: var(--surface); color: var(--text); font-weight: 600; }
.legal__section td { color: var(--muted); }
.legal__section a { color: var(--red); text-decoration: none; }
.legal__section a:hover { text-decoration: underline; }
.legal .btn, .legal .btn--primary { margin-top: 1rem; }

/* ── 404 PAGE ── */
.error-page { padding: clamp(6rem, 12vh, 10rem) clamp(1.5rem, 8vw, 6rem); min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.error-page .container { max-width: var(--container); margin: 0 auto; }
.error-page__content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.error-page__code { font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(120deg, var(--red), #ff9f90); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.error-page__content h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.error-page__content p { color: var(--muted); max-width: 480px; line-height: 1.75; font-size: .95rem; }
.error-page__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }

/* ── ANIMATIONS ── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.85); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 1050px) {
  .hero-inner, .about-grid, .contact-grid {
    grid-template-columns: 1fr; gap: 2.5rem;
  }
  .hero-visual { order: -1; }
  .hero { padding-top: 100px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .services-bottom { grid-template-columns: 1fr; }
  .stat-float-1, .stat-float-2 { display: none; }
}
@media (max-width: 620px) {
  .services-grid, .ref-grid, .services-bottom { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .nav-overlay a { font-size: 1.15rem; }
}
