/* ==================================================================
   ProVibe · дизайн-система и стили лендинга
   Палитра, типографика и формы воссозданы по презентации бренда:
   тёплый крем/айвори, графит, золотой градиент, мрамор, «блобы».
   ================================================================== */

/* ─────────────────────────  ТОКЕНЫ  ───────────────────────────── */
:root {
  /* Кремово-айвори фон */
  --cream-0: #fdfbf6;
  --cream-1: #f9f4ea;
  --cream-2: #f4ecdd;
  --cream-3: #efe4d1;
  --card: #fffdf8;

  /* Текст */
  --ink: #1e1e1e;
  --ink-2: #46423c;
  --ink-3: #726c62;

  /* Золото */
  --gold-1: #b0853f;
  --gold-2: #c79a54;
  --gold-3: #d9b679;
  --gold-4: #e7ce9a;
  --gold-solid: #b98e4b; /* фолбэк, когда нет background-clip:text */
  --gold-line: rgba(176, 133, 63, 0.5);
  --gold-grad: linear-gradient(105deg, #a9793a 0%, #c99f5c 35%, #e7ce9a 60%, #bd9250 100%);
  --gold-grad-soft: linear-gradient(135deg, #e7ce9a, #c79a54);

  /* Тени (тёплый оттенок) */
  --sh-sm: 0 4px 14px rgba(120, 92, 45, 0.08);
  --sh-md: 0 14px 40px rgba(120, 92, 45, 0.12);
  --sh-lg: 0 28px 70px rgba(90, 68, 30, 0.18);

  /* Геометрия */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --maxw: 1200px;
  --gutter: clamp(18px, 5vw, 64px);

  /* Шрифты */
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ─────────────────────────  БАЗА  ─────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Мраморно-кремовый фон всей страницы */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 85% -5%, rgba(231, 206, 154, 0.22), transparent 60%),
    radial-gradient(900px 700px at -5% 15%, rgba(231, 206, 154, 0.14), transparent 55%),
    radial-gradient(1000px 900px at 50% 110%, rgba(201, 159, 92, 0.12), transparent 60%),
    linear-gradient(180deg, var(--cream-0), var(--cream-1) 40%, var(--cream-2));
}

/* ─────────────────────  ТИПОГРАФИКА  ──────────────────────────── */
.h-kicker {
  font-family: var(--f-body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.4vw, 0.82rem);
  color: var(--gold-1);
}

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.section-title {
  text-transform: uppercase;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 800;
}
.section-title .line { display: block; }

/* Золотой градиент на словах заголовков.
   В покое — статичный градиент. Блик пробегает ТОЛЬКО при наведении
   или когда раздел появляется в поле зрения (класс .is-shining ставит JS). */
.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gold.is-shining,
.gold:hover {
  background-image: linear-gradient(100deg, #a9793a 0%, #b98e4b 30%, #fff6df 50%, #b98e4b 70%, #a9793a 100%);
  background-size: 220% auto;
  animation: goldSweep 1.15s ease-out;
}
@keyframes goldSweep {
  from { background-position: 130% center; }
  to { background-position: -30% center; }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold { color: var(--gold-solid); -webkit-text-fill-color: currentColor; }
  .gold.is-shining, .gold:hover { animation: none; }
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-2);
  max-width: 46ch;
}
.muted { color: var(--ink-3); }
.accent-line {
  width: 64px; height: 3px; border-radius: 3px;
  background: var(--gold-grad); margin: 18px 0;
}

/* ─────────────────────────  РАЗМЕТКА  ─────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .accent-line { margin-top: 14px; }

/* Плавные волнообразные разделители секций */
.wave {
  position: absolute; left: 0; width: 100%;
  line-height: 0; pointer-events: none; z-index: 1;
}
.wave svg { width: 100%; height: clamp(50px, 8vw, 110px); display: block; }
.wave.top { top: -1px; }
.wave.bottom { bottom: -1px; }

.tone { background: var(--card); }
.tone-2 {
  background: linear-gradient(160deg, #26221d, #171410);
  color: #f3ebdd;
}
.tone-2 .section-title,
.tone-2 h3 { color: #fbf6ec; }
.tone-2 .muted { color: #b9b0a1; }

/* ─────────────────────────  КНОПКИ  ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
  will-change: transform;
}
.btn-gold {
  background: var(--gold-grad); color: #2a1e08;
  box-shadow: 0 10px 28px rgba(176, 133, 63, 0.42);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(176, 133, 63, 0.55); filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--gold-line);
}
.btn-ghost:hover { background: rgba(201, 159, 92, 0.1); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ─────────────────────────  ХЕДЕР  ───────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding-block: 14px;
}
.header.scrolled {
  background: rgba(250, 245, 236, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-sm);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold-grad); transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo .logo-mark { width: 40px; height: 40px; }
.header-logo .logo-word { font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; }
.header-logo .logo-word b { font-weight: 800; }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--gold-line); background: rgba(255,255,255,0.5);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ─────────────────────────  HERO  ────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: clamp(110px, 16vh, 170px); padding-bottom: clamp(60px, 10vh, 120px);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero-word {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 7rem); line-height: 0.92; letter-spacing: -0.02em;
}
.hero-sub {
  font-family: var(--f-head); text-transform: uppercase; font-weight: 800;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem); margin-top: 18px; line-height: 1.05;
}
.hero-sub small {
  display: block; font-size: 0.5em; letter-spacing: 0.16em; color: var(--gold-1);
  font-weight: 700; margin-top: 8px;
}
.hero-meta { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.hero-meta span { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-weight: 600; }
.hero-meta .ic { color: var(--gold-1); display: inline-flex; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }

/* ─────────────────  АНИМИРОВАННОЕ ЛОГО  ───────────────────────── */
.logo-hero { width: min(440px, 78vw); position: relative; }
.logo-svg { width: 100%; height: auto; overflow: visible; }

/* draw-on обводка контура дома и монограммы */
.logo-svg .draw {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw 2s var(--ease) forwards;
}
.logo-svg .draw.d2 { animation-delay: 0.35s; }
.logo-svg .draw.d3 { animation-delay: 0.65s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Проявление заливки и подписи */
.logo-svg .fill-in { opacity: 0; animation: fadeUp 0.9s var(--ease) forwards; animation-delay: 1.4s; }
.logo-svg .cap { opacity: 0; animation: fadeUp 0.8s var(--ease) forwards; animation-delay: 1.75s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Золотой шиммер по градиенту */
.logo-hero .shimmer {
  position: absolute; inset: 0 0 22% 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(255,248,225,0.85) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: shimmer 3.6s ease-in-out 2s infinite;
  opacity: 0;
}
@keyframes shimmer {
  0% { background-position: 160% 0; opacity: 0; }
  15% { opacity: 1; }
  45% { background-position: -60% 0; opacity: 0; }
  100% { opacity: 0; }
}

/* hover-реакция лого */
.logo-hero { transition: transform 0.4s var(--ease); }
.logo-hero:hover { transform: translateY(-4px) scale(1.015); }
.logo-hero:hover .logo-glow { opacity: 0.9; }
.logo-glow {
  position: absolute; inset: -8% -8% 20% -8%; z-index: -1; opacity: 0.5;
  background: radial-gradient(closest-side, rgba(231,206,154,0.55), transparent 72%);
  transition: opacity 0.5s; filter: blur(6px);
}

/* Декоративное золотое кольцо за лого */
.logo-ring {
  position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--gold-line); z-index: -1; opacity: 0.5;
  top: 50%; left: 50%; transform: translate(-50%, -46%);
}

/* ─────────────────  СТАТИСТИКА / СЧЁТЧИКИ  ────────────────────── */
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 60px); align-items: center; }
.stat { display: flex; align-items: center; gap: 18px; }
.stat .stat-ic {
  width: 62px; height: 62px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--gold-1);
  border: 1.5px solid var(--gold-line); background: rgba(255,255,255,0.4);
}
.stat .num { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; }
.stat .lbl { color: var(--ink-3); font-weight: 600; font-size: 0.95rem; }
.stat-divider { width: 1px; align-self: stretch; background: var(--gold-line); }

.pledge { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 8px; max-width: 560px; }
.pledge p { margin: 0; color: var(--ink-2); }
.pledge .em { color: var(--gold-1); font-weight: 700; }
.pledge .bar { border-left: 3px solid var(--gold-line); padding-left: 16px; }

/* ─────────────────────────  КАРТОЧКИ  ─────────────────────────── */
.card {
  background: var(--card); border-radius: var(--r-md); padding: 26px;
  box-shadow: var(--sh-sm); border: 1px solid rgba(176,133,63,0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.ic-ring {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--gold-1);
  border: 1.5px solid var(--gold-line); background: rgba(201,159,92,0.06);
}
.ic-ring svg { width: 30px; height: 30px; }

/* Спектр услуг */
.services { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.services-list { display: grid; gap: 20px; }
.service-card { display: flex; gap: 20px; align-items: flex-start; }
.service-card h3 { text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em; margin-bottom: 6px; }
.service-card p { margin: 0; color: var(--ink-3); font-size: 0.96rem; }

/* Ремонт под ключ */
.turnkey { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.checklist-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); }
.checklist-card .ck-title {
  display: flex; align-items: center; gap: 14px; text-transform: uppercase;
  font-weight: 700; letter-spacing: 0.1em; color: var(--gold-1); margin-bottom: 8px;
}
.checklist-card .ck-title::before,
.checklist-card .ck-title::after { content: ""; height: 1px; flex: 1; background: var(--gold-line); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 0;
  border-bottom: 1px solid rgba(176,133,63,0.14);
}
.checklist li:last-child { border-bottom: none; }
.checklist .ck-ic { color: var(--gold-1); flex: none; margin-top: 2px; }
.checklist b { display: block; font-weight: 600; }
.turnkey-quote { display: flex; gap: 14px; align-items: center; margin-top: 26px; color: var(--ink-2); font-size: 1.05rem; }
.turnkey-quote .ic { color: var(--gold-1); flex: none; }

/* Чистовая отделка */
.finishing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.finish-quote { display: flex; gap: 16px; align-items: flex-start; margin: 20px 0 24px; }
.works-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.works-list li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-weight: 500; }
.works-list .ck { color: var(--gold-1); flex: none; }
.pill-quote {
  display: inline-flex; align-items: center; gap: 14px;
  background: linear-gradient(160deg, #26221d, #17130e); color: #f3ebdd;
  padding: 14px 26px; border-radius: 999px; box-shadow: var(--sh-md);
}
.pill-quote .ic { color: var(--gold-4); }
.pill-quote b { color: var(--gold-4); }

/* «Блоб»-фото для секций с картинкой */
.blob {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border: 2px solid rgba(231,206,154,0.6); box-shadow: var(--sh-lg);
  background: var(--cream-2);
}
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob-a { border-radius: 62% 38% 46% 54% / 58% 42% 58% 42%; }
.blob-b { border-radius: 45% 55% 52% 48% / 55% 45% 55% 45%; }
.blob-arch { border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px; aspect-ratio: 3/4; }

/* Команда профессионалов */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
.team-points { display: grid; gap: 22px; }
.team-point { display: flex; gap: 18px; align-items: flex-start; }
.team-point h3 { font-size: 1.05rem; margin-bottom: 4px; font-family: var(--f-body); font-weight: 700; }
.team-point p { margin: 0; color: var(--ink-3); font-size: 0.95rem; }
.team-point .em { color: var(--gold-1); font-weight: 700; }
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.role {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--card); border-radius: var(--r-sm); box-shadow: var(--sh-sm);
  border: 1px solid rgba(176,133,63,0.12); font-weight: 600;
}
.role .ic-ring { width: 46px; height: 46px; }
.role .ic-ring svg { width: 22px; height: 22px; }

/* Преимущества */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.adv {
  display: grid; grid-template-columns: auto auto 1fr; gap: 8px 18px; align-items: center;
  padding: 24px 26px;
}
.adv .ic-ring { grid-row: span 2; }
.adv .adv-num {
  font-family: var(--f-head); font-weight: 800; font-size: 1.7rem;
  color: transparent; -webkit-text-fill-color: transparent;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
}
.adv h3 { text-transform: uppercase; font-size: 1rem; letter-spacing: 0.03em; align-self: end; }
.adv p { grid-column: 2 / -1; margin: 0; color: var(--ink-3); font-size: 0.92rem; align-self: start; }
.adv-footer { text-align: center; margin-top: 34px; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.1rem, 2.6vw, 1.5rem); }
.adv-footer .gold { margin-left: 6px; }

/* Дизайнеры + бонусы */
.partners { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.partners-points { display: grid; gap: 20px; }
.guarantee-card { margin-top: 8px; }
.guarantee-card h3 { text-transform: uppercase; font-size: 1rem; letter-spacing: 0.05em; margin-bottom: 12px; color: var(--gold-1); }
.guarantee-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guarantee-card li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.guarantee-card .ck { color: var(--gold-1); flex: none; }

.bonus-card { text-align: center; }
.bonus-card .calc { display: grid; gap: 6px; margin: 14px 0 18px; }
.bonus-card .calc-row { color: var(--ink-2); }
.bonus-card .calc-eq { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.bonus-card .bonus-amount {
  font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 6vw, 2.8rem);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.bonus-note { color: var(--ink-3); font-size: 0.88rem; }

/* ─────────────────────────  ПОРТФОЛИО  ────────────────────────── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(22px, 3vw, 34px);
}
.proj {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--sh-md);
  border: 1px solid rgba(176,133,63,0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.proj:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.proj-cover {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0; /* арочная маска сверху */
}
.proj-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,16,11,0) 38%, rgba(20,16,11,0.4) 62%, rgba(20,16,11,0.88) 100%);
}
.proj:hover .proj-cover img { transform: scale(1.06); }
.proj-count {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(23,19,14,0.72); color: var(--gold-4);
  padding: 7px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.proj-body { padding: 22px 24px 26px; }
.proj-body h3 { font-size: 1.25rem; margin-bottom: 12px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid var(--gold-line); color: var(--ink-2); background: rgba(201,159,92,0.06);
}
.tag .ic { color: var(--gold-1); display: inline-flex; }
.tag.status { border-color: rgba(90,160,90,0.4); color: #3f7a3f; background: rgba(90,160,90,0.08); }
.tag.status .ic { color: #3f7a3f; }

.portfolio-empty { color: var(--ink-3); text-align: center; padding: 40px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(18, 14, 9, 0.92); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s;
}
.lightbox.open { display: flex; opacity: 1; }
.lb-stage { position: relative; width: min(92vw, 1200px); height: min(84vh, 820px); display: flex; align-items: center; justify-content: center; }
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  user-select: none;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(231,206,154,0.5);
  background: rgba(0,0,0,0.4); color: var(--gold-4); display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.lb-btn:hover { background: rgba(201,159,92,0.3); }
.lb-prev { left: -6px; }
.lb-next { right: -6px; }
.lb-close {
  position: absolute; top: 18px; right: 20px; width: 48px; height: 48px;
  border-radius: 50%; border: 1.5px solid rgba(231,206,154,0.5);
  background: rgba(0,0,0,0.4); color: var(--gold-4); display: grid; place-items: center;
}
.lb-close:hover { background: rgba(201,159,92,0.3); }
.lb-caption {
  position: absolute; bottom: -42px; left: 0; right: 0; text-align: center;
  color: #e8ddc9; font-size: 0.92rem;
}
.lb-counter { color: var(--gold-4); font-weight: 700; margin-right: 8px; }

/* ─────────────────────────  КОНТАКТЫ + ФОРМА  ─────────────────── */
.contacts { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-list { display: grid; gap: 4px; }
.contact-item {
  display: flex; align-items: center; gap: 18px; padding: 18px 0;
  border-bottom: 1px solid rgba(176,133,63,0.16);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ic-ring { width: 52px; height: 52px; flex: none; }
.contact-item .ic-ring svg { width: 24px; height: 24px; }
.contact-item a, .contact-item span { font-weight: 600; color: var(--ink); }
.contact-item small { display: block; color: var(--ink-3); font-weight: 500; font-size: 0.8rem; }
.contact-quote {
  display: flex; gap: 16px; margin-top: 26px; padding: 22px 24px;
  background: rgba(255,255,255,0.5); border-radius: var(--r-md);
  border: 1px solid rgba(176,133,63,0.14); font-style: italic; color: var(--ink-2);
}
.contact-quote .qm { font-family: var(--f-head); font-size: 2.4rem; line-height: 0.8; color: var(--gold-2); }

/* Форма */
.form-card { padding: clamp(26px, 3.4vw, 40px); border-radius: var(--r-lg); }
.form-card h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 6px; }
.form-card .sub { color: var(--ink-3); margin-bottom: 22px; font-size: 0.95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: #c0563f; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1.5px solid rgba(176,133,63,0.22); background: rgba(255,255,255,0.7);
  font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(201,159,92,0.15);
}
.field.invalid input,
.field.invalid select { border-color: #c0563f; box-shadow: 0 0 0 4px rgba(192,86,63,0.12); }
.field .err { color: #c0563f; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* honeypot — скрыто от людей */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 20px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-1); flex: none; }
.consent label { font-size: 0.85rem; color: var(--ink-3); font-weight: 500; }
.consent a { color: var(--gold-1); text-decoration: underline; }
.consent.invalid label { color: #c0563f; }

.form-submit { width: 100%; justify-content: center; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(90,160,90,0.12); color: #2f6b2f; border: 1px solid rgba(90,160,90,0.3); }
.form-status.error { background: rgba(192,86,63,0.1); color: #a03e2b; border: 1px solid rgba(192,86,63,0.3); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(42,30,8,0.35); border-top-color: #2a1e08; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────  ФУТЕР  ────────────────────────────── */
.footer { background: linear-gradient(160deg, #211d18, #14100b); color: #cfc6b6; padding-block: 48px 34px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer .logo-word { color: #fbf6ec; font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; }
.footer small { color: #9b9285; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold-4); }

/* ─────────────────  SCROLL-REVEAL АНИМАЦИИ  ───────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ─────────────────────  АДАПТИВ  ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .services, .turnkey, .finishing, .team, .partners, .contacts { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: fixed; inset: 64px 0 auto 0; flex-direction: column;
    background: rgba(250,245,236,0.97); backdrop-filter: blur(14px); padding: 22px var(--gutter);
    box-shadow: var(--sh-md); gap: 18px;
  }
  .burger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}
@media (max-width: 460px) {
  .roles { grid-template-columns: 1fr; }
  .btn { padding: 14px 24px; }
  .stats { gap: 22px; }
}

/* ─────────────────  PREFERS-REDUCED-MOTION  ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .logo-svg .draw { stroke-dashoffset: 0; }
  .logo-svg .fill-in, .logo-svg .cap { opacity: 1; }
  .logo-hero .shimmer { display: none; }
  .header-logo { opacity: 1; }
  .hero-text.is-hidden { opacity: 1; transform: none; }
}

/* ==================================================================
   СТРУКТУРНЫЕ КОМПОНЕНТЫ (паттерны bliss-home: mono-кикеры, нумерация,
   overlay-карточки, editorial-заголовки) — в палитре ProVibe.
   ================================================================== */

/* Mono-кикер с секционным счётчиком: «СПЕКТР УСЛУГ — 04» */
.kicker {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: clamp(0.66rem, 1.3vw, 0.78rem);
  color: var(--gold-1);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.kicker::after { content: ""; width: 46px; height: 1px; background: var(--gold-line); }
.tone-2 .kicker { color: var(--gold-4); }

/* Editorial-заголовок: строки, часть — золотом */
.ed-title {
  font-family: var(--f-head);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 6vw, 4rem);
}
.ed-title .row { display: block; }
/* Фикс обрезки: у -webkit-background-clip:text буквы за пределами бокса не
   закрашиваются. inline-block растягивает бокс под длинное слово (напр.
   «ПРОФЕССИОНАЛОВ»), а многословные строки по-прежнему переносятся. */
.ed-title .row.gold { display: inline-block; padding-right: 0.1em; }

/* Нумерованные пункты 01 / 02 с тонким разделителем (bliss) */
.numbered { list-style: none; margin: 0; padding: 0; }
.numbered > li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(176, 133, 63, 0.2);
}
.numbered > li:last-child { border-bottom: 1px solid rgba(176, 133, 63, 0.2); }
.numbered .no {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: var(--gold-1);
  padding-top: 4px;
}
.numbered h3 {
  font-family: var(--f-head);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.numbered .label {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold-1);
  display: block;
  margin-bottom: 8px;
}
.numbered p { margin: 0; color: var(--ink-3); }
.tone-2 .numbered > li { border-color: rgba(231, 206, 154, 0.22); }
.tone-2 .numbered p { color: #b9b0a1; }

/* Компактный вариант — «строкой» (для бонус-расчёта) */
.numbered.rows > li { grid-template-columns: 54px 1fr; align-items: center; padding: 20px 0; }
.numbered.rows .val { font-family: var(--f-mono); letter-spacing: 0.08em; color: var(--ink); font-size: 1.02rem; }
.tone-2 .numbered.rows .val { color: #f3ebdd; }

/* Overlay-карточка: фото + текст поверх (услуги, портфолио) */
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  min-height: clamp(280px, 40vw, 420px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border: 1px solid rgba(176, 133, 63, 0.16);
}
.media-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; transition: transform 0.7s var(--ease);
}
.media-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,11,0) 30%, rgba(20,16,11,0.82) 100%);
}
.media-card:hover img { transform: scale(1.05); }
.media-card .mc-body { padding: clamp(22px, 3vw, 34px); color: #f4ece0; }
.media-card .mc-label {
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.72rem; color: var(--gold-4); margin-bottom: 10px; display: block;
}
.media-card h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 8px; }
.media-card p { margin: 0; color: rgba(244,236,224,0.82); font-size: 0.95rem; }

/* Сетка услуг (overlay-карточки) */
.services-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2.5vw, 28px); }

/* Hero: нижняя полоса статистики (bliss) */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 4vw, 40px);
  margin-top: clamp(36px, 6vw, 60px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--gold-line);
}
.hero-stats .hs-num {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1;
}
.hero-stats .hs-num .gold { display: inline; }
.hero-stats .hs-lbl {
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.68rem; color: var(--ink-3); margin-top: 10px; display: block;
}

/* Секционный тег-номер справа от заголовка на десктопе */
.two-col { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.two-col.rev { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 1024px) {
  .two-col, .two-col.rev { grid-template-columns: 1fr; }
}

/* Текст-ссылка CTA в стиле bliss */
.link-cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.78rem; color: var(--ink); padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-line); transition: gap 0.3s var(--ease), color 0.3s;
}
.link-cta:hover { gap: 20px; color: var(--gold-1); }
.tone-2 .link-cta { color: #f3ebdd; }

/* Портфолио: bliss-стиль overlay с NO./заголовком/тегами */
.proj-overlay { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(20px, 3vw, 32px); color: #fff; }
.proj-overlay .no { font-family: var(--f-mono); letter-spacing: 0.2em; font-size: 0.74rem; color: var(--gold-4); text-transform: uppercase; margin-bottom: 10px; display: block; }
.proj-overlay h3 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.75rem); text-transform: none; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.proj-overlay .proj-tags .tag { background: rgba(255,253,248,0.92); }

/* ==================================================================
   ЗАСТАВКА (intro) + переработанный HERO
   Полноэкранная анимация лого → монограмма улетает в шапку (FLIP).
   ================================================================== */
body.intro-active { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 70% at 50% 42%, #fdfbf6 0%, #f5eede 55%, #efe4d1 100%);
}
.intro.fading {
  background: rgba(253, 251, 246, 0);
  transition: background 0.9s ease;
  pointer-events: none;
}
.intro.fading .intro-glow,
.intro.fading .intro-shimmer { opacity: 0 !important; transition: opacity 0.5s ease; }

.intro-stage { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 4vw, 34px); }

.intro-mark { position: relative; width: min(320px, 60vw); will-change: transform; transform-origin: 50% 50%; }
.intro-svg { width: 100%; height: auto; overflow: visible; display: block;
  animation: introPop 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes introPop {
  0%   { opacity: 0; transform: scale(0.5) translateY(26px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.intro-glow {
  position: absolute; inset: -28%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(231, 206, 154, 0.65), rgba(231, 206, 154, 0) 70%);
  opacity: 0; animation: introGlow 2.7s ease-in-out 0.35s both;
}
@keyframes introGlow {
  0%   { opacity: 0; transform: scale(0.7); }
  35%  { opacity: 0.9; transform: scale(1.02); }
  70%  { opacity: 0.45; transform: scale(1.0); }
  100% { opacity: 0.7; transform: scale(1.06); }
}

/* draw-on контура дома с золотым свечением */
.intro-svg .i-draw {
  stroke-dasharray: var(--len, 1050); stroke-dashoffset: var(--len, 1050);
  filter: drop-shadow(0 0 5px rgba(231, 206, 154, 0.75));
  animation: draw 1200ms cubic-bezier(0.6, 0, 0.3, 1) 250ms forwards;
}
/* P и V вылетают навстречу друг другу */
.intro-svg .i-pv-l { opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: pvLeft 640ms cubic-bezier(0.34, 1.45, 0.6, 1) 900ms forwards; }
.intro-svg .i-pv-r { opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: pvRight 640ms cubic-bezier(0.34, 1.45, 0.6, 1) 1050ms forwards; }
@keyframes pvLeft  { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes pvRight { from { opacity: 0; transform: translateX(46px); }  to { opacity: 1; transform: none; } }

/* шиммер-блик по монограмме, дважды */
.intro-shimmer {
  position: absolute; inset: 6% 0 6% 0; pointer-events: none; mix-blend-mode: screen; border-radius: 14px;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 249, 228, 0.92) 50%, transparent 58%);
  background-size: 260% 100%; opacity: 0;
  animation: introShimmer 1300ms ease-in-out 1500ms 2;
}
@keyframes introShimmer {
  0%   { background-position: 175% 0; opacity: 0; }
  20%  { opacity: 1; }
  100% { background-position: -75% 0; opacity: 0; }
}

.intro-word { text-align: center; opacity: 0; animation: introWordUp 720ms var(--ease) 1300ms both; }
.intro-word.gone { opacity: 0; transform: translateY(8px) scale(0.92); transition: 0.45s var(--ease); }
@keyframes introWordUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.iw-name { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1; letter-spacing: -0.01em; }
.iw-tag { font-family: var(--f-body); font-weight: 700; letter-spacing: 0.22em; font-size: clamp(0.68rem, 1.9vw, 0.9rem); color: var(--ink-2); margin-top: 12px; text-transform: uppercase; }
.iw-tag.gold { margin-top: 5px; }

.intro-skip {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.68rem; color: var(--ink-3); opacity: 0;
  animation: introWordUp 600ms var(--ease) 2200ms both;
}
.intro-skip.gone { opacity: 0; transition: opacity 0.3s; }

/* HERO: слева — текст, справа (среди плавающих кривых) — статистика в столбик */
.hero .container.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 68px); align-items: center;
}
.hero-text { max-width: 640px; }
.hero .ed-title { font-size: clamp(2.4rem, 7vw, 4.6rem); }

.hero-side { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.hstat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 24px; border-radius: var(--r-md);
  border: 1px solid rgba(176, 133, 63, 0.28);
  background: rgba(255, 253, 248, 0.6); backdrop-filter: blur(4px);
  box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hstat:hover { transform: translateX(6px); box-shadow: var(--sh-md); }
.hstat .n { font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1; }
.hstat-wide .n { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.hstat .l { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: var(--ink-3); }

/* правый блок «Наш опыт»: фото + бейджи-цифры + слоган (закрывает пустоту) */
.exp-visual { display: flex; flex-direction: column; gap: 20px; }
.exp-photo { position: relative; }
.exp-photo .blob { aspect-ratio: 3/2.4; }
.exp-badges { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; gap: 10px; flex-wrap: wrap; z-index: 2; }
.exp-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(23, 19, 14, 0.72); backdrop-filter: blur(6px);
  color: #f4ece0; padding: 10px 16px; border-radius: 999px; font-size: 0.9rem;
}
.exp-badge .exp-ic { color: var(--gold-4); display: inline-flex; }
.exp-badge b { font-family: var(--f-head); font-size: 1.15rem; }
.exp-slogan { margin: 0; text-align: center; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(1rem, 2.4vw, 1.4rem); }

/* Рубль в бонус-расчёте не должен переноситься на новую строку */
.numbered.rows .val { white-space: nowrap; font-size: clamp(0.82rem, 2.4vw, 1.02rem); }

@media (max-width: 900px) {
  .hero .container.hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-text { max-width: none; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hstat { flex: 1 1 40%; padding: 14px 16px; }
  .hstat-wide { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-svg, .intro-glow, .intro-shimmer, .intro-word, .intro-skip,
  .intro-svg .i-draw, .intro-svg .i-pv-l, .intro-svg .i-pv-r { animation: none !important; opacity: 1; }
  .intro-svg .i-draw { stroke-dashoffset: 0; }
}

/* ==================================================================
   ДОРАБОТКА АНИМАЦИЙ: синхронный hero, вордмарк-в-шапку, «живой» логотип,
   плавающие кривые/дуги, пульсации, слабые анимации иконок.
   ================================================================== */

/* Текст hero скрыт, пока играет заставка; появляется синхронно после пролёта лого */
.hero-text { transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.hero-text.is-hidden { opacity: 0; transform: translateY(30px); pointer-events: none; }

/* Вордмарк заставки летит в шапку отдельным элементом; подпись уплывает вверх */
#introName { will-change: transform; transform-origin: 50% 50%; }
.iw-tags { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.iw-tags.gone { opacity: 0; transform: translateY(-42px) scale(0.9); }

/* ── Логотип в шапке всегда «живой»: дыхание + бегущий блик ── */
.logo-mark-wrap { position: relative; display: inline-flex; }
.header-logo .logo-mark { animation: logoBreath 3.8s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes logoBreath {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(231,206,154,0)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 1px 5px rgba(231,206,154,0.6)); }
}
.logo-sheen { position: absolute; inset: -2px; pointer-events: none; overflow: hidden; border-radius: 8px; }
.logo-sheen::before {
  content: ""; position: absolute; top: -20%; left: -60%; width: 45%; height: 140%;
  background: linear-gradient(105deg, transparent, rgba(255,249,228,0.9), transparent);
  transform: skewX(-18deg); mix-blend-mode: screen;
  animation: logoSheen 5s ease-in-out infinite;
}
@keyframes logoSheen { 0% { left: -60%; } 16% { left: 170%; } 100% { left: 170%; } }

/* ── Плавающие золотые кривые на hero (вместо кругов) ── */
.hero-curves {
  position: absolute; inset: 0 -4% 0 auto; width: min(760px, 64vw); height: 100%;
  z-index: -1; opacity: 0.8; pointer-events: none;
}
.hero-curves .hc { will-change: transform; }
.hero-curves .hc1 { animation: floatCurve 11s ease-in-out infinite; }
.hero-curves .hc2 { animation: floatCurve 14s ease-in-out infinite reverse; }
.hero-curves .hc3 { animation: floatCurveX 16s ease-in-out infinite; }
.hero-curves .hc4 { animation: floatCurve 13s ease-in-out infinite 1s; }
@keyframes floatCurve  { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px,-22px); } }
@keyframes floatCurveX { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-14px,16px); } }
@media (max-width: 700px) { .hero-curves { opacity: 0.45; width: 92%; inset: 0; } }

/* ── Плавающие фото-блобы + золотые дуги вокруг ── */
.blob-wrap { position: relative; display: block; }
.blob { animation: floatBlob 8s ease-in-out infinite; }
.blob-b { animation-duration: 9.5s; animation-delay: 0.6s; }
@keyframes floatBlob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(0.5deg); } }
/* дуги-кольца вокруг блоба (на обёртке — не обрезаются маской фото), плавают в противофазе */
.blob-wrap::before, .blob-wrap::after {
  content: ""; position: absolute; inset: -16px; border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  border: 1.5px solid var(--gold-line); pointer-events: none; z-index: -1;
}
.blob-wrap::before { opacity: 0.55; animation: floatArc 7s ease-in-out infinite; }
.blob-wrap::after { inset: -30px; opacity: 0.3; border-style: dashed; animation: floatArc 9.5s ease-in-out infinite reverse; }
@keyframes floatArc { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(11px) rotate(-1.4deg); } }

/* ── Логотип в шапке: изначально скрыт, «прилетает» из заставки, затем остаётся ── */
.header-logo { opacity: 0; transition: opacity 0.55s ease; }
.header-logo.landed { opacity: 1; }

/* ── Пульсации / блик кнопок ── */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold > * { position: relative; z-index: 3; }
@keyframes btnPulse {
  0%,100% { box-shadow: 0 10px 28px rgba(176,133,63,0.42); }
  50% { box-shadow: 0 12px 34px rgba(176,133,63,0.6), 0 0 0 4px rgba(231,206,154,0.14); }
}
/* бегущий блик: по умолчанию — только при наведении (один проход) */
.btn-gold::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%);
  background-size: 250% 100%; mix-blend-mode: screen;
  background-position: 180% 0; opacity: 0;
}
.btn-gold:hover::after { animation: btnSheen 0.9s ease-out; }
@keyframes btnSheen {
  from { background-position: 180% 0; opacity: 1; }
  to { background-position: -80% 0; opacity: 1; }
}
/* Кнопка «Оставить заявку» в шапке бликует всегда + мягко пульсирует */
.header .btn-gold { animation: btnPulse 3s ease-in-out infinite; }
.header .btn-gold::after { opacity: 1; animation: btnSheenLoop 4.2s ease-in-out infinite; }
@keyframes btnSheenLoop {
  0% { background-position: 180% 0; }
  45% { background-position: -80% 0; }
  100% { background-position: -80% 0; }
}
.ic-ring, .stat-ic { animation: ringPulse 4.2s ease-in-out infinite; }
.stat-ic { animation-duration: 4.6s; }
@keyframes ringPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,159,92,0); }
  50% { box-shadow: 0 0 0 5px rgba(201,159,92,0.08); }
}

/* ── Слабые анимации иконок ── */
.ic-ring svg, .stat-ic svg { animation: iconBreath 5s ease-in-out infinite; transform-origin: 50% 50%; }
.checklist .ck-ic svg, .works-list .ck svg, .proj-tags .ic svg, .contact-item .ic-ring svg { animation: iconBreath 6s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes iconBreath { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.1); opacity: 1; } }
/* стаггер, чтобы не дышали синхронно */
.adv:nth-child(2n) .ic-ring svg, .role:nth-child(2n) .ic-ring svg, .contact-item:nth-child(2n) .ic-ring svg, .service-card:nth-child(2n) .ic-ring svg { animation-delay: 0.8s; }
.adv:nth-child(3n) .ic-ring svg, .role:nth-child(3n) .ic-ring svg { animation-delay: 1.6s; }
/* усиление на hover */
.card:hover .ic-ring svg, .role:hover .ic-ring svg, .contact-item:hover .ic-ring svg { transform: scale(1.16); transition: transform 0.3s var(--ease); }
.ic-ring:hover { transform: rotate(-6deg); transition: transform 0.4s var(--ease); }

/* Reduced-motion выключает все бесконечные эффекты (глобальное правило ниже уже гасит анимации) */

/* ==================================================================
   МОБИЛЬНАЯ КОМПАКТНОСТЬ — меньше вертикали, меньше листать (≤640px)
   ================================================================== */
@media (max-width: 640px) {
  section { padding-block: clamp(42px, 11vw, 60px); }
  .section-head { margin-bottom: 26px; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 48px; }
  .ed-title { line-height: 1.05; }

  /* компактные карточки и списки */
  .card { padding: 20px; }
  .checklist-card { padding: 22px; }
  .checklist li { padding: 12px 0; }
  .numbered > li { padding: 18px 0; }
  .adv { padding: 18px 20px; }
  .service-card { gap: 14px; }
  .role { padding: 12px 14px; }
  .contact-item { padding: 14px 0; }

  /* меньше вертикальных отступов между блоками гридов */
  .services, .turnkey, .finishing, .team, .partners, .contacts,
  .two-col, .two-col.rev { gap: 24px; }
  .adv-grid { gap: 14px; }
  .roles { gap: 10px; }

  /* заголовки чуть компактнее */
  .section-head .lead { margin-top: 12px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 13px 22px; font-size: 0.94rem; }

  /* иконки-кольца компактнее, чтобы карточки были ниже */
  .ic-ring { width: 52px; height: 52px; }
  .ic-ring svg { width: 24px; height: 24px; }

  /* портфолио: одна колонка, но карточки ниже */
  .proj-cover { aspect-ratio: 3/2; }

  /* блоб-фото ниже, дуги ближе (меньше высоты) */
  .blob { aspect-ratio: 4/3.4; }
  .blob-wrap::after { inset: -20px; }
}
