/* ===========================================================
   Prime Design — Engineering firm site
   White ground, architectural drawing-sheet aesthetic
   Palette: #00275C · #940A03 · #FFFFFF · #F7F7F5
   Type: Raleway · JetBrains Mono
=========================================================== */

:root {
  --blue:        #00275C;
  --blue-2:      #003680;
  --red:         #940A03;
  --white:       #FFFFFF;

  --bg:          #FFFFFF;
  --bg-alt:      #F7F7F5;
  --surface:     #FFFFFF;

  --ink:         #0B1626;
  --ink-2:       #2B334A;
  --ink-3:       #5B6478;
  --muted:       #8A93A6;
  --line:        rgba(0,39,92,0.08);
  --line-2:      rgba(0,39,92,0.14);
  --line-strong: rgba(0,39,92,0.24);

  --font:  "Raleway", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1320px;
  --pad: clamp(20px, 3vw, 44px);
  --gap: 16px;
  --radius: 4px;
  --radius-md: 8px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; top: -100px; left: 0; background: var(--blue); color: #fff; padding: 12px 20px; z-index: 999; }
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.only-lg { display: none; }
@media (min-width: 1080px) { .only-lg { display: inline; } }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--red); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--ghost-dark {
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  background: transparent;
}
.btn--ghost-dark:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--lg { padding: 14px 22px; font-size: 14px; }

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid transparent;
  transition: padding .2s var(--ease), border-color .2s var(--ease);
}
.nav.is-scrolled {
  padding: 10px 0;
  border-color: var(--line);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
  transition: height .2s var(--ease);
}
.nav.is-scrolled .nav__logo img { height: 30px; }
.nav__menu {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
}
.nav__menu a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .2s var(--ease);
}
.nav__menu a:hover { color: var(--blue); }
.nav__menu a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.nav__phone:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.nav__wa {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  background: #25D366;
  color: var(--white);
  flex-shrink: 0;
}
.nav__wa:hover { background: #128C7E; color: var(--white); }
.nav__burger {
  display: none;
  width: 34px; height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.nav__burger span { display: block; width: 14px; height: 1.5px; background: var(--blue); }

/* ========== Section base ========== */
.section {
  padding: clamp(64px, 7vw, 96px) 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--bg-alt); }

.head {
  display: grid;
  grid-template-columns: 96px 1fr;
  column-gap: 28px;
  row-gap: 8px;
  align-items: baseline;
  margin-bottom: clamp(32px, 3.5vw, 48px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.head--split {
  grid-template-columns: 96px 1fr auto;
  grid-template-rows: auto;
  align-items: end;
}
.head--split .head__title { grid-row: 1; grid-column: 2; align-self: end; }
.head--split .head__number { grid-row: 1; grid-column: 1; }
.head--split .filter { grid-row: 1; grid-column: 3; align-self: end; justify-self: end; }
.head--sub {
  margin-top: clamp(40px, 4vw, 56px);
  margin-bottom: clamp(20px, 2vw, 28px);
  padding-bottom: 16px;
}
.head__number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  padding-top: 4px;
  border-top: 2px solid var(--red);
  width: 48px;
  align-self: start;
}
.head__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--blue);
}
.head__title--sub { font-size: clamp(22px, 2.4vw, 30px); }
.head__note {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 640px;
  margin: 4px 0 0;
}

/* Filter */
.filter {
  display: inline-flex;
  gap: 2px;
  background: var(--white);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter__btn {
  padding: 7px 14px;
  border-radius: 2px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  transition: all .2s var(--ease);
}
.filter__btn.active { background: var(--blue); color: var(--white); }
.filter__btn:hover:not(.active) { color: var(--blue); }



/* ========== HERO — Editorial 2026 ========== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 100%);
  transition: width .1s linear;
  transform-origin: left;
}

.hero {
  padding: clamp(88px, 10vw, 120px) 0 0;
  position: relative;
  overflow: hidden;
  border-top: none;
  background: var(--white);
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,39,92,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,39,92,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 20%, transparent 80%);
}
.hero__glow {
  position: absolute;
  top: 10%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(0,39,92,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero__container { position: relative; z-index: 2; }

/* Meta bar with status chip */
.hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 3.5vw, 40px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.hero__meta-item { color: var(--ink-2); }
.hero__meta-sep { color: var(--line-strong); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(43, 170, 92, 0.35);
  background: rgba(43, 170, 92, 0.06);
  border-radius: 100px;
  color: #1A6E3A;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.status-chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2BAA5C;
  box-shadow: 0 0 0 3px rgba(43,170,92,0.20);
  animation: statusPulse 2.4s var(--ease) infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(43,170,92,0.20); }
  50%      { box-shadow: 0 0 0 7px rgba(43,170,92,0); }
}

/* Split editorial layout: content + featured card */
.hero__split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.hero__content { min-width: 0; }

.hero__title {
  font-family: var(--font);
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  color: var(--blue);
  text-wrap: balance;
  display: flex;
  flex-direction: column;
}
.hero__title-line {
  display: block;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__title-line--big {
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 300;
  color: var(--ink);
}
.hero__title-line--accent {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.042em;
}
.hero__title-line--sub {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin-top: 8px;
  max-width: 20ch;
}

.hero__desc {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 clamp(24px, 2.5vw, 32px);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 40px);
}

/* Kinetic CTA button — modern SaaS style */
.btn-kinetic {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  min-width: 320px;
  transition: transform .3s var(--ease);
}
.btn-kinetic__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
  transition: background .25s var(--ease);
  overflow: hidden;
  position: relative;
}
.btn-kinetic__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  transition: transform .35s var(--ease-out);
}
.btn-kinetic:hover .btn-kinetic__inner::before { transform: translateX(0); }
.btn-kinetic:hover { transform: translateY(-2px); }

.btn-kinetic__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  position: relative;
  z-index: 2;
  flex: 1;
}
.btn-kinetic__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.btn-kinetic__meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.btn-kinetic__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.14);
  border-radius: 4px;
  color: var(--white);
  position: relative;
  z-index: 2;
  transition: transform .35s var(--ease);
}
.btn-kinetic:hover .btn-kinetic__arrow { transform: rotate(-45deg); }
.btn-kinetic:hover .btn-kinetic__arrow svg { transform: rotate(45deg); }
.btn-kinetic__arrow svg { transition: transform .35s var(--ease); }

/* Proof strip (licenses) */
.hero__proof {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero__proof-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  padding-right: 16px;
  border-right: 1px solid var(--line-2);
}
.hero__proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.hero__proof-list li { display: flex; align-items: center; gap: 4px; }
.hero__proof-list b { color: var(--blue); font-weight: 700; }

/* Featured project card */
.hero__aside {
  position: relative;
  align-self: stretch;
}
.featured-project {
  display: block;
  color: inherit;
  text-decoration: none;
}
.featured-project__frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.featured-project:hover .featured-project__frame {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(0,39,92,0.24);
}

.featured-project__label {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.featured-project__label em {
  font-style: normal;
  color: var(--red);
  font-weight: 500;
}

.featured-project__image {
  width: 100%;
  aspect-ratio: 16/11;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease-out);
}
.featured-project:hover .featured-project__image { transform: scale(1.04); }

.featured-project__body {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
}
.featured-project__meta {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.featured-project__meta-dot { color: var(--red); }
.featured-project__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--blue);
  margin: 0 0 16px;
}
.featured-project__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin: 0 0 18px;
}
.featured-project__specs > div { display: flex; flex-direction: column; gap: 2px; }
.featured-project__specs dt {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.featured-project__specs dd {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: -0.005em;
}
.featured-project__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  padding: 8px 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
}
.featured-project__cta svg { transition: transform .25s var(--ease); }
.featured-project:hover .featured-project__cta svg { transform: translate(3px, -3px); }

/* Data strip */
.hero__data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin: 0 0 clamp(24px, 3vw, 36px);
}
.hero__data-item {
  padding: 22px 20px 22px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__data-item:last-child { border-right: none; }
.hero__data-item:not(:first-child) { padding-left: 22px; }
.hero__data-num {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.032em;
  line-height: 1;
  color: var(--blue);
  display: flex;
  align-items: baseline;
}
.hero__data-num sup {
  font-size: 0.5em;
  color: var(--red);
  margin-left: 3px;
  font-weight: 700;
}
.hero__data-label {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* Marquee ticker at bottom of hero */
.hero__ticker {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--white);
  position: relative;
}
.hero__ticker::before, .hero__ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.hero__ticker::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.hero__ticker::after  { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  animation: tickerScroll 48s linear infinite;
  padding-left: 20px;
}
.ticker__label {
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid rgba(148, 10, 3, 0.3);
  border-radius: 100px;
}
.ticker__track i { font-style: normal; color: var(--line-strong); }
.ticker__sep {
  color: var(--red);
  font-size: 10px;
  margin: 0 8px;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ========== 01. УСЛУГИ — 4 стадии ========== */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.stage {
  padding: 32px 28px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.stage--wide { grid-column: span 2; background: linear-gradient(180deg, var(--white), var(--bg-alt) 100%); }
.stage__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.stage__num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0;
  line-height: 1;
}
.stage__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.stage__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--blue);
}
.stage--wide .stage__title { font-size: 26px; }
.stage__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.stage__result {
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stage__result dt {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.stage__result dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.stage__link {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  align-self: flex-start;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
}
.stage__link:hover { color: var(--red); border-color: var(--red); }

.stages-note {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
}
.stages-note__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  padding-top: 3px;
}
.stages-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ========== 02. СОСТАВ РП ========== */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.scope {
  padding: 26px 24px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section--alt .scope { background: var(--bg-alt); }
.scope--bim { background: var(--blue); color: var(--white); border-color: var(--blue); }
.section--alt .scope--bim { background: var(--blue); }

.scope__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scope__tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  align-self: flex-start;
}
.scope__tag--accent { color: var(--white); border-color: rgba(255,255,255,0.35); }
.scope--bim .scope__tag { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.35); }
.scope__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  color: var(--blue);
}
.scope--bim .scope__title { color: var(--white); }
.scope__list {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}
.scope--bim .scope__list { color: rgba(255,255,255,0.85); }
.scope__list li {
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.scope__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--red);
}
.scope--bim .scope__list li::before { background: rgba(255,255,255,0.6); }
.scope__note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 4px;
}

/* ========== 03. КОМПЕТЕНЦИИ ========== */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.comp {
  padding: 24px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
}
.section--alt .comp { background: var(--bg-alt); }
.comp__type {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--blue);
}
.comp__scale {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--red);
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 0.02em;
}
.comp__list {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}
.comp__list li {
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}
.comp__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 1px;
  background: var(--red);
}
.comp__ref {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ========== 04. ЖИЗНЕННЫЙ ЦИКЛ ========== */
.lifecycle {
  padding: 28px;
  border: 1px solid var(--line-2);
  background: var(--white);
  overflow-x: auto;
}

/* Group labels row */
.lc-groups {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 900px;
}
.lc-group {
  padding: 8px 0;
  border-top: 2px solid var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
}
.lc-group span { display: block; }

/* Stages row */
.lc-stages {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-width: 900px;
  padding-top: 4px;
}
.lc-stage {
  padding: 14px 14px 16px;
  border: 1px solid var(--line-2);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: all .2s var(--ease);
}
.lc-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32%;
  right: -8px;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}
.lc-stage--active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.lc-stage--accent {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.lc-stage__idx {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.04em;
}
.lc-stage--active .lc-stage__idx { color: rgba(255,255,255,0.7); }
.lc-stage--accent .lc-stage__idx { color: rgba(255,255,255,0.7); }
.lc-stage__name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--blue);
  line-height: 1.15;
}
.lc-stage--active .lc-stage__name, .lc-stage--accent .lc-stage__name { color: var(--white); }
.lc-stage__desc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-3);
  margin-top: 2px;
}
.lc-stage--active .lc-stage__desc, .lc-stage--accent .lc-stage__desc { color: rgba(255,255,255,0.85); }

.lc-legend {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.lc-legend > div { display: flex; align-items: center; gap: 8px; }
.lc-marker {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1px solid var(--line-2);
}
.lc-marker--active { background: var(--blue); border-color: var(--blue); }
.lc-marker--accent { background: var(--red); border-color: var(--red); }

/* Software stack */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.sw {
  padding: 22px 20px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section--alt .sw { background: var(--bg-alt); }
.sw__code {
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--blue);
  line-height: 1.15;
}
.sw__role {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.sw__desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* ========== 05. ПРОЕКТЫ ========== */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
}
.proj:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(0,39,92,0.18);
}
.proj__img {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.proj__placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--blue);
}
.proj__placeholder svg { width: 100%; height: 100%; max-height: 180px; }
.proj__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  background: rgba(0,39,92,0.92);
  color: var(--white);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 3;
}
.proj__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proj__meta {
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.proj__meta span:not(:last-child)::after {
  content: " · ";
  margin: 0 4px;
  color: var(--red);
}
.proj__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  color: var(--blue);
}
.proj__specs {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.proj__specs > div { display: flex; flex-direction: column; gap: 2px; }
.proj__specs dt {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.proj__specs dd {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: -0.005em;
}
.proj[hidden] { display: none !important; }

/* Staff experience projects — muted style */
.proj-grid--muted {
  opacity: 0.92;
}
.proj--staff {
  background: var(--bg-alt);
  border-color: var(--line);
}
.proj--staff .proj__img {
  filter: grayscale(0.35);
  opacity: 0.9;
}
.proj--staff:hover .proj__img { filter: grayscale(0); opacity: 1; }
.proj--staff .proj__title { color: var(--ink-2); }
.proj--staff .proj__specs dd { color: var(--ink-2); }
.proj--staff .proj__meta { color: var(--ink-3); opacity: 0.85; }

.proj-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ========== 06. КОМПАНИЯ ========== */
/* About company block */
.about {
  margin-bottom: clamp(28px, 3vw, 40px);
  padding-bottom: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.about__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  padding-top: 8px;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
.about__grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Geography map */
.geo-map {
  margin-top: clamp(32px, 3.5vw, 44px);
  padding: 24px 24px 12px;
  border: 1px solid var(--line-2);
  background: var(--white);
  border-radius: 14px;
}
.geo-map__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.geo-map__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.geo-map__legend {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.geo-map__legend > div { display: flex; align-items: center; gap: 6px; }
.geo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}
.geo-dot--main { background: var(--red); box-shadow: 0 0 0 3px rgba(148,10,3,0.18); }
.geo-map__viz {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF;
  border-radius: 8px;
}
.geo-map__viz svg, .geo-map__viz img {
  width: 100%;
  height: auto;
  min-width: 720px;
  display: block;
}

.company-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.fact-sheet {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-2);
  margin: 0;
}
.fact-sheet > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fact-sheet dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.fact-sheet dd {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}

.licenses {
  border: 1px solid var(--line-2);
  padding: 24px;
  background: var(--white);
}
.licenses__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.licenses__list { display: grid; gap: 0; }
.licenses__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.licenses__list li:last-child { border-bottom: none; }
.lic-idx {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  padding-top: 2px;
}
.licenses__list li div { display: grid; gap: 3px; }
.licenses__list li b {
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: -0.005em;
}
.licenses__list li span {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ========== 07. КОНТАКТЫ ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.contact-card {
  padding: 24px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
}
.contact-card--main {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
  background: var(--blue);
  color: var(--white);
}
.contact-card__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.contact-card--main .contact-card__label {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
}
.contact-line {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  align-items: baseline;
  transition: padding .2s var(--ease);
}
.contact-line:hover { padding-left: 4px; }
.contact-line__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
.contact-line__value {
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--white);
}
.contact-line--wa .contact-line__value { color: #25D366; }
.contact-line--phone .contact-line__value { font-size: 22px; }
.contact-line--wa:hover .contact-line__value { color: #4EDF80; }

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.addr-city {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.addr-line {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}
.addr-hours {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.contact-cta {
  grid-column: span 2;
  padding: 28px 32px;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .2s var(--ease);
  font-family: var(--font);
}
.contact-cta:hover { background: #B71810; }
.contact-cta__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.contact-cta__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
  padding-top: 4px;
}
.contact-cta__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  margin-top: auto;
}
.contact-cta__arrow {
  position: absolute;
  top: 28px; right: 28px;
  color: var(--white);
}
.contact-cta:hover .contact-cta__arrow { transform: translate(3px, -3px); transition: transform .2s var(--ease); }

/* ========== FOOTER ========== */
.footer {
  background: var(--blue);
  color: rgba(255,255,255,0.62);
  padding: 40px 0 20px;
  font-size: 13px;
}
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.footer__legal div:first-child { font-weight: 600; color: var(--white); margin-bottom: 2px; font-size: 13px; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  transition: color .2s var(--ease);
}
.footer__nav a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom a:hover { color: var(--white); }

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 12px;
  overflow-y: auto;
}
.modal[aria-hidden="false"] { display: flex; }
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,22,38,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease) forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  background: var(--white);
  border: 1px solid var(--line-2);
  padding: 0;
  margin: auto;
  box-shadow: 0 32px 80px -16px rgba(0,26,64,0.4);
  animation: slideUp .3s var(--ease) forwards;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal__head { flex: 0 0 auto; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all .2s var(--ease);
  z-index: 5;
  background: var(--white);
}
.modal__close:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.modal__head {
  padding: 32px 40px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.modal__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 8px;
}
.modal__head h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--blue);
}
.modal__head p {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  max-width: 620px;
  line-height: 1.55;
}
.req { color: var(--red); font-weight: 700; }
.modal__progress {
  margin-top: 16px;
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.modal__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width .3s var(--ease);
}
.kp-form {
  padding: 4px 40px 28px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.kp-section {
  border: none;
  padding: 20px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.kp-section:last-of-type { border-bottom: none; }
.kp-section legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--blue);
  margin-bottom: 16px;
  padding: 0;
}
.kp-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  padding: 3px 8px;
  border: 1px solid var(--red);
  letter-spacing: 0.04em;
}
.kp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.kp-grid__full { grid-column: 1 / -1; }
.kp-form .field { display: grid; gap: 6px; }
.kp-form .field label:not(.radio):not(.check-field) {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.kp-form input[type="text"], .kp-form input[type="tel"], .kp-form input[type="email"],
.kp-form select, .kp-form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  transition: all .2s var(--ease);
}
.kp-form input:focus, .kp-form select:focus, .kp-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: inset 0 -2px 0 0 var(--blue);
}
.kp-form input.invalid, .kp-form select.invalid, .kp-form textarea.invalid {
  border-color: var(--red);
}
.kp-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2300275C' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.kp-form textarea { resize: vertical; min-height: 72px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px; }
.radio { cursor: pointer; flex: 1 1 auto; min-width: 0; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span {
  display: block;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .15s var(--ease);
}
.radio:hover span { border-color: var(--blue); color: var(--blue); }
.radio input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.kp-footer { padding-top: 18px; display: grid; gap: 14px; }
.check-field {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--ink-3);
  cursor: pointer;
}
.check-field input { margin-top: 3px; accent-color: var(--red); }
.check-field b { color: var(--blue); }
.kp-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.kp-success {
  padding: 14px 18px;
  background: rgba(43,170,92,0.08);
  border: 1px solid rgba(43,170,92,0.35);
  color: #1A6E3A;
  font-size: 13px;
  line-height: 1.55;
}
.kp-success strong { color: #145C30; }
.kp-fallback {
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.kp-fallback a, .link-btn {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
.kp-fallback a:hover, .link-btn:hover { color: var(--blue); }
body.modal-open { overflow: hidden; }

/* ========== FAQ ========== */
.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.faq {
  border-bottom: 1px solid var(--line-2);
  padding: 0;
  transition: background .2s var(--ease);
}
.faq[open] { background: var(--bg-alt); }
.faq summary {
  padding: 22px 28px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.3;
  color: var(--blue);
  letter-spacing: -0.01em;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background:
    linear-gradient(#00275C, #00275C) center/16px 1.5px no-repeat,
    linear-gradient(#00275C, #00275C) center/1.5px 16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq[open] summary::after {
  background: linear-gradient(#940A03, #940A03) center/16px 1.5px no-repeat;
  transform: translateY(-50%) rotate(180deg);
}
.faq:hover summary { color: var(--red); }
.faq__answer {
  padding: 0 40px 24px 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  animation: faqSlide .25s var(--ease);
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq__answer p { margin: 0 0 10px; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer ul, .faq__answer ol { padding-left: 20px; margin: 8px 0; }
.faq__answer ul li, .faq__answer ol li { padding: 4px 0; }
.faq__answer ul li { list-style: none; position: relative; padding-left: 14px; }
.faq__answer ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--red);
}
.faq__answer ol { list-style: decimal; }
.faq__answer a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.faq__answer a:hover { color: var(--blue); }
.faq__answer b, .faq__answer strong { color: var(--blue); font-weight: 700; }
.faq__cta {
  background: none;
  border: none;
  color: var(--red);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
  font-size: inherit;
  min-height: 44px;
}
.faq__cta:hover { color: var(--blue); }

/* ========== Reveal ========== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 40ms; }
.reveal[data-delay="2"] { transition-delay: 80ms; }

/* ========== Safe area (iOS notch, home indicator) ========== */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }
  .nav__inner {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .modal__panel {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ========== Touch targets (44px min per WCAG) ========== */
@media (hover: none) and (pointer: coarse) {
  .btn, .filter__btn, .nav__menu a, .footer__nav a,
  .contact-line, .cities li, .stack-grid span, .radio,
  .nav__phone, .nav__wa { min-height: 44px; }
  .btn { padding: 14px 22px; }
  .filter__btn { padding: 10px 18px; }
  a { min-height: 44px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1180px) {
  .nav__menu { display: none; }
  .nav__phone { display: none; }
  .nav__burger { display: inline-flex; }

  .hero__topbar { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .tb-cell--right { text-align: left; }

  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage--wide { grid-column: span 2; }

  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .scope--bim { grid-column: span 2; }

  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .comp:nth-last-child(1) { grid-column: 1 / -1; }

  .sw-grid { grid-template-columns: repeat(3, 1fr); }
  .sw:nth-last-child(-n+2) { grid-column: auto; }

  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 16px; }
  .about__grid { grid-template-columns: 1fr; gap: 16px; }
  .fact-sheet > div { grid-template-columns: 160px 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card--main { grid-column: span 2; grid-row: auto; }
  .contact-cta { grid-column: span 2; }

  .head--split { grid-template-columns: 96px 1fr; }
  .filter { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }

  .footer__top { grid-template-columns: 1fr; gap: 20px; text-align: left; }
}

@media (max-width: 720px) {
  :root { --pad: 16px; --gap: 12px; }
  .head { grid-template-columns: 44px 1fr; column-gap: 14px; }
  .head__number { width: 36px; font-size: 11px; }
  .head__note { grid-column: 2; }
  .hero__topbar { grid-template-columns: 1fr; gap: 4px; }

  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts > div:nth-child(2) { border-right: none; }
  .hero__facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .stages { grid-template-columns: 1fr; }
  .stage--wide { grid-column: 1; }

  .scope-grid { grid-template-columns: 1fr; }
  .scope--bim { grid-column: 1; }

  .comp-grid { grid-template-columns: 1fr; }
  .comp:nth-last-child(1) { grid-column: auto; }

  .sw-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card--main, .contact-cta { grid-column: 1; }
  .fact-sheet > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }

  .stages-note { grid-template-columns: 1fr; gap: 8px; padding: 20px; }

  .modal { padding: 0; }
  .modal__panel { border-radius: 0; max-width: 100%; max-height: 100vh; max-height: 100dvh; border: none; }
  .modal__head { padding: 24px 18px 16px; }
  .kp-form { padding: 4px 18px 20px; }
  .kp-grid { grid-template-columns: 1fr; }
  .kp-actions { flex-direction: column-reverse; }
  .kp-actions .btn { width: 100%; justify-content: center; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ========== TABLET (720-1180) ========== */
@media (min-width: 721px) and (max-width: 1180px) {
  .hero__iso {
    right: -12%;
    width: 55%;
    opacity: 0.8;
  }
  .hero__title { font-size: clamp(30px, 4.4vw, 54px); }
  .stages, .scope-grid, .comp-grid { gap: 0; }
  .method-diagram { padding: 20px; }
  .lifecycle { padding: 20px; overflow-x: auto; }
}

/* ========== SMALL PHONE (< 480) ========== */
@media (max-width: 480px) {
  :root { --pad: 14px; --gap: 10px; }
  .hero { padding-top: clamp(84px, 15vw, 100px); padding-bottom: 36px; }
  .hero__iso { display: none; }
  .hero__wash { display: none; }
  .hero__title { font-size: clamp(26px, 8.5vw, 40px); }
  .hero__title-2 { font-size: 0.68em; }
  .hero__desc { font-size: 14px; }

  .hero__topbar { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 0 10px; gap: 4px; }
  .tb-cell { font-size: 10px; }
  .tb-cell--label { font-size: 11px; }

  .hero__actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero__actions .btn { width: 100%; justify-content: center; padding: 14px 20px; }

  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts > div { padding: 14px 12px 14px 0; }
  .hero__facts > div:not(:first-child) { padding-left: 12px; }
  .hero__facts dd { font-size: clamp(24px, 8vw, 32px); }

  .hero__strip { flex-wrap: wrap; overflow: visible; padding: 12px 14px; font-size: 11px; gap: 6px 10px; }
  .strip__title { font-size: 10px; }

  .head { grid-template-columns: 36px 1fr; column-gap: 12px; }
  .head__number { width: 32px; font-size: 10px; }
  .head__title { font-size: clamp(22px, 7vw, 30px); }
  .head__note { font-size: 13px; }
  .head--sub { margin-top: 28px; }
  .head__title--sub { font-size: 18px; }

  .stage { padding: 22px 18px; }
  .stage__title { font-size: 19px; }
  .stage--wide .stage__title { font-size: 21px; }
  .stage__num { font-size: 20px; }
  .stages-note { grid-template-columns: 1fr; gap: 10px; padding: 18px; }

  .scope { padding: 20px 18px; gap: 10px; }
  .scope__title { font-size: 17px; }
  .comp { padding: 18px; gap: 10px; }
  .comp__type { font-size: 15px; }
  .stack-group { padding: 16px 18px 18px; }
  .sw { padding: 18px 16px; }

  /* Filter — horizontal scroll on mobile */
  .filter {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding: 4px;
    gap: 2px;
    scrollbar-width: none;
  }
  .filter::-webkit-scrollbar { display: none; }
  .filter__btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 9px 14px;
  }

  .proj__body { padding: 16px; gap: 8px; }
  .proj__title { font-size: 15px; }
  .proj__specs { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-top: 12px; }

  .contact-card, .contact-card--main, .contact-cta { padding: 22px 20px; }
  .contact-card--main { padding: 24px 20px; }
  .contact-line { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .contact-line__label { font-size: 10px; }
  .contact-line--phone .contact-line__value { font-size: 18px; }
  .contact-line__value { font-size: 15px; }
  .contact-cta__title { font-size: 18px; }
  .addr-city { font-size: 16px; }

  .fact-sheet > div { padding: 12px 0; }
  .fact-sheet dd { font-size: 14px; }
  .licenses { padding: 20px; }
  .licenses__list li b { font-size: 13px; }

  .footer { padding: 40px 0 16px; font-size: 12px; }
  .footer__legal div:first-child { font-size: 12px; }
  .footer__logo { height: 28px; }

  /* FAQ on small phone */
  .faq summary { padding: 18px 26px 18px 0; font-size: 15px; }
  .faq summary::after { width: 14px; height: 14px; }
  .faq__answer { padding-right: 20px; font-size: 13px; }

  /* Method diagram: full horizontal scroll */
  .method-diagram { padding: 16px; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); border-left: none; border-right: none; }
  .method-diagram svg { min-width: 1100px; }

  /* Geo map: full horizontal scroll */
  .geo-map { padding: 16px; }
  .geo-map__viz svg, .geo-map__viz img { min-width: 900px; }
  .geo-map__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .geo-map__legend { flex-wrap: wrap; gap: 8px 16px; font-size: 10px; }

  /* Modal: full screen with sticky header + footer */
  .modal { padding: 0; align-items: stretch; }
  .modal__panel {
    border: none;
    border-radius: 0;
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100dvh;
    min-height: 100vh;
    box-shadow: none;
  }
  .modal__close {
    top: 8px; right: 8px;
    width: 40px; height: 40px;
    z-index: 10;
  }
  .modal__head {
    padding: 20px 18px 14px;
    position: sticky;
    top: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    z-index: 5;
  }
  .modal__head h2 { font-size: 20px; padding-right: 40px; }
  .modal__head p { font-size: 12px; }
  .modal__progress { margin-top: 12px; }
  .kp-form {
    padding: 12px 18px calc(20px + env(safe-area-inset-bottom));
  }
  .kp-section legend { font-size: 14px; }
  .kp-grid { grid-template-columns: 1fr; gap: 12px; }
  .kp-actions {
    flex-direction: column-reverse;
    gap: 8px;
    position: sticky;
    bottom: calc(0px + env(safe-area-inset-bottom));
    background: var(--white);
    padding: 12px 0 4px;
    margin: 0 -18px -20px;
    padding-left: 18px;
    padding-right: 18px;
    border-top: 1px solid var(--line);
  }
  .kp-actions .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 14px; }
  .radio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .radio span { padding: 10px 6px; font-size: 11px; }

  /* Landscape phone tweaks */
  @media (orientation: landscape) and (max-height: 480px) {
    .hero { padding-top: 90px; }
    .hero__title { font-size: clamp(24px, 6vw, 40px); margin-bottom: 12px; }
    .hero__desc { margin-bottom: 16px; }
    .modal__panel { min-height: auto; }
  }
}

/* ========== ULTRA-SMALL PHONE (<360) ========== */
@media (max-width: 360px) {
  :root { --pad: 12px; }
  .hero__title { font-size: 24px; }
  .head__title { font-size: 22px; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts > div { border-right: none !important; border-bottom: 1px solid var(--line); }
  .hero__facts > div:last-child { border-bottom: none; }
  .proj__specs { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
}

/* ========== ULTRA-WIDE (>1600) ========== */
@media (min-width: 1600px) {
  :root { --container: 1440px; }
  .hero__title { font-size: clamp(56px, 5vw, 82px); }
}

/* ========== iOS 100dvh fix ========== */
@supports (height: 100dvh) {
  .modal[aria-hidden="false"] { min-height: 100dvh; }
}

/* ========== Prefers-reduced-motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ========== Print styles ========== */
@media print {
  .nav, .footer__nav, .contact-cta, .modal, .hero__iso, .hero__wash, .blueprint-bg,
  .filter, .proj-footer, .contact-quick, .footer__socials { display: none !important; }
  body { background: #FFFFFF; color: #000; font-size: 11pt; }
  a { text-decoration: none; color: #000; }
  .section { padding: 20pt 0; page-break-inside: avoid; border-top: 1px solid #ccc; }
  .head__title { font-size: 20pt; color: #000; }
  .hero { padding: 40pt 0 20pt; }
  .hero__title { font-size: 26pt; color: #000; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 10pt; }
  .proj__img { max-height: 100pt; }
}
