/* ============================================================
   ЭКОПРО — минималистичный премиум-стиль (Apple-inspired)
   Нейтральная палитра · системный шрифт · воздух · сдержанность
   ============================================================ */

:root {
  /* neutrals — Apple system-like */
  --ink: #1d1d1f;          /* primary text */
  --ink-2: #6e6e73;        /* secondary text */
  --ink-3: #86868b;        /* tertiary */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;      /* signature light gray */
  --black: #0a0a0a;        /* dark sections / hero */
  --line: rgba(0, 0, 0, .10);
  --line-soft: rgba(0, 0, 0, .06);
  --line-dark: rgba(255, 255, 255, .12);

  /* brand — used sparingly, as accents only */
  --accent: #99cc33;
  --accent-ink: #5f8f14;   /* readable green on light bg */
  --blue: #336699;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 980px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .04);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, .08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .14);

  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --press: cubic-bezier(.2, .8, .2, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.006em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -.02em; font-optical-sizing: auto; }

.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }

/* ---------- buttons — Apple pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 500; font-size: 15px; letter-spacing: -.01em;
  padding: 12px 24px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--sm { padding: 8px 17px; font-size: 14px; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn:active { transform: scale(.97); transition-duration: .09s; transition-timing-function: var(--press); }

/* on the dark hero, the ghost button reads in white */
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn--ghost:hover { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); }

/* ---------- eyebrows / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 13px; letter-spacing: .02em;
  color: var(--ink-2); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow--light { color: rgba(255, 255, 255, .7); }

.section__head { max-width: 780px; margin-bottom: 64px; }
.section__title { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.03em; color: var(--ink); }
.section--dark .section__title { color: #fff; }
.section__sub { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink-2); }
.section__sub--light { color: rgba(255, 255, 255, .6); }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section--alt { background: var(--bg-soft); }
.section--dark { background: var(--black); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 20px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.is-stuck {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 34px; width: auto; transition: height .35s var(--ease), filter .35s var(--ease); }
.header.is-stuck .header__logo img { height: 30px; }
/* white monochrome logo over the dark hero; flip to black on the light stuck bar */
.header.is-stuck .header__logo img { filter: invert(1); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-weight: 450; font-size: 15px; letter-spacing: -.01em; color: rgba(255, 255, 255, .85);
  position: relative; transition: color .25s;
}
.nav__link:hover { color: #fff; }
.header.is-stuck .nav__link { color: var(--ink-2); }
.header.is-stuck .nav__link:hover { color: var(--ink); }

/* adaptive outline pill for the phone CTA — inherits current text color */
.nav__cta {
  color: #fff; border-color: rgba(255, 255, 255, .3); font-weight: 500;
}
.nav__cta:hover { border-color: #fff; transform: translateY(-1px); }
.header.is-stuck .nav__cta { color: var(--ink); border-color: var(--line); }
.header.is-stuck .nav__cta:hover { border-color: var(--ink); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.header.is-stuck .burger span { background: var(--ink); }
.burger.is-open span { background: var(--ink); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 160px 0 100px;
  color: #fff; overflow: hidden;
  /* deep graphite — premium, not pure black */
  background:
    radial-gradient(95% 120% at 80% 12%, #23272e 0%, transparent 55%),
    linear-gradient(165deg, #191c21 0%, #14161a 58%, #171a1f 100%);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  /* soft vertical fade so the airflow lines dissolve at top & bottom */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
/* subtle depth — soft brand glow, no cheap blobs */
.hero__depth {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 82% 26%, rgba(153, 204, 51, .08), transparent 62%),
    radial-gradient(52% 58% at 12% 88%, rgba(51, 102, 153, .10), transparent 62%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18));
}

.hero__content { position: relative; z-index: 2; max-width: 900px; }
.hero__eyebrow {
  font-weight: 450; font-size: 15px; letter-spacing: .01em;
  color: rgba(255, 255, 255, .55); margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(40px, 8vw, 88px); line-height: 1.02; letter-spacing: -.04em;
  font-weight: 600; margin-bottom: 30px;
}
.hero__title .accent { color: inherit; }
.hero__lead {
  font-size: clamp(18px, 2.1vw, 23px); line-height: 1.5; font-weight: 400;
  color: rgba(255, 255, 255, .68); max-width: 640px; margin-bottom: 42px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }

.hero__stats { display: flex; gap: clamp(24px, 5vw, 72px); flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; position: relative; }
.hero__stats li + li { padding-left: clamp(24px, 5vw, 72px); }
.hero__stats li + li::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: rgba(255, 255, 255, .16); }
.stat__num { font-weight: 600; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1; color: #fff; }
.stat__label { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .5); }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 24px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  background: rgba(255, 255, 255, .8); border-radius: 2px; animation: scrolldot 1.9s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about__text p { color: var(--ink-2); font-size: 19px; line-height: 1.6; margin-bottom: 24px; }
.about__text strong { color: var(--ink); font-weight: 600; }

.naming { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.naming__item { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.naming__item:last-child { border-bottom: 1px solid var(--line-soft); }
.naming__key { font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--accent-ink); min-width: 54px; }
.naming__key--blue { color: var(--blue); }
.naming__val { color: var(--ink-2); }

.about__highlights { display: grid; gap: 14px; }
.hl {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hl:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hl__icon { display: block; width: 30px; height: 30px; color: var(--ink); }
.hl__icon svg { width: 100%; height: 100%; }
.hl h3 { font-size: 19px; letter-spacing: -.015em; margin: 16px 0 8px; }
.hl p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }

/* ============================================================
   SERVICES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 38px 34px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__num { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.card__title { font-size: 22px; letter-spacing: -.02em; margin-bottom: 14px; }
.card__lead { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin-bottom: 22px; }
.card__list li { position: relative; padding-left: 22px; color: var(--ink); font-size: 15px; line-height: 1.45; margin-bottom: 11px; }
.card__list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.card--cta {
  background: var(--black); color: #fff; border-color: transparent;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
}
.card--cta .card__title { color: #fff; }
.card--cta .card__lead { color: rgba(255, 255, 255, .6); margin-bottom: 14px; }

/* ============================================================
   DIRECTIONS
   ============================================================ */
.directions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dir {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 34px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dir:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dir__icon { width: 34px; height: 34px; color: var(--ink); margin-bottom: 22px; }
.dir__icon svg { width: 100%; height: 100%; }
.dir h3 { font-size: 18px; letter-spacing: -.015em; margin-bottom: 10px; line-height: 1.25; }
.dir p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.partners { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.partners__text { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; letter-spacing: -.02em; color: var(--ink); max-width: 960px; font-weight: 400; }
.partners__text strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.proj {
  background: var(--black); padding: 30px 28px;
  transition: background .35s var(--ease);
}
.proj:hover { background: #151516; }
.proj h3 { font-size: 18px; letter-spacing: -.015em; color: #fff; margin-bottom: 8px; }
.proj p { color: rgba(255, 255, 255, .55); font-size: 14.5px; line-height: 1.5; }

/* ============================================================
   CERTIFICATES
   ============================================================ */
.certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cert { margin: 0; background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cert__view { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-soft); cursor: pointer; position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.cert__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.cert:hover .cert__view img { transform: scale(1.04); }
.cert__zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; color: #fff; background: rgba(10, 10, 10, .4); opacity: 0; transition: opacity .3s var(--ease); }
.cert__view:hover .cert__zoom, .cert__view:focus-visible .cert__zoom { opacity: 1; }
.cert__cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.cert__brand { font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.cert__pdf { font-weight: 500; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: color .25s; }
.cert__pdf:hover { color: var(--accent-ink); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(10, 12, 14, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .34s var(--ease), visibility .34s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 16px; transform: scale(.92); filter: blur(8px); opacity: 0; transition: transform .36s var(--ease), filter .36s var(--ease), opacity .3s var(--ease); will-change: transform; }
.lightbox.is-open .lightbox__stage { transform: scale(1); filter: none; opacity: 1; }
.lightbox__stage.is-dragging { transition: none; filter: none; }
.lightbox__stage img { max-width: 100%; max-height: 80vh; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); background: #fff; touch-action: none; user-select: none; -webkit-user-drag: none; cursor: grab; }
.lightbox__stage.is-dragging img { cursor: grabbing; }
.lightbox__cap { color: rgba(255, 255, 255, .8); font-weight: 500; font-size: 15px; }
.lightbox__close { position: absolute; top: 22px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .25s, transform .25s; }
.lightbox__close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background .25s, color .25s; }
.lightbox__nav:hover { background: #fff; color: var(--ink); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles { counter-reset: p; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle {
  counter-increment: p; position: relative; padding: 32px 32px 32px 74px;
  font-size: 18px; line-height: 1.5; color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:hover { background: var(--bg-soft); }
.principle::before {
  content: counter(p, decimal-leading-zero); position: absolute; left: 32px; top: 32px;
  font-weight: 600; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.principles .principle:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.contacts__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.contact {
  display: flex; flex-direction: column; gap: 4px; background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
a.contact:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact__icon { width: 26px; height: 26px; color: var(--ink); margin-bottom: 12px; }
.contact__icon svg { width: 100%; height: 100%; }
.contact__label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.contact__value { font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--ink); line-height: 1.45; margin-top: 2px; }

.contacts__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 380px; border: 1px solid var(--line-soft); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.4) contrast(1.02); transition: filter .5s var(--ease); }
.contacts__map:hover iframe { filter: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); color: rgba(255, 255, 255, .6); padding-top: 72px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 56px; }
.footer__logo { height: 32px; margin-bottom: 20px; opacity: .95; }
.footer__brand p { font-size: 15px; color: rgba(255, 255, 255, .45); max-width: 320px; line-height: 1.55; }
.footer__col h4 { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 18px; }
.footer__col a, .footer__col span { display: block; font-size: 15px; color: rgba(255, 255, 255, .55); margin-bottom: 12px; transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--line-dark); padding: 24px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__bottom span { font-size: 13px; color: rgba(255, 255, 255, .4); }
.footer__top { font-weight: 500; font-size: 14px; color: rgba(255, 255, 255, .7); }
.footer__top:hover { color: #fff; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .directions .reveal:nth-child(2), .projects .reveal:nth-child(2), .certs .reveal:nth-child(2) { transition-delay: .06s; }
.cards .reveal:nth-child(3), .directions .reveal:nth-child(3), .projects .reveal:nth-child(3), .certs .reveal:nth-child(3) { transition-delay: .12s; }
.cards .reveal:nth-child(4), .directions .reveal:nth-child(4), .certs .reveal:nth-child(4) { transition-delay: .18s; }
.certs .reveal:nth-child(5) { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .directions { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: auto; left: auto;
    width: min(84vw, 360px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    padding: 100px 40px 40px; transform: translateX(100%);
    transition: transform .45s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, .16); z-index: 105;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { color: var(--ink); font-size: 20px; }
  .nav__cta { color: var(--ink); border-color: var(--line); margin-top: 8px; }
  .burger { display: flex; }
  .header { background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .header.is-stuck { background: rgba(255, 255, 255, .82); }

  .principles { grid-template-columns: 1fr; }
  .principle { padding-left: 68px; }
  .principle:nth-child(odd) { border-right: 0; }
  .contacts__cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero__stats li + li { padding-left: 24px; }
}

@media (max-width: 560px) {
  .cards, .directions, .projects, .certs { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lightbox__stage { filter: none; transform: none; }
  .hero__scroll span { animation: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .header, .header.is-stuck { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header .nav__link { color: var(--ink); }
  .nav { background: #fff; }
  .lightbox { background: rgba(10, 12, 14, .98); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(0,0,0,.28); --line-soft: rgba(0,0,0,.18); --ink-2: #444; }
  .card, .hl, .dir, .contact, .cert { border-color: rgba(0,0,0,.28); }
}
