landing-brand@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: none;
/*  outline: 1px solid red; */
}

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

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: 5px 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: 5px;
  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;
}

.header-assistants {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-assistant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  transition:
    transform 120ms ease-out,
    box-shadow 120ms ease-out,
    background 120ms ease-out;
}

.header-assistant-link:hover {
  transform: translateY(-1px);
}

.header-assistant-icon {
  display: block;
  width: 25px;
  height: 25px;
}

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

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

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

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 75px 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%;
  padding-right: 40px;
}

.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;
  gap: 40px;
  flex-wrap: wrap;
}

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

.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: 21px 32px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.btn-text-accent {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-text-accent:hover {
  text-decoration: underline;
}

/* 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: 5px;
  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: 5px;
  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: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.final-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.final-col--text {
  max-width: 440px;
}

.final-col--assistant {
  align-items: stretch;
}

/* чтобы заголовок/текст были слева, а не по центру */
.final-col--text .final-title,
.final-col--text .final-subtitle {
  text-align: left;
}

/* кнопка под текстом с небольшим отступом */
.final-btn {
  min-width: 0;
  margin-top: 20px;
}

.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;
}

.assistants-preview {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.assistant-mini-card {
  width: 100%;
  border-radius: 5px;
  padding: 16px 18px 14px;
  background: #f5efe7;
  box-shadow: 0 14px 32px rgba(59, 42, 35, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assistant-mini-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-mini-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
}

.assistant-mini-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.assistant-mini-handle {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.assistant-mini-link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.assistant-mini-link:hover {
  text-decoration: underline;
}

/* staged reveal inside AI overlay */
.assistants-heading{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}

.assistants-cards .assistant-card{
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 320ms ease-out, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

#assistantsOverlay.show .assistants-heading{
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}

#assistantsOverlay.show .assistant-card{
  opacity: 1;
  transform: translateY(0) scale(1);
}

#assistantsOverlay.show .assistant-card:nth-child(1){ transition-delay: 260ms; }
#assistantsOverlay.show .assistant-card:nth-child(2){ transition-delay: 340ms; }

/* 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-pattern {
  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: 5px;
  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: 5px;
  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: 5px;
  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: 5px;
  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: 5px;
  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: 5px;
}

.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: 5x;
  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: 5px;
  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: 5px;
  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;
}

/* AI-ассистенты: карточки поверх блюра, без общей белой панели */

.assistants-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 760px;
  margin: 0 16px;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 260ms ease-out;
  background: transparent;
  box-shadow: none;
}

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

.assistants-close {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: none;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  box-shadow: 0 14px 30px rgba(59, 42, 35, 0.25);
  transition: transform 140ms ease-out, color 140ms ease-out, box-shadow 140ms ease-out;
}

.assistants-close:hover {
  transform: translateY(-1px);
  color: #4b5563;
  box-shadow: 0 18px 38px rgba(59, 42, 35, 0.3);
}

.assistants-heading {
  text-align: center;
  max-width: 520px;
}

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

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

/* цвет заголовка/текста в оверлее — песочный */
.assistants-heading,
.assistants-heading .assistants-title,
.assistants-heading .assistants-kicker {
  color: #cebdad;
}

/* чтобы не перебивалось базовыми цветами */
.assistants-title {
  color: inherit;
}
.assistants-kicker {
  color: inherit;
  opacity: 0.9;
}

.assistants-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 760px;
}

.assistant-card {
  width: auto;
  min-height: 260px;
  padding: 24px 22px 22px;
  border-radius: 5px;
  background: #f5efe7;
  box-shadow: 0 22px 58px rgba(59, 42, 35, 0.28);
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.assistant-card-logo {
  width: 60px;
  margin: 0 auto 14px;
}

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

.assistant-card-handle {
  margin: 0 0 18px;
  padding-bottom: 0;
  color: var(--text-muted);
}

.assistant-card-btn {
  margin-top: auto;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
  text-decoration: none;
}

/* Крестик */

.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: 19px;
}

.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: 21px 14px;
  border-radius: 5px;
  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: 5px;
  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: 5px;
  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: 5px;
  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: 5px;
  border: 1px solid #d1d5db;
  padding: 21px 32px;
  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: 21px 32px;
  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;
}

/* Политика конфиденциальности */

.policy-card {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 5px;
  padding: 32px 28px 28px;
  background: #cebdad;
  box-shadow: 0 18px 40px rgba(59, 42, 35, 0.18);
}

.policy-card h1 {
  font-size: 21px;
}

.policy-card h2 {
  color: var(--accent);
}

.policy-card p {
  color: var(--text-main);
}

.policy-subtitle {
  margin: 24px 0 12px;
  font-size: 18px;
}

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

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

/* ПРОЦЕСС ВО ВРЕМЕНИ (ТАЙМЛАЙН) */

.timeline {
  border-radius: 24px;
  padding: 32px 24px 30px;
}

.timeline-desktop {
  display: block;
}

.timeline-mobile {
  display: none;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.3fr 1.8fr;
  column-gap: 10px;
}

.timeline-row + .timeline-row {
  margin-top: 24px;
}

.timeline-row--top {
  align-items: flex-end;
}

.timeline-row--bottom {
  align-items: flex-start;
}

.timeline-row--top,
.timeline-row--bottom {
  position: relative;
  z-index: 2; /* текст дат всегда поверх линий */
}

.timeline-cell {
  min-height: 1px;
}

.timeline-date {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.timeline-caption {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* центральная лента */

.timeline-row--track {
  align-items: center;
  position: relative;
  z-index: 1;
}

/* === TIMELINE DESKTOP: форма на ::after, палочки на ::before (как надо) === */

.timeline-row--track .timeline-segment{
  position: relative;
  background: transparent !important;
  border-radius: 0;
  overflow: visible;
  z-index: 1;

  --seg-bg: #e4d3c4;

  /* ВЫСОТА как у кнопки (.btn-primary padding: 21px 32px) */
  padding: 21px 24px;
  min-height: 0;

  /* ИДЕАЛЬНАЯ ЦЕНТРОВКА ТЕКСТА */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timeline-row--track .timeline-segment--current{ --seg-bg: #a06650; }
.timeline-row--track .timeline-segment--final{ --seg-bg: var(--accent); }

/* ФОРМА сегмента (стрелка вправо) */
.timeline-row--track .timeline-segment::after{
  content:"";
  position:absolute;
  inset:0;
  background: var(--seg-bg);
  z-index: 0;

  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 50%,
    calc(100% - 18px) 100%,
    0 100%
  );
}

/* ЛЕВЫЙ вырез у внутренних сегментов */
.timeline-row--track .timeline-segment:not(:first-child)::after{
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 50%,
    calc(100% - 18px) 100%,
    0 100%,
    18px 50%
  );
}

/* ТЕКСТ поверх формы */
.timeline-row--track .timeline-segment .timeline-label{
  position: relative;
  z-index: 2;
  line-height: 1;
  display: block;
}

/* ПАЛОЧКИ (коннекторы) — возвращаем */
.timeline-row--track .timeline-segment--link-top::before,
.timeline-row--track .timeline-segment--link-bottom::before{
  content:"";
  position:absolute;
  left:50%;
  width:2px;
  transform: translateX(-50%);
  background: rgba(59, 42, 35, 0.28);
  z-index: -1;           /* важно: палочка за сегментом */
  pointer-events:none;
}

.timeline-row--track .timeline-segment--current .timeline-label,
.timeline-row--track .timeline-segment--final .timeline-label{
  color: #fff;
}

/* вверх к датам */
.timeline-row--track .timeline-segment--link-top::before{
  top:-22px;
  height:22px;
}

/* вниз к датам */
.timeline-row--track .timeline-segment--link-bottom::before{
  bottom:-22px;
  height:22px;
}

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

.timeline-card {
  position: relative;
  border-radius: 10px;
  padding: 16px 18px 26px;
  background: #f5efe7;
}

/* форма карточки одним куском */
.timeline-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--card-bg);
  border-radius: 18px;
  z-index: 0;

  /* жирная стрелка вниз “во всю ширину” */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 22px),
    0 calc(100% - 22px),
    50% 100%
  );
}


/* зелёная финальная — стрелка тоже зелёная */
.timeline-card--final::after{
  border-top-color: var(--accent);
}

.timeline-card + .timeline-card {
  margin-top: 10px;
}

.timeline-card-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline-card-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.timeline-card-date {
  margin: 0;
  font-size: 13px;
  color: var(--text-main);
}

.timeline-card--final {
  background: var(--accent);
  color: #ffffff;
}

.timeline-card--final .timeline-card-kicker,
.timeline-card--final .timeline-card-date {
  color: #f9fafb;
}

/* === AI DOCK (DESKTOP) === */

.ai-dock{
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 30;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 18px 14px;
  background: var(--accent);
  color: #fff;

  border: none;
  border-radius: 5px 0 0 5px;
  cursor: pointer;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 12px;

  box-shadow: 0 18px 40px rgba(59, 42, 35, 0.25);
  transition: background 160ms ease-out, transform 160ms ease-out;
}

.ai-dock:hover{
  background: var(--accent-dark);
  transform: translateY(-50%) translateX(-2px);
}

.ai-dock-ico{ display:none; }

.final-cta-only{
  display:flex;
  justify-content:center;
  align-items:center;
  padding-top: 60px;
  padding-bottom: 10px;
}

.final-cta-btn{
  min-width: min(520px, 100%);
}
/* АДАПТИВ */

@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: 1024px) {
  .final-inner {
    grid-template-columns: 1fr;
  }

  .final-col--text {
    max-width: none;
    text-align: center;
  }

  .final-col--text .final-title,
  .final-col--text .final-subtitle {
    text-align: center;
  }

  .final-btn {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .hero-title,.section-title,.final-title {
    font-size: 25px;
  }
  .section-kicker {
    font-size: 9px;
  }
  .hero-subtitle,.section-text,.feature-text,.final-subtitle {
    font-size: 14px;
  }
  .header-nav {
    display: none;
  }

  .header-brand {
    font-size: 12px;
  }
  .header-logo img {
    margin: 10px 0 5px 0;
    height: 45px;
  }
  .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: 15px;
  }

  .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;
    padding-right: 0px;
  }

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

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

  .hero-cta {
    justify-content: center;
    gap: 25px;
  }

  .logo-full,
  .logo-part {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
  }

  .scroll-indicator {
    bottom: 14px;
  }

  .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 {
    position: static;
    min-height: 0;
  }
  
  .quiz-step{
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .quiz-step--active{
    display: block;
  }

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

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

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

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

  .timeline {
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .timeline-desktop {
    display: none;
  }

  .timeline-mobile {
    display: block;
  }

  .assistants-panel {
    align-items: stretch;
  }

  .assistants-close {
    top: 8px;
    right: 8px;
  }

  .assistant-card {
    width: 100%;
  }

  .assistants-preview {
    flex-direction: column;
    align-items: stretch;
  }

  .assistant-mini-card {
    max-width: 100%;
  }
  .final-col--assistant {
    margin-top: 30px;
  }

  .ai-dock{
    top: auto;
    bottom: 18px;
    right: 16px;
    transform: none;

    width: 54px;
    height: 54px;
    padding: 0;

    border-radius: 999px;
    writing-mode: horizontal-tb;
    letter-spacing: normal;

    box-shadow: 0 16px 34px rgba(59, 42, 35, 0.28);
  }

  .ai-dock:hover{ transform:none; }

  .ai-dock-text{ display:none; }
  .ai-dock-ico{
    position: relative;
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .ai-dock-live{
    position: absolute;
    top: -9px;
    right: -9px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: 0 0 0 2px var(--accent);
    z-index: 1;
  }

  .ai-dock-live::after{
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:999px;
    background: #667A66;
    animation: aiLivePulse 1.4s ease-in-out infinite;
  }

  .assistants-cards{
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  /* поведение при скролле */
  .ai-dock{
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition:
      transform 260ms cubic-bezier(.2,.9,.2,1),
      opacity 220ms ease;
    will-change: transform, opacity;
  }
  
  .ai-dock.ai-dock--visible{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

}

@keyframes aiLivePulse{
  0%   { transform: scale(0.6); opacity: 0.0; }
  35%  { opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0.0; }
}

@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;
  }
}

/* ==============================
   ZAKONIDELO.COM — ONE SCREEN
   ============================== */

body.landing {
  background: #ffffff;
  --edge: clamp(16px, 2.2vw, 24px);
}

.landing-hero{
  padding: 0;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.landing-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-bg-solid{
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 520ms ease-out;
}

.landing-bg-pattern{
  position: absolute;
  inset: 0;
  background-image: url("bg-logo.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: 100%;
  opacity: 0;
  filter: saturate(0.92);
  transition: opacity 620ms ease-out;
}

/* этапы анимации */
body.stage-1 .landing-bg-solid{ opacity: 1; }
body.stage-2 .landing-bg-pattern{ opacity: 1; }

.landing-hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  min-height: 100svh;

  display: grid;
  grid-template-columns: minmax(320px, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);

  padding: clamp(20px, 4.2vw, 64px) var(--edge);
  padding-right: var(--edge); /* симметричный край для контента */
}

.landing-copy{
  max-width: 800px;
  color: #cebdad;
  opacity: 0;
  transform: translateX(-24px);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease-out;
  will-change: transform, opacity;
}

body.stage-4 .landing-copy{
  opacity: 1;
  transform: translateX(0);
}

.landing-kicker{
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}

.landing-brand{
  margin: 0 0 18px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  color: #ffffff;
}

.landing-lead{
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  color: rgba(206, 189, 173, 0.9);
}

.landing-title{
  margin: 0 0 10px;
  font-size: clamp(21px, 3.3vw, 44px);
  line-height: 1.08;
  color: #cebdad;
}

.landing-title .accent{ color: #ffffff; }

.landing-proof{
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
  color: rgba(206, 189, 173, 0.92);
}

.landing-bullets{
  margin: 0 0 22px;
  padding-left: 18px;
  color: rgba(206, 189, 173, 0.92);
  line-height: 1.6;
}

.landing-bullets li{ margin: 6px 0; }

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

.landing-actions .btn-primary,
.landing-actions .btn-secondary{
  background: #cebdad;
  color: #3b2a23;
  border: none;
  text-decoration: none;
  font-weight: 700;
  min-width: 220px;
  text-align: center;
  padding: 21px 32px;
  border-radius: var(--radius-lg);
}

.landing-actions .btn-primary:hover,
.landing-actions .btn-secondary:hover{
  background: #ffffff;
}

.landing-portrait{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100svh;

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

  padding-right: 0;
  pointer-events: none;
}

/* фото «кровит» вправо, при этом контент держим по --edge */
.landing-portrait{ margin-right: calc(var(--edge) * -1); }

.landing-dima{
  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100svh;

  object-fit: contain;
  object-position: right bottom;

  filter: drop-shadow(0 26px 64px rgba(0, 0, 0, 0.28));

  opacity: 0;
  transform: translateX(70px) scale(0.92);
  transform-origin: 100% 100%;
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1), opacity 720ms ease-out;
  will-change: transform, opacity;
}

body.stage-3 .landing-dima{
  opacity: 1;
  transform: translateX(0) scale(1);
}

.landing-phone{
  position: fixed;
  top: var(--edge);
  right: var(--edge);
  z-index: 30;

  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #cebdad;

  opacity: 0;
  transform: translateY(-18px);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease-out;
}

.landing-phone:hover{ color: #ffffff; }

.landing-address{
  position: fixed;
  left: var(--edge);
  bottom: var(--edge);
  z-index: 30;

  text-decoration: none;
  color: rgba(206, 189, 173, 0.9);
  max-width: min(680px, calc(100vw - (var(--edge) * 2)));

  opacity: 0;
  transform: translateY(18px);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease-out;
}

.landing-address:hover{ color: #ffffff; }

body.stage-5 .landing-phone{
  opacity: 1;
  transform: translateY(0);
}

body.stage-5 .landing-address{
  opacity: 1;
  transform: translateY(0);
}

/* AI-dock: на десктопе пусть "влетает" последним шагом */
body.landing .ai-dock{
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(18px);
  transition:
    background 160ms ease-out,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 520ms ease-out;
}

body.stage-6 .ai-dock{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

/* один ассистент */
.assistants-cards--single{
  grid-template-columns: 1fr;
  max-width: 420px;
}

/* мобила: стек без визуального мусора, без "висящего" фото */
@media (max-width: 860px){
  /* на мобиле даём странице дышать и скроллиться */
  .landing-title {
    padding: 10px 0 20px 0;
  }
  .landing-hero{
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-bottom: calc(var(--edge) * 2);
  }

  .landing-hero-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    min-height: 100svh;
    gap: 18px;

    padding-left: var(--edge);
    padding-right: var(--edge);
    padding-top: clamp(76px, 10vh, 96px);   /* чтобы телефон не перекрывал */
    padding-bottom: var(--edge);
  }

  .landing-copy{
    max-width: 680px;
    text-align: center;
  }

  .landing-actions{
    width: 100%;
    justify-content: center;
    padding-top: 15px;
  }

  .landing-actions .btn-primary,
  .landing-actions .btn-secondary{
    width: 100%;
    min-width: 0;
  }

  /* Дима внизу и "сидит" на адресном блоке */
  .landing-portrait{
    width: 100%;
    height: auto;
    min-height: 0;
    justify-content: center;
    align-items: flex-end;
    margin-right: 0;                 /* без кровотечения на мобиле */
    margin-top: auto;
    margin-bottom: -22px;            /* залезаем на адрес */
    padding: 0;
    pointer-events: none;
  }

  .landing-dima{
    max-height: min(52svh, 520px);
    width: auto;
    max-width: 100%;
    object-position: center bottom;
  }

  .landing-phone{
    position: absolute;
    top: var(--edge);
    right: auto;
    font-size: 13px;
    z-index: 40;
  }

  .landing-address{
    position: static;
    display: block;
    width: 100%;
    max-width: 460px;

    margin-top: 0;
    padding: 21px 22px;              /* как у кнопки по ощущению */
    text-align: center;

    border-radius: var(--radius-lg);
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(206,189,173,0.22);

    color: rgba(206,189,173,0.92);
    font-size: 14px;
  }

  .landing-address:hover{ color:#fff; }

}


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

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

/* Режим: в модалке показываем сразу форму, квиз скрыт */
.contact-direct #quizContainer {
  display: none !important;
}

.contact-direct #contactFormStep {
  display: block !important;
}

#inlineQuizSection .form-panel {
  opacity: 1;
  transform: none;
  max-width: 720px;
  margin: 0 auto;
}

.margin-bottom {
  margin-bottom: 40px;
}
