/* =========================================================
   3ДСС v3 — Graphite + Light palette, fullscreen hero
   ========================================================= */

:root {
  /* === LIGHT base === */
  --bg: #F2EFE8;
  --bg-soft: #EAE6DE;
  --surface: #FFFFFF;
  --surface-2: #F7F4EE;

  /* === GRAPHITE accents === */
  --graphite: #2C2C2E;
  --graphite-soft: #3A3A3C;
  --graphite-mute: #8E8E93;

  /* === Text === */
  --ink: #1C1C1E;
  --ink-soft: #48484A;
  --ink-mute: #8E8E93;

  /* === Borders === */
  --line: #D8D4CC;
  --line-dark: rgba(255,255,255,0.12);

  /* === Accent === */
  --accent: #3A78C9;
  --accent-hover: #2A68B9;
  --accent-soft: #D0E4F8;

  /* === Typography === */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* === Layout === */
  --container-max: 1320px;
  --container-pad: 28px;
  --section-pad: 120px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* === Easing === */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
p { margin: 0; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* =========================================================
   Utilities
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.section-kicker::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.section-kicker.light { color: rgba(255,255,255,0.65); }
.section-kicker.light::before { background: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--accent); }

.section-head { margin-bottom: 60px; max-width: 800px; }
.section-head-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px;
  max-width: none;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: 14px; letter-spacing: 0.01em;
  transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-lg { padding: 18px 32px; font-size: 15px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(58,120,201,0.5); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* Header CTA — compact, not overpowering */
.header-actions .btn-primary {
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: none;
}
.header-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(58,120,201,0.45);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Ghost on dark/photo background */
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.btn-graphite { background: var(--graphite); color: #fff; }
.btn-graphite:hover { background: var(--graphite-soft); transform: translateY(-2px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
  /* starts transparent over hero photo */
  background: transparent;
}
.site-header.scrolled {
  background: rgba(242,239,232,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* Header text white when over dark photo, dark after scroll */
.site-header:not(.scrolled) .main-nav a,
.site-header:not(.scrolled) .header-phone { color: #fff; }
.site-header:not(.scrolled) .main-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.site-header:not(.scrolled) .btn-primary { background: var(--accent); color: #fff; }
.site-header:not(.scrolled) .burger span { background: #fff; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

/* Logo — image based */
/* Logo — transparent PNG, no pill background */
.logo-img-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
  transition: opacity 0.25s;
}
.logo-img-wrap:hover { opacity: 0.80; }

.logo-img {
  display: block;
  height: 64px;        /* header size */
  width: auto;
  object-fit: contain;
  /* Default: dark header → invert logo to white */
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

/* On light scrolled header: show dark logo as-is */
.site-header.scrolled .logo-img {
  filter: brightness(0) invert(0);
}

/* Footer logo — white on dark footer */
.logo-img-footer {
  height: 60px;
  filter: brightness(0) invert(1);
}

/* Keep old .logo class working */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }

.main-nav > ul { display: flex; gap: 4px; }
.main-nav a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  transition: all 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { background: var(--ink); color: var(--bg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 8px; min-width: 240px;
  margin-top: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all 0.3s var(--ease);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.15);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { display: block; }
.dropdown a { display: block; padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink) !important; }
.dropdown a:hover { background: var(--bg); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 16px; font-weight: 400; color: var(--ink); transition: color 0.25s; }
.header-phone:hover { color: var(--accent); }

.burger {
  display: none; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 50%; background: var(--graphite);
}
.burger span { width: 18px; height: 1.5px; background: #fff; transition: all 0.25s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--graphite); color: #fff;
  z-index: 199; padding: 110px 28px 40px;
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block; padding: 16px 0;
  font-family: var(--font-display); font-size: 32px;
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-contacts { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; }
.mobile-contacts a { font-family: var(--font-body); font-size: 16px; padding: 4px 0; border: none; color: rgba(255,255,255,0.7); }

/* =========================================================
   HERO FULLSCREEN
   ========================================================= */
.hero-full {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Photo layer */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: opacity;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hero-photo.no-photo {
  background: linear-gradient(135deg, #1A1A1C 0%, #0F0F10 60%, #1C1510 100%);
}
.hero-photo.no-photo img { display: none; }

/* Overlay: heavy left vignette for text, lighter right for 3D */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(10,9,8,0.88) 0%,
      rgba(10,9,8,0.75) 38%,
      rgba(10,9,8,0.30) 62%,
      rgba(10,9,8,0.10) 100%
    ),
    linear-gradient(to bottom,
      rgba(10,9,8,0.3) 0%,
      rgba(10,9,8,0.0) 40%,
      rgba(10,9,8,0.5) 80%,
      rgba(10,9,8,0.95) 100%
    );
}

/* Inner layout */
.hero-full-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;   /* breathing room; scroll arrow sits via position:absolute */
  gap: 0;
}

/* ── Text block with glass backdrop ── */
.hero-text-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 48px 52px 48px 0;
}

/* Orange vertical accent bar */
.hero-bar {
  position: absolute;
  left: -20px;
  top: 12%;
  bottom: 12%;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  border-radius: 2px;
  opacity: 0.9;
}

/* Glass panel behind text */
.hero-content {
  max-width: 620px;
  background: rgba(10, 9, 8, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 44px 48px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 32px 80px rgba(0,0,0,0.5);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,120,201,0.3);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(58,120,201,0.3); }
  50%      { box-shadow: 0 0 0 7px rgba(58,120,201,0.0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 24px;
  /* Crisp text shadow for readability */
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--accent); }

.hero-accent {
  display: inline-block;
  background: rgba(58,120,201,0.18);
  color: var(--accent);
  padding: 2px 18px 4px;
  border-radius: 8px;
  font-style: italic; font-weight: 400;
  border: 1px solid rgba(58,120,201,0.35);
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(255,255,255,0.70);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

/* Tech tags */
.hero-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.htag {
  display: inline-block; padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
}
.htag-accent {
  border-color: rgba(58,120,201,0.4);
  color: var(--accent);
  background: rgba(58,120,201,0.08);
}

/* ── Three.js 3D widget ── */
.hero-3d-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 480px;
  border: none;
  outline: none;
  overflow: visible;
}
#hero3dCanvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  position: absolute;
  inset: 0;
  border: none;
  outline: none;
  background: transparent;
}

/* Floating labels */
.h3d-label {
  position: absolute;
  display: flex; align-items: center; gap: 7px;
  background: rgba(20,18,16,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.h3d-label-1 { top: 12%; left: 4%;  animation: floatY 5.0s ease-in-out infinite 0.0s; }
.h3d-label-2 { bottom: 20%; right: 3%; animation: floatY 6.5s ease-in-out infinite 1.2s; }
.h3d-label-3 { top: 38%; right: 2%;   animation: floatY 7.0s ease-in-out infinite 0.5s; }
.h3d-label-4 { bottom: 8%;  left: 5%; animation: floatY 5.5s ease-in-out infinite 2.0s; }
.h3d-label-5 { top: 60%; right: 1%;   animation: floatY 6.0s ease-in-out infinite 1.8s; }
.h3d-label-6 { top: 72%; left: 3%;    animation: floatY 8.0s ease-in-out infinite 0.8s; }
.h3d-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.5); flex-shrink: 0;
}
.h3d-dot-accent { background: var(--accent); box-shadow: 0 0 6px rgba(58,120,201,0.6); }
.h3d-dot-orange { background: var(--accent); box-shadow: 0 0 6px rgba(58,120,201,0.6); }

.h3d-badge {
  position: absolute;
  top: 14%;
  right: 6%;
  display: flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 3; pointer-events: none;
  animation: floatY 4s ease-in-out infinite 0.5s;
  box-shadow: 0 8px 24px rgba(58,120,201,0.4);
}

@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Scroll hint — centered, above stats bar */
.scroll-hint {
  position: absolute;
  bottom: 28px;        /* above stats bar, not inside grid flow */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  writing-mode: horizontal-tb;   /* horizontal text */
  pointer-events: none;
  grid-column: unset;
}
/* Bounce arrow */
.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: arrowBounce 1.8s ease-in-out infinite;
}
.scroll-arrow svg {
  filter: drop-shadow(0 0 6px rgba(58,120,201,0.5));
}
/* Second chevron — staggered */
.scroll-arrow .arrow-2 {
  margin-top: -8px;
  opacity: 0.5;
  animation: arrowBounce 1.8s ease-in-out infinite 0.15s;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(7px); opacity: 0.7; }
}
.scroll-hint span {
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.3);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.16em;
}

/* Stats bar */
.hero-stats-bar {
  position: relative; z-index: 2;
  background: var(--graphite);
  padding: 40px 0;
  flex-shrink: 0;
}
.hero-stats {
  display: flex;
  align-items: center;   /* vertically center everything */
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}
.stat {
  flex: 1 1 0;
  text-align: center;
  padding: 0 24px;
  display: block;        /* simple block, no nested flex */
  min-width: 0;
}
.stat-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 400; line-height: 1;
  letter-spacing: -0.02em; color: #fff;
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
  display: block;
  text-align: center;
}
.stat-num::after { content: "+"; color: var(--accent); font-style: italic; font-weight: 300; }
.stat-label {
  font-size: clamp(11px, 1vw, 13px);
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  text-align: center;
}

/* =========================================================
   Services (graphite card on hover)
   ========================================================= */
.services { padding: var(--section-pad) 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  background: var(--graphite);          /* graphite default */
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  min-height: 300px;
  cursor: pointer;
  color: #fff;
  transition: all 0.4s var(--ease);
}
.service-card .service-num  { color: rgba(255,255,255,0.35); }
.service-card .service-icon { color: var(--accent); }
.service-card h3            { color: #fff; }
.service-card p             { color: rgba(255,255,255,0.55); }

.service-card:hover {
  background: var(--graphite-soft);
  border-color: rgba(58,120,201,0.35);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.5),
              0 0 0 1px rgba(58,120,201,0.2);
}
.service-card:hover .service-num  { color: var(--accent); }
.service-card:hover .service-icon { transform: rotate(8deg) scale(1.06); }
.service-card:hover p             { color: rgba(255,255,255,0.75); }

.service-num {
  font-family: var(--font-display); font-size: 13px;
  color: rgba(255,255,255,0.35); letter-spacing: 0.05em;
  font-style: italic; transition: color 0.3s;
}
.service-icon {
  width: 52px; height: 52px;
  margin: 16px 0 28px;
  color: var(--accent);
  transition: color 0.3s, transform 0.4s var(--ease);
}
.service-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; margin-bottom: 10px; color: #fff;
}
.service-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.55; margin-bottom: 20px; transition: color 0.3s; }
.service-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); transition: gap 0.25s;
}
.service-card:hover .service-link span { transform: translateX(4px); display: inline-block; transition: transform 0.3s; }

.service-card.service-cta {
  background: var(--accent); color: #fff;
  border-color: var(--accent); justify-content: space-between;
}
.service-card.service-cta:hover { background: var(--graphite); border-color: var(--graphite); }
.service-card.service-cta h3 { font-size: 26px; }
.service-card.service-cta p { color: rgba(255,255,255,0.85); }
.service-card.service-cta .btn-light { align-self: flex-start; }

/* =========================================================
   Advantages — graphite block
   ========================================================= */
.advantages {
  padding: var(--section-pad) 0;
  background: var(--graphite);
  color: #fff;
}
.advantages .section-title { color: #fff; }
.advantages .section-kicker { color: rgba(255,255,255,0.5); }
.advantages .section-kicker::before { background: var(--accent); }

.adv-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.adv-lead { font-size: 17px; color: rgba(255,255,255,0.65); margin: 28px 0; }

.adv-right {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.08);
  border-radius: var(--r-lg); overflow: hidden;
}
.adv-item { background: var(--graphite); padding: 32px 28px; transition: background 0.3s; }
.adv-item:hover { background: var(--graphite-soft); }
.adv-num { font-family: var(--font-display); font-size: 13px; color: var(--accent); font-style: italic; margin-bottom: 14px; }
.adv-item h4 { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.adv-item p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* =========================================================
   Consult banner — graphite
   ========================================================= */
.consult-banner { padding: var(--section-pad) 0; }
.consult-inner {
  background: var(--graphite);
  color: #fff; border-radius: var(--r-xl);
  padding: clamp(48px,6vw,80px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.consult-inner::before {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(58,120,201,0.35), transparent 60%);
  border-radius: 50%; filter: blur(40px);
}
.consult-text { max-width: 600px; position: relative; }
.consult-text .section-title { color: #fff; margin-bottom: 14px; }
.consult-text p { color: rgba(255,255,255,0.65); font-size: 17px; }
.consult-inner .btn { position: relative; z-index: 1; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: var(--section-pad) 0; }
.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px); font-weight: 400;
  letter-spacing: -0.01em; cursor: pointer; transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink); position: relative; flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.5px; background: var(--ink);
  transform: translate(-50%,-50%); transition: all 0.3s var(--ease);
}
.faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(0deg); }
.faq-body { padding: 0 0 24px; font-size: 16px; color: var(--ink-soft); max-width: 680px; line-height: 1.6; animation: faqOpen 0.35s var(--ease); }
@keyframes faqOpen { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* =========================================================
   About — dark card
   ========================================================= */
.about { padding: var(--section-pad) 0; background: var(--surface-2); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.about-text p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; margin-top: 18px; }
.about-stats { display: flex; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.about-stats > div { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--font-display); font-size: 48px; font-weight: 400; font-variation-settings: "opsz" 144; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.about-stats span { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.about-visual { position: relative; aspect-ratio: 1/1; }
.about-card { position: absolute; border-radius: var(--r-lg); overflow: hidden; }
.about-card-1 {
  inset: 0;
  background: var(--graphite);
  display: flex; align-items: center; justify-content: center; padding: 12%;
  /* when photo loaded, padding not needed */
}

/* Photo fills the card */
.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  display: block;
}

/* Gradient overlay — bottom dark fade for readability */
.about-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(20, 18, 16, 0.55) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

/* Fallback SVG — shown when no photo */
.about-shape-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.about-shape-fallback svg { animation: rotate-slow 40s linear infinite; width: 100%; max-width: 200px; }
@keyframes rotate-slow { to { transform: rotate(360deg); } }

.about-card-2 {
  bottom: 8%; right: -8%; width: 200px;
  background: #fff; padding: 24px; border-radius: var(--r-md);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.2);
  z-index: 10;
}
.about-card-2 .kicker { display: block; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--graphite-mute); margin-bottom: 6px; }
.about-card-2 strong { font-family: var(--font-display); font-size: 32px; font-weight: 400; font-variation-settings: "opsz" 144; color: var(--accent); line-height: 1; display: block; margin-bottom: 8px; }
.about-card-2 p { font-size: 12px; color: var(--ink-soft); }

/* =========================================================
   Reviews — light cards
   ========================================================= */
.reviews { padding: var(--section-pad) 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px;
  transition: all 0.3s var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.1); }
.review-rate { display: flex; gap: 4px; margin-bottom: 20px; }
.review-rate span {
  width: 14px; height: 14px; background: var(--accent);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.review-card p { font-size: 16px; line-height: 1.6; color: var(--ink); margin-bottom: 28px; }
.review-card footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: #fff; flex-shrink: 0;
}
.review-card footer strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.review-card footer span { display: block; font-size: 12px; color: var(--ink-soft); }

/* =========================================================
   Order form
   ========================================================= */
.order { padding: var(--section-pad) 0; }
.order-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.order-left p { font-size: 17px; color: var(--ink-soft); margin-top: 16px; }
.contact-list { margin-top: 36px; display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.contact-list li { background: var(--bg); padding: 18px 0; display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; }
.contact-list .ck { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.contact-list a:hover { color: var(--accent); }

.order-form {
  background: var(--graphite);
  border-radius: var(--r-xl); padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: span 2; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  font-size: 15px; color: #fff;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field select option { background: var(--graphite); color: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.1); }

.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.5); max-width: 260px; line-height: 1.4; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.form-success { grid-column: span 2; padding: 20px; background: rgba(134,239,172,0.15); border: 1px solid rgba(134,239,172,0.3); border-radius: var(--r-md); color: #86efac; font-weight: 500; display: none; }
.form-success.show { display: block; animation: faqOpen 0.4s var(--ease); }

/* Yandex map */
.ymap-wrap { margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.ymap-open-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s;
}

/* =========================================================
   Footer — graphite
   ========================================================= */
.site-footer { background: var(--graphite); color: #fff; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo { color: #fff; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 280px; line-height: 1.5; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.75); transition: color 0.25s; }
.footer-col a:hover { color: var(--accent); }
.footer-col li { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--accent); }

/* =========================================================
   Modal
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,20,20,0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl); width: 100%; max-width: 840px;
  max-height: 90vh; overflow-y: auto; position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.3);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: all 0.25s var(--ease);
}
.modal-close:hover { background: var(--graphite); color: #fff; }
.modal-body { display: grid; grid-template-columns: 260px 1fr; min-height: 420px; }
.modal-img-wrap {
  background: var(--graphite);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px; position: relative; overflow: hidden;
}
.modal-img-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255,255,255,0.03) 14px, rgba(255,255,255,0.03) 15px);
}
.modal-img-wrap svg { width: 100px; height: 100px; color: var(--accent); position: relative; z-index: 1; filter: drop-shadow(0 8px 24px rgba(58,120,201,0.4)); }
.modal-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-xl) 0 0 var(--r-xl); z-index: 1; }
.modal-content { padding: 48px 40px 40px; display: flex; flex-direction: column; }
.modal-num { font-family: var(--font-display); font-size: 13px; color: var(--accent); font-style: italic; letter-spacing: 0.06em; margin-bottom: 8px; display: block; }
.modal-title { font-family: var(--font-display); font-size: clamp(26px,3.5vw,38px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 16px; font-variation-settings: "opsz" 144; }
.modal-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 24px; }
.modal-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; flex: 1; }
.modal-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.modal-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.modal-cta { align-self: flex-start; }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.06s);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* =========================================================
   Portfolio page (kept from v2)
   ========================================================= */
.port-img {
  flex: 1; position: relative;
  background: linear-gradient(135deg, var(--c1, #D0E4F8) 0%, var(--c2, #4E8FD4) 100%);
  overflow: hidden;
}
.port-img::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(0,0,0,0.04) 12px, rgba(0,0,0,0.04) 13px);
}
.port-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.15) 100%); }
.port-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s var(--ease); }
.port-card:hover .port-img img { transform: scale(1.04); }
.port-img:has(img)::before { display: none; }
/* port-num/badge → see portfolio grid section */
/* port-card styles moved to portfolio grid section */

/* =========================================================
   Portfolio page — header hero
   ========================================================= */
.portfolio-hero { padding: 160px 0 40px; position: relative; overflow: hidden; }
.portfolio-hero::before { content: ""; position: absolute; top: 20%; right: -8%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(58,120,201,0.12), transparent 60%); border-radius: 50%; filter: blur(60px); z-index: 0; }
.portfolio-hero .container { position: relative; z-index: 1; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); margin-bottom: 40px; }
.breadcrumbs a:hover { color: var(--accent); }
.portfolio-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.page-title { font-family: var(--font-display); font-weight: 400; font-variation-settings: "opsz" 144; font-size: clamp(48px,7vw,96px); line-height: 1.0; letter-spacing: -0.025em; margin: 0; }
.page-title em { font-style: italic; font-weight: 300; color: var(--accent); }
.page-title-sub { display: block; font-size: 0.5em; font-style: italic; font-weight: 300; color: var(--ink-soft); margin-top: 8px; }
.portfolio-lead { font-size: 17px; color: var(--ink-soft); line-height: 1.55; padding-bottom: 8px; }
.portfolio-lead strong { color: var(--ink); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; border-top: 1px solid var(--line); }
.filter { display: inline-flex; align-items: center; gap: 4px; padding: 10px 18px; border-radius: 999px; background: transparent; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); transition: all 0.25s var(--ease); cursor: pointer; }
.filter sup { font-size: 10px; color: var(--ink-mute); font-weight: 500; margin-left: 4px; }
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.filter.active sup { color: var(--accent); }
.consult-banner-portfolio { padding: 80px 0 var(--section-pad); }

/* =========================================================
   Portfolio page — uniform grid (all cards same size)
   ========================================================= */
.portfolio-list { padding: 40px 0 var(--section-pad); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Every card: same height, same structure */
.port-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--graphite);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.port-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.4);
}

/* Photo area — fixed 4:3 ratio, never grows/shrinks */
.port-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;   /* wider ratio → more photo, less card height */
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1, #2C2C2E) 0%, var(--c2, #1A1A1A) 100%);
  overflow: hidden;
}

/* Subtle texture overlay on gradient placeholders */
.port-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.07), transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255,255,255,0.015) 14px, rgba(255,255,255,0.015) 15px);
  z-index: 0;
}
/* Bottom vignette */
.port-img::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.35));
  z-index: 1;
}

/* Real photo fills the card */
.port-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 0.5s var(--ease);
}
.port-card:hover .port-img img { transform: scale(1.04); }
.port-img:has(img)::before { display: none; }

/* Number and badge */
.port-num {
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  z-index: 2;
  letter-spacing: 0.1em;
}
.port-tech-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 5px 11px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
}
/* Accent badge on hover */
.port-card:hover .port-tech-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Text info row — compact, fixed height */
.port-info {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;   /* never grow — stays tight under the photo */
}
.port-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.port-meta {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  overflow: hidden;
}
.port-meta span:nth-child(even) { opacity: 0.3; }

/* Project short description */
.port-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.port-card:hover .port-desc { color: rgba(255,255,255,0.55); }

/* Hover: show accent on title */
.port-card:hover .port-info h3 { color: var(--accent); }

/* Disabled tall/wide — no effect in uniform grid */
.port-tall, .port-wide { grid-row: unset; grid-column: unset; }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 17px;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 1100px) {
  :root { --section-pad: 96px; }
  .hero-full-inner { grid-template-columns: 1fr; }
  .hero-3d-wrap { display: none; }
  .hero-text-wrap { padding: 32px 0; }
  .hero-bar { left: -12px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .adv-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 480px; }
  .order-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .portfolio-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .scroll-hint { display: none; }
}

@media (max-width: 880px) {
  :root { --section-pad: 72px; --container-pad: 20px; }
  .main-nav, .header-phone { display: none; }
  .burger { display: flex; }
  .header-actions .btn-primary { display: none; }
  .site-header:not(.scrolled) .burger { background: rgba(255,255,255,0.15); }

  .hero-full { height: auto; min-height: 100svh; }
  .hero-full-inner { padding-top: 110px; padding-bottom: 0; grid-template-columns: 1fr; }
  .hero-text-wrap { padding: 24px 0 32px; }
  .hero-bar { display: none; }
  .hero-content { padding: 32px 28px; backdrop-filter: blur(12px); }
  .hero-title { font-size: clamp(34px, 9vw, 52px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { flex-wrap: wrap; }
  .stat { min-width: 120px; }
  .stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .adv-right { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  /* portfolio grid responsive → see portfolio grid section */
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .consult-inner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .consult-inner .btn { width: 100%; justify-content: center; }
  .order-form { padding: 24px; grid-template-columns: 1fr; }
  .field-full { grid-column: span 1; }
  .form-success { grid-column: span 1; }
  .form-bottom { flex-direction: column; align-items: stretch; }
  .form-bottom .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; }
  .modal-body { grid-template-columns: 1fr; min-height: auto; }
  .modal-img-wrap { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 40px; min-height: 180px; }
  .modal-img-wrap img { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .modal-content { padding: 28px 24px 32px; }
  .modal-cta { width: 100%; justify-content: center; }
  .about-card-2 { right: 0; width: 180px; padding: 18px; }
  .about-card-2 strong { font-size: 28px; }
}

/* =========================================================
   PREMIUM REDESIGN — 3ДСС editorial upgrade
   Agency-grade: noise, editorial type, luxury motion
   ========================================================= */

/* ── Extra font variable ── */
:root {
  --font-grotesk: "Space Grotesk", "Manrope", sans-serif;
  --gold: #C8A96E;
  --gold-soft: rgba(200,169,110,0.15);
}

/* ── Noise texture — adds tactility/depth ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Section label — editorial numbered style ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.section-label .section-kicker {
  margin-bottom: 0;
  color: var(--ink-soft);
}
.section-label.dark .section-kicker { color: rgba(255,255,255,0.45); }
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  max-width: 120px;
}
.section-label.dark .section-line { background: linear-gradient(to right, var(--accent), transparent); }
.section-count {
  font-family: var(--font-grotesk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.7;
}

/* ── Section titles — bigger, more editorial ── */
.section-title {
  font-size: clamp(38px, 5vw, 72px) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.02 !important;
}

/* ── Body font upgrade ── */
body { font-family: var(--font-grotesk); }
.hero-title, .section-title, .modal-title, .page-title,
.adv-item h4, .faq-item summary,
.service-card h3, .about-card-2 strong { font-family: var(--font-display); }
.section-kicker, .htag, .filter, .stat-label, .port-meta,
.contact-list .ck, .header-phone, .field label { font-family: var(--font-grotesk); }

/* ── Header — floating pill style ── */
.site-header {
  top: 20px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: calc(100% - 56px);
  max-width: 1320px;
  border-radius: 999px;
  padding: 8px 20px !important;
  border: 1px solid rgba(255,255,255,0.08);
}
.site-header.scrolled {
  background: rgba(242,239,232,0.96) !important;
  border-color: var(--line) !important;
  box-shadow: 0 8px 40px -12px rgba(0,0,0,0.2);
}
.site-header:not(.scrolled) {
  background: rgba(20,18,16,0.45) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
/* nav links rounded pills */
.main-nav a {
  border-radius: 999px !important;
  font-family: var(--font-grotesk);
  font-size: 16px !important;
  letter-spacing: 0.02em;
}

/* ── Buttons — premium pill with glow ── */
.btn-primary {
  font-family: var(--font-grotesk) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 0 rgba(58,120,201,0);
  transition: all 0.35s var(--ease) !important;
}
.btn-primary:hover {
  box-shadow: 0 0 0 6px rgba(58,120,201,0.18), 0 12px 32px -8px rgba(58,120,201,0.55) !important;
}
.btn-ghost-light {
  font-family: var(--font-grotesk) !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em;
}

/* ── Services — editorial list layout (replaces 4-col grid) ── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

/* Hide old grid service-card styles */
.services-list .service-card {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 32px 0 !important;
  min-height: auto !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 40px !important;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  position: relative;
  transition: background 0.3s var(--ease) !important;
}
.services-list .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--graphite);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 0;
  border-radius: 16px;
}
.services-list .service-card:hover::before { opacity: 1; }
.services-list .service-card > * { position: relative; z-index: 1; }

.services-list .service-card:hover { padding: 32px 28px !important; margin: 0 -28px !important; color: #fff !important; }
.services-list .service-card:hover h3 { color: #fff !important; }
.services-list .service-card:hover p { color: rgba(255,255,255,0.6) !important; }
.services-list .service-card:hover .service-num { color: var(--accent) !important; }

.services-list .service-num {
  font-family: var(--font-grotesk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  width: 40px;
  flex-shrink: 0;
  transition: color 0.3s;
}
.services-list .service-icon {
  width: 40px;
  height: 40px;
  margin: 0 !important;
  flex-shrink: 0;
  color: var(--accent) !important;
  opacity: 0.8;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.services-list .service-card:hover .service-icon { transform: rotate(12deg) scale(1.1); opacity: 1; }

.services-list .service-card h3 {
  font-family: var(--font-display) !important;
  font-size: clamp(22px, 2.5vw, 36px) !important;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex: 1;
  transition: color 0.3s;
  font-variation-settings: "opsz" 144;
}
.services-list .service-card p {
  font-size: 14px !important;
  color: var(--ink-soft) !important;
  max-width: 340px;
  line-height: 1.55;
  margin: 0 !important;
  transition: color 0.3s;
}
.services-list .service-link {
  font-family: var(--font-grotesk);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Service CTA card in list */
.services-list .service-cta {
  background: var(--graphite) !important;
  border-radius: 20px !important;
  padding: 36px 32px !important;
  margin-top: 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
}
.services-list .service-cta::before { display: none !important; }
.services-list .service-cta:hover { background: var(--graphite-soft) !important; padding: 36px 32px !important; margin: 20px 0 0 !important; }
.services-list .service-cta h3 { font-size: 28px !important; color: #fff !important; flex: 1; }
.services-list .service-cta p { color: rgba(255,255,255,0.6) !important; }

/* ── Advantages — enhanced ── */
.adv-item {
  padding: 36px 32px !important;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: background 0.3s, border-color 0.3s !important;
}
.adv-item:hover { background: rgba(255,255,255,0.04) !important; border-left-color: var(--accent) !important; }
.adv-num {
  font-family: var(--font-grotesk) !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  margin-bottom: 18px;
}
.adv-item h4 {
  font-size: 20px !important;
  font-weight: 500 !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.01em;
}

/* ── Section titles on dark bg ── */
.advantages .section-title { font-size: clamp(42px, 5.5vw, 80px) !important; }

/* ── Consult banner — gold accent ── */
.consult-inner {
  background: linear-gradient(135deg, var(--graphite) 0%, #1A1A1C 100%) !important;
  border: 1px solid rgba(200,169,110,0.2) !important;
  position: relative;
  overflow: hidden;
}
.consult-inner::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58,120,201,0.22) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* ── FAQ — refined ── */
.faq-item summary {
  font-size: clamp(18px, 1.8vw, 22px) !important;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.faq-item[open] summary { color: var(--accent); }

/* ── Reviews — premium card ── */
.review-card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  position: relative;
  overflow: hidden;
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}

/* ── Order form — premium dark glass ── */
.order-form {
  background: var(--graphite) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.35) !important;
}
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  letter-spacing: 0.02em;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent) !important;
  background: rgba(255,255,255,0.08) !important;
  box-shadow: 0 0 0 3px rgba(58,120,201,0.12) !important;
}

/* ── Footer — premium ── */
.site-footer {
  background: #111111 !important;
  border-top: 1px solid rgba(200,169,110,0.12);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06) !important; }

/* ── Kicker text — upgraded ── */
.section-kicker {
  font-family: var(--font-grotesk) !important;
  font-size: 10px !important;
  letter-spacing: 0.22em !important;
  font-weight: 700 !important;
}
.section-kicker::before { width: 16px !important; }

/* ── Scrolled header nav fix ── */
.site-header.scrolled .main-nav a { color: var(--ink) !important; }
.site-header.scrolled .main-nav a:hover { background: var(--ink); color: var(--bg); }
/* Active link must always show light text on dark bg, regardless of scroll state */
.main-nav a.active,
.site-header.scrolled .main-nav a.active { background: var(--ink) !important; color: var(--bg) !important; }
.site-header:not(.scrolled) .main-nav a.active { background: rgba(255,255,255,0.9) !important; color: var(--ink) !important; }
.site-header.scrolled .header-phone { color: var(--ink) !important; }

/* ── Mobile header — full width on small screens ── */
@media (max-width: 880px) {
  .site-header {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    padding: 12px 20px !important;
  }
  .services-list .service-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .services-list .service-card:hover {
    padding: 24px 20px !important;
    margin: 0 -20px !important;
  }
  .services-list .service-cta {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .services-list .service-card h3 { font-size: 22px !important; }
  .stat { padding: 12px 16px !important; }
}

/* =========================================================
   Hero Service Modal — glassmorphism + parallax
   ========================================================= */

/* Кликабельность плашек */
.h3d-label,
.h3d-badge {
  cursor: pointer;
  pointer-events: all !important;
  user-select: none;
  -webkit-user-select: none;
}
.h3d-label:hover {
  background: rgba(58,120,201,0.25) !important;
  border-color: rgba(58,120,201,0.55) !important;
  color: #fff !important;
  transform: scale(1.06);
  box-shadow: 0 0 20px -4px rgba(58,120,201,0.4);
}
.h3d-badge:hover {
  background: rgba(58,120,201,0.85) !important;
  box-shadow: 0 0 24px -4px rgba(58,120,201,0.6);
  transform: scale(1.06);
}
.h3d-label::after {
  content: "↗";
  font-size: 10px;
  opacity: 0;
  margin-left: 4px;
  transition: opacity 0.2s;
}
.h3d-label:hover::after { opacity: 0.7; }

/* ── Overlay ── */
.hm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 12, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.hm-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── Glass box ── */
.hm-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: rgba(14, 18, 28, 0.72);
  backdrop-filter: blur(48px) saturate(160%);
  -webkit-backdrop-filter: blur(48px) saturate(160%);
  border: 1px solid rgba(58, 120, 201, 0.22);
  border-radius: 28px;
  padding: 52px 48px 48px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(58, 120, 201, 0.08),
    0 2px 0 rgba(58, 120, 201, 0.15),
    0 40px 100px -16px rgba(0, 0, 0, 0.7),
    0 0 80px -24px rgba(58, 120, 201, 0.25);
  overflow: hidden;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.hm-overlay.open .hm-box {
  transform: translateY(0) scale(1);
}

/* Parallax тilt через JS — плавно */
.hm-box { transition: transform 0.5s var(--ease); }
.hm-box.tilting { transition: transform 0.08s linear; }

/* ── Glow (следит за мышью) ── */
.hm-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle,
    rgba(58, 120, 201, 0.28) 0%,
    rgba(58, 120, 201, 0.08) 40%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.06s linear, top 0.06s linear;
  z-index: 0;
  left: 50%;
  top: 50%;
}

/* Декоративная полоса сверху */
.hm-box::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(58,120,201,0.6), transparent);
  z-index: 1;
}

/* ── Закрыть ── */
.hm-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  z-index: 10;
}
.hm-close:hover {
  background: rgba(58, 120, 201, 0.3);
  border-color: rgba(58, 120, 201, 0.5);
  color: #fff;
}

/* ── Layout ── */
.hm-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Иконка ── */
.hm-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(58, 120, 201, 0.12);
  border: 1px solid rgba(58, 120, 201, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 24px -8px rgba(58, 120, 201, 0.4);
}
.hm-icon-wrap svg { width: 28px; height: 28px; }

/* ── Текст ── */
.hm-num {
  display: block;
  font-family: var(--font-grotesk);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 10px;
}
.hm-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 144;
}
.hm-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.hm-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ── Список ── */
.hm-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 36px;
}
.hm-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}
.hm-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 6px rgba(58,120,201,0.6);
}

/* ── CTA ── */
.hm-cta {
  align-self: flex-start;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hm-box { padding: 36px 24px 32px; }
  .hm-list { grid-template-columns: 1fr; }
}
