/* ============================================
   ЭКОПРОЕКТ — Design Tokens & Styles
   ============================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f6f5f0;
  --color-surface: #ffffff;
  --color-surface-2: #fbfaf5;
  --color-surface-offset: #eceee4;
  --color-surface-offset-2: #e3e6d9;
  --color-surface-dynamic: #dde1d1;
  --color-divider: #e0e2d6;
  --color-border: #d2d6c5;

  /* Text */
  --color-text: #1b2119;
  --color-text-muted: #5b6559;
  --color-text-faint: #9aa393;
  --color-text-inverse: #f7f8f2;

  /* Primary accent — deep forest green */
  --color-primary: #24593a;
  --color-primary-hover: #1a4229;
  --color-primary-active: #133019;
  --color-primary-highlight: #d9e6da;

  /* Secondary accent — clay/amber, used sparingly */
  --color-warning: #a15a1f;
  --color-warning-highlight: #ecdcc6;

  /* Success / status */
  --color-success: #2f7a3f;
  --color-success-highlight: #d8ecda;

  --color-error: #9c3b3b;
  --color-error-highlight: #ecdada;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 140 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.2 0.02 140 / 0.10);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 140 / 0.16);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1220px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #12160f;
  --color-surface: #171c13;
  --color-surface-2: #1b2116;
  --color-surface-offset: #1e2418;
  --color-surface-offset-2: #262d1e;
  --color-surface-dynamic: #2c3423;
  --color-divider: #262d1e;
  --color-border: #333c28;
  --color-text: #e7ebe0;
  --color-text-muted: #a2ac97;
  --color-text-faint: #6b7562;
  --color-text-inverse: #1b2119;
  --color-primary: #6cbb84;
  --color-primary-hover: #86cc9b;
  --color-primary-active: #4e9c68;
  --color-primary-highlight: #263626;
  --color-warning: #d69357;
  --color-warning-highlight: #3a2f22;
  --color-success: #6cbb84;
  --color-success-highlight: #24352a;
  --color-error: #d3837f;
  --color-error-highlight: #3a2624;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

/* Type scale */
: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(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============ Layout primitives ============ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-10));
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: inline-block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.section-lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  gap: var(--space-6);
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.header-phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  text-align: right;
  line-height: 1.25;
}
.header-phone strong {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
.header-phone span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  background: var(--color-primary-active);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: oklch(from var(--color-text-inverse) l c h / 0.4);
}
.btn-ghost:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.12);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--color-text-inverse);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.14 0.03 145 / 0.55) 0%, oklch(0.11 0.03 145 / 0.82) 60%, oklch(0.09 0.03 145 / 0.92) 100%),
    linear-gradient(100deg, oklch(0.1 0.03 145 / 0.55) 10%, transparent 55%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--space-24), 12vw, var(--space-32));
}
.hero-content {
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bfe0c8;
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: 1px solid oklch(from #bfe0c8 l c h / 0.35);
  border-radius: var(--radius-full);
  background: oklch(0.2 0.03 145 / 0.35);
}
.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem);
  font-weight: 650;
  line-height: 1.06;
  color: #fbfbf7;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: normal;
  color: #8fd6a2;
}
.hero-lede {
  font-size: var(--text-lg);
  color: #d8ded4;
  max-width: 56ch;
  margin-bottom: var(--space-8);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(var(--space-6), 4vw, var(--space-10));
  padding-top: var(--space-8);
  border-top: 1px solid oklch(1 0 0 / 0.18);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fbfbf7;
  line-height: 1.1;
}
.hero-stat span {
  font-size: var(--text-xs);
  color: #b9c2b3;
}

/* ============ Trust marquee ============ */
.trust {
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.trust-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  width: max-content;
  animation: scroll-left 38s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  white-space: nowrap;
}
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============ Services grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg {
  width: 22px;
  height: 22px;
}
.service-card h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
}
.service-card .tag {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ Why us / expertise ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.split.reverse .split-media {
  order: 2;
}
.split-media img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.check-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.check-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon svg {
  width: 16px;
  height: 16px;
}
.check-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.check-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ Projects ============ */
.projects-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-divider);
}
.project-row {
  display: grid;
  grid-template-columns: 1.6fr auto auto;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.project-row h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.project-row .loc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-success);
  background: var(--color-success-highlight);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.status-chip svg {
  width: 14px;
  height: 14px;
}
.client-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.client-tag .org {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.client-tag .unit {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
}

/* ============ Divider banner ============ */
.divider-banner {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  color: var(--color-text-inverse);
  overflow: hidden;
}
.divider-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.divider-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, oklch(0.14 0.03 145 / 0.82) 20%, oklch(0.16 0.03 145 / 0.4) 75%);
  z-index: 0;
}
.divider-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.divider-content .section-title {
  color: #fbfbf7;
}
.divider-content p {
  color: #d8ded4;
  font-size: var(--text-base);
}

/* ============ Geography ============ */
.geo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.geo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.geo-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
}
.geo-chip svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.geo-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.geo-visual svg {
  width: 92%;
  height: 92%;
  color: var(--color-primary);
}

/* ============ Clients ============ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.client-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  min-height: 76px;
}

/* ============ Process ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}
.process-step {
  position: relative;
  padding-top: var(--space-8);
}
.process-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-highlight);
  -webkit-text-stroke: 1.5px var(--color-primary);
  color: transparent;
  display: block;
  margin-bottom: var(--space-3);
}
.process-step h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ Contact ============ */
.contact-section {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  box-shadow: var(--shadow-md);
}
.contact-person {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}
.contact-person h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
}
.contact-person span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.contact-method-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.contact-method-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method-icon svg {
  width: 18px;
  height: 18px;
}
.contact-method-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
}
.contact-method-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.contact-method-action {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  white-space: nowrap;
  background: transparent;
}
.contact-method-action:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.copy-toast {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-success);
  min-height: 1.2em;
  opacity: 0;
  transition: opacity var(--transition-interactive);
}
.copy-toast.show {
  opacity: 1;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.form-card > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.form-field label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-field textarea {
  resize: vertical;
  min-height: 96px;
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}
.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-success-highlight);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-success.show {
  display: flex;
}
.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-error {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-error-highlight);
  color: var(--color-error);
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-error.show {
  display: flex;
}
.form-error svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============ Footer ============ */
.footer {
  background: #12160f;
  color: #cdd3c5;
  padding-block: var(--space-16) var(--space-8);
}
.footer .brand-name,
.footer .brand-mark {
  color: #f6f5f0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid #262d1e;
  margin-bottom: var(--space-6);
}
.footer-about p {
  font-size: var(--text-sm);
  color: #a2ac97;
  max-width: 36ch;
  margin-top: var(--space-4);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #f6f5f0;
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a,
.footer-col span {
  font-size: var(--text-sm);
  color: #a2ac97;
  text-decoration: none;
}
.footer-col a:hover {
  color: #8fd6a2;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: #6b7562;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-links,
  .header-phone,
  .header-actions .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .split,
  .geo-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    text-align: left;
  }
  .client-tag {
    align-items: flex-start;
    text-align: left;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(2rem, 1.4rem + 6vw, 2.75rem);
  }
  .hero-stats {
    gap: var(--space-6);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  padding: var(--space-6);
  flex-direction: column;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav .btn {
  margin-top: var(--space-8);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
