/* ===== Базовые переменные ===== */
:root {
  --header-bg: #1e2a4a;
  --header-bg-alt: #243052;
  --text-on-dark: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.88);
  --border-cta: #ffffff;
  --font-main: 'Manrope', system-ui, -apple-system, sans-serif;
  --header-height: 80px;
  --container-max: 1280px;
  --brand-blue: #1e2a4a;
  --slider-height: calc(100vh - var(--header-height));
  --text: #1f2937;
  --text-soft: rgba(31, 41, 55, 0.82);
  --section-title-size: clamp(3.2rem, 6.4vw, 7.55rem);
  --section-title-lh: 1.22;

  /* Section stack: avoid double padding between same-tone sections */
  --section-pt: clamp(54px, 7vw, 96px);
  --section-pb: clamp(40px, 5.5vw, 72px);
  --section-pt-compact: clamp(16px, 3vw, 32px);

  /* CTA tokens (keep one accent color, no rainbow) */
  --cta-bg: var(--brand-blue);
  --cta-bg-hover: #243052;
  --cta-fg: #ffffff;
  --cta-inverse-bg: #ffffff;
  --cta-inverse-fg: var(--brand-blue);
  --btn-radius: 12px;
  --btn-height: 46px;

  /* Vertical rhythm (8px scale) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;

  /* Shadows (premium, restrained) */
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 18px 36px rgba(15, 23, 42, 0.18);
  --shadow-float: 0 22px 60px rgba(0, 0, 0, 0.25);
}

@supports (height: 100svh) {
  :root {
    --slider-height: calc(100svh - var(--header-height));
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

body.has-sticky-cta {
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

/* Typography defaults / hierarchy */
h1, h2, h3 {
  margin: 0;
}

p {
  margin: 0;
}

.prose {
  max-width: 65ch;
}

.page-section {
  padding: var(--section-pt) 0 var(--section-pb);
  border-top: 1px solid transparent;
}

/* Первая секция после hero — без большой «дыры» */
.main-content + .page-section {
  padding-top: var(--section-pt-compact);
  border-top-color: transparent;
}

/* Две белые подряд — один компактный зазор */
.page-section--light + .page-section--light {
  padding-top: var(--section-pt-compact);
}

/* Светлая → тёмная и тёмная → светлая — один зазор, без удвоения */
.page-section + .page-section--dark,
.page-section--dark + .page-section {
  padding-top: var(--section-pt-compact);
}

.page-section--light {
  border-top-color: rgba(30, 42, 74, 0.06);
}

.page-section--dark {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html {
  scrollbar-gutter: stable;
}

/* ===== Шапка: увеличенные шрифты, без лупы и языка ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  height: var(--header-height);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1.15rem, 1.05vw + 0.85rem, 1.35rem);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-left: -2px;
}

.logo:hover {
  color: var(--text-on-dark);
  opacity: 0.92;
}

.logo-chevron {
  font-size: 1.15em;
  font-weight: 400;
  opacity: 0.9;
}

.nav-main {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.02rem;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-phone {
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.12rem;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum" 1;
  transition: color 0.2s;
}

.header-phone:hover {
  color: var(--text-on-dark);
}

.nav-list a:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  margin-left: 6px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: transparent;
  color: var(--text-on-dark);
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--btn-radius);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.logo:focus-visible,
.nav-list a:focus-visible,
.header-phone:focus-visible,
.btn-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.btn-cta:hover {
  background: var(--border-cta);
  color: var(--header-bg);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.site-header.is-open .burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .burger span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--header-bg-alt);
  padding: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.site-header.is-open .nav-mobile {
  display: block;
}

.nav-mobile-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.nav-mobile-list a {
  display: block;
  padding: 14px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile-list a:hover {
  color: var(--text-on-dark);
}

.btn-cta-mobile {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 600;
}

.header-phone-mobile {
  display: block;
  padding: 14px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.header-phone-mobile:hover {
  color: var(--text-on-dark);
}

@media (max-width: 1024px) {
  .nav-main,
  .header-phone,
  .header-right {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header-inner {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }
}

/* ===== Слайдер: 97% высоты экрана (шапка + слайды) ===== */
.main-content {
  height: var(--slider-height);
  overflow: hidden;
  border: none;
  outline: none;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: none;
  outline: none;
}

.hero-slider-corner-cutout {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  max-width: 560px;
  background: #ffffff;
  /* Сильное перекрытие (68%) — убирает тонкую линию в Chrome на стыке выреза */
  clip-path: polygon(100% 65%, 100% 100%, 68% 100%);
  pointer-events: none;
  z-index: 30;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Белая полоска внизу справа перекрывает артефакт линии в Chrome */
.hero-slider-corner-cutout::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #ffffff;
}

.hero-slider-right-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  max-width: 560px;
  pointer-events: none;
  z-index: 5;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-slider-right-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.hero-slider-right-layer-1 {
  left: 0;
  right: 0;
  z-index: 1;
  /* Вырез с заходом (84%) под белый треугольник — убирает линию на стыке */
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 65%,
    84% 100%,
    10% 100%,
    50% 50%,
    0% 0%
  );
  transform: translateY(var(--hero-parallax-y1, 0px));
  will-change: transform;
}

.hero-slider-right-layer-2 {
  left: 0;
  right: 0;
  z-index: 2;
  /* Вырез с заходом (84%) под белый треугольник — убирает линию на стыке */
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 65%,
    84% 100%,
    10% 100%,
    50% 50%,
    0% 0%
  );
  /* Сдвиг верхнего изображения вместе с его вырезом (как было до последней правки) */
  transform: translateX(30%) translateY(var(--hero-parallax-y2, 0px));
  will-change: transform;
}

.hero-slider-right-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: bottom;
}

.hero-slider-right-layer picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slider-right-layer picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider-right-overlay {
  position: absolute;
  inset: 0;
  background: rgba(100, 100, 100, 0.35);
  pointer-events: none;
}

.slider-track {
  display: flex;
  width: 500%;
  height: 100%;
  /* Сразу показываем реальный 1-й слайд (последний в треке) без "пролёта" при загрузке */
  transform: translateX(-80%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slider-track.is-loop-reset {
  transition: none;
}

.slide {
  flex: 0 0 20%;
  width: 20%;
  height: 100%;
  flex-shrink: 0;
}

/* Слайд 1: белый фон, текст слева (крупный), два изображения справа с вырезом */
.slide-1 {
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.slide-1-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 6vw, 100px) 0 calc(clamp(5%, 8vw, 120px) + 5vw);
  max-width: min(62%, calc(100% - 140px));
  line-height: 1.3;
  box-sizing: border-box;
}

.slide-1-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.55rem, 1.65vw, 1.05rem);
}

.slide-1-title {
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.025em;
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  line-height: 1.22;
  white-space: nowrap;
  max-width: none;
  width: max-content;
  opacity: 0;
  animation: slide1TitleIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.slide-1-line3 {
  display: block;
  margin: 0;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 2.95vw, 2.15rem);
  line-height: 1.4;
  white-space: nowrap;
  max-width: none;
  width: max-content;
  opacity: 0;
  animation: slide1Line3In 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

@keyframes slide1TitleIn {
  from {
    opacity: 0;
    transform: translateX(-12%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide1Line3In {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
  to {
    opacity: 0.96;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .slide-1-content {
    max-width: min(72%, calc(100% - 96px));
    padding-left: clamp(20px, 5vw, 60px);
    padding-right: clamp(16px, 4vw, 40px);
  }
  .slide-1-title {
    font-size: clamp(1.65rem, 4.2vw, 2.65rem);
    line-height: 1.2;
  }
  .slide-1-line3 {
    font-size: clamp(1.15rem, 2.85vw, 1.75rem);
  }

  .slide-1-headline {
    gap: clamp(0.45rem, 1.4vw, 0.9rem);
  }
}

@media (max-width: 640px) {
  .hero-slider-right-image,
  .hero-slider-corner-cutout {
    display: none;
  }

  .slide-1-content,
  .slide-3-content,
  .slide-4-content {
    max-width: 100%;
    padding-right: 20px;
  }

  .slide-1-title {
    font-size: clamp(1.2rem, 3.9vw, 1.55rem);
    line-height: 1.22;
    white-space: nowrap;
  }

  .slide-1-line3 {
    font-size: clamp(1.05rem, 3.4vw, 1.35rem);
    white-space: nowrap;
  }

  .slide-1-headline {
    gap: clamp(0.4rem, 1.2vw, 0.75rem);
  }

  .slide-4-line1,
  .slide-4-line2 {
    white-space: normal;
  }

  .slider-dots {
    bottom: 18px;
  }
}

/* Слайд 2: видео на весь слайд */
.slide-2 {
  background: #000;
  position: relative;
}

.slide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Слайд 3: синий фон, три строки с крупным белым текстом и стрелками (по референсу) */
.slide-3 {
  background: var(--brand-blue);
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.slide-3-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 calc(clamp(5%, 8vw, 120px) + 5vw);
  max-width: 58%;
  gap: 0.34em;
}

.slide-3-line {
  /* индивидуальный сдвиг строки (как в референсе) */
  --x: 0%;
  display: flex;
  align-items: center;
  gap: 0.35em;
  opacity: 0;
}

.slide-3-line:nth-child(2) {
  --x: 25%;
}

.slide-3-line:nth-child(3) {
  --x: 10%;
}

.slide-3-word,
.slide-3-arrow {
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-size: clamp(3.25rem, 6.3vw, 5rem);
  line-height: 1.05;
}

.slide-3-arrow {
  /* Не символ, а рисованная стрелка — одинаково жирная и крупная везде */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  opacity: 0.95;
}

.slide-3-arrow::before {
  content: '';
  width: 0.52em;
  height: 0.52em;
  border-right: 0.14em solid currentColor;
  border-top: 0.14em solid currentColor;
  transform: rotate(45deg);
  display: block;
}

.slide-3-line:nth-child(1) {
  animation: slide3LineIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.slide-3-line:nth-child(2) {
  animation: slide3LineIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

.slide-3-line:nth-child(3) {
  animation: slide3LineIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}

@keyframes slide3LineIn {
  from {
    opacity: 0;
    transform: translateX(calc(var(--x) - 12%));
  }
  to {
    opacity: 1;
    transform: translateX(var(--x));
  }
}

@media (max-width: 900px) {
  .slide-3-content {
    max-width: 70%;
    padding-left: clamp(20px, 5vw, 60px);
  }
  .slide-3-word,
  .slide-3-arrow {
    font-size: clamp(2.4rem, 5.3vw, 3.6rem);
  }

  .slide-3-line {
    gap: 0.3em;
  }
}

/* Слайды 4–5: заглушки по цветам */
/* Слайд 4: слоган + спокойная многоступенчатая анимация (как на 1-м) */
.slide-4 {
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.slide-4-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 calc(clamp(5%, 8vw, 120px) + 5vw);
  max-width: 62%;
}

.slide-4-headline {
  margin: 0;
  display: block;
  line-height: 1.25;
}

.slide-4-line1,
.slide-4-line2 {
  display: block;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  white-space: nowrap;
  opacity: 0;
}

.slide-4-line2 {
  margin-top: 0.42em;
}

.slide-4-line1 {
  animation: slide4LineIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.slide-4-line2 {
  animation: slide4LineIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards;
}

@keyframes slide4LineIn {
  from {
    opacity: 0;
    transform: translateX(-10%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .slide-4-content {
    max-width: 78%;
    padding-left: clamp(20px, 5vw, 60px);
  }
  .slide-4-line1,
  .slide-4-line2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
}

/* Точки навигации слайдера */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.slider-dot:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.3);
}

.slider-dot.active {
  background: #fff;
  border-color: #fff;
}

.hero-slider .slider-dot {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.hero-slider .slider-dot.active {
  background: #fff;
  border-color: #fff;
}

/* Когда активен слайд 1 или 4 — точки тёмные */
.hero-slider[data-active-slide="0"] .slider-dot,
.hero-slider[data-active-slide="3"] .slider-dot {
  border-color: rgba(30, 42, 74, 0.35);
  background: rgba(30, 42, 74, 0.15);
}

.hero-slider[data-active-slide="0"] .slider-dot:hover,
.hero-slider[data-active-slide="3"] .slider-dot:hover {
  border-color: var(--brand-blue);
  background: rgba(30, 42, 74, 0.25);
}

.hero-slider[data-active-slide="0"] .slider-dot.active,
.hero-slider[data-active-slide="3"] .slider-dot.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* ===== Блок "Наши услуги" (референс) ===== */
.services-section {
  background: #ffffff;
}

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

.services-title {
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-family: var(--font-main);
  font-weight: 800;
  color: rgba(30, 42, 74, 0.86);
  letter-spacing: -0.03em;
  font-size: var(--section-title-size);
  line-height: var(--section-title-lh);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: clamp(220px, 14vw, 280px);
}

/* На десктопе ограничиваем заголовок шириной 1-й карточки (8/12 сетки) */
@media (min-width: 1101px) {
  .services-title {
    max-width: calc((100% - (16px * 11)) / 12 * 8 + (16px * 7));
    /* Фиксируем ровно 2 строки (перенос только по <br>) */
    white-space: nowrap;
  }
}

.service-card {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:focus-visible {
  outline: 3px solid rgba(30, 42, 74, 0.65);
  outline-offset: 4px;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.service-card__film {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 42, 74, 0.22) 0%, rgba(30, 42, 74, 0.7) 100%),
    rgba(30, 42, 74, 0.48);
  transition: background 0.25s ease;
}

.service-card:hover .service-card__film {
  background:
    linear-gradient(180deg, rgba(30, 42, 74, 0.26) 0%, rgba(30, 42, 74, 0.78) 100%),
    rgba(30, 42, 74, 0.58);
}

.service-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px 18px;
  gap: 14px;
  z-index: 2;
}

.service-card__title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.service-card__price {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease 0s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}

.service-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease 0.08s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, background 0.2s ease;
}

.service-card:hover .service-card__price,
.service-card:hover .service-card__more,
.service-card:focus-visible .service-card__price,
.service-card:focus-visible .service-card__more {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover .service-card__more {
  background: rgba(255, 255, 255, 0.12);
}

/* Сетка 6 карточек (как на референсе) */
.service-card--debt { grid-column: 1 / span 8; grid-row: 1; }
.service-card--dispute { grid-column: 9 / span 4; grid-row: 1; }
.service-card--checks { grid-column: 1 / span 4; grid-row: 2 / span 2; }
.service-card--business { grid-column: 5 / span 8; grid-row: 2; }
.service-card--subscription { grid-column: 5 / span 4; grid-row: 3; }
.service-card--deals { grid-column: 9 / span 4; grid-row: 3; }

@media (max-width: 1100px) {
  .services-title {
    white-space: normal;
    max-width: 100%;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .service-card--debt,
  .service-card--dispute,
  .service-card--checks,
  .service-card--business,
  .service-card--subscription,
  .service-card--deals {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }
}

/* ===== Модальное окно услуги ===== */
.service-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.32s;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-modal.is-open .service-modal__backdrop {
  opacity: 1;
}

.service-modal__dialog {
  position: relative;
  width: min(1040px, calc(100vw - 32px));
  margin: clamp(20px, 5vh, 60px) auto;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-modal.is-open .service-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.service-modal__left > *,
.service-modal__right > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-modal.is-open .service-modal__left > *,
.service-modal.is-open .service-modal__right > * {
  opacity: 1;
  transform: translateY(0);
}

.service-modal.is-open .service-modal__left > :nth-child(1) { transition-delay: 80ms; }
.service-modal.is-open .service-modal__left > :nth-child(2) { transition-delay: 120ms; }
.service-modal.is-open .service-modal__left > :nth-child(3) { transition-delay: 160ms; }
.service-modal.is-open .service-modal__left > :nth-child(4) { transition-delay: 200ms; }
.service-modal.is-open .service-modal__right > :nth-child(1) { transition-delay: 160ms; }
.service-modal.is-open .service-modal__right > :nth-child(2) { transition-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  .service-modal,
  .service-modal__backdrop,
  .service-modal__dialog,
  .service-modal__left > *,
  .service-modal__right > * {
    transition: none !important;
    transform: none !important;
  }
}

.service-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.85);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}

.service-modal__close:hover {
  background: rgba(15, 23, 42, 0.1);
}

.service-modal__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  min-height: min(72vh, 640px);
}

.service-modal__left {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-modal__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.service-modal__title {
  margin: 0;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.service-modal__text {
  color: rgba(30, 42, 74, 0.86);
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 65ch;
}

.service-modal__bullets {
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(30, 42, 74, 0.82);
  display: grid;
  gap: 8px;
  font-size: 1.18rem;
  line-height: 1.6;
}

.service-modal__right {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-modal__form-title {
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  font-size: 1.35rem;
}

.service-modal__form {
  display: grid;
  gap: 12px;
}

.service-modal__field {
  display: grid;
  gap: 6px;
}

.service-modal__label {
  font-size: 0.92rem;
  color: rgba(30, 42, 74, 0.72);
}

.service-modal__input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-modal__input:focus {
  border-color: rgba(30, 42, 74, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 42, 74, 0.12);
}

.service-modal__input.is-invalid {
  border-color: rgba(180, 35, 24, 0.75);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
}

.service-modal__input.is-valid {
  border-color: rgba(18, 115, 56, 0.55);
  box-shadow: 0 0 0 4px rgba(18, 115, 56, 0.12);
}

.service-modal__submit {
  height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 2px solid var(--cta-bg);
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.service-modal__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: rgba(30, 42, 74, 0.78);
  margin-top: 2px;
  cursor: pointer;
}

.service-modal__consent-input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.service-modal__consent-text {
  line-height: 1.4;
}

.service-modal__consent-link {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-modal__consent-link:hover {
  color: #243052;
}

.service-modal__submit:hover {
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
  filter: none;
  transform: translateY(-1px);
}

.service-modal__note {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: rgba(30, 42, 74, 0.6);
}

@media (max-width: 900px) {
  .service-modal__grid {
    grid-template-columns: 1fr;
  }
  .service-modal__right {
    border-left: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
  .service-modal__image {
    height: 200px;
  }
}

/* ===== Раздел «Юридические услуги: деньги бизнес споры» ===== */
.legal-section {
  background: #ffffff;
}

.legal-section__title {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.legal-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.legal-tabs {
  display: inline-flex;
  gap: 0;
  padding: 8px;
  border-radius: 18px;
  background: rgba(30, 42, 74, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.legal-tab {
  border: none;
  background: transparent;
  padding: 14px 26px;
  border-radius: 14px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  letter-spacing: -0.01em;
  color: rgba(30, 42, 74, 0.88);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.legal-tab:hover {
  background: rgba(30, 42, 74, 0.12);
  color: var(--brand-blue);
  transform: translateY(-1px);
}

.legal-tab.is-active {
  background: var(--brand-blue);
  color: #fff;
}

.legal-cta {
  padding: 14px 28px;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  border-color: var(--cta-bg);
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.legal-cta:hover {
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
  color: var(--cta-fg);
}

.legal-panels {
  position: relative;
}

.legal-panel {
  display: none;
}

.legal-panel.is-active {
  display: block;
}

.legal-panel[hidden] {
  display: none !important;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.legal-panel.is-hiding .legal-grid {
  opacity: 0;
  transform: translateY(14px);
}

.legal-panel.is-showing .legal-grid {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.legal-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: #0f172a;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 1 / 1;
  min-height: 260px;
}

.legal-card:hover,
.legal-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.legal-card:focus-visible {
  outline: 3px solid rgba(30, 42, 74, 0.65);
  outline-offset: 4px;
}

.legal-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.legal-card__film {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 42, 74, 0.22) 0%, rgba(30, 42, 74, 0.78) 100%),
    rgba(30, 42, 74, 0.48);
  transition: background 0.25s ease;
}

.legal-card:hover .legal-card__film,
.legal-card:focus-visible .legal-card__film {
  background:
    linear-gradient(180deg, rgba(30, 42, 74, 0.26) 0%, rgba(30, 42, 74, 0.82) 100%),
    rgba(30, 42, 74, 0.58);
}

.legal-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  gap: 10px;
  z-index: 2;
}

.legal-card__title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.02em;
  font-size: clamp(1.2rem, 1.25vw, 1.55rem);
  line-height: 1.15;
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.55);
}

.legal-card__price {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.55);
}

.legal-card__desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.18rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.legal-card:hover .legal-card__desc,
.legal-card:focus-visible .legal-card__desc {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-section__title {
    white-space: normal;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .legal-top {
    gap: 16px;
  }
  .legal-tab {
    padding: 12px 20px;
    font-size: 1.15rem;
  }
  .legal-cta {
    padding: 12px 22px;
    font-size: 1.15rem;
  }
}

/* ===== Модалка «Получить консультацию» ===== */
.consult-modal .service-modal__dialog {
  max-width: min(720px, calc(100vw - 32px));
}

.consult-modal__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: min(60vh, 480px);
}

.consult-modal__image-wrap {
  position: relative;
  overflow: hidden;
}

.consult-modal__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.consult-modal__right {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.consult-modal .service-modal__title {
  margin: 0 0 8px;
}

.consult-modal__right > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.consult-modal.is-open .consult-modal__right > * {
  opacity: 1;
  transform: translateY(0);
}

.consult-modal.is-open .consult-modal__right > *:nth-child(1) { transition-delay: 80ms; }
.consult-modal.is-open .consult-modal__right > *:nth-child(2) { transition-delay: 140ms; }
.consult-modal.is-open .consult-modal__right > *:nth-child(3) { transition-delay: 200ms; }

@media (max-width: 700px) {
  .consult-modal__layout {
    grid-template-columns: 1fr;
  }
  .consult-modal__image-wrap {
    height: 200px;
  }
  .consult-modal__image {
    position: relative;
    height: 100%;
  }
}

/* ===== Раздел «Споры которые решены» (кейсы) ===== */
.cases-section {
  position: relative;
  background: radial-gradient(1200px 600px at 15% 10%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 55%),
              radial-gradient(900px 520px at 85% 40%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 60%),
              linear-gradient(180deg, #1e2a4a 0%, #17213a 100%);
  overflow: hidden;
}

.cases-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 14px
    );
  opacity: 0.22;
  pointer-events: none;
}

.cases-section::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.cases-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.cases-title {
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cases-title {
    white-space: normal;
  }
}

.cases-viewport {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  /* Колонки: кейс | как добились | результат (с отступом от кнопки) | кнопка фикс */
  --cases-cols: minmax(200px, 1fr) minmax(0, 1.8fr) minmax(100px, 0.65fr) minmax(140px, 140px);
}

.cases-table-head {
  display: grid;
  grid-template-columns: var(--cases-cols);
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1rem, 1.1vw, 1.18rem);
}

.cases-table-head__col--result {
  text-align: center;
}

.cases-table-head__col--action {
  width: 140px;
}

.cases-track {
  display: flex;
  width: 100%;
  transform: translateX(0%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cases-page {
  width: 100%;
  flex: 0 0 100%;
  padding: 0;
}

.cases-table {
  display: grid;
}

.case-row {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: var(--cases-cols);
  grid-template-areas: "title note result more";
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.25s ease, transform 0.25s ease;
}

.case-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.case-row:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.case-row__title,
.case-row__note {
  min-width: 0;
  overflow-wrap: anywhere;
}

.case-row__result {
  min-width: 0;
}

.case-row__title {
  grid-area: title;
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-row__note {
  grid-area: note;
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
}

.case-row__result {
  grid-area: result;
  display: block;
  justify-self: center;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  padding-right: 0;
}

.case-row__more {
  grid-area: more;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #ffffff;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.case-row:hover .case-row__more {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.cases-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.cases-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cases-nav__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

.cases-dots {
  display: inline-flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.cases-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cases-dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  .cases-table-head,
  .case-row {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 10px;
  }
  .cases-table-head__col--result {
    display: none;
  }
  .cases-table-head__col--action {
    display: none;
  }
  .case-row__result {
    justify-self: start;
    opacity: 0.92;
  }
  .case-row__more {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .cases-table-head {
    display: none;
  }
}

/* ===== Раздел «Наши эксперты» ===== */
.experts-section {
  background: #ffffff;
}

.experts-title {
  margin: 0 0 clamp(22px, 3vw, 34px);
  color: rgba(30, 42, 74, 0.86);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .experts-title {
    white-space: normal;
  }
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: clamp(260px, 17vw, 340px);
}

.expert-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  outline: none;
}

.expert-card:hover,
.expert-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.expert-card:focus-visible {
  outline: 3px solid rgba(30, 42, 74, 0.65);
  outline-offset: 4px;
}

.expert-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.expert-card__film {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 42, 74, 0) 0%,
    rgba(30, 42, 74, 0) 40%,
    rgba(30, 42, 74, 0.5) 65%,
    rgba(30, 42, 74, 0.82) 100%
  );
  transition: background 0.25s ease;
}

.expert-card:hover .expert-card__film,
.expert-card:focus-visible .expert-card__film {
  background: linear-gradient(
    180deg,
    rgba(30, 42, 74, 0) 0%,
    rgba(30, 42, 74, 0) 40%,
    rgba(30, 42, 74, 0.55) 65%,
    rgba(30, 42, 74, 0.9) 100%
  );
}

.expert-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  gap: 10px;
  z-index: 2;
}

.expert-card__name {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.02em;
  font-size: clamp(1.18rem, 1.25vw, 1.55rem);
  line-height: 1.15;
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.55);
}

.expert-card__meta {
  display: grid;
  gap: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.expert-card:hover .expert-card__meta,
.expert-card:focus-visible .expert-card__meta {
  opacity: 1;
  transform: translateY(0);
}

.expert-card__role {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.55);
}

.expert-card__skills {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.06rem;
  line-height: 1.35;
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.55);
}

/* Сетка: левая карточка уже и выше, правый столбец шире — пропорциональнее */
.expert-card--lead { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.expert-card--ceo { grid-column: 7 / span 6; grid-row: 1; }
.expert-card--partner { grid-column: 7 / span 3; grid-row: 2; }
.expert-card--senior { grid-column: 10 / span 3; grid-row: 2; }

@media (max-width: 1100px) {
  .experts-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(240px, 28vw, 280px);
  }
  .expert-card--lead,
  .expert-card--ceo,
  .expert-card--partner,
  .expert-card--senior {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .experts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Раздел «Оставить заявку» (форма + контакты) ===== */
.apply-section {
  position: relative;
  background: radial-gradient(1200px 600px at 15% 10%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 55%),
              radial-gradient(900px 520px at 85% 40%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 60%),
              linear-gradient(180deg, #1e2a4a 0%, #17213a 100%);
  overflow: hidden;
}

.apply-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 14px
    );
  opacity: 0.22;
  pointer-events: none;
}

.apply-section::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.apply-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.apply-title {
  margin: 0 0 clamp(32px, 4vw, 48px);
  font-family: var(--font-main);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.03em;
  /* Крупный шрифт, подобран так, чтобы две строки (с <br>) умещались в контейнер */
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.25;
}

.apply-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.apply-form-wrap {
  min-width: 0;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apply-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apply-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.apply-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.apply-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.field-error {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(31, 41, 55, 0.74);
}

.field-error.is-error {
  color: #b42318;
}

.apply-section .field-error {
  color: rgba(255, 255, 255, 0.88);
}

.apply-section .field-error.is-error {
  color: #ffb4ab;
}

.apply-input.is-invalid {
  border-color: rgba(255, 180, 171, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 180, 171, 0.16);
}

.apply-input.is-valid {
  border-color: rgba(134, 239, 172, 0.7);
  box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.14);
}

.apply-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 4px;
}

.apply-submit {
  flex-shrink: 0;
  height: var(--btn-height);
  padding: 0 28px;
  border: none;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--cta-inverse-fg);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.apply-submit:hover {
  background: #fff;
  transform: translateY(-1px);
}

.apply-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 320px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.apply-consent-input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.apply-consent-text {
  line-height: 1.4;
}

.apply-contact {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.apply-contact-text {
  margin: 0 0 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  max-width: 65ch;
}

.apply-phone {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.apply-phone:hover {
  opacity: 0.9;
}

.apply-messengers {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.apply-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.apply-messenger:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.apply-messenger-icon {
  width: 24px;
  height: 24px;
}

.apply-call-btn {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apply-call-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.apply-call-btn-icon {
  display: block;
  line-height: 0;
}

@media (max-width: 900px) {
  .apply-layout {
    grid-template-columns: 1fr;
  }
  .apply-contact {
    padding-right: 100px;
  }
  .apply-call-btn {
    right: 20px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 640px) {
  .apply-title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }
  .apply-row {
    flex-direction: column;
  }
  .apply-consent {
    max-width: none;
  }
}

/* ===== Подвал сайта ===== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #1e2a4a 0%, #17213a 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 0 0 clamp(40px, 5vw, 56px);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, rgba(255, 255, 255, 0) 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, rgba(255, 255, 255, 0) 1px);
  background-size: 220px 100%, 100% 220px;
  opacity: 0.12;
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle at 55% 30%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: clamp(34px, 4vw, 56px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.85rem, 2.6vw, 2.85rem);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  color: #fff;
  opacity: 0.9;
}

.footer-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding-left: 6px;
  /* Мягкая маска, чтобы текст "заходил" к логотипу аккуратно */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.footer-ticker::before {
  content: '';
  position: absolute;
  left: -10px;
  top: -40px;
  bottom: -40px;
  width: 220px;
  background:
    radial-gradient(circle at 30% 50%, rgba(88, 140, 255, 0.22) 0%, rgba(88, 140, 255, 0) 60%),
    linear-gradient(90deg, rgba(30, 42, 74, 0.95) 0%, rgba(30, 42, 74, 0.65) 45%, rgba(30, 42, 74, 0) 100%);
  pointer-events: none;
}

.footer-ticker__track {
  display: inline-flex;
  animation: footer-ticker 16s linear infinite;
}

.footer-ticker__text {
  display: inline-block;
  padding-right: 2.5em;
  font-weight: 800;
  /* такой же стиль, как у логотипа */
  font-size: clamp(1.85rem, 2.6vw, 2.85rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-feature-settings: "tnum" 1;
  text-shadow:
    0 0 22px rgba(88, 140, 255, 0.18),
    0 0 44px rgba(88, 140, 255, 0.12);
}

@keyframes footer-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-ticker__track {
    animation: none;
  }
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) 2.85fr;
  gap: clamp(22px, 3vw, 36px);
  padding-top: clamp(28px, 4vw, 44px);
}

.footer-contact {
  padding-top: 6px;
}

.footer-contact__phone {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-feature-settings: "tnum" 1;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.footer-contact__phone:hover {
  opacity: 0.9;
}

.footer-contact__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-contact__addr,
.footer-contact__hours {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 65ch;
}

.footer-contact__mail {
  display: inline-block;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.footer-contact__mail:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col {
  padding-left: clamp(18px, 2.4vw, 28px);
  padding-right: clamp(18px, 2.4vw, 28px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col__title {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.footer-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list li {
  margin-bottom: 8px;
}

.footer-col__list a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-col__list a:hover {
  color: #fff;
}

.footer-col__list a:focus-visible {
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col {
    border-right: none;
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }
  .footer-links {
    gap: 28px;
    border-left: none;
  }
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-ticker {
    width: 100%;
  }
  .footer-ticker__text {
    font-size: clamp(1.4rem, 7vw, 2.2rem);
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== Sticky CTA (mobile) ===== */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 180;
  display: none;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.sticky-cta.is-visible {
  display: flex;
  pointer-events: auto;
}

.sticky-cta__btn {
  flex: 1;
  height: 54px;
  border-radius: 14px;
  border: 2px solid var(--cta-bg);
  background: var(--cta-bg);
  color: var(--cta-fg);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.24);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-cta__btn:hover {
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
  transform: translateY(-1px);
}

.sticky-cta__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.sticky-cta__close {
  width: 44px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.78);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sticky-cta__close:hover {
  background: #fff;
  transform: translateY(-1px);
}

@media (min-width: 901px) {
  .sticky-cta.is-visible {
    display: none;
  }
  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 170;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.8);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #fff;
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(30, 42, 74, 0.35);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .back-to-top {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
    transform: none;
  }

  .hero-slider-right-layer-1,
  .hero-slider-right-layer-2 {
    will-change: auto;
  }
}

/* ===== Уведомления об отправке заявки ===== */
#serviceModalForm,
#caseModalForm,
#consultModalForm,
#applyForm {
  position: relative;
}

.lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 400;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.lead-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lead-toast--error {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.2);
  color: #7f1d1d;
}

@media (max-width: 900px) {
  .lead-toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* ===== SEO: полный текст для краулеров / аудиторов, не влияет на макет главной ===== */
.seo-index-appendix-root {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Видимое приложение в crawler.html (nginx отдаёт ботам по UA) */
.seo-crawler-appendix-root {
  max-width: var(--container-max);
  margin: 2rem auto 0;
  padding: 0 24px 2rem;
  font-family: var(--font-main);
}

.seo-crawler-appendix {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 42, 74, 0.1);
}

.seo-crawler-appendix__h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(30, 42, 74, 0.88);
}

.seo-crawler-appendix__h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(30, 42, 74, 0.85);
}

.seo-crawler-appendix__ul {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(30, 42, 74, 0.82);
}

.seo-crawler-appendix__ul ul {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.2rem;
}
