/* ============================================================
   СК «Высший Ранг» — vysshiy-rang.ru
   Графит #2b2f33 · Жёлтый #f5b301 · Oswald + Manrope (локально)
   Mobile-first
   ============================================================ */

@import url('fonts.css');

:root {
  --graphite: #2b2f33;
  --graphite-deep: #22262a;
  --graphite-soft: #33383d;
  --line: rgba(255, 255, 255, 0.09);
  --yellow: #f5b301;
  --yellow-soft: rgba(245, 179, 1, 0.12);
  --white: #ffffff;
  --text: #e9eaec;
  --text-dim: rgba(233, 234, 236, 0.66);
  --text-faint: rgba(233, 234, 236, 0.42);
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(245, 179, 1, 0.07), transparent 60%),
    radial-gradient(800px 500px at -10% 40%, rgba(255, 255, 255, 0.03), transparent 55%),
    var(--graphite);
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 0.5em; color: var(--white); letter-spacing: 0.01em; }
h1, .section-title { text-transform: uppercase; }
p { margin: 0 0 1em; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(24px, 4.5vw, 40px); letter-spacing: -0.01em; margin-bottom: 16px; }
.section-sub { color: var(--text-dim); max-width: 640px; margin-bottom: 36px; font-size: 17px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none !important;
  min-height: 52px;
}
.btn--primary {
  background: var(--yellow);
  color: var(--graphite-deep);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 26px rgba(245, 179, 1, 0.22);
}
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 34px rgba(245, 179, 1, 0.3); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(43, 47, 51, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none !important; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--yellow); letter-spacing: 0.02em; white-space: nowrap; }
.logo__sub { font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-dim); }

.nav { display: none; }
.header__phone { display: none; }

.burger {
  width: 48px; height: 48px;
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  padding: 0;
}
.burger span { display: block; width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--graphite-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 24px 40px;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
}
.mobile-menu a.mm-link:hover, .mobile-menu a.mm-link.is-active { color: var(--yellow); }
.mobile-menu .mm-phone { margin-top: 24px; font-size: 20px; font-weight: 800; color: var(--yellow); text-decoration: none !important; }
.mobile-menu .mm-note { color: var(--text-faint); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 22px;
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

.hero h1 {
  font-size: clamp(28px, 6.4vw, 52px);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--yellow); }
.hero__sub { font-size: 17px; color: var(--text-dim); max-width: 480px; margin-bottom: 28px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 32px; }
.stat { min-width: 90px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4vw, 34px); color: var(--yellow); letter-spacing: -0.01em; }
.stat__label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Появление hero */
.reveal-hero > * { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.reveal-hero > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-hero > *:nth-child(2) { animation-delay: 0.15s; }
.reveal-hero > *:nth-child(3) { animation-delay: 0.25s; }
.reveal-hero > *:nth-child(4) { animation-delay: 0.35s; }
.reveal-hero > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Слайдер до/после ---------- */
.ba {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--yellow);
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba__handle::after {
  content: '⇄';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--graphite-deep);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.ba__tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(34, 38, 42, 0.75);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; background: var(--yellow); color: var(--graphite-deep); }
.ba__caption { margin-top: 12px; font-size: 13px; color: var(--text-faint); text-align: center; }

/* ---------- Слоган / визитка ---------- */
.slogan {
  text-align: center;
  padding: 40px 0 8px;
}
.brandcard {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(245, 179, 1, 0.25);
  box-shadow: var(--shadow-card), 0 0 60px rgba(245, 179, 1, 0.07);
}
.brandcard img { width: 100%; display: block; }
.slogan__script { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 3.4vw, 26px); color: var(--yellow); margin-bottom: 10px; }
.slogan__values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.slogan__values .dot { color: var(--yellow); }
@media (min-width: 720px) {
  .slogan__values { font-size: 13px; letter-spacing: 0.24em; gap: 6px 16px; }
}

/* ---------- Плитки услуг (bento) ---------- */
.services-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.svc {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  text-decoration: none !important;
}
.svc:hover { transform: translateY(-4px); border-color: rgba(245, 179, 1, 0.45); background: rgba(255, 255, 255, 0.06); }
.svc__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--yellow-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc__icon svg { width: 28px; height: 28px; stroke: var(--yellow); fill: none; stroke-width: 1.8; }
.svc h3 { font-size: 18px; margin-bottom: 8px; }
.svc p { color: var(--text-dim); font-size: 15px; margin-bottom: 14px; }
.svc__more { font-size: 14px; font-weight: 700; color: var(--yellow); }
.svc__num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

/* ---------- Почему мы ---------- */
.why-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.why {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.why__check {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--graphite-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.why h3 { font-family: var(--font-body); font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.why p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ---------- Калькулятор ---------- */
.calc {
  background: var(--graphite-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
}
.calc__grid { display: grid; gap: 22px; }
.calc fieldset { border: none; padding: 0; margin: 0 0 4px; }
.calc legend, .calc .field-label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; display: block; padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}
.chip input:checked + label { background: var(--yellow); border-color: var(--yellow); color: var(--graphite-deep); font-weight: 800; }
.chip input:focus-visible + label { outline: 2px solid var(--yellow); outline-offset: 2px; }

.calc input[type='number'] {
  width: 100%;
  max-width: 240px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
}
.calc input[type='number']:focus { outline: none; border-color: var(--yellow); }

.calc__result {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  margin-top: 4px;
}
.calc__result-label { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.calc__range { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5vw, 34px); color: var(--yellow); letter-spacing: -0.01em; margin-bottom: 10px; min-height: 1.2em; }
.calc__disclaimer { font-size: 13px; color: var(--text-faint); max-width: 520px; margin-bottom: 20px; }

/* ---------- Кейсы ---------- */
.cases-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.case {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.case:hover { transform: translateY(-4px); border-color: rgba(245, 179, 1, 0.4); }
.case .ba { border-radius: 0; border: none; box-shadow: none; aspect-ratio: 16 / 10; }
.case__body { padding: 20px 22px 24px; }
.case__type { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.case h3 { font-size: 17px; margin-bottom: 12px; }
.case__facts { display: grid; gap: 6px; font-size: 14px; color: var(--text-dim); margin: 0; }
.case__facts div strong { color: var(--text); font-weight: 700; }

/* ---------- Отзывы ---------- */
.reviews-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.review {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.review__stars { color: var(--yellow); letter-spacing: 4px; font-size: 15px; margin-bottom: 14px; }
.review__text { font-size: 15.5px; color: var(--text); margin-bottom: 18px; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  border: 1px solid rgba(245, 179, 1, 0.3);
}
.review__name { font-weight: 800; font-size: 14.5px; }
.review__role { font-size: 13px; color: var(--text-faint); }

/* ---------- Форма заявки ---------- */
.lead {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(245, 179, 1, 0.12), transparent 60%),
    var(--graphite-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}
.lead h2 { font-size: clamp(22px, 4vw, 32px); }
.lead__sub { color: var(--text-dim); margin-bottom: 26px; }
.form { display: grid; gap: 16px; max-width: 460px; }
.form input[type='text'], .form input[type='tel'] {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
}
.form input:focus { outline: none; border-color: var(--yellow); }
.form input::placeholder { color: var(--text-faint); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-dim); }
.consent input[type='checkbox'] {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--yellow);
  cursor: pointer;
}
.consent a { text-decoration: underline; }

.form__status { font-size: 14px; font-weight: 700; min-height: 20px; margin: 0; }
.form__status.ok { color: #7ed491; }
.form__status.err { color: #ff8a7a; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 14px; }
.contact-line { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.contact-line a.big { font-size: 21px; font-weight: 800; color: var(--white); }
.contact-line a.big:hover { color: var(--yellow); text-decoration: none; }
.contact-line span { font-size: 13px; color: var(--text-faint); }
.msg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none !important;
  transition: border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}
.msg-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.requisites { font-size: 14px; color: var(--text-dim); line-height: 1.75; }
.requisites strong { color: var(--text); }

/* ---------- Страничный hero (внутренние) ---------- */
.page-hero { padding: 128px 0 40px; }
.page-hero h1 { font-size: clamp(26px, 5.5vw, 44px); letter-spacing: -0.015em; }
.page-hero p { color: var(--text-dim); max-width: 640px; font-size: 17px; }
.breadcrumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--yellow); }

/* ---------- Услуги: типы объектов ---------- */
.objects-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.object-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.object-tile h4 { font-family: var(--font-body); font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.object-tile p { font-size: 13px; color: var(--text-dim); margin: 0; }

.svc-detail { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 40px; }
.svc-detail:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.svc-detail__head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.svc-detail__head .svc__icon { margin: 0; }
.svc-detail h2 { font-size: clamp(20px, 3.6vw, 28px); margin: 0; }
.svc-detail > p { color: var(--text-dim); max-width: 720px; }
.svc-detail ul.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.svc-detail ul.checks li { padding-left: 28px; position: relative; color: var(--text-dim); font-size: 15px; }
.svc-detail ul.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 800; }

/* ---------- О компании ---------- */
/* ---------- Счётчик «Мы в цифрах» ---------- */
.stats-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.stat-big {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 20px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s;
}
.stat-big::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,179,1,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.stat-big:hover { border-color: rgba(245,179,1,0.3); }
.stat-big__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-big__label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
@media (min-width: 640px) { .stats-big { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Отзывы ---------- */
.reviews {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s;
}
.review:hover { border-color: rgba(245,179,1,0.3); }
.review__stars { color: var(--yellow); font-size: 18px; letter-spacing: 2px; }
.review__text {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.review__author { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.review__name { font-weight: 600; font-size: 14px; color: var(--white); }
.review__source { font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }

.about-stats { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 32px 0; }
.about-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.about-stat .stat__num { font-size: clamp(26px, 5vw, 38px); }
.team-note {
  border-left: 3px solid var(--yellow);
  background: var(--yellow-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  color: var(--text);
  font-size: 15px;
}

/* ---------- Документы / политика ---------- */
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(22px, 4.5vw, 34px); }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--text-dim); font-size: 15px; }
.doc strong { color: var(--text); }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 96px; margin-top: 32px; background: var(--graphite-deep); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--text-dim); font-size: 14.5px; }
.footer ul a:hover { color: var(--yellow); text-decoration: none; }
.footer__req { font-size: 13px; color: var(--text-faint); line-height: 1.8; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 13px; color: var(--text-faint); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Мобильная панель действий ---------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(34, 38, 42, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { flex: 1; min-height: 48px; padding: 10px 12px; font-size: 14.5px; }

/* ---------- Cookie-баннер ---------- */
.cookiebar {
  position: fixed;
  left: 14px; right: 14px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 95;
  background: var(--graphite-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  display: none;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookiebar.is-visible { display: flex; }
.cookiebar p { margin: 0; font-size: 13px; color: var(--text-dim); flex: 1 1 260px; }
.cookiebar .btn { min-height: 42px; padding: 9px 20px; font-size: 14px; }

/* ---------- Лента фото процесса ---------- */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 18px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 179, 1, 0.4) transparent;
}
.strip__item { margin: 0; scroll-snap-align: start; }
.strip__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.strip__item:hover img { transform: translateY(-4px) scale(1.02); border-color: rgba(245, 179, 1, 0.45); }
.strip__item figcaption { font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }
@media (min-width: 720px) {
  .strip { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
}

/* ---------- Галерея кейса (до/процесс/после) ---------- */
.gallery { display: grid; gap: 26px; margin-top: 22px; }
.gallery__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 12px;
}
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery__grid .strip__item img { aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__grid .strip__item:nth-child(5) { grid-column: span 1; }
}

/* ---------- Лайтбокс ---------- */
.strip__item img, .gallery__grid img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 22, 24, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  animation: lb-in 0.25s ease forwards;
  cursor: zoom-out;
}
@keyframes lb-in { to { opacity: 1; } }
.lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--yellow);
  color: var(--graphite-deep);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  z-index: 2001;
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  width: 52px;
  height: 72px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  z-index: 2001;
  transition: background .15s;
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(0,0,0,.72); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.78);
  font-size: 0.85rem;
  background: rgba(0,0,0,.45);
  padding: 4px 14px;
  border-radius: 20px;
  z-index: 2001;
  white-space: nowrap;
}

/* ---------- Шаги процесса ---------- */
.steps { display: grid; gap: 14px; position: relative; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: rgba(245, 179, 1, 0.4); transform: translateY(-3px); }
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--yellow);
  line-height: 1;
  flex: 0 0 auto;
  min-width: 44px;
}
.step h3 { font-family: var(--font-body); font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-dim); margin: 0; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .step { flex-direction: column; gap: 14px; }
  .step__num { font-size: 28px; }
}

/* ---------- Кейс-фича (реальный объект) ---------- */
.case--feature { border-color: rgba(245, 179, 1, 0.3); }
.case--feature .ba { aspect-ratio: 16 / 9; }
@media (min-width: 1024px) {
  .case--feature .ba { aspect-ratio: 21 / 9; }
}

/* ---------- 3D tilt (премиальный эффект) ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease; }
.tilt.is-tilting { transition: box-shadow 0.35s ease; }

/* ---------- Hero: атмосфера ---------- */
.hero__visual { position: relative; perspective: 1100px; }
.hero__visual::before {
  content: '';
  position: absolute;
  inset: -12% -8% auto auto;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 179, 1, 0.16), transparent 65%);
  filter: blur(30px);
  animation: orb 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}
@keyframes orb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, 10%, 0) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__visual::before { animation: none; }
  .tilt { transition: none !important; transform: none !important; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-hero > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Планшет ≥ 720px
   ============================================================ */
@media (min-width: 720px) {
  .section { padding: 96px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr 1fr; }
  .calc { padding: 40px; }
  .lead { padding: 48px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .objects-grid { grid-template-columns: repeat(4, 1fr); }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .action-bar { display: none; }
  .cookiebar { left: auto; right: 24px; bottom: 24px; max-width: 520px; }
  .footer { padding-bottom: 48px; }
}

/* ============================================================
   Десктоп ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .hero { padding: 168px 0 88px; }
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .reveal-hero { max-width: 720px; }
  .nav { display: flex; gap: 34px; }
  .nav a { color: var(--text-dim); font-weight: 600; font-size: 15px; text-decoration: none !important; transition: color 0.2s ease; }
  .nav a:hover, .nav a.is-active { color: var(--yellow); }
  .header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none !important;
  }
  .header__phone svg { width: 18px; height: 18px; }
  .burger { display: none; }
  .services-grid { grid-template-columns: repeat(12, 1fr); }
  .services-grid .svc:nth-child(1) { grid-column: span 7; }
  .services-grid .svc:nth-child(2) { grid-column: span 5; }
  .services-grid .svc:nth-child(3) { grid-column: span 5; }
  .services-grid .svc:nth-child(4) { grid-column: span 7; }
  .why-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cases-grid--wide { grid-template-columns: 1fr 1fr; }
  .lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .calc__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .calc__result { grid-column: 1 / -1; }
}

/* ============ GSAP-слой анимации (animations.js) ============ */
/* Когда GSAP активен — отключаем CSS-анимации, управление у JS */
html.gsap .reveal-hero > * { animation: none; opacity: 1; transform: none; }
html.gsap .reveal { transition: none; }

/* Vanta 3D-фон в hero: canvas под контентом */
.hero { position: relative; }
.hero > .container { position: relative; z-index: 1; }
.hero canvas.vanta-canvas { position: absolute; inset: 0; z-index: 0; }

/* Блик VanillaTilt не должен вылезать за скругления */
.tilt, .case { overflow: hidden; }

/* ===== КАРУСЕЛЬ ОТЗЫВОВ ===== */

.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.reviews-window {
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.reviews-track .review {
    flex: 0 0 calc((100% - 40px) / 3);
    box-sizing: border-box;
    margin: 0;
}

/* Стрелки */

.reviews-prev,
.reviews-next {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid rgba(245, 179, 1, 0.45);
    border-radius: 50%;

    background: rgba(245, 179, 1, 0.08);
    color: var(--yellow);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.reviews-prev:hover,
.reviews-next:hover {
    background: rgba(245, 179, 1, 0.16);
    border-color: var(--yellow);
    transform: scale(1.05);
}

.reviews-prev::before {
    content: "‹";
}

.reviews-next::before {
    content: "›";
}

/* На телефоне показываем один отзыв */

@media (max-width: 719px) {
    .reviews-carousel {
        gap: 10px;
    }

    .reviews-track {
        gap: 12px;
    }

    .reviews-track .review {
        flex: 0 0 100%;
    }

    .reviews-prev,
    .reviews-next {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* Ограничение длинных отзывов */
.review__text {
  max-height: 220px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

/* Кнопка раскрытия */
.review__more {
  display: block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #ffd400;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.review__more:hover {
  text-decoration: underline;
}

/* Развернутый отзыв */
.review__text.is-open {
  max-height: none;
  display: block;
  -webkit-line-clamp: unset;
}
