/* ==========================================================================
   Ремонт - МСК — Renovation turnkey (light / conversion-focused)
   Global stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette — airy, no black fills */
  --ink: #1e293b;
  --ink-2: #f8fafc;
  --ink-3: #f1f5f9;
  --bone: #f1f5f9;
  --bone-2: #e2e8f0;
  --paper: #ffffff;
  --cream: #f8fafc;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.14);
  --accent-glow: rgba(14, 165, 233, 0.35);
  --gold: var(--accent);
  --gold-2: #0284c7;
  --gold-soft: #38bdf8;
  --gold-glow: rgba(14, 165, 233, 0.2);
  --clay: #b06845;
  --terracotta: #b9542d;
  --sage: #64748b;
  --muted: #64748b;
  --line: rgba(30, 41, 59, 0.08);
  --line-strong: rgba(30, 41, 59, 0.16);
  --line-on-dark: rgba(30, 41, 59, 0.1);
  --line-gold: rgba(14, 165, 233, 0.35);

  /* Type */
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 12px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 4px 20px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-3: 0 24px 60px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-gold: 0 12px 36px rgba(14, 165, 233, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.h-xxl {
  font-family: var(--display);
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.h-xl {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.015em;
}
.h-l {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h-m {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.15;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-line::before {
  display: none;
}
.lede {
  font-family: var(--sans);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  font-style: normal;
}
.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.serif-italic {
  font-family: var(--display);
  font-style: italic;
}

/* ---------- Atmosphere: film grain, vignette, intro curtain ---------- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -120%;
  z-index: 1;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px;
  animation: grainShift 8s steps(8) infinite;
}
.grain.on-dark {
  mix-blend-mode: screen;
  opacity: 0.05;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-3%, -2%); }
  20%  { transform: translate(2%, -1%); }
  30%  { transform: translate(-1%, 3%); }
  40%  { transform: translate(3%, 2%); }
  50%  { transform: translate(-2%, -3%); }
  60%  { transform: translate(1%, -2%); }
  70%  { transform: translate(-3%, 1%); }
  80%  { transform: translate(2%, 3%); }
  90%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* Page intro — vertical gold curtain wipe */
.page-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper);
}
.page-intro::before {
  content: "РЕМОНТ - МСК";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: clamp(36px, 8vw, 120px);
  letter-spacing: -0.02em;
  color: var(--ink);
  z-index: 2;
  opacity: 0;
  animation: introWord 1.4s var(--ease-soft) forwards;
}
.page-intro::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: var(--accent);
  z-index: 2;
  opacity: 0;
  animation: introUnderline 1.6s var(--ease-soft) 0.15s forwards;
}
.page-intro .panel {
  background: var(--paper);
  height: 100%;
  transform-origin: top;
  animation: introPanel 1.4s var(--ease-soft) 1.1s forwards;
}
.page-intro .panel:nth-child(1) { animation-delay: 1.10s; }
.page-intro .panel:nth-child(2) { animation-delay: 1.18s; }
.page-intro .panel:nth-child(3) { animation-delay: 1.26s; }
.page-intro .panel:nth-child(4) { animation-delay: 1.34s; }
.page-intro .panel:nth-child(5) { animation-delay: 1.42s; }
.page-intro.gone {
  pointer-events: none;
  visibility: hidden;
}
@keyframes introWord {
  0%   { opacity: 0; transform: translate(-50%, -45%); letter-spacing: 0.4em; }
  60%  { opacity: 1; transform: translate(-50%, -50%); letter-spacing: 0.06em; }
  100% { opacity: 0; transform: translate(-50%, -50%); letter-spacing: 0.06em; }
}
@keyframes introUnderline {
  0%   { opacity: 0; width: 0; }
  60%  { opacity: 1; width: 220px; }
  100% { opacity: 0; width: 220px; }
}
@keyframes introPanel {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* Custom cursor (desktop only, fine pointer) */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    background 0.25s var(--ease), opacity 0.25s var(--ease);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  transition: transform 0.18s var(--ease-soft), width 0.3s var(--ease),
    height 0.3s var(--ease), border-color 0.3s var(--ease),
    opacity 0.3s var(--ease);
  opacity: 0.85;
}
body.cursor-active .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: var(--muted);
  border-width: 1px;
  opacity: 1;
}
body.cursor-active .cursor-dot {
  width: 4px;
  height: 4px;
  opacity: 0.6;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring { display: none; }
}

/* Editorial scroll cue */
.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.scroll-cue .stem {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .stem::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--accent);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(80px); opacity: 0.4; }
  100% { transform: translateY(80px); opacity: 0; }
}

/* Magnetic-button container */
.magnetic { display: inline-block; will-change: transform; }
.magnetic-target { display: inline-flex; will-change: transform; transition: transform 0.4s var(--ease-spring); }

/* Hero letter-reveal */
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}
.hero h1 .letter {
  display: inline-block;
  transform: translateY(110%);
  animation: letterIn 1.1s var(--ease-soft) forwards;
}
@keyframes letterIn {
  to { transform: translateY(0); }
}

/* Section number indicator (vertical) */
.section-index {
  position: absolute;
  top: clamp(60px, 8vw, 120px);
  left: clamp(8px, 2vw, 24px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  pointer-events: none;
}
.section.dark .section-index { color: var(--muted); }
@media (max-width: 1100px) {
  .section-index { display: none; }
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.section.tight {
  padding: clamp(48px, 6vw, 88px) 0;
}
.section.dark {
  background: linear-gradient(165deg, #f0f9ff 0%, #f8fafc 38%, #f1f5f9 100%);
  color: var(--ink);
  isolation: isolate;
  border-block: 1px solid var(--line);
}
.section.cream {
  background: var(--cream);
}
.section.bone {
  background: var(--bone);
}
.section.dark .eyebrow {
  color: var(--ink);
}
.section.dark .muted {
  color: var(--muted);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}
.divider.on-dark {
  background: var(--line);
}
.muted {
  color: var(--muted);
}
.gold {
  color: var(--gold);
}
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 820px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border-radius: 6px;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-soft), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-soft);
  z-index: -1;
}
.btn-primary::before { background: var(--accent); }
.btn-gold::before    { background: #ffffff; }
.btn-ghost::before   { background: var(--accent); }
.btn-ghost.on-dark::before { background: var(--accent); }
.btn:hover::before   { transform: translateY(0); }
.btn:hover .arrow    { transform: translateX(4px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn .arrow {
  width: 22px;
  height: 12px;
  position: relative;
  display: inline-block;
  transition: transform 0.4s var(--ease-spring);
}
.btn .arrow::before,
.btn .arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.btn .arrow::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.btn .arrow::after {
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: transparent;
  right: 1px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  color: #ffffff;
  box-shadow: var(--shadow-2);
}
.btn-gold {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-2);
}
.btn-gold:hover {
  color: var(--accent);
  box-shadow: var(--shadow-gold);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  color: #ffffff;
  border-color: var(--accent);
}
.btn-ghost.on-dark {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost.on-dark:hover {
  color: #ffffff;
  border-color: var(--accent);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}
.link:hover {
  color: var(--ink);
  opacity: 0.75;
}

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--cream);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.utility-bar a:hover {
  color: var(--ink);
}
.utility-bar .marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.utility-bar .marquee span {
  display: inline-block;
  padding-right: 0;
  animation: marquee 38s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.utility-bar .marquee i {
  font-style: normal;
  color: var(--ink);
  margin: 0 18px;
  font-size: 9px;
  vertical-align: 1px;
  letter-spacing: 0;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 720px) {
  .utility-bar .marquee {
    display: none;
  }
  .utility-bar .wrap {
    justify-content: flex-end;
  }
  .utility-bar .wrap > div:last-child {
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
    max-width: 100%;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-1);
}
.site-header.on-dark {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-bottom-color: var(--line);
}
/* Две строки: бренд + CTA сверху, меню снизу на всю ширину — иначе flex-навигация
   переполняет среднюю колонку и визуально наезжает на лого и телефон */
.site-header .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(12px, 2vw, 24px);
  row-gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-header .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
}
.site-header .nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}
.site-header .header-cta {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  flex-shrink: 0;
}
.brand {
  font-family: var(--sans);
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand .mark {
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  position: relative;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.brand .mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  opacity: 0.32;
}
.brand .mark::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.brand:hover .mark { color: var(--accent-hover); border-color: var(--accent); opacity: 1; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1.35;
}
.site-header .brand > span:not(.mark) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.nav {
  display: flex;
  gap: clamp(8px, 1.2vw, 18px) clamp(10px, 1.5vw, 22px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}
.nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav a.active,
.nav a:hover {
  color: var(--accent-hover);
  opacity: 1;
}
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.header-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  min-width: 0;
  flex-shrink: 0;
}
.header-cta .phone {
  font-family: var(--sans);
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.header-cta .phone small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}
.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: currentColor;
}
.menu-toggle span:nth-child(1) {
  top: 17px;
}
.menu-toggle span:nth-child(2) {
  bottom: 17px;
}
@media (max-width: 1320px) {
  .nav a {
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 6px 2px;
  }
  .nav {
    gap: 10px;
  }
}
@media (max-width: 1180px) {
  .nav {
    gap: 8px;
  }
  .nav a {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}
/* Убираем подпись под логотипом — освобождаем место под пункты меню */
@media (max-width: 1120px) {
  .site-header .brand small {
    display: none;
  }
}
@media (max-width: 1060px) {
  .header-cta .phone {
    display: none;
  }
  .header-cta .btn {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .site-header .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    row-gap: 0;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    column-gap: 12px;
  }
  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .site-header .nav {
    display: none;
    grid-column: unset;
    grid-row: unset;
    border-top: none;
    padding-top: 0;
  }
  .site-header .header-cta {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 10px;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  background: var(--paper);
  color: var(--ink);
  z-index: 90;
  transform: translateY(-100%);
  visibility: hidden;
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease),
    visibility 0.6s;
  display: flex;
  flex-direction: column;
  padding-top: max(24px, env(safe-area-inset-top, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mobile-menu .top .brand {
  flex: 1;
  min-width: 0;
}
.mobile-menu .brand > span:not(.mark) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.mobile-menu .close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.mobile-menu .close::before,
.mobile-menu .close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1px;
  background: currentColor;
  top: 50%;
  left: 50%;
}
.mobile-menu .close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.mobile-menu .close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.mobile-menu nav {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu nav a {
  font-family: var(--sans);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-height: 520px) and (max-width: 1060px) {
  .mobile-menu nav {
    margin-top: 28px;
  }
  .mobile-menu nav a {
    padding: 10px 0;
    font-size: clamp(18px, 4vw, 26px);
  }
}
.mobile-menu .meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) 0 0;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
.hero .top-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hero .top-meta span:first-child::before {
  content: "● ";
  color: #16a34a;
  margin-right: 4px;
  font-size: 8px;
  vertical-align: 2px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  position: relative;
  max-width: min(36ch, 100%);
  margin: 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}
.hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 48px;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  animation: heroLine 1.2s var(--ease-soft) 1.4s both;
}
@keyframes heroLine {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@media (max-width: 640px) {
  .hero h1 {
    max-width: none;
  }
}
/* Десктоп: заголовок на половину экрана, фото в hero ~+40% по высоте */
@media (min-width: 901px) {
  .hero h1 {
    max-width: 50vw;
  }
  .hero .visual {
    height: clamp(448px, 58.8vw, 728px);
  }
}
.hero .stage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(16px, 2.5vw, 32px);
  padding-bottom: clamp(32px, 5vw, 64px);
}
.hero .stage .lede {
  color: var(--muted);
  max-width: 520px;
  font-style: normal;
  font-family: var(--sans);
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: center;
}
.hero .visual {
  position: relative;
  height: clamp(320px, 42vw, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.hero .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1);
  transition: transform 1.4s var(--ease);
}
.hero .visual:hover img {
  transform: scale(1.04);
}
.hero .visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
}
.hero .visual .badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 2;
}
.hero .ticker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: none;
  padding: 12px 0 0;
  margin-top: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero .ticker span {
  position: relative;
  transition: color 0.3s var(--ease);
}
.hero .ticker span:hover { color: var(--ink); }
.hero .ticker .dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: 2px;
  opacity: 0.35;
  box-shadow: none;
}
.hero .deco {
  display: none;
}
@media (max-width: 900px) {
  .hero .stage {
    grid-template-columns: 1fr;
  }
  .hero .visual {
    height: 320px;
  }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bone);
  position: relative;
}
.stats::before,
.stats::after {
  content: "";
  display: none;
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .stat {
  padding: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.5s var(--ease);
}
.stats .stat:hover { background: rgba(0, 0, 0, 0.02); }
.stats .stat:last-child { border-right: none; }
.stats .stat .index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.stats .num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  align-self: flex-start;
}
.stats .num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.stats .num small {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.42em;
  vertical-align: top;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}
.stats .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .stats .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats .stat {
    border-bottom: 1px solid var(--line);
  }
  .stats .stat:nth-child(2n) {
    border-right: none;
  }
  .stats .stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* ---------- About preview ---------- */
.about-pre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-pre .image-stack {
  position: relative;
}
.about-pre .image-stack .a {
  width: 78%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}
.about-pre .image-stack .b {
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 50%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  outline: 8px solid var(--paper);
}
.about-pre .image-stack .stamp {
  position: absolute;
  top: 12px;
  left: -12px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
}
.about-pre .body p + p {
  margin-top: 18px;
}
.about-pre .signature {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-pre .signature .sig {
  font-family: var(--sans);
  font-style: normal;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.about-pre .body .actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .about-pre {
    grid-template-columns: 1fr;
  }
}

/* ---------- Portfolio grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.portfolio-grid .item {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.portfolio-grid .item .cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  transition: transform 1.2s var(--ease);
  filter: saturate(0.9);
}
.portfolio-grid .item:hover .cover {
  transform: scale(1.06);
}
.portfolio-grid .item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(255, 255, 255, 0.92) 100%);
  pointer-events: none;
}
.portfolio-grid .item .meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 28px;
}
.portfolio-grid .item .top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.portfolio-grid .item .bottom h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.portfolio-grid .item .bottom .row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 14px;
}
.portfolio-grid .item .bottom .area {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.portfolio-grid .item .arrow-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background 0.45s var(--ease-soft), color 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft), transform 0.55s var(--ease-spring);
}
.portfolio-grid .item:hover .arrow-btn {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent-hover);
  transform: rotate(-45deg);
}
.portfolio-grid .item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 3;
  transition: width 0.7s var(--ease-soft);
}
.portfolio-grid .item:hover::before { width: 100%; }
.portfolio-grid .item.span-7 {
  grid-column: span 7;
  aspect-ratio: 16 / 11;
}
.portfolio-grid .item.span-5 {
  grid-column: span 5;
  aspect-ratio: 10 / 11;
}
.portfolio-grid .item.span-6 {
  grid-column: span 6;
  aspect-ratio: 5 / 4;
}
.portfolio-grid .item.span-4 {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
}
.portfolio-grid .item.span-8 {
  grid-column: span 8;
  aspect-ratio: 16 / 10;
}
.portfolio-grid .item.span-12 {
  grid-column: span 12;
  aspect-ratio: 16 / 8;
}
@media (max-width: 900px) {
  .portfolio-grid .item {
    grid-column: span 12 !important;
    aspect-ratio: 4 / 5 !important;
  }
}

/* ---------- Advantages (numbered) ---------- */
.adv-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.adv-list .row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: start;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.adv-list .row .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.adv-list .row h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.adv-list .row p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 60ch;
}
.adv-list .row .icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
  justify-self: end;
}
.adv-list .row .icon svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 900px) {
  .adv-list {
    grid-template-columns: 1fr;
  }
  .adv-list .row {
    grid-template-columns: 60px 1fr 56px;
  }
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.adv-grid .cell {
  padding: clamp(36px, 4vw, 56px) clamp(24px, 2.5vw, 36px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: background 0.5s var(--ease);
}
.adv-grid .cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-soft);
}
.adv-grid .cell:hover {
  background: rgba(0, 0, 0, 0.02);
}
.adv-grid .cell:hover::before {
  transform: scaleY(1);
}
.adv-grid .cell:last-child { border-right: none; }
.adv-grid .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.adv-grid .num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.adv-grid h3 {
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.adv-grid p {
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 980px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adv-grid .cell {
    border-bottom: 1px solid var(--line);
  }
  .adv-grid .cell:nth-child(2n) {
    border-right: none;
  }
  .adv-grid .cell:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}
@media (max-width: 600px) {
  .adv-grid {
    grid-template-columns: 1fr;
  }
  .adv-grid .cell {
    border-right: none !important;
  }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: clamp(32px, 3.4vw, 44px) clamp(28px, 2.8vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.55s var(--ease-soft), transform 0.6s var(--ease-soft),
    box-shadow 0.55s var(--ease-soft);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease-soft);
  z-index: -1;
}
.service::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.service:hover {
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.service:hover::before { transform: translateY(0); }
.service:hover::after  { opacity: 1; }
.service:hover .price,
.service:hover .num {
  color: var(--muted);
}
.service:hover .feat {
  border-color: var(--line);
}
.service:hover .feat::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.08);
}
.service .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.service h3 {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.service .price {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}
.service .feats {
  display: flex;
  flex-direction: column;
}
.service .feat {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.service .feat:last-child {
  border-bottom: 1px solid var(--line);
}
.service .feat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  flex-shrink: 0;
}
.service .more {
  margin-top: auto;
}
.service.service--featured {
  background: linear-gradient(165deg, #f0f9ff 0%, #ffffff 62%, #f8fafc 100%);
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 16px 48px -28px rgba(14, 165, 233, 0.22);
}
.service.service--featured .num,
.service.service--featured .price {
  color: var(--accent-hover);
}
.service.service--featured .feat {
  border-color: rgba(14, 165, 233, 0.14);
}
.service.service--featured .more {
  color: var(--accent-hover);
}
@media (max-width: 980px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* ---------- Process timeline ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.process .step {
  padding: 36px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process .step:last-child {
  border-right: none;
}
.process .step .index {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  color: rgba(23, 23, 23, 0.12);
  margin-bottom: 16px;
}
.process .step h4 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.process .step p {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .process .step {
    border-bottom: 1px solid var(--line);
  }
  .process .step:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 600px) {
  .process {
    grid-template-columns: 1fr;
  }
  .process .step {
    border-right: none !important;
  }
}

/* ---------- Testimonials ---------- */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  border: 1px solid var(--line);
  padding: 44px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--paper);
  position: relative;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    transform 0.5s var(--ease-soft);
}
.testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
  transition: width 0.6s var(--ease-soft);
}
.testimonial:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.testimonial:hover::before { width: 100%; }
.testimonial .mark {
  font-family: var(--sans);
  font-style: normal;
  font-size: 48px;
  line-height: 0.7;
  font-weight: 700;
  color: rgba(23, 23, 23, 0.08);
  letter-spacing: -0.04em;
}
.testimonial p {
  margin-top: 4px;
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(16px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--ink);
}
.testimonial .who {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.testimonial .who .av {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
}
.testimonial .who .name {
  font-weight: 600;
  font-size: 14px;
}
.testimonial .who .place {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.12em;
}
.testimonial .stars {
  display: flex;
  gap: 4px;
  color: #ca8a04;
  font-size: 14px;
  letter-spacing: 0.1em;
}
@media (max-width: 980px) {
  .testimonials-track {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  transition: padding 0.4s var(--ease);
}
.faq details[open] { padding: 32px 0 28px; }
.faq summary {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  transition: color 0.3s var(--ease);
}
.faq summary::before {
  content: "0" counter(faq-counter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.faq { counter-reset: faq-counter; }
.faq details { counter-increment: faq-counter; }
.faq summary:hover { color: var(--gold); }
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s var(--ease);
}
.faq summary .toggle::before,
.faq summary .toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.faq summary .toggle::before {
  width: 16px;
  height: 1px;
}
.faq summary .toggle::after {
  width: 1px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary .toggle {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent-hover);
}
.faq details[open] summary .toggle::after {
  transform: scaleY(0);
}
.faq .answer {
  margin-top: 16px;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.7;
}

/* ---------- Blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-card .img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
  overflow: hidden;
}
.post-card:hover .img {
  filter: saturate(1.05) brightness(1.04);
}
.post-card .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-card h3 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.post-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 48%, #f8fafc 100%);
  color: var(--ink);
  padding: clamp(56px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  z-index: 1;
}
.cta-banner::before {
  top: 32px;
  left: var(--gutter);
  border-right: none;
  border-bottom: none;
}
.cta-banner::after {
  bottom: 32px;
  right: var(--gutter);
  border-left: none;
  border-top: none;
}
.cta-banner .wrap { position: relative; z-index: 2; }
.cta-banner .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.cta-banner h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cta-banner h2 em {
  font-style: normal;
  color: var(--muted);
}
.cta-banner .sub {
  margin-top: 20px;
  color: var(--muted);
  max-width: 50ch;
}
.cta-banner .acts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: end;
}
.cta-banner .deco {
  display: none;
}
@media (max-width: 900px) {
  .cta-banner .grid {
    grid-template-columns: 1fr;
  }
  .cta-banner .acts {
    justify-content: start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  color: var(--muted);
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.site-footer .brand {
  color: var(--ink);
}
.site-footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a:hover {
  color: var(--ink);
}
.site-footer .about {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.7;
}
.site-footer .bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.site-footer .socials a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.45s var(--ease-soft);
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.site-footer .socials a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-soft);
  z-index: -1;
}
.site-footer .socials a:hover {
  color: #ffffff;
  border-color: var(--accent);
}
.site-footer .socials a:hover::after { transform: translateY(0); }
@media (max-width: 980px) {
  .site-footer .top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .site-footer .top {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  color: var(--ink);
  padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 8vw, 88px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 12px;
}
.page-hero .crumbs a:hover {
  color: var(--ink);
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 24px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--muted);
}
.page-hero .sub {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--muted);
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(17px, 1.5vw, 19px);
}
.page-hero .deco {
  display: none;
}

/* ---------- Modal & multi-step form ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px));
}
.modal.open {
  display: flex;
  animation: fadeIn 0.4s var(--ease);
}
.modal .panel {
  background: var(--paper);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  padding: 56px 48px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}
@media (max-width: 600px) {
  .modal .panel {
    padding: 36px 22px 40px;
    max-height: 96vh;
    border-radius: 10px;
  }
}
.modal .panel .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: absolute;
}
.modal .panel .close::before,
.modal .panel .close::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 1px;
  background: currentColor;
  top: 50%;
  left: 50%;
}
.modal .panel .close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal .panel .close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.steps .bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
}
.steps .bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.q {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.opts {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.opts label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.opts label:hover {
  border-color: var(--accent);
}
.opts label.checked {
  border-color: var(--gold);
  background: rgba(201, 164, 90, 0.06);
}
.opts input {
  accent-color: var(--gold);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 16px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.range {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.range input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}
.range .value {
  font-family: var(--display);
  font-size: 28px;
  color: var(--gold);
}
.range .ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.modal .actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}
.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 0;
}
.success .check {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 40px;
  font-family: var(--display);
}

/* ---------- Project filter ---------- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.chip {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover {
  border-color: var(--accent);
}
.chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent-hover);
}

/* ---------- Blog author card ---------- */
.author-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 32px;
}
@media (max-width: 720px) {
  .author-card {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 24px;
  }
}

/* ---------- Project gallery (Projects page) ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.proj-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.proj-card .ph {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease);
  filter: saturate(0.9);
}
.proj-card:hover .ph {
  transform: scale(1.04);
}
.proj-card .info {
  background: var(--paper);
  color: var(--ink);
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proj-card .info .head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-card .info h3 {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.proj-card .info .specs {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
@media (max-width: 720px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Project detail page ---------- */
.proj-cover {
  width: 100%;
  height: clamp(360px, 60vw, 680px);
  background-size: cover;
  background-position: center;
  position: relative;
}
.proj-meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  padding-top: 48px;
}
.proj-meta .right {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.proj-meta dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
}
.proj-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 4px;
}
.proj-meta dd {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
}
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.proj-gallery .ph {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}
.proj-gallery .ph.span-3 {
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}
.proj-gallery .ph.span-2 {
  grid-column: span 2;
  aspect-ratio: 1 / 1;
}
.proj-gallery .ph.span-6 {
  grid-column: span 6;
  aspect-ratio: 16 / 7;
}
.proj-gallery .ph.span-4 {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}
@media (max-width: 900px) {
  .proj-meta {
    grid-template-columns: 1fr;
  }
  .proj-meta .right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .proj-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .proj-gallery .ph {
    grid-column: span 1 !important;
    aspect-ratio: 4 / 3 !important;
  }
}

/* ---------- Article ---------- */
.article {
  max-width: 740px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}
.article p {
  margin-bottom: 22px;
  color: var(--ink);
}
.article h2 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
}
.article h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article blockquote {
  margin: 36px 0;
  padding: 24px 0 24px 28px;
  border-left: 2px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}
.article ul {
  margin: 16px 0 24px;
  padding-left: 24px;
  list-style: disc;
}
.article ul li {
  margin-bottom: 8px;
}
.article img {
  margin: 32px 0;
  width: 100%;
  height: auto;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  max-width: 460px;
  background: var(--paper);
  color: var(--ink);
  padding: 22px 24px 22px 28px;
  z-index: 70;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  line-height: 1.5;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.55s var(--ease-soft);
  box-shadow: var(--shadow-3);
}
.cookie-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner strong {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cookie-banner button {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    grid-template-columns: 1fr;
    padding-bottom: max(22px, env(safe-area-inset-bottom, 22px));
  }
}

/* ---------- Floating contact ---------- */
.float-contact {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-contact a {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--accent);
  border: 2px solid var(--accent-soft);
  transition: transform 0.45s var(--ease-spring), background 0.4s var(--ease),
    color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: var(--shadow-2);
  position: relative;
}
.float-contact a::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s var(--ease), transform 0.55s var(--ease-spring);
}
.float-contact a:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-gold);
}
.float-contact a:hover::before {
  opacity: 0.6;
  transform: scale(1);
}
.float-contact a svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 64px;
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 40px;
  height: 3px;
  background: var(--accent);
}
.section.dark .section-head::before { background: var(--accent); }
.section-head .label {
  display: flex;
  align-items: end;
  gap: 14px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-head h2 em {
  font-style: normal;
  color: var(--muted);
}
.section-head .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  align-self: end;
}
.section-head .right::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin-left: auto;
  margin-bottom: 8px;
}
@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-head .right {
    text-align: left;
  }
}

.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  position: relative;
}
.partners span {
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 18px);
  font-style: normal;
  font-weight: 500;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease-soft);
  position: relative;
  padding: 0 14px;
}
.partners span + span::before {
  content: "·";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--line-strong);
  font-size: 14px;
  opacity: 1;
}
.partners span:hover {
  color: var(--ink);
  transform: translateY(-2px);
}
@media (max-width: 720px) {
  .partners {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Map ---------- */
.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bone);
  height: clamp(320px, 50vw, 520px);
  overflow: hidden;
}
.map-wrap iframe,
.map-wrap .map {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-info .item h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-info .item p {
  font-family: var(--display);
  font-size: 22px;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Form (page) ---------- */
.form-card {
  background: var(--bone);
  padding: 48px;
  border: 1px solid var(--line);
}
.form-card h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}
.form-card p {
  color: var(--muted);
  margin-bottom: 28px;
}
.form-card .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-card .full {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .form-card {
    padding: 32px 24px;
  }
  .form-card .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Award strip ---------- */
.awards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.awards .a {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
  transition: background 0.5s var(--ease);
  position: relative;
}
.awards .a::before {
  content: "✦";
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--muted);
  font-size: 10px;
  opacity: 0.4;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease-spring);
}
.awards .a:hover { background: rgba(0, 0, 0, 0.02); }
.awards .a:hover::before {
  opacity: 1;
  transform: rotate(72deg);
}
.awards .a:last-child { border-right: none; }
.awards .y {
  font-family: var(--display);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.awards .t {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 22px);
  margin-top: 10px;
  line-height: 1.2;
}
.awards .s {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 10px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .awards {
    grid-template-columns: 1fr 1fr;
  }
  .awards .a {
    border-bottom: 1px solid var(--line);
  }
  .awards .a:nth-child(2n) {
    border-right: none;
  }
}

/* ---------- Team grid ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team .person .ph {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(1.05);
  transition: filter 0.5s var(--ease);
}
.team .person:hover .ph {
  filter: saturate(1) contrast(1);
}
.team .person h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  margin-top: 16px;
}
.team .person p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 900px) {
  .team {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Timeline ---------- */
.timeline {
  border-top: 1px solid var(--line);
}
.timeline .row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.timeline .y {
  font-family: var(--display);
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
}
.timeline h4 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}
.timeline p {
  color: var(--muted);
  max-width: 70ch;
}
@media (max-width: 720px) {
  .timeline .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- Pricing rows ---------- */
.price-row {
  display: grid;
  grid-template-columns: 100px 1.4fr 1fr 160px;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.price-row .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.price-row .name {
  font-family: var(--display);
  font-size: 24px;
}
.price-row .desc {
  color: var(--muted);
  font-size: 14px;
}
.price-row .price {
  font-family: var(--display);
  font-size: 24px;
  text-align: right;
}
@media (max-width: 820px) {
  .price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .price-row .price {
    text-align: left;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 24px;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--line);
}
.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 18px;
}

/* ---------- Local foto portfolio ---------- */
.foto-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.foto-tile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
}
.foto-tile__link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone);
}
.foto-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.foto-tile:hover img {
  transform: scale(1.04);
}
.foto-tile figcaption {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foto-tile figcaption strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.foto-tile figcaption span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.foto-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.foto-strip a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bone);
}
.foto-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.foto-strip a:hover img {
  transform: scale(1.05);
}
@media (max-width: 820px) {
  .foto-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .foto-strip {
    grid-template-columns: 1fr;
  }
}

/* ---------- Project case hero (light) ---------- */
.proj-page-hero {
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%, #f0f9ff 100%);
  color: var(--ink);
  padding: 64px 0 0;
  border-bottom: 1px solid var(--line);
}
.proj-page-hero .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}
.proj-page-hero .crumbs,
.proj-page-hero .crumbs a {
  color: var(--muted);
}
.proj-page-hero .crumbs a:hover {
  color: var(--accent-hover);
}
.proj-page-hero .hero-kicker {
  color: var(--accent-hover);
  margin-bottom: 18px;
}
.proj-page-hero .lede {
  color: var(--muted);
  font-style: normal;
}
.proj-page-hero .proj-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.proj-page-hero .proj-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.proj-page-hero h1 em.gold,
.proj-page-hero h1 .serif-italic.gold {
  color: var(--accent-hover);
}
@media (max-width: 820px) {
  .proj-page-hero .proj-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive polish (mobile / tablet) ---------- */
@media (max-width: 560px) {
  .stats .grid {
    grid-template-columns: 1fr;
  }
  .stats .stat {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
  .stats .stat:last-child {
    border-bottom: none;
  }
}
@media (max-width: 520px) {
  .chip {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}
@media (max-width: 420px) {
  .site-header .brand {
    font-size: 14px;
    gap: 9px;
  }
  .site-header .brand .mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}