@font-face {
  font-family: "Helios";
  src: url("fonts/HELIOSLIGHTC.OTF") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helios";
  src: url("fonts/HELIOSEXTC.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helios";
  src: url("fonts/HELIOSEXTC-ITALIC.OTF") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helios";
  src: url("fonts/HELIOSEXTC-BOLD.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helios";
  src: url("fonts/HELIOSEXTC-BOLDITALIC.OTF") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
/*  outline: 1px solid red; */
}

:root {
  --bg: #ffffff;
  --text-main: #3b2a23;
  --text-muted: #6b7280;
  --accent: #556955;
  --accent-dark: #445244;
  --shell-width: 1200px;
  --transition-fast: 220ms ease-out;
  --transition-med: 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius-lg: 999px;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Helios", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Roboto", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: filter 260ms ease-out, transform 260ms ease-out;
}

body.overlay-open {
  overflow: hidden;
}

body.overlay-open .page {
  filter: blur(8px);
  transform: scale(0.99);
}

.hidden {
  display: none !important;
}

/* контейнер */

.shell {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ХЕДЕР */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  transform: translateY(-100%);
  opacity: 0;
  background: #FFF;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 600ms ease-out;
}

body.header-visible .site-header {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
}

.header-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-main);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  transition: transform 180ms ease-out;
}

.header-link:hover::after {
  transform: scaleX(1);
}

.header-phone {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.header-logo img {
  height: 60px;
  width: auto;
}

/* бургер только на мобиле */

.burger {
  display: none;
  width: 36px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.burger img {
  display: block;
  width: 24px;
  height: auto;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 64px;
}

/* лого */

.hero-logo-wrapper {
  position: relative;
  width: 100%;
  max-width: 46%;
  aspect-ratio: auto;
}

.hero-logo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* финальный логотип */

.logo-full {
  display: block;
  width: 100%;
  height: auto;
  position: static;
  margin: 0;
  opacity: 1;
}

/* когда включаем слияние */

body.logo-merged .logo-full {
  animation: logoFullFadeIn 700ms ease-out forwards;
}

body.logo-merged .logo-part {
  animation: logoPartFadeOut 700ms ease-out forwards;
}

/* ТЕКСТ ГЕРОЯ */

.hero-content {
  max-width: 54%;
}

.hero-title {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.1;
  margin: 0 0 28px;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  justify-content: center;
}

/* последовательное появление текста */

.hero-title,
.hero-subtitle,
.hero-cta {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

body.hero-ready .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}

body.hero-ready .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 260ms;
}

body.hero-ready .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 440ms;
}

/* кнопка */

.btn-primary {
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 24px 35px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

/* scroll indicator */

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow {
  display: block;
  width: 18px;
  height: 30px;
  border-radius: 999px;
  position: relative;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 15px;
  height: 15px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}

/* появляется после хедера */

body.header-visible .scroll-indicator {
  opacity: 1;
  animation: scrollPulse 1400ms ease-in-out infinite 360ms;
}

/* СЕКЦИИ НИЖЕ */

.section {
  padding: 96px 0;
}

/* видео */

.video-wrapper {
  max-width: var(--shell-width);
  margin: 0 auto;
}

.video-poster {
  position: relative;
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #050816;
  cursor: pointer;
}

.video-poster::before {
  /* для ровного 16:9 */
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-poster-image,
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 140ms ease-out, background 140ms ease-out;
}

.video-play-btn:hover {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.7);
}

/* финальный блок */

.final-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.final-text-group {
  max-width: 560px;
}

.final-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.2vw, 40px);
}

.final-subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  line-height: 1.6;
}

.final-btn {
  min-width: 220px;
}

/* FOOTER */

.site-footer {
  margin-top: auto;
  padding: 32px 0 40px;
  opacity: 0;
  transition: opacity 500ms ease-out;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 16px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* анимации появления блоков при скролле */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.2);
  transform-origin: center;
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ДОП. НАПРАВЛЕНИЯ ДЛЯ reveal-on-scroll */

.reveal-on-scroll.reveal-left {
  transform: translateX(-32px);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(32px);
}

/* когда элемент в зоне видимости — мягко встаёт на место */

.reveal-on-scroll.reveal-left.in-view,
.reveal-on-scroll.reveal-right.in-view {
  transform: translateX(0);
}

/* футер: только мягкий фейд без движений */

.site-footer.footer-visible {
  opacity: 1;
}

/* KEYFRAMES */

/* слева: подлетает, удар, сильный отскок, мягкий второй "поцелуй" и фиксация */
@keyframes logoPartInLeft {
  0% {
    transform: translateX(-140%);
  }
  58% {                /* почти долетел, ещё до удара */
    transform: translateX(-6px);
  }
  70% {                /* первый контакт + лёгкое сжатие */
    transform: translateX(3px) scaleX(0.94);
  }
  80% {                /* первый отскок наружу */
    transform: translateX(-5px) scaleX(1.02);
  }
  90% {                /* второй, уже мягкий возврат к центру */
    transform: translateX(2px) scaleX(0.99);
  }
  100% {               /* финальная фиксация */
    transform: translateX(0) scaleX(1);
  }
}

/* справа: зеркало — полностью симметрично левому */
@keyframes logoPartInRight {
  0% {
    transform: translateX(140%);
  }
  58% {                /* почти долетел, ещё до удара */
    transform: translateX(6px);
  }
  70% {                /* первый контакт + лёгкое сжатие */
    transform: translateX(-3px) scaleX(0.94);
  }
  80% {                /* первый отскок наружу */
    transform: translateX(5px) scaleX(1.02);
  }
  90% {                /* второй мягкий возврат к центру */
    transform: translateX(-2px) scaleX(0.99);
  }
  100% {               /* финальная фиксация */
    transform: translateX(0) scaleX(1);
  }
}

/* плавное переключение в финальный логотип */

@keyframes logoFullFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes logoPartFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* пульс стрелки */

@keyframes scrollPulse {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}

/* ОБЩИЕ ЭЛЕМЕНТЫ СЕКЦИЙ */

.section-head {
  margin-bottom: 50px;
  max-width: 720px;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head--light {
  color: #e5e7eb;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.2;
}

.section-text {
  margin: 0 0 12px;
  color: var(--text-main);
  line-height: 1.7;
}

.section-muted {
  background-color: #445944;
  background-image: url("bg-logo.png");
  background-repeat: repeat;
  background-size: 100%;
  background-position: center;
}

.section-muted h2, .section-muted p {
  color: #cebdad;
}

.section-muted h2 span, .section-muted p span {
  color: #a06650;
}

.section-dark {
  background: #ffffff;
  color: var(--text-main);
}

/* ДВЕ КОЛОНКИ */

.two-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.two-col--reverse {
  flex-direction: column;
}

.two-col .col {
  flex: 1;
  min-width: 0;
}

/* КАРТОЧКИ / ЛИСТЫ */

.card {
  border-radius: 24px;
  padding: 24px 24px 22px;
  background: #ffffff;
}

.card--shadow {
  box-shadow: 0 18px 40px rgba(59, 42, 35, 0.14);
}

.card-title {
  margin: 0 0 16px;
  font-size: 18px;
}

.btn-block {
  width: 100%;
  margin-top: 20px;
}

.law-card {
  border-radius: 24px;
  background-color: #ffffff;
  background-image: url("zakon.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  min-height: 340px;
}

/* обычный список без маркеров */

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

/* список с чек-маркерами */

.list-check li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* GRID «какие долги» */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  justify-items: center;
}

.feature-card {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  padding: 24px 24px 22px;
  background: #cebdad;
  box-shadow: 0 14px 32px rgba(59, 42, 35, 0.12);
}

.feature-card p {
  color: #3b2a23;
}

.feature-icon-wrap {
  margin-bottom: 14px;
}

.feature-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* БЛОК ДВУХ СЦЕНАРИЕВ */

.path-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.path-column {
  border-radius: 24px;
  padding: 28px 24px 24px;
  backdrop-filter: blur(8px);
}

.path-column--bad {
  border: 2px solid rgba(59, 42, 35, 0.35);
}

.path-column--good {
  border: 2px solid var(--accent);
}

.path-title {
  margin: 0 0 18px;
  font-size: 18px;
}

.list-bad li,
.list-good li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.list-bad li::before,
.list-good li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.list-bad li::before {
  background: #3b2a23;
}

.list-good li::before {
  background: var(--accent);
}

.section-dark .btn-primary.btn-block {
  margin-top: 18px;
}

/* РИСКИ САМОСТОЯТЕЛЬНОГО БАНКРОТСТВА */

.risk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.risk-card {
  border-radius: 20px;
  padding: 20px 20px 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(59, 42, 35, 0.12);
}

.section-muted .risk-card {
  background: #ffffff;
}

.risk-title {
  margin: 0 0 10px;
  font-size: 16px;
}

.risk-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* СТЕПЫ / ПРОЦЕСС */

.steps {
  border-radius: 24px;
  padding: 22px 22px 20px;
  background: #cebdad;
  box-shadow: 0 18px 40px rgba(59, 42, 35, 0.16);
}

.steps-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.steps-list {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.steps-list li + li {
  margin-top: 6px;
}

.steps-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 18px;
}

/* === Оверлей контактной формы === */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;            /* воздух сверху/снизу и по бокам */
  opacity: 0;
  pointer-events: none;
  overflow-y: hidden;              /* скролл по всему блюру */
  transition: opacity 260ms ease-out;
}

.overlay-bg {
  position: fixed;
  inset: 0;
  background-color: rgba(59, 41, 35, 0.5);
  background-image: url("bg-logo.png");
  background-repeat: repeat;
  background-size: 100%;
  background-position: center;
  backdrop-filter: blur(10px);
  transition: opacity 260ms ease-out;
  pointer-events: auto;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay.show .overlay-bg {
  opacity: 1;
}

/* Панель формы */

.form-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 24px;
  background: #ffffff;
  padding: 32px 28px 28px;
  box-shadow: 0 26px 60px rgba(59, 42, 35, 0.22);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 260ms ease-out;
  margin: 0 16px;
  max-height: calc(100vh - 80px);  /* белая панель всегда в кадре */
  overflow-y: auto; 
}

.overlay.show .form-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Крестик */

.form-close {
  position: absolute;
  top: 16px;
  right: 15px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  transition: transform 140ms ease-out, color 140ms ease-out;
  z-index: 10;
  background: #FFF;
  border-radius: 100px;
}

.form-close:hover {
  transform: scale(1.05);
  color: #4b5563;
}

/* Контент формы */

.form-inner h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.form-inner p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #6b7280;
}

.form-field input[type="text"],
.form-field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.form-field input[type="text"]:focus,
.form-field input[type="tel"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 255, 0.25);
}

.form-field input.error {
  border-color: #ef4444;
}

/* Кнопка отправки внутри модалки */

.form-submit {
  margin-top: 8px;
}

/* Альтернатива с Telegram */

.form-alt {
  padding-top: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
}

.form-alt a {
  color: var(--accent);
  text-decoration: none;
}

.form-alt a:hover {
  text-decoration: underline;
}

/* Сообщение об успехе */

.form-success {
  text-align: left;
}

.form-success h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.form-success p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* === Модалка "О компании" / mobile-menu === */

.form-panel--about {
  max-width: min(100%, var(--shell-width));
  max-height: calc(100vh - 32px);
  padding: 32px 28px 28px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.about-inner {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.about-title {
  margin: 0 0 12px;
  font-size: 22px;
}

.about-tagline {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-section {
  margin-bottom: 18px;
}

.about-section h3,
.about-section h4 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.about-section p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
}

.about-link {
  color: var(--accent);
  text-decoration: none;
}

.about-link:hover {
  text-decoration: underline;
}

.about-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-btn {
  max-width: 300px;
}

.about-btn--ghost {
  background: #f3f4f6;
  color: var(--text-main);
  box-shadow: none;
}

.about-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.about-photo {
  flex: 0 0 260px;
  border-radius: 20px;
  min-width: 30vw;
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-main {
  flex: 1;
  min-width: 0;
}

.about-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.about-title {
  margin: 0 0 10px;
  font-size: 24px;
}

.about-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-founder {
  margin-bottom: 25px;
}

.about-founder-title {
  margin: 0 0 10px;
  font-size: 16px;
}

.about-founder-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-founder-list li + li {
  margin-top: 4px;
}

/* кнопки внизу визитки */
.about-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 24px 35px;
  border-radius: 999px;
  border: none;
  font: inherit;
  cursor: pointer;
}

.about-btn--primary {
  /* цвет и тень берём из .btn-primary, тут только подгон ширины/отступов */
}

.about-btn--ghost {
  background: #f3f4f6;
  color: var(--text-main);
  box-shadow: none;
}

/* Пошаговая анимация элементов внутри модалки "О компании" */
.about-inner > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}

.overlay.show .form-panel--about .about-inner > * {
  opacity: 1;
  transform: translateY(0);
}

.overlay.show .form-panel--about .about-inner > *:nth-child(1) { transition-delay: 60ms; }
.overlay.show .form-panel--about .about-inner > *:nth-child(2) { transition-delay: 120ms; }
.overlay.show .form-panel--about .about-inner > *:nth-child(3) { transition-delay: 180ms; }
.overlay.show .form-panel--about .about-inner > *:nth-child(4) { transition-delay: 240ms; }
.overlay.show .form-panel--about .about-inner > *:nth-child(5) { transition-delay: 300ms; }

/* Центровка ключевых заголовков в стиле лендинга */
#why .section-title,
#risks .section-kicker,
#risks .section-title,
#process .section-kicker,
#process .section-title {
  text-align: center;
}

/* КВИЗ */

.quiz {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-header {
  margin-bottom: 8px;
}

.quiz-progress-label {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quiz-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.quiz-body {
  position: relative;
  min-height: 220px;
}

.quiz-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition:
    opacity var(--transition-med),
    transform var(--transition-med);
}

.quiz-step--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.quiz-question {
  margin: 0 0 8px;
  font-size: 20px;
}

.quiz-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-option {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 10px 16px;
  background: #f9fafb;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform 120ms ease-out,
    box-shadow 120ms ease-out;
}

.quiz-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.quiz-option--selected {
  background: #cebdad;
  border-color: #b69c84;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.quiz-footer--single {
  justify-content: center;
  margin-top: 25px;
}

.quiz-footer--single .quiz-nav--next {
  min-width: 60%;
}

/* secondary-кнопка "Назад" */

.btn-secondary {
  border-radius: var(--radius-lg);
  border: 1px solid #d1d5db;
  padding: 24px 30px;
  background: #f3f4f6;
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* disabled-состояние для Next */

.quiz-nav--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ступени формы */

.form-step--hidden {
  display: none;
}

.hero-title,
.section-title,
.path-title,
.steps-title,
.risk-title,
.feature-title,
.about-title {
  font-family: "Helios", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Roboto", "Segoe UI", sans-serif;
  font-weight: 700;
}

/* АДАПТИВ */

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .two-col {
    flex-direction: row;
    align-items: flex-start;
  }

  .two-col--reverse {
    flex-direction: row-reverse;
  }

  .path-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .law-card {
    min-height: 340px;
  }
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-brand {
    font-size: 12px;
  }

  .burger {
    display: inline-flex;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 56px;
    align-items: flex-start;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 24px;
  }

  .hero-logo-wrapper {
    width: 100%;
    max-width: 460px;
    order: 1;
    display: flex;
    justify-content: center; 
  }

  .hero-content {
    order: 2;
    margin-top: 8px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-title {
    line-height: 1.2;
  }

  .hero-subtitle {
    line-height: 1.5;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .logo-full,
  .logo-part {
    max-width: 88%;
  }

  .scroll-indicator {
    bottom: 24px;
  }

  .section {
    padding: 72px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: stretch;
  }

  .feature-card {
    max-width: 100%;
  }

  .form-panel--about {
    margin: 0 12px;
  }

  .about-layout {
    flex-direction: column;
  }

  .about-photo {
    flex: 0 0 auto;
    min-height: auto;
    margin-top: 0px;
    margin-bottom: 16px;
  }

  .about-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .overlay {
    padding: 24px 12px;
  }

  .form-panel--about {
    margin: 0 8px;
    padding: 24px 20px 24px;
  }

  .quiz-body {
    min-height: 260px;
  }

  .quiz-options {
    flex-direction: column;
  }

  .quiz-option {
    width: 100%;
    text-align: center;
  }

  .quiz-footer {
    flex-direction: column-reverse;
  }

  .overlay-bg {
    background-size: 200%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Убираем системный скролл внутри модалки "О компании" */
.form-panel--about {
  scrollbar-width: none; /* Firefox */
}

.form-panel--about::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
