/* Portfolio landing — inspired by v0 AI Product Portfolio */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.4rem, 1.6rem + 3vw, 4.2rem);

  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #ebebeb;
  --border: #e5e5e5;
  --text: #0a0a0a;
  --muted: #737373;
  --faint: #a3a3a3;
  --primary: #10b981;
  --primary-dark: #059669;
  --accent: #0c2340;
  --accent-2: #1a3a5c;
  --warm: #d97706;
  --teal: #0d9488;
  --green: #10b981;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .04);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
  --container: 1180px;
  --header-h: 72px;

  /* Glass highlights — Trustwell-inspired */
  --glass-bg: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .65);
  --glass-shadow: 0 8px 32px rgba(12, 35, 64, .07);
  --glass-shadow-hover: 0 16px 48px rgba(12, 35, 64, .11);
  --glow-blue: rgba(169, 193, 214, .45);
  --glow-teal: rgba(16, 185, 129, .18);
  --glow-navy: rgba(12, 35, 64, .06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, var(--glow-blue), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 8%, var(--glow-teal), transparent 50%),
    var(--bg);
}
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(250, 250, 250, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: #fff; color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 5px;
  box-sizing: border-box;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark svg { width: 26px; height: auto; }
.brand-logo { object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.brand-text { min-width: 0; }
.brand-title {
  display: block; font-size: var(--text-sm); color: var(--text);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
}
.brand-text span {
  display: block; font-size: 11px; color: var(--muted);
  line-height: 1.15; margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav-wrap {
  display: flex; gap: 0; flex-wrap: nowrap; white-space: nowrap;
  flex: 1 1 auto; min-width: 0;
  overflow: visible;
}
.nav-wrap::-webkit-scrollbar { display: none; }

.nav-link, .theme-pill {
  min-height: 40px; padding: 0 7px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 500; transition: .18s ease;
  border: none; white-space: nowrap; flex: 0 0 auto;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.nav-link[href="cabinet.html"] { padding-right: 8px; flex-shrink: 0; }
.nav-link {
  background: transparent; color: var(--muted);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.theme-pill {
  background: var(--text); color: #fff; font-weight: 600;
  flex-shrink: 0;
  padding: 0 12px;
  letter-spacing: normal;
  gap: 0.35em;
}
.theme-pill-extra { display: inline; }
.theme-pill:hover { background: #262626; transform: translateY(-1px); }

main { flex: 1; }
section[id], .application-wrap { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ——— Hero ——— */
.hero {
  padding: 48px 0 32px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 420px;
  background: radial-gradient(ellipse at center, var(--glow-blue) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); color: var(--muted);
  margin-bottom: 20px; font-weight: 500;
}
.hero-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: start;
}

.panel, .card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-main {
  padding: 0;
  min-height: auto;
  display: flex; flex-direction: column; gap: 36px;
  background: transparent; border: none; box-shadow: none;
  color: var(--text); position: relative; overflow: visible;
}
.hero-main::before, .hero-main::after { display: none; }

.hero h1 {
  font-size: var(--text-2xl);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
  max-width: 14ch;
  margin-bottom: 20px;
  text-wrap: balance;
  color: var(--text);
  animation: fadeUp .7s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: var(--text-base);
  animation: fadeUp .7s .1s ease both;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px;
  animation: fadeUp .7s .2s ease both;
}

.btn-primary, .btn-secondary, .btn-next, .btn-back {
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: var(--text-sm); transition: .2s ease;
}
.btn-primary, .btn-next {
  background: var(--text); color: #fff; border: none;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover, .btn-next:hover { background: #262626; transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn-secondary:hover { background: var(--surface-2); border-color: #d4d4d4; }
.btn-back {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.btn-back:hover { color: var(--text); }

.hero-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  animation: fadeUp .7s .3s ease both;
}
.metric {
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-width: 3px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  transition: transform .2s, box-shadow .2s;
}
.hero-metrics .metric:nth-child(1) { border-top-color: var(--primary); }
.hero-metrics .metric:nth-child(2) { border-top-color: #2563eb; }
.hero-metrics .metric:nth-child(3) { border-top-color: var(--warm); }
.metric:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-hover); }
.metric strong {
  display: block; font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem);
  line-height: 1; margin-bottom: 8px; color: var(--text); font-weight: 800;
  letter-spacing: -.03em;
}
.metric span {
  display: block; color: var(--muted); font-size: var(--text-xs); line-height: 1.5;
}

.hero-side {
  padding: 0; display: flex; flex-direction: column; gap: 12px;
  background: transparent; border: none; box-shadow: none;
}
.side-card {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-width: 3px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  transition: transform .2s, box-shadow .2s;
}
.side-card:nth-child(1) { border-top-color: var(--primary); }
.side-card:nth-child(2) { border-top-color: var(--teal); }
.side-card:nth-child(3) { border-top-color: var(--warm); }
.side-card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); }
.side-card small {
  display: block; color: var(--muted); font-size: 11px;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.side-card h3 { font-size: var(--text-base); line-height: 1.2; margin-bottom: 8px; font-weight: 700; }
.side-card p { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }

/* ——— Marquee ——— */
.marquee-section { padding: 8px 0 28px; overflow: hidden; }
.marquee-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); margin-bottom: 16px; text-align: center;
}
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.chip {
  flex: 0 0 auto; padding: 10px 18px; border-radius: var(--radius-full);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  font-size: var(--text-sm); color: var(--muted); white-space: nowrap; font-weight: 500;
}

/* ——— Sections ——— */
section { padding: 56px 0; position: relative; }
#interests {
  padding-top: 24px;
}
#interests::before,
#benefits::before,
#process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#interests::before {
  background: radial-gradient(ellipse 55% 45% at 8% 40%, var(--glow-teal), transparent 60%);
}
#benefits::before {
  background: radial-gradient(ellipse 50% 40% at 92% 30%, var(--glow-blue), transparent 55%);
}
#process::before {
  background: radial-gradient(ellipse 70% 50% at 50% 100%, var(--glow-navy), transparent 65%);
}
section > .container { position: relative; z-index: 1; }

.section-head {
  display: flex; justify-content: space-between; gap: 20px;
  align-items: end; margin-bottom: 28px;
}
.section-meta {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--faint); margin-bottom: 10px; font-weight: 600;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.8rem);
  line-height: 1.08; letter-spacing: -.02em; max-width: 18ch;
  text-wrap: balance; font-weight: 700;
}
.section-head h2::before { display: none; }

.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.interest {
  padding: 24px 20px; min-height: 180px; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  cursor: default;
  border-top-width: 3px;
  overflow: hidden;
}
.interest::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 55%;
  background: radial-gradient(ellipse, var(--glow-blue) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.interest:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(169, 193, 214, .55);
}
.interest:hover::after { opacity: .85; }
.grid-5 .interest:first-child {
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(169, 193, 214, .5);
}
.grid-5 .interest:first-child::after { opacity: .6; }
.grid-5 .interest:nth-child(1) { border-top-color: var(--primary); }
.grid-5 .interest:nth-child(2) { border-top-color: #2563eb; }
.grid-5 .interest:nth-child(3) { border-top-color: var(--teal); }
.grid-5 .interest:nth-child(4) { border-top-color: var(--warm); }
.grid-5 .interest:nth-child(5) { border-top-color: #7c3aed; }
.grid-5 .interest:nth-child(1) .interest-top { color: var(--primary); }
.grid-5 .interest:nth-child(2) .interest-top { color: #2563eb; }
.grid-5 .interest:nth-child(3) .interest-top { color: var(--teal); }
.grid-5 .interest:nth-child(4) .interest-top { color: var(--warm); }
.grid-5 .interest:nth-child(5) .interest-top { color: #7c3aed; }
.interest-top {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 14px; font-weight: 600;
}
.interest h3 { font-size: var(--text-lg); line-height: 1.15; margin-bottom: 10px; font-weight: 700; }
.interest p { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  padding: 28px 24px; transition: transform .2s, box-shadow .2s;
  border-top-width: 3px;
  position: relative;
  overflow: hidden;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); }
.features .feature:first-child { box-shadow: var(--glass-shadow-hover); }
.features .feature:nth-child(1) { border-top-color: var(--primary); }
.features .feature:nth-child(2) { border-top-color: #2563eb; }
.features .feature:nth-child(3) { border-top-color: var(--warm); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(169, 193, 214, .22);
  border: 1px solid rgba(169, 193, 214, .35);
  backdrop-filter: blur(8px);
  color: var(--accent-2);
  display: grid; place-items: center;
  margin-bottom: 16px; font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.feature h3 { font-size: var(--text-lg); margin-bottom: 10px; line-height: 1.15; font-weight: 700; }
.feature p { color: var(--muted); font-size: var(--text-sm); line-height: 1.65; }

.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-item {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-width: 3px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  transition: transform .2s, box-shadow .2s;
}
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-hover); }
.trust-band .trust-item:nth-child(1) { border-top-color: var(--primary); }
.trust-band .trust-item:nth-child(2) { border-top-color: #2563eb; }
.trust-band .trust-item:nth-child(3) { border-top-color: var(--warm); }
.trust-band .trust-item:nth-child(4) { border-top-color: var(--teal); }
.trust-item strong { display: block; font-size: var(--text-sm); margin-bottom: 8px; font-weight: 700; }
.trust-item span { display: block; color: var(--muted); font-size: var(--text-xs); line-height: 1.55; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-item {
  padding: 24px 20px 24px 24px;
  min-height: 168px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border-top-width: 3px;
}
.process-item:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); }
.process .process-item:nth-child(1) { border-top-color: var(--primary); }
.process .process-item:nth-child(2) { border-top-color: #2563eb; }
.process .process-item:nth-child(3) { border-top-color: var(--teal); }
.process .process-item:nth-child(4) { border-top-color: var(--warm); }
.process-num {
  position: absolute;
  top: 6px;
  left: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2rem + 2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(26, 58, 92, .09);
  pointer-events: none;
  user-select: none;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  display: block;
}
.process-item h3 {
  position: relative;
  z-index: 1;
  font-size: var(--text-base);
  margin: 2.4rem 0 8px;
  font-weight: 700;
}
.process-item p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.cta { padding: 24px 0 48px; }
.cta-box {
  padding: 48px 40px; display: flex; justify-content: space-between;
  align-items: center; gap: 28px;
  background: var(--text); border-color: var(--text); color: #fff;
}
.cta-copy h2 {
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.8rem);
  line-height: 1.05; letter-spacing: -.035em; font-weight: 800;
  max-width: none; color: #fff;
}
.cta-box .btn-primary { background: #fff; color: var(--text); }
.cta-box .btn-primary:hover { background: #f5f5f5; }

/* ——— Application form ——— */
.application-wrap {
  padding: 0 0 80px;
  position: relative;
}
.application-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 120px;
  width: min(720px, 90vw);
  height: 280px;
  background: radial-gradient(ellipse, var(--glow-teal) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.application-wrap > .container { position: relative; z-index: 1; }

#application {
  background: transparent; border: none; padding-top: 0;
}
.application-shell {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  border-top: 3px solid var(--primary);
  padding: 32px 32px 36px;
  box-shadow: var(--glass-shadow-hover);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.stepper { width: 100%; display: flex; align-items: center; margin: 0 0 32px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-circle {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 700; color: var(--muted);
  background: var(--surface); flex-shrink: 0; transition: all .2s;
}
.step-circle.active { border-color: var(--text); color: #fff; background: var(--text); }
.step-circle.done { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-label { font-size: var(--text-xs); color: var(--muted); line-height: 1.3; }
.step-label.active { color: var(--text); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; transition: background .2s; }
.step-line.done { background: var(--primary); }

.card { width: 100%; padding: 28px 32px; margin: 0 0 20px; box-shadow: none; }
.card-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: 4px; letter-spacing: -.02em; }
.card-sub { font-size: var(--text-sm); color: var(--muted); margin-bottom: 24px; }

.products {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.prod {
  padding: 12px 6px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  border-top-width: 3px; border-top-style: solid;
  cursor: pointer; text-align: center; transition: all .22s ease;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  min-width: 0;
}
.products .prod:nth-child(1) { border-top-color: #2563eb; }
.products .prod:nth-child(2) { border-top-color: var(--teal); }
.products .prod:nth-child(3) { border-top-color: var(--primary); }
.products .prod:nth-child(4) { border-top-color: var(--warm); }
.products .prod:nth-child(5) { border-top-color: #7c3aed; }
.products .prod:nth-child(6) { border-top-color: #059669; }
.products .prod:nth-child(7) { border-top-color: var(--border-strong, #64748b); }
.prod:hover {
  border-color: rgba(26, 58, 92, .35);
  box-shadow: 0 6px 20px rgba(12, 35, 64, .08);
  transform: translateY(-2px);
}
.prod.active {
  border-color: rgba(12, 35, 64, .28);
  background: rgba(255, 255, 255, .95);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, .25),
    0 10px 28px rgba(16, 185, 129, .14),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(-3px);
}
.prod.active { border-top-width: 3px; }
.products .prod:nth-child(1).active { border-top-color: #2563eb; }
.products .prod:nth-child(2).active { border-top-color: var(--teal); }
.products .prod:nth-child(3).active { border-top-color: var(--primary); }
.products .prod:nth-child(4).active { border-top-color: var(--warm); }
.products .prod:nth-child(5).active { border-top-color: #7c3aed; }
.products .prod:nth-child(6).active { border-top-color: #059669; }
.products .prod:nth-child(7).active { border-top-color: var(--border-strong, #64748b); }
.prod-label {
  font-size: clamp(0.75rem, 0.68rem + 0.25vw, 0.875rem);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field label .req { color: #ef4444; }
.field input.field-invalid, .field textarea.field-invalid { border-color: #ef4444; background: #fef2f2; }
.step-error { margin: 0 0 12px; font-size: var(--text-sm); color: #dc2626; font-weight: 600; }
.field input, .field select, .field textarea, .fld {
  border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 11px 14px;
  font-size: var(--text-sm); color: var(--text); font-family: inherit; outline: none;
  transition: border-color .2s; background: var(--surface); width: 100%;
}
.field input::placeholder, .field textarea::placeholder, .fld::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus, .fld:focus { border-color: var(--text); }

.upload-zone {
  border: 1.5px dashed var(--border); border-radius: var(--radius-lg); padding: 24px;
  text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.upload-zone:hover { border-color: var(--text); background: var(--surface-2); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 1.4rem; margin-bottom: 8px; }
.upload-label { font-size: var(--text-sm); font-weight: 600; }
.upload-sub { font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }

.upload-file {
  display: none; align-items: center; gap: 10px; background: var(--green-bg);
  border: 1px solid var(--green-border); border-radius: var(--radius-md);
  padding: 10px 14px; margin-top: 8px;
}
.upload-file.show { display: flex; }
.upload-file-name { font-size: var(--text-sm); font-weight: 600; color: var(--primary-dark); flex: 1; }
.upload-file-rm { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 1rem; }

.summary { display: flex; flex-direction: column; gap: 10px; }
.sum-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: var(--text-sm);
}
.sum-row:last-child { border-bottom: none; }
.sum-label { color: var(--muted); }
.sum-val { font-weight: 600; text-align: right; max-width: 60%; }

.success-box { text-align: center; padding: 44px 20px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-bg); border: 1px solid var(--green-border);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.success-icon svg { width: 30px; height: 30px; }
.success-title { font-size: var(--text-xl); font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.success-sub { font-size: var(--text-sm); color: var(--muted); max-width: 520px; margin: 0 auto 18px; line-height: 1.55; }

.mail-preview {
  max-width: 520px; margin: 0 auto 22px; text-align: left; padding: 16px 18px;
  border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border);
}
.mail-preview-head { font-size: var(--text-xs); color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.mail-preview-head strong { color: var(--text); }
.mail-preview-body { font-size: var(--text-sm); line-height: 1.55; }
.mail-creds {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--green-bg); border: 1px solid var(--green-border);
}
.mail-creds div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: var(--text-sm); }
.mail-creds span { color: var(--muted); }
.mail-creds strong { font-weight: 700; word-break: break-all; text-align: right; }

.btn-row { width: 100%; display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* ——— Footer ——— */
footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--text-xs);
  background: var(--surface);
}
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ——— Animations ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ——— Responsive ——— */
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .trust-band { grid-template-columns: repeat(2, 1fr); }
  .brand-text span { display: none; }
  .theme-pill-extra { display: none; }
  .nav-link[href="#top"],
  .nav-link[href="#interests"] { display: none; }
}
@media (max-width: 1080px) {
  .hero-grid, .features, .process { grid-template-columns: repeat(2, 1fr); }
  .nav-link, .theme-pill { padding: 0 6px; }
}
@media (max-width: 960px) {
  .nav-link[href="portal-kasko-journey.html"],
  .nav-link[href="portal-solutions-presentation.html"] { display: none; }
  .products {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }
  .products::-webkit-scrollbar { display: none; }
  .prod { flex: 0 0 auto; min-width: 92px; }
}
@media (max-width: 840px) {
  .brand-text { max-width: 140px; }
  .brand-title { font-size: 12px; line-height: 1.15; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { width: min(var(--container), calc(100% - 24px)); }
  .section-head, .cta-box { flex-direction: column; align-items: flex-start; }
  .hero-grid, .hero-metrics, .features, .process, .grid-5, .trust-band, .fields { grid-template-columns: 1fr; }
  .hero-main, .cta-box, .card { padding: 0; }
  .cta-box { padding: 32px 24px; }
  .application-shell { padding: 24px 20px; }
  .step-label { display: none; }
  .header-actions { gap: 4px; }
  .nav-link, .theme-pill { min-height: 38px; padding: 0 8px; }
  .theme-pill { padding: 0 12px; }
  .nav-link[href="cabinet.html"] { display: inline-flex; }
}

/* ===== Мобильное бургер-меню (добавлено) ===== */
.nav-burger {
  display: none;
  flex: 0 0 auto;
  width: 42px; height: 38px;
  border: 1px solid var(--border);
  background: var(--surface-2, #f2f2f2);
  border-radius: var(--radius-full, 999px);
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text, #171717); border-radius: 2px;
  transition: .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  /* показываем бургер */
  .nav-burger { display: inline-flex; order: 3; }
  .theme-pill { order: 2; }

  /* меню превращается в выпадающую панель со ВСЕМИ пунктами */
  .nav-wrap {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(250,250,250,.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    padding: 8px 16px 14px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .28s ease, opacity .2s ease;
  }
  .nav-wrap.open {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }
  /* ВСЕ пункты снова видимы в мобильном меню (отменяем прежние display:none) */
  .nav-link { display: flex !important; justify-content: flex-start;
    min-height: 46px; padding: 0 10px; width: 100%;
    font-size: 15px; color: var(--text); border-radius: 10px; }
  .nav-link:hover { background: var(--surface-2, #f0f0f0); }
  .site-header { position: sticky; }
  .header-row { position: relative; }
}
