/* ============================================================
   DOMUS PRIVÉ · Общие стили
   Палитра: слоновая кость + графитный ink + антикварное золото
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   SPLASH / прелоадер — премиум-загрузка
   Показывается до window.load, потом исчезает.
   На повторных страницах сессии — мгновенно скрывается через JS.
   ============================================================ */

.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #0E0E10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-mark {
  width: 14px; height: 14px;
  background: #DDB868;
  transform: rotate(45deg);
  animation: splash-pulse 1.4s ease-in-out infinite;
  margin-bottom: 24px;
}
.splash-line {
  width: 96px; height: 1px;
  background: linear-gradient(90deg, transparent, #DDB868, transparent);
  animation: splash-line 1.4s ease-in-out infinite;
}
.splash-brand {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 11px; letter-spacing: .55em;
  color: rgba(221, 184, 104, .65);
  text-transform: uppercase;
}
@keyframes splash-pulse {
  0%, 100% { opacity: .5; transform: rotate(45deg) scale(1); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.18); }
}
@keyframes splash-line {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

:root {
  /* Bone (фон) */
  --bone: #F5EFE6;
  --bone-soft: #EFE8DC;
  --bone-deep: #E8DFD0;
  --bone-bright: #FBF7EF;
  --bone-pure: #FFFFFF;

  /* Ink (текст и тёмные секции) */
  --ink: #1B1812;
  --ink-soft: #3A352C;
  --ink-mute: #5A5045;

  /* Gold (главный акцент — пять оттенков) */
  --gold: #B8924B;          /* основной на светлом фоне */
  --gold-deep: #9A7838;     /* hover, глубокий */
  --gold-bright: #D4B97A;   /* светлые декорации */
  --gold-warm: #DDB868;     /* акценты на тёмных секциях */
  --gold-pale: #EFE2BC;     /* очень мягкие фоны */

  /* Muted text */
  --muted: #7A7065;
  --muted-soft: #9A9183;

  /* Линии */
  --line: rgba(184, 146, 75, .22);
  --line-soft: rgba(27, 24, 18, .07);
  --line-gold: rgba(184, 146, 75, .42);
  --line-gold-strong: rgba(184, 146, 75, .65);
}

/* ============================================================
   ТИПОГРАФИКА И БАЗА
   ============================================================ */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-weight: 400; }
h2 { font-weight: 400; }
h3 { font-weight: 500; }
h4 { font-weight: 500; }

p { font-weight: 300; }
strong { font-weight: 500; color: var(--ink); }
a { color: inherit; text-decoration: none; transition: color .3s; }

.em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; color: var(--gold); }
.italic { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; }

::selection { background: var(--gold); color: var(--bone); }

/* ============================================================
   ЛЕЙАУТ
   ============================================================ */

.container { max-width: 1440px; margin: 0 auto; padding: 0 64px; position: relative; }
.container-narrow { max-width: 1120px; margin: 0 auto; padding: 0 64px; position: relative; }
.container-text { max-width: 880px; margin: 0 auto; padding: 0 64px; position: relative; }

@media (max-width: 768px) {
  .container, .container-narrow, .container-text { padding: 0 24px; }
}

section { padding: 140px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* Тонкая золотая линия — декоративный примитив */
.gold-rule { width: 88px; height: 1px; background: var(--gold); margin-bottom: 32px; display: block; }
.gold-rule-short { width: 48px; height: 1px; background: var(--gold); display: inline-block; vertical-align: middle; }

/* Eyebrow / section-num — заголовок раздела с номером */
.eyebrow {
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 24px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 16px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--gold);
}

.section-num {
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 16px;
  color: var(--gold); margin-bottom: 32px;
  display: flex; align-items: center; gap: 20px; font-weight: 400;
}
.section-num::before { content: ''; width: 64px; height: 1px; background: var(--gold); }

.section-title {
  font-size: clamp(38px, 5vw, 76px);
  max-width: 1100px;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.05;
}
.section-lead {
  font-size: 19px; max-width: 760px;
  color: var(--ink-soft); line-height: 1.75; font-weight: 300;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 20px 36px;
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  transition: all .4s; font-weight: 500;
  cursor: pointer; border: none; font-family: inherit;
}
.btn svg { transition: transform .4s; }
.btn:hover svg { transform: translateX(6px); }

.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--bone); }

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

.btn-outline-gold {
  background: transparent; color: var(--gold-deep);
  border: 1px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }

.btn-ghost {
  background: transparent;
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--ink); padding: 20px 0;
  border-bottom: 1px solid var(--ink);
  border-top: none; border-left: none; border-right: none;
  font-weight: 500; font-family: inherit;
}
.btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold); }

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */

.top-line {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
}

.nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 50;
  padding: 28px 64px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(245, 239, 230, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: padding .3s, background .3s;
}
.nav.scrolled {
  padding: 18px 64px;
  background: rgba(245, 239, 230, .96);
  border-bottom-color: var(--line);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink); font-weight: 500;
  display: flex; align-items: center; gap: 14px;
}
.logo .mark {
  display: inline-block; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
}
.logo small {
  display: block; font-family: 'Inter', sans-serif;
  font-size: 9px; letter-spacing: .35em; color: var(--gold-deep);
  margin-top: 4px; font-weight: 500;
}

.menu { display: flex; gap: 36px; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400;
}
.menu a { position: relative; padding: 4px 0; }
.menu a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s;
}
.menu a:hover { color: var(--ink); }
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu a.active { color: var(--gold-deep); }

.nav-cta {
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone); background: var(--ink); padding: 14px 24px;
  font-weight: 500; transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 0; flex-direction: column; justify-content: center; gap: 6px;
}
.menu-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--ink); transition: all .3s;
}

@media (max-width: 1100px) {
  .menu, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 14px 24px; }
}

/* Мобильное меню (drawer) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column;
  padding: 32px;
  transform: translateX(100%); transition: transform .4s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 64px; }
.mobile-menu-head .logo { color: var(--bone); }
.mobile-menu-head .logo small { color: var(--gold-warm); }
.mobile-close {
  background: none; border: 1px solid rgba(255,255,255,.2); color: var(--bone);
  width: 44px; height: 44px; cursor: pointer; font-size: 24px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu nav a {
  font-family: 'Playfair Display', serif; font-size: 32px; color: var(--bone);
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu nav a:hover { color: var(--gold-warm); }
.mobile-cta {
  margin-top: auto; padding: 18px 24px; background: var(--gold-warm); color: var(--ink);
  text-align: center; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; font-weight: 500;
}

/* ============================================================
   HERO (страничный)
   ============================================================ */

.hero {
  min-height: 100vh; padding: 200px 0 100px;
  position: relative; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone-soft) 100%);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--gold-pale) 0%, transparent 65%);
  opacity: .55; pointer-events: none;
}

.hero h1 {
  font-size: clamp(48px, 7.5vw, 128px);
  max-width: 1200px; margin-bottom: 48px; font-weight: 400;
  position: relative; z-index: 2;
}
.hero .lead {
  font-size: 20px; max-width: 700px;
  color: var(--ink-soft); font-weight: 300; line-height: 1.7;
  position: relative; z-index: 2;
}
.hero-actions { margin-top: 64px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; position: relative; z-index: 2; }

.hero-meta {
  margin-top: 96px; padding-top: 32px;
  border-top: 1px solid var(--line); display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 48px;
  position: relative; z-index: 2;
}
.hero-meta .lbl {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 8px;
}
.hero-meta .val {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--ink); font-weight: 400;
}
.hero-meta .val em {
  font-family: 'Cormorant Garamond', serif; color: var(--gold-deep); font-style: italic;
}
@media (max-width: 768px) {
  .hero { padding: 140px 0 60px; min-height: auto; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 64px; }
}

/* Hero компактный — для внутренних страниц */
.page-head {
  padding: 200px 0 100px;
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone-soft) 100%);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; right: -200px; top: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-pale) 0%, transparent 65%);
  opacity: .5; pointer-events: none;
}
.page-head h1 { font-size: clamp(44px, 6vw, 96px); margin-bottom: 32px; max-width: 1100px; position: relative; z-index: 2; }
.page-head .lead { font-size: 19px; max-width: 740px; color: var(--ink-soft); line-height: 1.7; position: relative; z-index: 2; }
.breadcrumb {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 32px; font-weight: 500;
}
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span { color: var(--gold); margin: 0 12px; }
@media (max-width: 768px) { .page-head { padding: 130px 0 60px; } }

/* ============================================================
   МАНИФЕСТ (тёмная секция)
   ============================================================ */

.dark-section {
  background: var(--ink); color: var(--bone);
  position: relative; overflow: hidden;
}
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--bone); }
.dark-section .section-num { color: var(--gold-warm); }
.dark-section .section-num::before { background: var(--gold-warm); }
.dark-section .eyebrow { color: var(--gold-warm); }
.dark-section .eyebrow::before { background: var(--gold-warm); }
.dark-section .gold-rule { background: var(--gold-warm); }
.dark-section p { color: #C9C2B4; }
.dark-section strong { color: var(--bone); }

.dark-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-warm) 50%, transparent 100%);
}

.manifesto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: center; }
@media (max-width: 1024px) { .manifesto-grid { grid-template-columns: 1fr; gap: 48px; } }

.manifesto blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 2.8vw, 42px);
  font-style: italic; font-weight: 400; line-height: 1.4; color: var(--bone);
}
.manifesto blockquote::before {
  content: '\201C'; display: block; font-size: 120px; line-height: 0;
  color: var(--gold-warm); margin-bottom: 32px; font-style: normal;
}

/* ============================================================
   УСЛУГИ — карточки (на главной и обзорных страницах)
   ============================================================ */

.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 64px;
}
.services-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .services-grid, .services-grid.three { grid-template-columns: 1fr; } }

.service {
  padding: 48px; background: var(--bone-bright);
  border: 1px solid var(--line-soft);
  position: relative; transition: all .4s;
}
.service:hover {
  background: var(--bone-pure); border-color: var(--line-gold);
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -32px rgba(184, 146, 75, .25);
}
.service-num {
  position: absolute; top: 40px; right: 40px;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 56px; color: var(--gold); line-height: 1; font-weight: 400;
}
.service h3 { font-size: 30px; margin-bottom: 20px; max-width: 80%; font-weight: 500; }
.service > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 32px; font-weight: 300; }
.service ul { list-style: none; border-top: 1px solid var(--line-soft); }
.service li {
  font-size: 14.5px; padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft); display: flex; align-items: center; gap: 14px;
}
.service li::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%; flex-shrink: 0;
}
.service-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.service-link:hover { color: var(--ink); }
.service-link svg { transition: transform .3s; }
.service-link:hover svg { transform: translateX(4px); }

/* ============================================================
   КОМПЕТЕНЦИИ — большие тематические блоки на странице "Автоматизация"
   ============================================================ */

.expertise {
  display: grid; grid-template-columns: 280px 1fr; gap: 96px;
  padding: 80px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.expertise:first-of-type { border-top: none; padding-top: 0; }
@media (max-width: 1024px) { .expertise { grid-template-columns: 1fr; gap: 32px; } }

.expertise-side .num {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 64px; color: var(--gold); line-height: 1; margin-bottom: 24px; font-weight: 400;
}
.expertise-side h2 {
  font-size: 32px; line-height: 1.15; font-weight: 500; margin-bottom: 20px;
}
.expertise-side .tag {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}

.expertise-body p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.8; margin-bottom: 20px; }
.expertise-body p:last-child { margin-bottom: 0; }
.expertise-body strong { color: var(--ink); font-weight: 500; }

.expertise-tech-list {
  margin: 32px 0 0 0; padding: 32px;
  background: var(--bone-bright);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
}
.expertise-tech-list h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px; color: var(--gold-deep); margin-bottom: 16px;
  letter-spacing: .04em; font-weight: 500;
}
.expertise-tech-list ul { list-style: none; }
.expertise-tech-list li {
  font-size: 14.5px; padding: 8px 0 8px 20px;
  position: relative; color: var(--ink-soft);
}
.expertise-tech-list li::before {
  content: '·'; position: absolute; left: 0; top: 0;
  color: var(--gold); font-size: 24px; line-height: 1.1;
}

.expertise-pain {
  margin-top: 24px; padding: 24px 28px;
  background: rgba(184, 146, 75, .06);
  border: 1px solid var(--line-gold);
}
.expertise-pain .lbl {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 12px;
}
.expertise-pain p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* ============================================================
   ПРОЦЕСС — пронумерованные этапы (timeline)
   ============================================================ */

.process { margin-top: 64px; position: relative; }
.process::before {
  content: ''; position: absolute; left: 32px; top: 32px; bottom: 32px;
  width: 1px; background: linear-gradient(to bottom, var(--gold) 0%, var(--gold-pale) 50%, transparent 100%);
}
.step {
  display: grid; grid-template-columns: 96px 1fr; gap: 40px;
  padding: 32px 0; position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bone); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gold-deep);
  position: relative; z-index: 2; font-weight: 400;
  transition: background .3s, color .3s;
}
.step:hover .step-num { background: var(--gold); color: var(--bone); }
.step h3 { font-size: 26px; margin-bottom: 12px; font-weight: 500; }
.step .meta {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 16px; color: var(--gold-deep); margin-bottom: 16px;
}
.step p { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
@media (max-width: 768px) {
  .process::before { display: none; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step-num { width: 48px; height: 48px; font-size: 20px; }
}

/* ============================================================
   КЕЙСЫ — карточки
   ============================================================ */

.case-card {
  background: var(--bone-pure); padding: 80px;
  border: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
  margin-top: 48px; position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.case-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -32px rgba(184, 146, 75, .25);
}
.case-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 64px;
  background: var(--gold);
}
@media (max-width: 1024px) { .case-card { grid-template-columns: 1fr; padding: 48px; gap: 32px; } }

.case-meta {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 20px; font-weight: 600;
}
.case-card h3 {
  font-size: 32px; font-weight: 500; margin-bottom: 24px; line-height: 1.2;
}
.case-card .place {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 18px; color: var(--muted); margin-bottom: 32px; font-weight: 400;
}

.case-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.stat .num {
  font-family: 'Playfair Display', serif; font-size: 44px;
  color: var(--gold); font-weight: 400; line-height: 1;
}
.stat .lbl {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px; line-height: 1.4;
}

.case-card p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); font-weight: 300; }
.case-card p + p { margin-top: 18px; }
.case-card .label-inline {
  color: var(--gold-deep); font-weight: 600; font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  display: inline-block; margin-right: 8px;
}

/* ============================================================
   FAQ (аккордеон)
   ============================================================ */

.faq-group { margin-top: 64px; }
.faq-group h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; margin-bottom: 24px; color: var(--ink);
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 16px;
}
.faq-group h3 .num {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 22px; color: var(--gold); font-weight: 400;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .3s;
}
.faq-item.open { border-bottom-color: var(--gold); }
.faq-question {
  width: 100%; padding: 28px 0; cursor: pointer;
  background: none; border: none; text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 19px; color: var(--ink); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  transition: color .3s;
}
.faq-question:hover { color: var(--gold-deep); }
.faq-toggle {
  flex-shrink: 0; width: 32px; height: 32px;
  border: 1px solid var(--line-gold); border-radius: 50%;
  position: relative; transition: all .3s;
}
.faq-toggle::before, .faq-toggle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: var(--gold-deep);
  transition: transform .3s, background .3s;
}
.faq-toggle::before { width: 12px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-toggle { background: var(--gold); border-color: var(--gold); }
.faq-item.open .faq-toggle::before, .faq-item.open .faq-toggle::after { background: var(--bone); }
.faq-item.open .faq-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-answer {
  max-height: 1200px; padding-bottom: 28px;
}
.faq-answer p {
  font-size: 16px; line-height: 1.8; color: var(--ink-soft); font-weight: 300; max-width: 820px;
}
.faq-answer p + p { margin-top: 14px; }

/* ============================================================
   ФОРМА КОНТАКТОВ
   ============================================================ */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-info p {
  font-size: 18px; margin-bottom: 24px;
  max-width: 500px; font-weight: 300;
}
.contact-info .field { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(245, 239, 230, .12); }
.contact-info .field:first-of-type { border-top: none; padding-top: 0; }
.contact-info .field-lbl {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted-soft); margin-bottom: 8px; font-weight: 500;
}
.contact-info .field-val {
  font-family: 'Playfair Display', serif; font-size: 26px;
  color: var(--gold-warm); font-weight: 400; font-style: italic;
}

form.contact-form {
  display: flex; flex-direction: column; gap: 24px;
  background: rgba(245, 239, 230, .04); padding: 48px;
  border: 1px solid rgba(245, 239, 230, .1);
}
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted-soft); font-weight: 600;
}
.input-group input, .input-group textarea, .input-group select {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(245, 239, 230, .2);
  color: var(--bone); font-family: inherit; font-size: 16px;
  padding: 12px 0; transition: border-color .3s; font-weight: 300;
}
.input-group input::placeholder, .input-group textarea::placeholder { color: rgba(245, 239, 230, .35); }
.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
  outline: none; border-color: var(--gold-warm);
}
.input-group textarea { min-height: 96px; resize: vertical; font-family: inherit; }

.consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 12.5px; color: var(--muted-soft);
  line-height: 1.6; cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold-warm); }
.consent a { color: var(--gold-warm); text-decoration: underline; text-decoration-color: rgba(221,184,104,.4); }

.form-submit {
  margin-top: 16px; padding: 20px 40px;
  background: var(--gold-warm); border: none; color: var(--ink);
  font-family: inherit; font-size: 12px; letter-spacing: .25em;
  text-transform: uppercase; cursor: pointer; transition: all .4s;
  width: fit-content; font-weight: 600;
  display: inline-flex; align-items: center; gap: 14px;
}
.form-submit:hover { background: var(--bone); color: var(--ink); }
.form-submit svg { transition: transform .3s; }
.form-submit:hover svg { transform: translateX(4px); }

.form-success {
  display: none; padding: 32px;
  background: rgba(221, 184, 104, .1);
  border: 1px solid var(--gold-warm); color: var(--bone);
}
.form-success.show { display: block; }

/* ============================================================
   CTA-БЛОК (центрированный, перед футером)
   ============================================================ */

.cta-block {
  background: var(--ink); color: var(--bone);
  padding: 120px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
}
.cta-block::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
}
.cta-block .ornament {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 60px; color: var(--gold-warm); line-height: 1; margin-bottom: 32px;
}
.cta-block h2 {
  font-size: clamp(36px, 5vw, 64px); color: var(--bone);
  max-width: 880px; margin: 0 auto 32px;
}
.cta-block p {
  font-size: 19px; color: #C9C2B4; max-width: 640px; margin: 0 auto 48px;
}
.cta-block .btn-gold:hover { background: var(--bone); }

/* ============================================================
   ФУТЕР
   ============================================================ */

footer {
  background: var(--ink); color: var(--muted-soft);
  padding: 80px 64px 32px; border-top: 1px solid rgba(245, 239, 230, .08);
}
@media (max-width: 768px) { footer { padding: 60px 24px 24px; } }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 64px;
  max-width: 1440px; margin: 0 auto 64px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .logo { color: var(--bone); margin-bottom: 24px; }
.footer-brand .logo small { color: var(--gold-warm); }
.footer-brand p { font-size: 15px; color: #9A9183; max-width: 320px; line-height: 1.7; }

.footer-col h5 {
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-warm); margin-bottom: 20px; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: #C9C2B4; transition: color .3s; }
.footer-col a:hover { color: var(--gold-warm); }

.footer-bottom {
  max-width: 1440px; margin: 0 auto;
  padding-top: 32px; border-top: 1px solid rgba(245, 239, 230, .08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: #6E6558;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; text-align: center; } }

/* ============================================================
   Reveal-on-scroll — отключено: контент виден сразу
   ============================================================ */

.reveal { opacity: 1; transform: none; }

/* ============================================================
   Утилиты
   ============================================================ */

.text-gold { color: var(--gold-deep); }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mt-96 { margin-top: 96px; }

.section-bone-soft { background: var(--bone-soft); }
.section-bone-deep { background: var(--bone-deep); }

/* Тонкая золотая декоративная "ракушка" */
.ornament {
  display: inline-block; color: var(--gold);
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 32px; line-height: 1;
}

/* ============================================================
   HERO v3 — кинематографичный тёмный hero с оглавлением
   ============================================================ */

.hero-v3 {
  background:
    radial-gradient(ellipse 1000px 700px at 78% 18%, rgba(221, 184, 104, .12), transparent 65%),
    radial-gradient(ellipse 700px 500px at 0% 95%, rgba(184, 146, 75, .08), transparent 60%),
    linear-gradient(180deg, #0E0E10 0%, #16161A 60%, #1A1814 100%);
  color: var(--bone);
  min-height: 100vh;
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-v3::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-warm) 30%, var(--gold-warm) 70%, transparent 100%);
  opacity: .5; z-index: 1;
}
.hero-v3::after { display: none; }
.hero-v3 h1 { color: var(--bone); font-weight: 400; }
.hero-v3 h1 .em { color: var(--gold-warm); font-style: italic; }
.hero-v3 .lead { color: #C9C2B4; font-weight: 300; }
.hero-v3 .eyebrow { color: var(--gold-warm); }
.hero-v3 .eyebrow::before { background: var(--gold-warm); }
.hero-v3 .gold-rule { background: var(--gold-warm); }

/* Верхняя плашка — на всю ширину, с брендом по центру */
.hero-top-bar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(221, 184, 104, .22);
  margin-bottom: 80px;
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(245, 239, 230, .5); font-weight: 500;
}
.hero-top-bar .left { text-align: left; }
.hero-top-bar .right { text-align: right; }
.hero-top-bar .brand-mono {
  font-family: 'Playfair Display', serif;
  font-size: 24px; letter-spacing: .5em;
  color: var(--gold-warm); font-weight: 500;
  white-space: nowrap;
  text-indent: .5em;
}
.hero-top-bar .brand-mono em {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-weight: 400; color: var(--bone);
  letter-spacing: .15em; font-size: 22px; text-indent: 0;
}
@media (max-width: 900px) {
  .hero-top-bar { grid-template-columns: 1fr; gap: 16px; text-align: center; padding-bottom: 32px; margin-bottom: 56px; }
  .hero-top-bar .left, .hero-top-bar .right { text-align: center; }
  .hero-top-bar .brand-mono { font-size: 20px; }
}

/* Главная сетка hero v3 */
.hero-grid-v3 {
  display: grid; grid-template-columns: 1.18fr 1fr;
  gap: 88px; align-items: start; position: relative; z-index: 2;
}
@media (max-width: 1100px) { .hero-grid-v3 { grid-template-columns: 1fr; gap: 56px; } }

.hero-grid-v3 .hero-main h1 {
  font-size: clamp(46px, 6.2vw, 92px); margin-bottom: 32px; line-height: 1.04;
}
.hero-grid-v3 .hero-main .lead {
  font-size: 18.5px; max-width: 560px; line-height: 1.7;
}
.hero-grid-v3 .hero-actions { margin-top: 48px; gap: 28px; }

/* Tagline под брендом */
.hero-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 22px; color: rgba(245, 239, 230, .8); font-weight: 400;
  margin-bottom: 56px; line-height: 1.4;
  padding-left: 16px; border-left: 1px solid rgba(221, 184, 104, .35);
  max-width: 540px;
}

/* Pill-ссылка в hero — заметная подсветка второго направления */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 14px 22px;
  background: rgba(221, 184, 104, .08);
  border: 1px solid rgba(221, 184, 104, .35);
  border-radius: 999px;
  color: var(--bone);
  font-size: 14px;
  line-height: 1.4;
  max-width: 100%;
  transition: all .3s;
  text-decoration: none;
}
.hero-pill:hover {
  background: rgba(221, 184, 104, .15);
  border-color: var(--gold-warm);
}
.hero-pill .hero-pill-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-warm);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.hero-pill .hero-pill-text {
  color: rgba(245, 239, 230, .85);
  font-weight: 300;
  flex: 1;
  min-width: 0;
}
.hero-pill .hero-pill-text strong {
  color: var(--gold-warm);
  font-weight: 500;
}
.hero-pill .hero-pill-arrow {
  color: var(--gold-warm);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform .3s;
}
.hero-pill:hover .hero-pill-arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .hero-pill {
    border-radius: 12px;
    flex-wrap: nowrap;
    padding: 14px 18px;
    gap: 12px;
    font-size: 13px;
    align-items: flex-start;
  }
  .hero-pill .hero-pill-mark { margin-top: 1px; }
  .hero-pill .hero-pill-arrow { margin-top: 4px; }
}

/* Кнопка ghost для тёмного фона */
.btn-ghost-dark {
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--bone); padding: 20px 0; background: transparent;
  border-top: none; border-left: none; border-right: none;
  border-bottom: 1px solid rgba(245, 239, 230, .4);
  font-weight: 500; font-family: inherit; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.btn-ghost-dark:hover { color: var(--gold-warm); border-color: var(--gold-warm); }

/* TOC — оглавление-каталог справа */
.hero-toc {
  background: rgba(184, 146, 75, .04);
  border: 1px solid rgba(184, 146, 75, .22);
  padding: 28px 32px 12px;
  position: relative;
}
.hero-toc::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 56px;
  background: var(--gold-warm);
}
.hero-toc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(221, 184, 104, .22);
  margin-bottom: 4px;
}
.hero-toc-title {
  font-family: 'Playfair Display', serif; font-style: italic;
  color: var(--gold-warm); font-size: 19px; font-weight: 400;
}
.hero-toc-sub {
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(245, 239, 230, .4); font-weight: 500;
}

.toc-row {
  display: grid; grid-template-columns: 52px 1fr 18px;
  gap: 18px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 239, 230, .07);
  color: var(--bone);
  transition: padding .3s, background .3s;
}
.toc-row:last-child { border-bottom: none; }
.toc-row:hover {
  background: linear-gradient(90deg, rgba(221, 184, 104, .08) 0%, transparent 100%);
  padding-left: 12px; padding-right: 6px; margin: 0 -12px;
}
.toc-num {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 26px; color: var(--gold-warm); line-height: 1;
  text-align: right; font-weight: 400;
}
.toc-body { min-width: 0; }
.toc-name {
  font-family: 'Playfair Display', serif;
  font-size: 17.5px; color: var(--bone); margin-bottom: 5px;
  font-weight: 500; line-height: 1.25;
}
.toc-meta {
  font-size: 12px; color: rgba(245, 239, 230, .55);
  letter-spacing: .03em; line-height: 1.4;
}
.toc-arrow {
  color: var(--gold-warm); font-size: 14px;
  transition: transform .3s; line-height: 1;
}
.toc-row:hover .toc-arrow { transform: translateX(5px); }

/* Нижняя метрика-полоска */
.hero-bottom-meta {
  margin-top: 80px; padding-top: 28px;
  border-top: 1px solid rgba(221, 184, 104, .25);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative; z-index: 2;
}
.hero-bottom-meta div { font-size: 14px; color: rgba(245, 239, 230, .68); }
.hero-bottom-meta strong {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-weight: 500; color: var(--gold-warm);
  font-size: 18px; margin-right: 10px;
}
@media (max-width: 768px) {
  .hero-bottom-meta { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
}

/* На тёмном hero — переопределение navbar */
body.dark-nav .nav {
  background: transparent;
  border-bottom-color: transparent;
}
body.dark-nav .nav .logo { color: var(--bone); }
body.dark-nav .nav .logo small { color: var(--gold-warm); }
body.dark-nav .nav .menu { color: rgba(245, 239, 230, .75); }
body.dark-nav .nav .menu a:hover { color: var(--bone); }
body.dark-nav .nav-cta { background: var(--gold-warm); color: var(--ink); }
body.dark-nav .nav-cta:hover { background: var(--bone); color: var(--ink); }
body.dark-nav .menu-toggle span { background: var(--bone); }
body.dark-nav .nav.scrolled {
  background: rgba(14, 14, 16, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(221, 184, 104, .22);
}

/* Старый hero-v2 — оставлен на случай, что где-то ещё используется */
.hero-v2 { padding: 160px 0 70px; min-height: auto; }
.hero-v2::after { display: none; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: rgba(14, 14, 16, .96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(221, 184, 104, .35);
  color: var(--bone);
  padding: 18px 32px;
  display: none;
  animation: cookie-up .4s ease;
}
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner.show { display: flex; }
.cookie-inner {
  max-width: 1440px; margin: 0 auto; width: 100%;
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 13.5px; line-height: 1.55; color: #C9C2B4; max-width: 820px;
}
.cookie-text strong { color: var(--gold-warm); font-weight: 500; }
.cookie-text a { color: var(--gold-warm); text-decoration: underline; text-decoration-color: rgba(221, 184, 104, .4); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-accept {
  background: var(--gold-warm); color: var(--ink);
  border: none; padding: 12px 24px;
  font-family: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; cursor: pointer; transition: background .3s;
}
.cookie-accept:hover { background: var(--bone); }
@media (max-width: 768px) {
  .cookie-banner { padding: 14px 18px; }
  .cookie-inner { gap: 12px; }
  .cookie-text { font-size: 12.5px; }
  .cookie-accept { padding: 10px 18px; font-size: 11px; }
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px;
  align-items: start; position: relative; z-index: 2;
}
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.hero-left h1 { font-size: clamp(44px, 5.8vw, 88px); margin-bottom: 28px; }
.hero-left .lead { font-size: 18.5px; max-width: 560px; }

.hero-mini-meta {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px;
}
.hero-mini-meta div {
  font-size: 14.5px; color: var(--ink-soft);
  display: flex; align-items: baseline; gap: 10px;
}
.hero-mini-meta strong {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-weight: 500; color: var(--gold-deep); font-size: 17px;
}
@media (max-width: 600px) { .hero-mini-meta { grid-template-columns: 1fr; gap: 12px; } }

.hero-right { display: flex; flex-direction: column; gap: 16px; }

.pillar-card {
  background: var(--bone-pure); border: 1px solid var(--line-soft);
  padding: 32px; position: relative; overflow: hidden;
  transition: all .4s;
}
.pillar-card:hover {
  border-color: var(--line-gold); transform: translateY(-3px);
  box-shadow: 0 24px 48px -24px rgba(184, 146, 75, .22);
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 56px; background: var(--gold);
}
.pillar-card-gold {
  background: linear-gradient(135deg, #FBF3DE 0%, #F2E5C2 100%);
  border-color: var(--line-gold);
}
.pillar-card-gold::before { background: var(--gold-deep); }

.pillar-num {
  font-family: 'Playfair Display', serif; font-size: 13px; font-style: italic;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 10px; font-weight: 500;
}
.pillar-tag {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 500;
}
.pillar-card h3 {
  font-family: 'Playfair Display', serif; font-size: 28px;
  margin-bottom: 18px; font-weight: 500;
}
.pillar-card-gold h3 { color: var(--ink); }

.pillar-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pillar-tags span {
  font-size: 12px; padding: 5px 11px;
  background: var(--bone-soft); border: 1px solid var(--line-soft);
  color: var(--ink-soft); font-weight: 400;
}
.pillar-card-gold .pillar-tags span {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(184, 146, 75, .25);
  color: var(--ink);
}

.pillar-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
  border-top: 1px solid var(--line-soft); padding-top: 16px;
  width: 100%;
}
.pillar-link svg { transition: transform .3s; }
.pillar-link:hover { color: var(--ink); }
.pillar-link:hover svg { transform: translateX(4px); }

/* ============================================================
   HERO STRIPE (бегущая золотая лента)
   ============================================================ */

.hero-stripe {
  background: var(--ink); color: var(--bone);
  padding: 16px 0; overflow: hidden; position: relative;
  border-top: 1px solid var(--line-gold-strong);
  border-bottom: 1px solid var(--line-gold-strong);
}
.hero-stripe::before, .hero-stripe::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 96px; z-index: 2; pointer-events: none;
}
.hero-stripe::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.hero-stripe::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.stripe-track {
  display: flex; align-items: center; white-space: nowrap;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 500; width: max-content;
  animation: stripe-scroll 60s linear infinite;
}
.stripe-track > span { display: inline-block; padding: 0 22px; }
.stripe-bullet { color: var(--gold-warm); }
.stripe-text { color: var(--bone); }
@keyframes stripe-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   NUMBERS STRIP
   ============================================================ */

.numbers-strip { background: var(--bone-soft); padding: 80px 0; }
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.number-cell {
  background: var(--bone-soft); padding: 36px 28px; text-align: center;
}
.number-cell .num {
  font-family: 'Playfair Display', serif; font-size: 56px;
  color: var(--gold-deep); line-height: 1; font-weight: 400; margin-bottom: 14px;
}
.number-cell .lbl {
  font-size: 13px; color: var(--ink-soft); line-height: 1.45; font-weight: 400;
}
@media (max-width: 768px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   MOBILE OVERRIDES — точечные UX-улучшения для ≤768px и ≤380px
   Цель: не менять десктоп-вид, но сделать мобильный опыт
   плотнее, ровнее по тачабельности и без перекосов типографики.
   ============================================================ */

@media (max-width: 768px) {

  /* --- NAV: компактнее, тачабельный гамбургер --- */
  .nav { padding: 14px 18px !important; }
  .nav.scrolled { padding: 10px 18px !important; }
  .logo { font-size: 16px; letter-spacing: .25em; gap: 8px; }
  .logo .mark { width: 6px; height: 6px; }
  .logo small { font-size: 8px; letter-spacing: .25em; margin-top: 3px; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle span { width: 24px; }

  /* --- MOBILE DRAWER: крупные тач-зоны, читаемая типографика --- */
  .mobile-menu { padding: 24px; }
  .mobile-menu-head { margin-bottom: 36px; }
  .mobile-menu nav a {
    font-size: 24px; padding: 14px 0;
    min-height: 56px; display: flex; align-items: center;
  }
  .mobile-cta { padding: 18px; font-size: 12px; text-align: center; min-height: 56px; display: flex; align-items: center; justify-content: center; }

  /* --- HERO v3: компактнее по вертикали --- */
  .hero-v3 { padding: 110px 0 40px; min-height: auto; }
  .hero-top-bar {
    padding-bottom: 22px; margin-bottom: 32px;
    gap: 6px; font-size: 9px; letter-spacing: .25em;
  }
  .hero-top-bar .brand-mono { font-size: 16px; letter-spacing: .35em; }
  .hero-top-bar .brand-mono em { font-size: 14px; }

  .hero-grid-v3 { gap: 36px !important; }
  .hero-grid-v3 .hero-main h1 {
    font-size: clamp(34px, 9vw, 52px) !important;
    margin-bottom: 22px !important;
    line-height: 1.06 !important;
  }
  .hero-grid-v3 .hero-main .lead { font-size: 16px !important; line-height: 1.6 !important; }
  .hero-tagline {
    font-size: 18px !important;
    margin-bottom: 32px !important;
    padding-left: 14px;
    line-height: 1.45;
  }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px !important; }
  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-gold {
    width: 100%; justify-content: center;
    padding: 16px 20px; font-size: 11px; min-height: 52px;
  }
  .hero-actions .btn-ghost,
  .hero-actions .btn-ghost-dark {
    text-align: center; width: 100%;
    padding: 14px 0; font-size: 11px;
  }

  /* --- HERO TOC: чёткий и компактный --- */
  .hero-toc { padding: 22px 20px 6px; }
  .hero-toc::before { width: 3px; height: 42px; }
  .hero-toc-head { padding-bottom: 12px; }
  .hero-toc-title { font-size: 17px; }
  .hero-toc-sub { font-size: 9px; letter-spacing: .25em; }
  .toc-row {
    grid-template-columns: 38px 1fr 14px;
    gap: 14px; padding: 16px 0; min-height: 56px;
  }
  .toc-num { font-size: 22px; }
  .toc-name { font-size: 16px; line-height: 1.25; }
  .toc-meta { font-size: 11.5px; }

  /* --- HERO BOTTOM META: 2x2 без перекосов --- */
  .hero-bottom-meta {
    margin-top: 44px !important; padding-top: 20px !important;
    grid-template-columns: 1fr 1fr; gap: 12px 18px;
  }
  .hero-bottom-meta div { font-size: 13px; }
  .hero-bottom-meta strong { font-size: 16px; margin-right: 8px; }

  /* --- HERO STRIPE: чтобы лента не давила --- */
  .hero-stripe { padding: 12px 0; }
  .stripe-track { font-size: 10.5px; letter-spacing: .22em; animation-duration: 50s; }
  .stripe-track > span { padding: 0 14px; }

  /* --- EYEBROW / SECTION-NUM: меньше перенос --- */
  .eyebrow { font-size: 10px; letter-spacing: .25em; gap: 10px; margin-bottom: 18px; }
  .eyebrow::before { width: 24px; }
  .section-num { font-size: 14px; gap: 14px; margin-bottom: 22px; }
  .section-num::before { width: 36px; }

  /* --- SECTIONS COMMON --- */
  section { padding: 64px 0 !important; }
  .section-title { margin-bottom: 26px !important; line-height: 1.08; }
  .section-lead { font-size: 16.5px; line-height: 1.65; }

  /* --- SERVICES CARDS --- */
  .services-grid, .services-grid.three { gap: 16px !important; margin-top: 36px !important; }
  .service { padding: 28px 22px !important; }
  .service:hover { transform: none; } /* отключаем hover-смещение на тач-устройствах */
  .service-num { font-size: 36px; top: 26px; right: 24px; }
  .service h3 { font-size: 22px; margin-bottom: 14px; max-width: 78%; }
  .service > p { font-size: 14.5px; margin-bottom: 20px; }
  .service li { font-size: 13.5px; padding: 11px 0; gap: 10px; }
  .service-link { margin-top: 20px; font-size: 11px; letter-spacing: .2em; }

  /* --- MANIFESTO --- */
  .manifesto blockquote::before { font-size: 72px; margin-bottom: 14px; }
  .manifesto blockquote { padding-left: 0; line-height: 1.4; }

  /* --- EXPERTISE BLOCK --- */
  .expertise { padding: 44px 0; gap: 24px !important; }
  .expertise:first-of-type { padding-top: 0; }
  .expertise-side .num { font-size: 44px; margin-bottom: 14px; }
  .expertise-side h2 { font-size: 26px; margin-bottom: 14px; }
  .expertise-side .tag { font-size: 10px; letter-spacing: .25em; }
  .expertise-body p { font-size: 15px; line-height: 1.7; }
  .expertise-tech-list { padding: 22px 20px; margin-top: 22px; }
  .expertise-tech-list h4 { font-size: 15px; margin-bottom: 12px; }
  .expertise-tech-list li { font-size: 13.5px; padding: 6px 0 6px 18px; line-height: 1.5; }
  .expertise-pain { padding: 18px 20px; margin-top: 18px; }
  .expertise-pain p { font-size: 14px; line-height: 1.6; }
  .expertise-pain .lbl { font-size: 10px; letter-spacing: .25em; margin-bottom: 8px; }

  /* --- PROCESS / STEP --- */
  .step { gap: 14px; padding: 22px 0; }
  .step-num { width: 44px; height: 44px; font-size: 17px; }
  .step h3 { font-size: 20px; margin-bottom: 8px; }
  .step .meta { font-size: 14px; margin-bottom: 12px; }
  .step p { font-size: 14.5px; line-height: 1.65; }

  /* --- CASE CARD --- */
  .case-card { padding: 28px 22px !important; gap: 22px !important; margin-top: 28px !important; }
  .case-card:hover { transform: none; }
  .case-card::before { width: 3px; height: 44px; }
  .case-card h3 { font-size: 22px; margin-bottom: 14px; line-height: 1.22; }
  .case-card .place { font-size: 15px; margin-bottom: 22px; }
  .case-stats { gap: 16px 14px; padding: 18px 0; margin-bottom: 22px; }
  .stat .num { font-size: 28px; }
  .stat .lbl { font-size: 10.5px; margin-top: 6px; }
  .case-card p { font-size: 14.5px; line-height: 1.7; }
  .label-inline { font-size: 10px; letter-spacing: .22em; }

  /* --- NUMBERS STRIP --- */
  .numbers-strip { padding: 56px 0; }
  .number-cell { padding: 24px 14px; }
  .number-cell .num { font-size: 36px; margin-bottom: 8px; }
  .number-cell .lbl { font-size: 11.5px; }

  /* --- CTA BLOCK --- */
  .cta-block { padding: 64px 0; }
  .cta-block .ornament { font-size: 40px; margin-bottom: 18px; }
  .cta-block h2 { margin-bottom: 18px; line-height: 1.1; }
  .cta-block p { font-size: 16px; margin-bottom: 28px; }
  .cta-block .btn-gold { width: auto; padding: 16px 28px; }

  /* --- FAQ: тачабельный toggle --- */
  .faq-group { margin-top: 36px; }
  .faq-group h3 { font-size: 22px; padding-bottom: 12px; margin-bottom: 14px; gap: 12px; }
  .faq-group h3 .num { font-size: 18px; }
  .faq-question { padding: 18px 0; font-size: 16px; gap: 14px; line-height: 1.35; min-height: 60px; }
  .faq-toggle { width: 36px; height: 36px; flex-shrink: 0; }
  .faq-toggle::before { width: 13px; height: 1.5px; }
  .faq-toggle::after { width: 1.5px; height: 13px; }
  .faq-answer p { font-size: 14.5px; line-height: 1.7; }
  .faq-item.open .faq-answer { padding-bottom: 22px; }

  /* --- FORM: 16px input — чтобы iOS не зумил --- */
  form.contact-form { padding: 26px 22px !important; gap: 18px !important; }
  .input-group label { font-size: 10px; letter-spacing: .25em; }
  .input-group input,
  .input-group textarea,
  .input-group select {
    font-size: 16px;
    padding: 14px 0;
    min-height: 48px;
  }
  .input-group textarea { min-height: 88px; }
  .form-submit {
    width: 100%; justify-content: center;
    padding: 18px; font-size: 11.5px; min-height: 56px;
  }
  .consent { font-size: 12.5px; line-height: 1.55; gap: 10px; }
  .consent input { width: 22px; height: 22px; min-width: 22px; }
  .form-success { padding: 22px; }

  /* --- CONTACT INFO BLOCK --- */
  .contact-grid { gap: 32px !important; }
  .contact-info p { font-size: 16px; }
  .contact-info .field { margin-top: 22px; padding-top: 18px; }
  .contact-info .field-lbl { font-size: 10px; letter-spacing: .25em; }
  .contact-info .field-val { font-size: 22px; }

  /* --- FOOTER --- */
  footer { padding: 48px 22px 22px !important; }
  .footer-grid { margin-bottom: 32px; gap: 28px !important; }
  .footer-brand .logo { margin-bottom: 14px; }
  .footer-brand p { font-size: 14px; line-height: 1.6; max-width: 100%; }
  .footer-col h5 { font-size: 10px; letter-spacing: .25em; margin-bottom: 14px; }
  .footer-col a, .footer-col li { font-size: 14px; }
  .footer-col ul { gap: 10px; }
  .footer-col li { padding: 4px 0; }
  .footer-bottom { padding-top: 22px; font-size: 11px; gap: 10px; }

  /* --- COOKIE BANNER: вертикальная сборка --- */
  .cookie-banner { padding: 14px 18px; }
  .cookie-inner { flex-direction: column; gap: 12px; align-items: stretch; }
  .cookie-text { font-size: 12.5px; line-height: 1.55; }
  .cookie-actions { width: 100%; }
  .cookie-accept { width: 100%; padding: 12px; font-size: 11px; min-height: 44px; }

  /* --- PAGE HEAD --- */
  .page-head { padding: 110px 0 40px !important; }
  .page-head h1 { margin-bottom: 18px; }
  .page-head .lead { font-size: 16.5px; line-height: 1.6; }
  .breadcrumb { font-size: 10px; letter-spacing: .22em; margin-bottom: 22px; }

  /* --- PILLAR CARDS (если используются) --- */
  .pillar-card { padding: 24px 22px; }
  .pillar-card:hover { transform: none; }
  .pillar-card::before { width: 3px; height: 44px; }
  .pillar-card h3 { font-size: 22px; margin-bottom: 14px; }
  .pillar-num { font-size: 11px; letter-spacing: .25em; margin-bottom: 8px; }
  .pillar-tag { font-size: 10px; letter-spacing: .22em; }
  .pillar-tags span { font-size: 11.5px; padding: 5px 10px; }
  .pillar-link { font-size: 10.5px; letter-spacing: .2em; padding-top: 14px; }

  /* --- LEGAL PAGE --- */
  .legal-content { padding: 0 22px; font-size: 15px; line-height: 1.7; }
  .legal-content h2 { font-size: 22px; margin: 36px 0 14px; }
  .legal-content h2 .num { font-size: 18px; }
  .legal-content h3 { font-size: 17px; margin: 20px 0 10px; }
  .legal-content ul, .legal-content ol { margin-left: 18px; }
  .legal-meta { padding: 18px 20px; font-size: 13.5px; }

  /* --- НИЖНИЙ ОТСТУП ПОД COOKIE --- */
  body { padding-bottom: 0; }
}

/* ============================================================
   HARD MOBILE FIXES — защита от overflow и наезда текста
   ============================================================ */

html, body {
  max-width: 100vw;
}

@media (max-width: 768px) {

  /* --- Универсальная защита: ничто не выходит за viewport --- */
  body { overflow-x: hidden; }
  body * { max-width: 100vw; }

  img, video, iframe, svg { max-width: 100%; height: auto; }

  /* --- Перенос длинных слов в любых текстовых блоках --- */
  h1, h2, h3, h4, p, li, blockquote, span, label, a, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* --- БОЛЬШИЕ ЗАГОЛОВКИ: убираем агрессивный letter-spacing --- */
  .hero-grid-v3 .hero-main h1,
  .page-head h1,
  .section-title,
  .cta-block h2,
  .case-card h3,
  .manifesto blockquote {
    letter-spacing: -.015em !important;
    hyphens: manual;
  }

  /* --- HERO TOP-BAR: убираем nowrap и text-indent (главная причина overflow на узких) --- */
  .hero-top-bar {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 4px !important;
  }
  .hero-top-bar .left, .hero-top-bar .right {
    text-align: center !important;
    font-size: 8.5px;
    opacity: .7;
  }
  .hero-top-bar .brand-mono {
    white-space: normal !important;
    text-indent: 0 !important;
    font-size: 18px;
    letter-spacing: .3em;
  }

  /* --- EYEBROW: длинный текст переносится корректно --- */
  .eyebrow {
    flex-wrap: wrap;
    line-height: 1.5;
    align-items: center;
    max-width: 100%;
  }
  .eyebrow::before { flex-shrink: 0; }

  /* --- SERVICE NUM: убираем absolute, чтобы не наезжал на h3 --- */
  .service { padding-top: 32px !important; padding-right: 22px !important; }
  .service-num {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: block;
    margin-bottom: 14px;
    line-height: 1;
  }
  .service h3 { max-width: 100% !important; }

  /* --- EXPERTISE: число и заголовок в более компактной композиции --- */
  .expertise-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .expertise-side .num { line-height: 1; }
  .expertise-side h2 { max-width: 100%; }

  /* --- HERO TOC: длинные тексты не выходят за карточку --- */
  .hero-toc { width: 100%; max-width: 100%; }
  .toc-row { width: 100%; }
  .toc-name, .toc-meta {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .toc-body { min-width: 0; flex: 1; }

  /* --- HERO STRIPE: на полную ширину viewport, без выходов за --- */
  .hero-stripe {
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  .stripe-track { will-change: transform; }

  /* --- PILLAR TAGS: wrap корректно --- */
  .pillar-tags { flex-wrap: wrap; max-width: 100%; }
  .pillar-tags span { white-space: nowrap; max-width: 100%; }

  /* --- FAQ: вопрос и кнопка не наезжают --- */
  .faq-question {
    align-items: flex-start;
    flex-wrap: nowrap;
    text-align: left;
  }
  .faq-question > span:not(.faq-toggle) {
    flex: 1; min-width: 0;
  }
  .faq-toggle {
    align-self: center;
    flex-shrink: 0;
  }

  /* --- CASE STATS: 2x2 без вылезания цифр --- */
  .case-stats { grid-template-columns: 1fr 1fr; }
  .stat .num { word-break: keep-all; }
  .stat .lbl { word-break: normal; }

  /* --- HERO BOTTOM META: каждый элемент в одну строку --- */
  .hero-bottom-meta div {
    flex-wrap: wrap;
    line-height: 1.4;
  }

  /* --- LABEL-INLINE в кейсах: чтобы не разрывалось --- */
  .label-inline {
    display: inline-block;
    margin-bottom: 4px;
  }

  /* --- MANIFESTO blockquote::before — большая кавычка может наезжать --- */
  .manifesto blockquote::before {
    position: static;
    display: block;
  }

  /* --- CTA BLOCK: ornament и заголовки --- */
  .cta-block h2 br { display: none; }

  /* --- FOOTER: убрать любой возможный 2col на мобиле --- */
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column !important; text-align: center; gap: 8px; }

  /* --- INPUT: предотвращаем zoom iOS Safari --- */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
    -webkit-appearance: none;
  }

  /* --- COOKIE BANNER overflow safety --- */
  .cookie-banner { left: 0; right: 0; max-width: 100vw; }
  .cookie-inner { max-width: 100%; }

  /* --- INLINE-СТИЛИ из HTML главной (4 «почему мы», numbers cards) --- */
  /* Карточки с inline padding:36px — переопределяем для мобилы */
  .service[style*="padding:36px"],
  .service[style*="padding: 36px"] {
    padding: 26px 22px !important;
  }
  .services-grid[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .services-grid[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* === Очень узкий экран (≤ 380px): iPhone SE, старые модели === */
@media (max-width: 380px) {
  .container, .container-narrow, .container-text { padding: 0 16px; }
  .nav { padding: 12px 14px !important; }
  .logo { font-size: 14px; letter-spacing: .22em; }
  .logo small { font-size: 7.5px; letter-spacing: .22em; }
  .hero-grid-v3 .hero-main h1 { font-size: clamp(28px, 9vw, 40px) !important; }
  .hero-tagline { font-size: 16.5px !important; }
  .hero-toc { padding: 20px 16px 6px; }
  .toc-row { grid-template-columns: 34px 1fr 12px; gap: 12px; padding: 14px 0; }
  .toc-name { font-size: 15px; }
  .toc-meta { font-size: 11px; }
  .pillar-card { padding: 22px 18px; }
  .case-card { padding: 24px 18px !important; }
  .case-stats { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .service { padding: 24px 18px !important; }
  form.contact-form { padding: 24px 18px !important; }
  footer { padding: 40px 16px 18px !important; }
  .footer-grid { gap: 24px !important; }
}
