/* =====================================================
   MűszakiTerv.hu — Premium Redesign
   Aesthetic: Dark luxury engineering — navy/slate base,
   warm gold accents, Playfair Display + DM Sans
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* ── Tokens ── */
:root {
  --navy:       #0b1e33;
  --navy-2:     #122840;
  --navy-3:     #1a3554;
  --navy-4:     #243f62;
  --gold:       #c9973a;
  --gold-2:     #e8b86d;
  --gold-3:     #f5d49a;
  --cream:      #f9f5ee;
  --white:      #ffffff;
  --text:       #1a2d42;
  --text-light: #ffffff;
  --muted:      #607080;
  --muted-light:#8fa0b0;
  --line:       rgba(11,30,51,.10);
  --line-light: rgba(255,255,255,.12);
  --card-bg:    #ffffff;
  --card-alt:   #f7f9fb;
  --shadow-sm:  0 4px 16px rgba(11,30,51,.07);
  --shadow:     0 12px 40px rgba(11,30,51,.10);
  --shadow-lg:  0 24px 64px rgba(11,30,51,.14);
  --shadow-gold:0 8px 32px rgba(201,151,58,.25);
  --radius-sm:  12px;
  --radius:     20px;
  --radius-lg:  32px;
  --radius-xl:  48px;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── Accessibility ── */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--gold); color: var(--navy); padding: .6rem 1.2rem; border-radius: var(--radius-sm); font-weight: 700; }

/* ── Container ── */
.container { width: min(1200px, 92vw); margin-inline: auto; }

/* ========================================
   TOPBAR
   ======================================== */
.topbar {
  background: var(--navy);
  color: #bdd0e0;
  font-size: .84rem;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
  padding: .3rem 0;
}
.topbar-inner p { margin: 0; color: #8faac0; }
.topbar-links { display: flex; gap: 1.5rem; align-items: center; }
.topbar-links a {
  color: var(--gold-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s;
}
.topbar-links a:hover { color: #fff; }
.topbar-links a::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ========================================
   HEADER / NAV
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}
.nav-shell {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 32px rgba(11,30,51,.07);
}
.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  width: 180px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .15rem;
  flex-wrap: nowrap;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 600;
  color: var(--muted);
  padding: .55rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .005em;
  transition: background .2s, color .2s, transform .2s;
  position: relative;
}
.main-nav a:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.main-nav a.active {
  background: var(--navy);
  color: #fff;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: linear-gradient(135deg, var(--gold), #a97a20);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,151,58,.35); }
.header-cta::after { content: '→'; font-size: 1em; }
.nav-toggle {
  display: none;
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: .55rem .85rem;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .88rem;
  cursor: pointer;
  color: var(--navy);
  transition: background .2s;
}
.nav-toggle:hover { background: var(--navy); color: #fff; }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg,
      rgba(11,30,51,.94) 0%,
      rgba(11,30,51,.75) 45%,
      rgba(18,40,64,.45) 70%,
      rgba(26,53,84,.25) 100%),
    var(--hero, #0b1e33) center / cover no-repeat;
  z-index: -2;
}
/* Decorative gold line */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), transparent);
  z-index: 1;
}

/* Ambient glow */
.hero-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,151,58,.18) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold-2);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 16ch;
  margin: .5rem 0 1.1rem;
}
h1 em {
  font-style: italic;
  color: var(--gold-2);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 1rem;
}
h2 em { font-style: italic; color: var(--gold); }

h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: #ccdbe8;
  max-width: 52ch;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s, box-shadow .22s, background .22s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a97a20);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 16px 48px rgba(201,151,58,.4); }
.btn-ghost {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Hero card ── */
.hero-card {
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 32px 80px rgba(0,0,0,.22);
  animation: float 8s ease-in-out infinite;
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-card img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .75rem;
  margin-top: .9rem;
}
.stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: .9rem .7rem;
  text-align: center;
  color: #fff;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat span { font-size: .78rem; color: #adc3d8; letter-spacing: .04em; }

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 96px 0;
}
.section.alt {
  background: linear-gradient(180deg, #f0f4f8 0%, var(--cream) 100%);
  position: relative;
}
.section.alt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section.dark {
  background: var(--navy-2);
  color: #fff;
}
.section.dark h2 { color: #fff; }
.section.dark h3 { color: #e8f0f8; }
.section.dark p { color: #90adc5; }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.section-head h2 { margin-bottom: .4rem; }
.section-head > p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: right;
  line-height: 1.6;
}

/* Label pill */
.label {
  display: inline-block;
  background: rgba(201,151,58,.12);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(201,151,58,.2);
  margin-bottom: .75rem;
}

/* ========================================
   CARDS
   ======================================== */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,151,58,.2);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(201,151,58,.12), rgba(201,151,58,.05));
  border: 1px solid rgba(201,151,58,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .97rem; line-height: 1.65; }

/* ========================================
   PROCESS STEPS
   ======================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.25rem;
  counter-reset: step;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 1.25rem);
  right: calc(12.5% + 1.25rem);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  opacity: .3;
}
.step {
  counter-increment: step;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  z-index: 1;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-num::before { content: '0' counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ========================================
   SPLIT / IMAGE + TEXT
   ======================================== */
.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.image-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
}
.image-panel img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.image-panel:hover img { transform: scale(1.04); }

/* Tick list */
.ticks { list-style: none; display: grid; gap: .8rem; margin-top: 1.25rem; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.6;
}
.ticks li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--gold), #a97a20);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
  margin-top: .15rem;
  box-shadow: 0 3px 10px rgba(201,151,58,.3);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta { padding: 60px 0 96px; }
.cta-box {
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, #1a3a5e 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 24px 64px rgba(11,30,51,.22);
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,151,58,.2), transparent 65%);
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.04), transparent 65%);
  pointer-events: none;
}
.cta-box h2 { color: #fff; margin-bottom: .3rem; }
.cta-box .eyebrow { color: var(--gold-2); }
.cta-text { position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ========================================
   CONTACT
   ======================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }

.form { display: grid; gap: .85rem; }
.form label { font-size: .85rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: .3rem; }
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.03);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,.14);
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,151,58,.2), transparent 65%);
  pointer-events: none;
}
.contact-info-card h2 { color: #fff; font-size: 1.9rem; }
.contact-info-card .eyebrow { color: var(--gold-2); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.10);
}
.contact-detail:first-of-type { border-top: none; margin-top: 1rem; padding-top: 0; }
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(201,151,58,.18);
  border: 1px solid rgba(201,151,58,.25);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.contact-detail strong { display: block; color: var(--gold-3); font-size: .83rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.contact-detail a { color: #cde0f0; transition: color .2s; }
.contact-detail a:hover { color: var(--gold-2); }
.contact-detail p { color: #90adc5; font-size: .94rem; line-height: 1.55; margin: 0; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--navy);
  color: #bdd0e0;
  padding: 72px 0 28px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { color: #8faac0; font-size: .94rem; line-height: 1.7; margin-top: 1rem; max-width: 32ch; }
.footer-logo {
  display: block;
  width: 180px;
  height: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .5rem .8rem;
}
.footer-col strong {
  display: block;
  color: var(--gold-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  color: #8faac0;
  padding: .3rem 0;
  font-size: .94rem;
  transition: color .2s, padding-left .2s;
}
.footer-col a:hover { color: var(--gold-2); padding-left: 4px; }
.footer-col p { color: #8faac0; font-size: .94rem; line-height: 1.75; }
.footer-col p a { display: inline; padding: 0; }
.legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  color: #5a7592;
  font-size: .87rem;
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
}
.legal-badge::before { content: '●'; font-size: .5rem; }

/* ========================================
   DECORATIVE / EXTRAS
   ======================================== */
/* Subtle section divider */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 999px;
  margin: 1rem 0 1.75rem;
}

/* Highlight band inside hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: .45rem 1rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  margin-bottom: 1.2rem;
}
.hero-badge span { color: var(--gold-2); font-weight: 700; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Hero text animate in */
.hero-content { animation: fadeUp .85s .1s ease both; }
.hero-card    { animation: float 8s ease-in-out infinite, fadeIn .85s .3s ease both; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
  .main-nav a { font-size: .8rem; padding: .5rem .55rem; }
  .header-cta { font-size: .83rem; padding: .68rem .95rem; }
  .brand img { width: 160px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; align-items: center; gap: .4rem; }
  .nav-wrap { grid-template-columns: 1fr auto auto; }
  .main-nav {
    display: none;
    position: absolute;
    top: 124px;
    left: 4vw; right: 4vw;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; border-radius: var(--radius-sm); }
  .header-cta { display: none; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > p { text-align: left; }
  .cta-box { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
  .hero-card { animation: fadeIn .85s .3s ease both; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .5rem 0; }
  .topbar-links { flex-direction: column; gap: .3rem; }
  .brand img { width: 155px; }
  .cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat-row { grid-template-columns: repeat(3,1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  h1 { letter-spacing: -.015em; }
  .cta-box { border-radius: var(--radius-lg); padding: 2rem 1.5rem; }
}
