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

:root {
  --bg: #111111;
  --surface: #1C1C1C;
  --text: #FAFAFA;
  --muted: #A3A3A3;
  --accent: #F97316;
  --accent-2: #FBBF24;
  --line: rgba(249, 115, 22, 0.3);
  --font-display: 'Bebas Neue', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

html { height: 100%; overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100svh;
  max-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

.speed-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.speed-lines span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.35), transparent);
  animation: streak 4s linear infinite;
}

.speed-lines span:nth-child(1) { top: 18%; width: 60%; left: -60%; animation-delay: 0s; }
.speed-lines span:nth-child(2) { top: 42%; width: 45%; left: -45%; animation-delay: 1.2s; }
.speed-lines span:nth-child(3) { top: 68%; width: 55%; left: -55%; animation-delay: 2.4s; }
.speed-lines span:nth-child(4) { top: 85%; width: 35%; left: -35%; animation-delay: 0.8s; }

@keyframes streak {
  to { transform: translateX(220vw); }
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  opacity: 0;
}

.hero--overlap .hero__panel {
  margin-left: -3rem;
  z-index: 3;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
}

.hero__visual {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #262626;
  order: -1;
}

.hero-image {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.85) 0%, transparent 45%);
  pointer-events: none;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  overflow: hidden;
}

.panel-head { flex-shrink: 0; opacity: 0; }

.panel-head__brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.panel-head__brand span { color: var(--accent); }

.panel-head__route {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.7rem;
}

.panel-head__tag {
  font-size: clamp(0.84rem, 1.25vw, 0.95rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 22rem;
}

.panel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 0.75rem 0;
  opacity: 0;
}

.panel-main__title {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  max-width: 26ch;
}

.panel-main__lead {
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
  max-width: 28rem;
}

.panel-main__btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  margin-bottom: 1.15rem;
  background: var(--accent);
  color: #111;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.panel-main__btn:hover { background: var(--accent-2); }

.snap-show { opacity: 0; }

.snap-show__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.snap-show__dots {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.snap-show__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.25);
  transition: transform 0.3s, background 0.3s;
}

.snap-show__dots span.is-active {
  background: var(--accent);
  transform: scale(1.35);
}

.snap-show__stage {
  position: relative;
  min-height: clamp(5.5rem, 11vw, 6.75rem);
}

.snap-phrase {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  pointer-events: none;
}

.snap-phrase.is-active {
  visibility: visible;
  pointer-events: auto;
}

.snap-phrase__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}

.snap-phrase__text {
  font-size: clamp(0.86rem, 1.3vw, 0.94rem);
  line-height: 1.55;
  color: #D4D4D4;
}

.panel-foot { flex-shrink: 0; opacity: 0; }

.panel-foot__text { font-size: 0.7rem; color: var(--muted); }

.hero__btn-wrap { display: none; }

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #111;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  opacity: 0;
  transform: translateY(16px);
  cursor: pointer;
}

@media (max-width: 768px) {
  html, body { height: auto; min-height: 100svh; max-height: none; overflow-x: hidden; overflow-y: auto; }

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow: visible;
  }

  .hero--overlap .hero__panel { margin-left: 0; box-shadow: none; }

  .hero__visual {
    order: 1;
    height: 62svh;
    min-height: 62svh;
    max-height: 62svh;
    flex-shrink: 0;
  }

  .hero-image { transform: none; }

  .hero__panel {
    order: 2;
    height: auto;
    flex: none;
    justify-content: flex-start;
    padding: 1.15rem;
    padding-bottom: max(4.5rem, calc(1.15rem + env(safe-area-inset-bottom)));
    border-left: none;
    border-top: 3px solid var(--accent);
    overflow: visible;
  }

  .panel-main {
    flex: none;
    min-height: auto;
    justify-content: flex-start;
    overflow: visible;
    padding: 0;
  }

  .panel-main__title {
    font-size: 1.15rem;
    line-height: 1.32;
    margin-bottom: 0.5rem;
    max-width: none;
  }

  .panel-main__lead {
    font-size: 0.86rem;
    margin-bottom: 0.85rem;
  }

  .snap-show {
    flex-shrink: 0;
    overflow: visible;
  }

  .snap-show__stage {
    min-height: 0;
    height: auto;
  }

  .snap-phrase {
    position: relative;
    inset: auto;
    display: none;
    transform: none;
  }

  .snap-phrase.is-active {
    display: block;
  }

  .snap-phrase__text {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .panel-main__btn { display: none; }
  .panel-foot { display: none; }

  .hero__btn-wrap {
    display: flex;
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    justify-content: center;
    z-index: 2;
    padding: 0 1rem;
    pointer-events: none;
  }

  .hero__btn {
    pointer-events: auto;
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .site-foot--dock {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
}

.requisites { position: relative; display: inline-flex; }

.requisites__btn {
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.38rem 0.7rem;
  cursor: pointer;
}

.requisites__popup {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  min-width: 15rem;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
  color: var(--text);
}

.requisites__popup[hidden] { display: none !important; }

.requisites__label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.requisites__field { font-size: 0.78rem; line-height: 1.4; }
.requisites__field + .requisites__field { margin-top: 0.5rem; }
.requisites--panel { margin-top: 0.6rem; }

.site-foot--dock {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 0.65rem 0.85rem;
  pointer-events: none;
}

.site-foot--dock .requisites { pointer-events: auto; }

@media (min-width: 769px) { .site-foot--dock { display: none; } }
@media (max-width: 768px) { .requisites--panel { display: none; } }

.thanks-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: auto;
}

.thanks {
  width: min(100%, 26rem);
  padding: 2.5rem 1.5rem 5rem;
  text-align: center;
  opacity: 0;
}

.thanks__icon {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
}

.thanks__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface);
}

.thanks__check {
  position: absolute;
  inset: 0;
  width: 55%;
  height: 55%;
  margin: auto;
  color: var(--accent);
}

.thanks__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.5rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.thanks__text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.thanks__back {
  display: inline-flex;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #111;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-foot--thanks {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 0.75rem 1rem;
  opacity: 0;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lead-modal[hidden] { display: none !important; }

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.lead-modal__dialog {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lead-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.lead-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.15rem;
  padding-right: 1.75rem;
}

.lead-form__field { display: block; margin-bottom: 0.85rem; }

.lead-form__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.lead-form__input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lead-form__input:focus { outline: none; border-color: var(--accent); }

.lead-form__textarea { resize: vertical; min-height: 4.5rem; }

.lead-form__submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem;
  background: var(--accent);
  color: #111;
  border: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

body.lead-modal-open { overflow: hidden; }
