/* ===============================================================
   HELYX — Premium Edition
   Цветовая палитра: тёплый графит + жемчужное золото + морская волна
   =============================================================== */

:root, [data-theme="dark"] {
  color-scheme: dark;

  /* Core background */
  --bg: #0a0c10;
  --bg-2: #0e1117;
  --bg-3: #141821;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #e8e6e0;
  --text-2: #a8a8a3;
  --text-3: #6e6e69;

  /* Accent — premium gold + ocean */
  --gold: #c9a875;
  --gold-2: #d4b78f;
  --gold-3: #8a7456;
  --ocean: #6b95a8;
  --teal: #7aa898;

  /* Gradient */
  --grad-warm: linear-gradient(135deg, #d4b78f 0%, #c9a875 50%, #8a7456 100%);
  --grad-cool: linear-gradient(135deg, #8fb3a1 0%, #6b95a8 50%, #4a6878 100%);
  --grad-text: linear-gradient(180deg, #ffffff 0%, #c9a875 100%);

  /* Component tokens */
  --nav-bg: rgba(10, 12, 16, 0.7);
  --modal-backdrop: rgba(5, 7, 10, 0.7);
  --grain-opacity: 0.4;
  --grain-color: 0.6 0 0 0 0.55 0 0 0 0 0.5;
  --hero-photo-overlay: radial-gradient(circle at 70% 30%, transparent 30%, rgba(10, 12, 16, 0.6) 80%), linear-gradient(135deg, rgba(201, 168, 117, 0.15), rgba(10, 12, 16, 0.4));
  --photo-darken: 0.55;
  --card-stage: linear-gradient(160deg, #ece6dc 0%, #d6ccbc 100%);
  --bg-radial-1: rgba(201, 168, 117, 0.12);
  --bg-radial-2: rgba(107, 149, 168, 0.10);
  --bg-radial-3: rgba(122, 168, 152, 0.06);

  /* Typography */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  /* Layout */
  --container: 1320px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 30px 60px -30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px -10px rgba(201, 168, 117, 0.25);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  color-scheme: light;

  /* Тёплая кремово-жемчужная палитра */
  --bg: #f4efe5;
  --bg-2: #ebe4d4;
  --bg-3: #ffffff;
  --surface: rgba(28, 22, 16, 0.04);
  --surface-2: rgba(28, 22, 16, 0.07);
  --border: rgba(28, 22, 16, 0.08);
  --border-strong: rgba(28, 22, 16, 0.16);

  /* Тёмный тёплый текст для контраста по AA */
  --text: #1a1410;
  --text-2: #5a5048;
  --text-3: #8e857a;

  /* Золото слегка темнее для контраста на светлом */
  --gold: #8a6f3d;
  --gold-2: #a8884f;
  --gold-3: #c9a875;
  --ocean: #4a6878;
  --teal: #5d8576;

  --grad-warm: linear-gradient(135deg, #c9a875 0%, #a8884f 50%, #8a6f3d 100%);
  --grad-text: linear-gradient(180deg, #1a1410 0%, #8a6f3d 100%);

  --nav-bg: rgba(244, 239, 229, 0.75);
  --modal-backdrop: rgba(244, 239, 229, 0.7);
  --grain-opacity: 0.18;
  --bg-radial-1: rgba(201, 168, 117, 0.22);
  --bg-radial-2: rgba(107, 149, 168, 0.14);
  --bg-radial-3: rgba(122, 168, 152, 0.10);

  --hero-photo-overlay: radial-gradient(circle at 70% 30%, transparent 35%, rgba(244, 239, 229, 0.55) 90%), linear-gradient(135deg, rgba(201, 168, 117, 0.18), rgba(244, 239, 229, 0.3));
  --photo-darken: 0.62;
  --card-stage: linear-gradient(160deg, #fbf8f2 0%, #ebe3d5 100%);

  --shadow-soft: 0 30px 60px -30px rgba(60, 40, 20, 0.18);
  --shadow-glow: 0 0 60px -10px rgba(168, 136, 79, 0.3);
}

/* ============================ RESET ============================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, button { font: inherit; }

/* ======================= BG / GRAIN ============================ */
.bg-gradient {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, var(--bg-radial-1), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 90%, var(--bg-radial-2), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, var(--bg-radial-3), transparent 70%),
    var(--bg);
  transition: background 0.6s var(--ease);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity 0.6s var(--ease);
}

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(0px);
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.nav__logo-box { display: flex; flex-direction: column; line-height: 1.15; }
.nav__logo-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.nav__logo-mark {
  width: 32px; height: 32px;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(201, 168, 117, 0.3));
}
.nav__logo-text {
  font-weight: 700; font-size: 19px;
  letter-spacing: 0.18em;
}
.nav__menu {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
}
.nav__menu a {
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav__menu a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav__menu a:hover { color: var(--text); }
.nav__menu a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* ============================ THEME TOGGLE ============================ */
.theme-toggle {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-3);
  background: var(--surface-2);
  transform: rotate(15deg);
}
.theme-toggle__icon {
  width: 18px; height: 18px;
  position: absolute;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.theme-toggle__sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.theme-toggle__moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="light"] .theme-toggle__sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="light"] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.nav__phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}
.nav__phone:hover { color: var(--gold); }
.nav__phone { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.nav__phone svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.nav__burger { display: none; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--grad-warm);
  color: #1a1410;
  box-shadow: 0 10px 30px -10px rgba(201, 168, 117, 0.5);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #e0c89a 0%, #d4b78f 100%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(201, 168, 117, 0.6); }
.btn--primary > * { position: relative; z-index: 1; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--gold);
  color: var(--gold);
}

.btn--lg { padding: 16px 28px; font-size: 14.5px; }
.btn--full { width: 100%; justify-content: center; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 32px 120px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  width: fit-content;
  background: var(--surface);
  backdrop-filter: blur(10px);
  margin-bottom: 32px;
}
.hero__chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 820px;
}
.hero__title em {
  font-style: italic;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  max-width: 900px;
}
.hero__stats-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat__suffix { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label {
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__visual {
  position: absolute;
  top: 0; right: -20%;
  width: 80%; height: 100%;
  pointer-events: none;
  z-index: -1;
}
.hero__photo {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 720px; height: 720px;
  max-width: 60vw; max-height: 90vh;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 117, 0.25);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.7),
              inset 0 0 0 1px rgba(201, 168, 117, 0.1);
  animation: heroFloat 8s ease-in-out infinite;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero__photo-overlay {
  position: absolute; inset: 0;
  background: var(--hero-photo-overlay);
  mix-blend-mode: multiply;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 14px)) translateX(-8px); }
}
.hero__ring {
  position: absolute;
  top: 50%; right: -10%;
  width: 900px; height: 900px;
  transform: translateY(-50%);
  animation: spin 60s linear infinite;
  opacity: 0.5;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.orb--1 { width: 400px; height: 400px; background: var(--gold); top: 20%; right: 10%; animation: float 14s ease-in-out infinite; }
.orb--2 { width: 300px; height: 300px; background: var(--ocean); top: 60%; right: 30%; animation: float 18s ease-in-out infinite reverse; opacity: 0.3; }
.orb--3 { width: 200px; height: 200px; background: var(--teal); top: 10%; right: 40%; animation: float 12s ease-in-out infinite; opacity: 0.25; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}

.hero__scroll {
  position: absolute;
  left: 32px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-3);
  transition: color 0.3s var(--ease);
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll svg { width: 14px; height: 22px; }

/* ============================ SECTIONS ============================ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 32px;
  position: relative;
}
.section__head {
  margin-bottom: 80px;
  max-width: 800px;
}
.section__eyebrow {
  display: block;
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section__title em {
  font-style: italic;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__lead {
  font-size: 17px;
  color: var(--text-2);
  margin-top: 28px;
  line-height: 1.65;
  max-width: 640px;
}

/* ============================ ABOUT ============================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.about__text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 24px;
}
.about__bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.bullet {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: all 0.35s var(--ease);
}
.bullet:hover {
  border-color: var(--gold-3);
  transform: translateY(-2px);
}
.bullet span {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
}

.about__card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 480px;
  padding: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #14161a;
  box-shadow: var(--shadow-soft);
}
.about__card-photo {
  position: absolute; inset: 0;
  z-index: 0;
}
.about__card-photo picture { display: contents; }
.about__card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 1.2s var(--ease);
}
.about__card:hover .about__card-photo img { transform: scale(1.04); }
/* Фото видно сверху, текст читается на затемнении снизу */
.about__card-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.05) 0%, rgba(10, 12, 16, 0.4) 30%, rgba(10, 12, 16, 0.88) 55%, rgba(10, 12, 16, 0.96) 100%);
}
.about__card-bg { display: none; }
.about__card-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  color: #e8e6e0; /* фиксированный светлый текст: карточка всегда тёмная */
}
.about__card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d4b78f;
  margin-bottom: 14px;
}
.about__card-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  color: #ffffff;
  max-width: 460px;
}
.about__card-cert {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(212, 183, 143, 0.35);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.about__card-cert:hover { border-color: #d4b78f; background: rgba(0, 0, 0, 0.5); }
.about__card-cert svg { width: 28px; height: 28px; color: #d4b78f; flex-shrink: 0; }
.about__card-cert span { display: flex; flex-direction: column; font-size: 12.5px; color: rgba(255,255,255,0.65); }
.about__card-cert strong { font-size: 14.5px; font-weight: 600; color: #fff; }

/* ============================ DEALER ============================ */
.dealer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 32px 0;
}
.dealer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 64px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-3);
  background: linear-gradient(135deg, rgba(201, 168, 117, 0.14), rgba(107, 149, 168, 0.05));
  box-shadow: var(--shadow-glow);
}
.dealer__seal { width: 220px; height: 220px; color: var(--gold); flex-shrink: 0; }
.dealer__seal svg { width: 100%; height: 100%; }
.dealer__seal-ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: sealSpin 40s linear infinite;
}
@keyframes sealSpin { to { transform: rotate(360deg); } }
.dealer__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.dealer__title em {
  font-style: italic;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dealer__text {
  margin: 20px 0 28px;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
}
.dealer__points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.dealer__points li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}
.dealer__points svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.dealer__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dealer__archive {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}
.dealer__archive a {
  margin-left: 10px;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}

.about__card-author {
  display: flex; align-items: center; gap: 16px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a875, #6b95a8);
  flex-shrink: 0;
}
.about__card-name { font-weight: 600; font-size: 14px; color: #ffffff; }
.about__card-role { font-size: 12.5px; color: rgba(255,255,255,0.55); }

/* ============================ CATALOG ============================ */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.4s var(--ease);
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(201, 168, 117, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.card:hover {
  border-color: var(--gold-3);
  transform: translateY(-4px);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card__num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 36px;
}
/* Номер лежит поверх фото-витрины */
.card > .card__num {
  position: absolute;
  top: 28px; left: 30px;
  z-index: 2;
  margin: 0;
  color: #8a6f3d;
}
/* Фото-витрина: светлая подложка в обеих темах, белый фон рендера растворяется через multiply */
.card__media {
  margin: -14px -12px 26px;
  aspect-ratio: 16 / 11;
  max-width: calc(100% + 24px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-stage);
  display: flex; align-items: center; justify-content: center;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}
.card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: auto;
  transition: gap 0.3s var(--ease);
}
.card__link svg { width: 14px; height: 14px; }
.card__link:hover { gap: 12px; }

.card--cta {
  background: var(--grad-warm);
  border: none;
  color: #1a1410;
}
.card--cta::before { display: none; }
.card--cta h3 { color: #1a1410; }
.card--cta p { color: rgba(26, 20, 16, 0.75); }
.card--cta:hover { transform: translateY(-4px); }

/* ============================ TECHNOLOGY ============================ */
.tech__tabs {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.tech__nav { display: flex; flex-direction: column; gap: 4px; }
.tech__btn {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  color: var(--text-2);
}
.tech__btn:hover { background: var(--surface); color: var(--text); }
.tech__btn.is-active {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.tech__btn-num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  opacity: 0.7;
}
.tech__btn-name {
  font-size: 17px;
  font-weight: 500;
}
.tech__btn.is-active .tech__btn-num { opacity: 1; }

.tech__panel {
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(201, 168, 117, 0.06), rgba(107, 149, 168, 0.04));
  border: 1px solid var(--border);
  min-height: 360px;
}
.tech__panel-inner h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 24px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tech__panel-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 32px;
}
.tech__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tech__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
}
.tech__list span { color: var(--gold); font-size: 16px; }

/* ============================ PROJECTS ============================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  grid-column: span 2;
  grid-row: span 1;
  border: 1px solid var(--border);
}
.project--lg { grid-column: span 4; grid-row: span 2; }
.project--md { grid-column: span 3; }
.project + .project--md { grid-column: span 3; }
.project__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
  filter: saturate(0.85) contrast(1.05);
}
.project:hover .project__img {
  transform: scale(1.08);
  filter: saturate(1) contrast(1.1);
}
.project__img[data-img="1"] { background-image: url("img/proj_4.jpg"); }
.project__img[data-img="2"] { background-image: url("img/proj_2.jpg"); }
.project__img[data-img="3"] { background-image: url("img/proj_6.jpg"); }
.project__img[data-img="4"] { background-image: url("img/proj_8.jpg"); }
.project__img[data-img="5"] { background-image: url("img/proj_5.jpg"); }

.project__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.92) 100%),
    linear-gradient(135deg, rgba(201, 168, 117, 0.08), transparent 50%);
  transition: background 0.5s var(--ease);
}
.project:hover .project__overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 25%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.95) 100%),
    linear-gradient(135deg, rgba(201, 168, 117, 0.15), transparent 50%);
}
.project__meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  z-index: 1;
}
.project__tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 11px;
  color: #d4b78f; /* фикс. светлое золото — поверх тёмного overlay */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.3);
}
.project h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #fff;
}
.project--lg h3 { font-size: 36px; }
.project p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.project__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #d4b78f;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.project:hover .project__cta { opacity: 1; transform: translateX(4px); }
.project:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.process__cta {
  margin-top: 64px;
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.process__cta p { font-size: 16px; color: var(--text-2); }

/* ============================ PROCESS ============================ */
.process__line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  position: relative;
}
.process__line::before {
  content: '';
  position: absolute;
  top: 28px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3) 20%, var(--gold-3) 80%, transparent);
}
.process__step {
  padding: 0 18px;
  position: relative;
}
.process__step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--gold-3);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.process__step h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 12px;
}
.process__step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================ CONTACTS ============================ */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  padding: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(201, 168, 117, 0.05), rgba(107, 149, 168, 0.03));
  border: 1px solid var(--border);
}
.contacts__lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 28px;
  margin-bottom: 48px;
  max-width: 440px;
}
.contacts__info { display: grid; gap: 24px; }
.contacts__item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.contacts__item-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.contacts__item-value {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
a.contacts__item-value:hover { color: var(--gold); }

.contacts__right { display: grid; gap: 40px; }
.phones { display: grid; gap: 14px; }
.phone-card {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--grad-warm);
  color: #1a1410;
  box-shadow: 0 16px 40px -18px rgba(201, 168, 117, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.phone-card:hover, .phone-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -18px rgba(201, 168, 117, 0.85);
  outline: none;
}
.phone-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(26, 20, 16, 0.12);
  flex-shrink: 0;
}
.phone-card__icon svg { width: 24px; height: 24px; }
.phone-card__body { display: flex; flex-direction: column; min-width: 0; }
.phone-card__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.phone-card__num {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.footer__col a.footer__phone { font-size: 16px; font-weight: 600; color: var(--text); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: grid; gap: 8px; }
.form__field span {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
}
.form__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23c9a875' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}
.form__field select option { background: var(--bg-2); color: var(--text); }
.form__field input,
.form__field select,
.form__field textarea {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s var(--ease);
  resize: vertical;
  font-family: inherit;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(201, 168, 117, 0.08);
}
.form__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.form__note {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 280px;
}

/* ============================ FOOTER ============================ */
.footer {
  margin-top: 100px;
  padding: 100px 32px 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--surface));
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer__brand p {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 320px;
}
.footer__col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
}
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col a, .footer__col span {
  font-size: 14.5px;
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================ MODAL ============================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
[hidden] { display: none !important; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s var(--ease);
}
.modal__dialog {
  position: relative;
  width: 100%; max-width: 480px;
  padding: 48px 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: slideUp 0.4s var(--ease);
}
.modal__close {
  position: absolute; top: 20px; right: 24px;
  width: 36px; height: 36px;
  font-size: 28px;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}
.modal__close:hover { background: var(--surface); color: var(--text); }
.modal__dialog h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  margin-bottom: 12px;
}
.modal__dialog p {
  color: var(--text-2);
  margin-bottom: 32px;
}
.modal__dialog form { display: grid; gap: 16px; }
.modal__product {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--gold);
}
.modal__product[hidden] { display: none; }
.phones--modal { margin-bottom: 20px; }
.phones--modal .phone-card { padding: 16px 20px; }
.phones--modal .phone-card__icon { width: 44px; height: 44px; }
.phones--modal .phone-card__num { font-size: 24px; }
.modal__dialog .modal__hours { margin: 0; font-size: 13px; text-align: center; color: var(--text-3); }
.modal__hours a { color: var(--gold); }
.modal__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid var(--gold-3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================ STICKY CTA ============================ */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 20px;
    border-radius: 100px;
    background: var(--grad-warm);
    color: #1a1410;
    font-size: 15px; font-weight: 700;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(140%);
    transition: transform 0.4s var(--ease);
  }
  .sticky-cta.is-visible { transform: translateY(0); }
  .sticky-cta svg { width: 16px; height: 16px; }
  .footer { padding-bottom: 100px; }
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
}

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

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1500px) {
  .nav .btn--primary { display: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    flex-shrink: 0;
  }
  .nav__burger span {
    width: 18px; height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .menu-open .nav__burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
  .menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  .menu-open .nav__burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    display: flex; flex-direction: column; gap: 28px;
    padding: 96px 32px calc(28px + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    animation: fadeIn 0.25s var(--ease);
  }
  .mobile-menu__nav { display: flex; flex-direction: column; }
  .mobile-menu__nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.1;
    color: var(--text);
  }
  .mobile-menu__nav a::after { content: '→'; font-family: var(--font-sans); font-size: 18px; color: var(--gold); }
  .mobile-menu__foot {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 13px; line-height: 1.6;
    color: var(--text-3);
  }
  .mobile-menu__foot a { color: var(--gold); }
  body.menu-open { overflow: hidden; }
  .menu-open .nav { background: var(--bg); }

  .dealer__inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .dealer__seal { width: 160px; height: 160px; }
  .dealer__points { grid-template-columns: 1fr; }
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .tech__tabs, .contacts__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__card { min-height: 460px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project, .project--md, .project + .project--md { grid-column: span 1; grid-row: span 1; }
  .project--lg { grid-column: span 2; grid-row: span 2; }
  .process__line { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process__line::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contacts__inner { padding: 48px 32px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  /* Layout */
  .section { padding: 64px 20px; }
  .section__head { margin-bottom: 32px; }
  .section__eyebrow { margin-bottom: 14px; font-size: 11.5px; letter-spacing: 0.16em; }
  .section__title { font-size: clamp(32px, 9vw, 44px); line-height: 1.02; }
  .section__lead { margin-top: 16px; font-size: 15.5px; }

  /* Nav */
  .nav, .nav.is-scrolled {
    padding: 10px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
  }
  .nav__inner { padding: 0 16px; gap: 12px; }
  .nav__logo { gap: 10px; }
  .nav__logo-mark { width: 28px; height: 28px; }
  .nav__logo-text { font-size: 17px; }
  .nav__logo-sub { font-size: 9px; letter-spacing: 0.06em; }
  .nav__actions { gap: 8px; }
  .nav__actions > .theme-toggle { display: none; }
  .nav__phone {
    width: 42px; height: 42px;
    justify-content: center;
    gap: 0;
    border-radius: 50%;
    background: var(--grad-warm);
    font-size: 0;
    box-shadow: 0 8px 20px -10px rgba(201, 168, 117, 0.8);
  }
  .nav__phone svg { width: 18px; height: 18px; color: #1a1410; }
  .mobile-menu { padding: 84px 20px calc(24px + env(safe-area-inset-bottom)); }
  .mobile-menu__nav a { font-size: 27px; padding: 12px 0; }

  /* Hero: фото отдельным блоком под заголовком */
  .hero { min-height: 0; padding: 92px 20px 48px; }
  .hero__chip { order: -3; margin-bottom: 18px; padding: 7px 12px; font-size: 11.5px; }
  .hero__title { order: -2; margin-bottom: 20px; font-size: clamp(34px, 10.4vw, 48px); line-height: 1; }
  .hero__title br { display: none; }
  .hero__visual {
    order: -1;
    position: relative; top: auto; right: auto;
    width: 100%; height: auto;
    aspect-ratio: 16 / 10;
    margin-bottom: 22px;
    z-index: 0;
  }
  .hero__photo {
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    max-width: none; max-height: none;
    transform: none;
    animation: none;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
  }
  .hero__photo-overlay { display: none; }
  .orb, .hero__ring { display: none; }
  .hero__lead { margin-bottom: 24px; font-size: 15.5px; line-height: 1.6; }
  .hero__actions { flex-direction: column; gap: 10px; margin-bottom: 36px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding-top: 28px; }
  .stat__num { font-size: 34px; }
  .stat__label { font-size: 11px; letter-spacing: 0.06em; }
  .hero__scroll { display: none; }

  /* Dealer */
  .dealer { padding: 8px 16px 0; }
  .dealer__inner { gap: 20px; padding: 28px 20px; }
  .dealer__seal { width: 120px; height: 120px; margin: 0 auto; }
  .dealer__title { font-size: clamp(30px, 8.6vw, 40px); }
  .dealer__title br { display: none; }
  .dealer__text { margin: 14px 0 20px; font-size: 15px; }
  .dealer__points { gap: 8px; margin-bottom: 24px; }
  .dealer__points li { padding: 12px 14px; font-size: 13.5px; }
  .dealer__actions { flex-direction: column; }
  .dealer__actions .btn { width: 100%; justify-content: center; }

  /* About */
  .about__grid { gap: 32px; }
  .about__text p { margin-bottom: 16px; font-size: 15.5px; line-height: 1.7; }
  .about__bullets { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .bullet { padding: 12px 14px; font-size: 13.5px; }
  .about__card { min-height: 420px; padding: 22px; }
  .about__card-eyebrow { margin-bottom: 16px; }
  .about__card-quote { font-size: 21px; }
  .about__card-cert { margin-top: 24px; }

  /* Catalog: компактные строки — иконка слева */
  .catalog__grid { grid-template-columns: 1fr; gap: 10px; }
  .card {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 16px;
    align-items: start;
    min-height: 0;
    padding: 18px;
  }
  .card__num, .card > .card__num { display: none; }
  .card__media { grid-row: 1 / span 3; width: 96px; margin: 2px 0 0; aspect-ratio: 1; border-radius: 10px; }
  .card > h3, .card > p, .card > .card__link { grid-column: 2; }
  .card h3 { margin-bottom: 4px; font-size: 20px; }
  .card p { margin-bottom: 10px; font-size: 13.5px; }
  .card__link { margin-top: 0; font-size: 13.5px; font-weight: 600; }
  .card--cta { display: block; padding: 24px 20px; }
  .card--cta h3 { font-size: 24px; }
  .card--cta h3 br { display: none; }
  .card--cta .btn { width: 100%; justify-content: center; margin-top: 4px; }

  /* Technology: вкладки прокручиваются по горизонтали */
  .tech__tabs { gap: 16px; }
  .tech__nav {
    flex-direction: row;
    gap: 8px;
    margin: 0 -20px;
    padding: 0 20px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tech__nav::-webkit-scrollbar { display: none; }
  .tech__btn { flex-shrink: 0; gap: 8px; padding: 10px 16px; border-radius: 100px; border-color: var(--border); }
  .tech__btn-name { font-size: 14px; white-space: nowrap; }
  .tech__panel { min-height: 0; padding: 24px 20px; }
  .tech__panel-inner h3 { margin-bottom: 12px; font-size: 26px; }
  .tech__panel-inner p { margin-bottom: 20px; font-size: 15px; }
  .tech__list li { padding: 12px 14px; font-size: 14px; }

  /* Projects */
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 12px; }
  .project, .project--lg, .project--md, .project + .project--md { grid-column: auto; grid-row: auto; }
  .project__meta { padding: 18px 20px; }
  .project__tag { margin-bottom: 8px; font-size: 10px; }
  .project h3, .project--lg h3 { font-size: 22px; }
  .project p { font-size: 13px; }
  .project__cta { margin-top: 8px; opacity: 1; }
  .project__img[data-img="1"] { background-image: url("img/m/proj_4.jpg"); }
  .project__img[data-img="2"] { background-image: url("img/m/proj_2.jpg"); }
  .project__img[data-img="3"] { background-image: url("img/m/proj_6.jpg"); }
  .project__img[data-img="4"] { background-image: url("img/m/proj_8.jpg"); }
  .project__img[data-img="5"] { background-image: url("img/m/proj_5.jpg"); }

  /* Process: вертикальная линия шагов */
  .process__line { grid-template-columns: 1fr; gap: 0; }
  .process__step {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    padding: 0 0 24px;
  }
  .process__step::before {
    content: '';
    position: absolute;
    left: 22px; top: 44px; bottom: 0;
    width: 1px;
    background: var(--gold-3);
    opacity: 0.5;
  }
  .process__step:last-child::before { display: none; }
  .process__step-num { grid-row: 1 / span 2; width: 44px; height: 44px; margin-bottom: 0; font-size: 15px; }
  .process__step h3, .process__step p { grid-column: 2; }
  .process__step h3 { margin: 9px 0 4px; font-size: 20px; }
  .process__step p { font-size: 14px; }
  .process__cta { flex-direction: column; gap: 14px; margin-top: 24px; }
  .process__cta .btn { width: 100%; justify-content: center; }

  /* Contacts */
  .contacts.section { padding-left: 16px; padding-right: 16px; }
  .contacts__inner { gap: 28px; padding: 28px 20px; border-radius: 22px; }
  .contacts__lead { margin: 16px 0 0; font-size: 15px; }
  .contacts__right { gap: 28px; }
  .contacts__info { gap: 14px; }
  .contacts__item { padding-bottom: 14px; }
  .contacts__item-value { font-size: 19px; }
  .phone-card { gap: 14px; padding: 16px 18px; }
  .phone-card__icon { width: 44px; height: 44px; }
  .phone-card__icon svg { width: 20px; height: 20px; }
  .phone-card__num { font-size: clamp(19px, 5.6vw, 24px); }

  /* Footer */
  .footer { margin-top: 24px; padding: 48px 20px calc(110px + env(safe-area-inset-bottom)); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 32px; }
  .footer__brand, .footer__col:last-child { grid-column: 1 / -1; }
  .footer__col { gap: 10px; }
  .footer__col h4 { margin-bottom: 6px; }
  .footer__col a, .footer__col span { font-size: 14px; }
  .footer__bottom { flex-direction: column; padding: 20px 0 0; font-size: 12px; }

  /* Modal: выезжает снизу */
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog {
    max-width: none;
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    animation: sheetUp 0.35s var(--ease);
  }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .modal__close { top: 14px; right: 14px; }
  .modal__dialog h3 { font-size: 26px; }
  .modal__dialog p { margin-bottom: 20px; font-size: 14.5px; }

  /* Sticky CTA */
  .sticky-cta { bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; right: 12px; }
  .menu-open .sticky-cta { display: none; }
}

@media (max-width: 380px) {
  .nav__logo-sub { font-size: 8.5px; }
  .phone-card { gap: 12px; padding: 14px; }
  .phone-card__icon { width: 38px; height: 38px; }
  .card h3 { font-size: 18px; }
}

/* Сенсорные экраны: без «прыжков» при касании */
@media (hover: none) {
  .card:hover, .bullet:hover, .card--cta:hover, .btn--primary:hover, .phone-card:hover { transform: none; }
  .project:hover .project__img { transform: none; }
}

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