/* ════════════════════════════════════════════════════════
   КОРОБ V3 — Premium Box Experience
   Black & White · Industrial Luxury · Motion-First
════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  --bg:          #0a0a09;
  --fg:          #ffffff;
  --fg2:         rgba(255,255,255,0.6);
  --fg3:         rgba(255,255,255,0.3);
  --card-bg:     #111110;
  --card-border: rgba(255,255,255,0.07);
  --line:        rgba(255,255,255,0.1);
  --faint:       rgba(255,255,255,0.18);
  --accent:      #FF4F00;            /* международный оранжевый (сигнальный) — акцент */
  --accent-hi:   #FF6A26;            /* светлее для ховеров */
  --accent-ink:  #0a0a09;            /* текст на оранжевом */
  --mono:        'Courier New', 'Courier', monospace;

  /* Cardboard palette */
  --cb-bright: #f5f0ea;
  --cb-mid:    #e2dbd2;
  --cb-dark:   #c8c2b9;
  --cb-shadow: #b0aaa0;
  --cb-edge:   rgba(0,0,0,0.12);
  --cb-in:     #0e0e0d; /* inside box — near-black */

  /* Box geometry */
  --bs:  440px;   /* box side */
  --bh:  220px;   /* half side */

  /* Layout */
  --wall: 4vw;    /* decorative cardboard strip width */
  --fw:   64px;   /* side nav strip width (inside wall) */
  --hdr:  68px;   /* header height */
  --max:  1200px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-moz-selection { background: var(--accent); color: var(--accent-ink); }
html { font-size: 16px; scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Lenis handles overflow-y */
}
body.is-loading #site-content,
body.is-loading #site-header,
body.is-loading #side-nav,
body.is-loading #botbar,
body.is-loading #box-frame { opacity: 0; pointer-events: none; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }


/* ════════════════════════════════════════════════════
   PRELOADER — VIDEO INTRO
════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  overflow: hidden;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#intro-skip {
  position: absolute;
  bottom: 40px; right: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.5);
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  opacity: 0;
  transition: color 0.2s, border-color 0.2s;
}
#intro-skip:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.55);
}



/* ════════════════════════════════════════════════════
   BOX FRAME — full-screen cardboard overlay
   PNG has transparent center; borders frame the site.
════════════════════════════════════════════════════ */
#box-frame {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  border-style: solid;
  border-color: transparent;
  border-image-source: url(box-overlay.png);
  border-image-slice: 115 131 111 130 fill;
  border-image-width: 6vh 4.5vw;
  border-image-outset: 1vh 0.5vw;
  border-image-repeat: stretch;
}

/* ── Shared base ── */
.cardboard-side-left,
.cardboard-side-right {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--wall);
  background-image: url(box-sides.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
}

/* ── Left wall ── */
.cardboard-side-left {
  left: 0;
  transform-origin: left center;
  transform: perspective(1400px) rotateY(-10deg);
}
/* Subtle outer-edge vignette (image already has natural lighting) */
.cardboard-side-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.18) 0%,
    transparent 60%
  );
}
/* Inner-edge shadow cast onto content */
.cardboard-side-left::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 100%; width: 80px;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.40) 0%,
    rgba(0,0,0,0.08) 60%,
    transparent 100%
  );
}

/* ── Right wall (exact mirror) ── */
.cardboard-side-right {
  right: 0;
  transform-origin: right center;
  transform: perspective(1400px) rotateY(10deg);
}
.cardboard-side-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.18) 0%,
    transparent 60%
  );
}
.cardboard-side-right::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: 100%; width: 80px;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.40) 0%,
    rgba(0,0,0,0.08) 60%,
    transparent 100%
  );
}

/* ── Inner shadow strips (cast by box walls onto content) ── */
.cardboard-shadow-left {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--wall); width: 100px;
  background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.10) 55%, transparent 100%);
}
.cardboard-shadow-right {
  position: absolute;
  top: 0; bottom: 0;
  right: var(--wall); width: 100px;
  background: linear-gradient(to left, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.10) 55%, transparent 100%);
}


/* ════════════════════════════════════════════════════
   FIXED CHROME — Header / Side Nav / Bottom Bar
════════════════════════════════════════════════════ */

/* ── Header ── */
#site-header {
  position: fixed;
  top: 0; left: var(--wall); right: var(--wall);
  height: var(--hdr);
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,9,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hdr-menu {
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; padding: 4px; opacity: 0.6;
  transition: opacity 0.2s;
}
.hdr-menu:hover { opacity: 1; }
.hdr-menu span {
  display: block; width: 22px; height: 1px;
  background: var(--fg);
  transition: transform 0.3s;
}

.hdr-logo {
  display: flex; align-items: center; gap: 11px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.hdr-mark { width: 26px; height: 26px; }
.hdr-logo-text { display: flex; flex-direction: column; }
.hdr-name { font-size: 15px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.hdr-sub  { font-size: 8px; letter-spacing: 0.18em; color: var(--fg3); margin-top: 2px; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 9px 18px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); }
.btn-cta:active { transform: scale(0.97); }

/* ── Side Nav ── */
#side-nav {
  position: fixed;
  left: 0; top: 50%; transform: translateY(-50%);
  width: var(--fw);
  z-index: 200;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
}
.sn-item {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px; gap: 5px;
  opacity: 0.28;
  transition: opacity 0.3s;
  cursor: pointer;
}
.sn-item:hover { opacity: 0.7; }
.sn-item.active { opacity: 1; }
.sn-n {
  font-size: 9px; font-family: var(--mono); letter-spacing: 0.05em;
  color: var(--fg);
}
.sn-l {
  font-size: 7px; letter-spacing: 0.18em;
  color: var(--fg); text-transform: uppercase;
  writing-mode: vertical-rl; opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.sn-item.active .sn-l,
.sn-item:hover .sn-l { opacity: 0.7; transform: translateY(0); }

/* Active indicator */
#side-nav::before {
  content: '';
  position: absolute;
  left: calc(var(--fw) - 1px);
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.4);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  opacity: 0.5;
}

/* ── Bottom Bar ── */
#botbar {
  position: fixed;
  bottom: 0; left: var(--wall); right: var(--wall);
  height: 44px; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(10,10,9,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.bb-left { display: flex; align-items: center; gap: 16px; }
.bb-secnum {
  font-size: 9px; font-family: var(--mono);
  letter-spacing: 0.08em; color: var(--fg3);
}
.bb-secname {
  font-size: 9px; letter-spacing: 0.2em; color: var(--fg2);
  text-transform: uppercase;
}
.bb-track {
  flex: 1; height: 1px; margin: 0 32px;
  background: var(--line); position: relative; overflow: hidden;
}
.bb-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--accent); width: 0%;
  transition: width 0.4s ease;
}
.bb-ticks {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between; align-items: center;
}
.bb-ticks span {
  width: 1px; height: 5px;
  background: var(--line); margin-top: -2px;
}
.bb-tg {
  font-size: 9px; letter-spacing: 0.2em; color: var(--fg2);
  text-transform: uppercase;
  transition: color 0.2s;
}
.bb-tg:hover { color: var(--accent); }
.bb-arrow { margin-left: 4px; }


/* ════════════════════════════════════════════════════
   MAIN CONTENT + SECTION LAYOUT
════════════════════════════════════════════════════ */
#site-content {
  position: relative;
  padding-left: var(--wall);
  padding-right: var(--wall);
  /* Interior box atmosphere: very subtle warm light from above */
  background:
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(255,248,235,0.025) 0%, transparent 70%),
    var(--bg);
}

.scene {
  min-height: 100vh;
  padding: var(--hdr) 0 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.scene-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Common section head ── */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 24px;
}

.eyebrow {
  font-size: 11px; font-family: var(--mono);
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.ey-n { color: var(--accent); }

.h-hero {
  font-size: clamp(52px, 7.5vw, 104px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--fg);
  margin-bottom: 28px;
  /* Word-split will wrap words in .w-wrap */
}
/* Word split wrappers (injected by JS) */
.w-wrap { overflow: hidden; display: inline-block; vertical-align: bottom; }
.w-word {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.w-word.in { transform: translateY(0); }

.h-sec {
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--fg);
}

.link-arr {
  font-size: 10px; letter-spacing: 0.2em; color: var(--fg3);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap; align-self: flex-end;
}
.link-arr:hover { color: var(--accent); border-color: var(--accent); }
.link-arr span { display: inline-block; color: var(--accent); transition: transform 0.2s; }
.link-arr:hover span { transform: translateX(3px); }

/* ── Reveal animation classes ── */
[data-reveal="fade"] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal="fade"].in { opacity: 1; transform: translateY(0); }

.stagger-reveal > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.stagger-reveal.in > * { opacity: 1; transform: translateY(0); }
.stagger-reveal.in > *:nth-child(1)  { transition-delay:   0ms; }
.stagger-reveal.in > *:nth-child(2)  { transition-delay:  60ms; }
.stagger-reveal.in > *:nth-child(3)  { transition-delay: 120ms; }
.stagger-reveal.in > *:nth-child(4)  { transition-delay: 180ms; }
.stagger-reveal.in > *:nth-child(5)  { transition-delay: 240ms; }
.stagger-reveal.in > *:nth-child(6)  { transition-delay: 300ms; }


/* ════════════════════════════════════════════════════
   SECTION 01 — INTRO
════════════════════════════════════════════════════ */
#intro { min-height: 100vh; align-items: center; }

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 44%;
  gap: 60px;
  align-items: center;
}

.intro-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--fg2);
  max-width: 52ch;
  margin-bottom: 40px;
}

.intro-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-solid {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 24px;
  border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-solid:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); }
.btn-solid:active { transform: scale(0.97); }
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent; color: var(--fg);
  padding: 13px 24px;
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--fg); }
.btn-ghost:active { transform: scale(0.97); }

.meta-row {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
}
.meta-sep {
  width: 1px; height: 40px;
  background: var(--line); flex-shrink: 0;
}
.meta-item { display: flex; flex-direction: column; gap: 5px; }
.meta-n {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.03em; color: var(--fg); line-height: 1;
}
.meta-l {
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--fg3); text-transform: uppercase; line-height: 1.4;
}

/* Mascot */
.intro-mascot {
  display: flex; align-items: flex-end; justify-content: center;
  height: 100%;
}

.mascot-wrap {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
.mascot-img {
  max-height: clamp(420px, 62vh, 680px);
  width: auto; object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.8));
}
/* Face expression overlay */
.mascot-face {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Placeholder state when image fails — hide silently */
.mascot-wrap.ph-mode .mascot-img { display: none; }
.mascot-ph-label { display: none; }


/* ════════════════════════════════════════════════════
   SECTION 02 — SERVICES
════════════════════════════════════════════════════ */
#services { align-items: flex-start; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.svc-card {
  background: var(--bg);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: background 0.3s;
  overflow: hidden;
}
.svc-card:hover { background: var(--card-bg); }

.svc-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #0d0c0b;
}
/* Subtle unique background per card */
.svc-card:nth-child(1) .svc-img { background: linear-gradient(145deg, #100f0d, #0c0b0a); }
.svc-card:nth-child(2) .svc-img { background: linear-gradient(145deg, #0f0e0c, #0d0c0b); }
.svc-card:nth-child(3) .svc-img { background: linear-gradient(145deg, #0e0e0c, #0b0b0a); }
.svc-card:nth-child(4) .svc-img { background: linear-gradient(145deg, #0f0e0d, #100f0e); }
.svc-card:nth-child(5) .svc-img { background: linear-gradient(145deg, #0d0c0b, #0f0f0d); }
.svc-card:nth-child(6) .svc-img { background: linear-gradient(145deg, #0e0d0c, #0c0c0b); }

.svc-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* Large faint service number in background */
.svc-img::before {
  content: attr(data-n);
  position: absolute;
  bottom: -12px; right: -4px;
  font-size: 100px; font-weight: 900;
  line-height: 1; letter-spacing: -0.06em;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* Service icon container */
.svc-icon {
  position: absolute;
  width: 56px; height: 56px;
  color: rgba(255,255,255,0.22);
  transition: color 0.35s;
  z-index: 1;
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-card:hover .svc-icon { color: rgba(255,255,255,0.55); }
.svc-card:hover .svc-img img { transform: scale(1.04); }
.svc-ph { display: none; } /* hidden — replaced by icon */

.svc-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
}
.svc-num {
  font-size: 9px; font-family: var(--mono);
  letter-spacing: 0.08em; color: var(--accent);
  flex-shrink: 0;
}
.svc-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; line-height: 1.3;
  text-transform: uppercase;
}


/* ════════════════════════════════════════════════════
   SECTION 03 — PROCESS
════════════════════════════════════════════════════ */
#process { align-items: flex-start; }

.process-wrap {
  position: relative;
}

.proc-line-track {
  position: absolute;
  top: 54px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  z-index: 1;
}
.proc-line-fill {
  height: 100%; width: 0%;
  background: var(--fg);
  transition: width 0.1s linear;
}

.proc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  position: relative;
  z-index: 2;
}

.proc-step {
  background: var(--bg);
  padding: 40px 28px 36px;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0.35;
  transition: opacity 0.4s, background 0.3s;
}
.proc-step.active, .proc-step:hover { opacity: 1; background: var(--card-bg); }

.proc-icon {
  width: 44px; height: 44px; color: var(--fg);
  margin-bottom: 4px;
}
.proc-icon svg { width: 100%; height: 100%; }

.proc-num {
  font-size: 9px; font-family: var(--mono);
  letter-spacing: 0.1em; color: var(--fg3);
}
.proc-title {
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proc-desc {
  font-size: 13px; line-height: 1.6;
  color: var(--fg2);
}


/* ════════════════════════════════════════════════════
   SECTION 04 — ROUTE (reuses existing route.js)
════════════════════════════════════════════════════ */
#route { align-items: flex-start; }

.route-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  margin-top: 20px;
}

#route-canvas {
  width: 100%; height: 100%;
  display: block;
}

#route-mascot-img {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 120px; width: auto;
  pointer-events: none;
  z-index: 2;
}

.route-label {
  position: absolute;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
  z-index: 3;
}
.route-label.vis { opacity: 1; transform: translateY(0); }

.rl-n {
  font-size: 9px; font-family: var(--mono);
  letter-spacing: 0.12em; color: var(--fg3);
}
.route-label strong {
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
}
.route-label em {
  font-size: 11px; font-style: normal;
  color: var(--fg2); letter-spacing: 0.05em;
}


/* ════════════════════════════════════════════════════
   SECTION 05 — NUMBERS
════════════════════════════════════════════════════ */
#numbers { align-items: flex-start; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s;
  cursor: default;
}
.stat-card:hover { background: var(--card-bg); }

/* Wide card spans 2 cols */
.stat-wide { grid-column: span 2; }

.stat-val {
  display: flex; align-items: baseline; gap: 8px;
}
.stat-n {
  font-size: clamp(44px, 5vw, 64px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1;
  color: var(--fg);
}
.stat-suf {
  font-size: clamp(20px, 2.5vw, 32px); font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-lbl {
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--fg3); text-transform: uppercase;
  line-height: 1.5; max-width: 28ch;
}


/* ════════════════════════════════════════════════════
   SECTION 06 — ABOUT
════════════════════════════════════════════════════ */
#about { align-items: center; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 42%;
  gap: 80px;
  align-items: center;
}

.about-lead {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.6;
  color: var(--fg2);
  margin-bottom: 40px;
}

.adv-list { display: flex; flex-direction: column; gap: 0; }

.adv-item {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}
.adv-item:last-child { border-bottom: 1px solid var(--line); }
.adv-item:hover .adv-n { color: var(--accent); }

.adv-n {
  font-size: 9px; font-family: var(--mono);
  letter-spacing: 0.12em; color: var(--accent);
  flex-shrink: 0; padding-top: 3px; min-width: 20px;
  transition: color 0.2s;
}
.adv-body h4 {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 6px;
}
.adv-body p {
  font-size: 13px; color: var(--fg2); line-height: 1.6;
}

.about-mascot {
  display: flex; align-items: flex-end; justify-content: center;
}


/* ════════════════════════════════════════════════════
   SECTION 07 — CONTACTS
════════════════════════════════════════════════════ */
#contacts { align-items: flex-start; position: relative; overflow: hidden; }

.contact-mascot {
  position: absolute;
  left: calc(var(--wall) + 16px);
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}
.contact-mascot .mascot-img { max-height: 520px; }

.contact-row {
  display: grid;
  grid-template-columns: 1fr 52%;
  gap: 80px;
  position: relative; z-index: 2;
}

.lead {
  font-size: 15px; line-height: 1.65;
  color: var(--fg2); max-width: 44ch;
  margin-bottom: 40px;
}

.contact-list { display: flex; flex-direction: column; gap: 0; }
.ci {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.ci:last-child { border-bottom: 1px solid var(--line); }
.ck {
  font-size: 9px; font-family: var(--mono);
  letter-spacing: 0.2em; color: var(--fg3);
  min-width: 80px; flex-shrink: 0;
}
.cv {
  font-size: 15px; font-weight: 500;
  color: var(--fg); transition: color 0.2s;
}
a.cv:hover { color: var(--fg2); }

/* Contact Form */
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px;
}

.fld { display: flex; flex-direction: column; gap: 8px; }
.fld label {
  font-size: 9px; font-family: var(--mono);
  letter-spacing: 0.2em; color: var(--fg3);
  text-transform: uppercase;
}
.fld input,
.fld textarea,
.fld select {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: inherit; font-size: 15px;
  padding: 10px 0; outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  width: 100%;
}
.fld input::placeholder,
.fld textarea::placeholder { color: var(--fg3); }
.fld input:focus,
.fld textarea:focus,
.fld select:focus { border-bottom-color: var(--accent); }
.fld textarea { resize: none; }
.fld-sel { position: relative; }
.sel-arrow {
  position: absolute; right: 0; bottom: 12px;
  font-size: 11px; color: var(--fg3); pointer-events: none;
}
.fld select option { background: #111; }

.form-note {
  font-size: 11px; color: var(--fg3); line-height: 1.6;
}
.form-ok {
  display: none;
  font-size: 11px; font-family: var(--mono);
  letter-spacing: 0.1em; color: var(--fg2);
  padding: 14px 0; border-top: 1px solid var(--line);
  text-align: center;
}
.contact-form.sent .form-ok { display: block; }
.contact-form.sent button[type="submit"] { display: none; }


/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
#site-footer {
  border-top: 1px solid var(--line);
  padding: 32px calc(var(--wall) + 32px);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max); margin: 0 auto;
}
.footer-logo {
  font-size: 20px; font-weight: 900;
  letter-spacing: -0.04em;
}
.footer-copy {
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--fg3); text-transform: uppercase;
}


/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  :root { --wall: 3.5vw; }
}

@media (max-width: 1100px) {
  :root { --wall: 3vw; --bs: 360px; --bh: 180px; }
  .intro-layout { grid-template-columns: 1fr; }
  .intro-mascot { justify-content: flex-start; }
  .mascot-img { max-height: 300px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-mascot { display: none; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-mascot { display: none; }
}

@media (max-width: 768px) {
  :root { --wall: 0px; --fw: 0px; --hdr: 56px; --bs: 300px; --bh: 150px; }
  #side-nav { display: none; }
  #box-frame { display: none; }
  #site-content { padding-left: 0; padding-right: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-steps { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-wide { grid-column: span 2; }
  #site-header { left: 0; right: 0; padding: 0 20px; }
  #botbar { left: 0; right: 0; padding: 0 20px; }
  .bb-tg { display: none; }
  .scene-inner { padding: 0 20px; }
  .contact-form { padding: 24px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .svc-grid { grid-template-columns: 1fr; }
  .proc-steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-wide { grid-column: span 1; }
  .proc-line-track { display: none; }
  .intro-btns { flex-direction: column; }
}

/* ── Hamburger → close ── */
.hdr-menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-menu.is-open span:nth-child(2) { transform: rotate(-45deg); }

/* ── Mascot face overlay transition ── */
.mascot-face { transition: opacity 0.14s ease; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .sp-dot { animation: none; }
}
