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

:root {
  --bg: #08090D;
  --text: #F2F0EB;
  --accent: #8B9DC3;
  --vermillion: #C8D4E8;
  --gold: #B8C4D8;
  --gold-soft: rgba(184, 196, 216, 0.16);
  --muted: #8E96A8;
  --panel: rgba(8, 9, 13, 0.94);
  --line: rgba(184, 196, 216, 0.22);
  --line-strong: rgba(184, 196, 216, 0.42);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Noto Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  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;
}

.hero {
  position: relative;
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70% 30%;
  align-items: stretch;
  opacity: 0;
}

.hero--mirror .hero__aside {
  border-right: none;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(139, 157, 195, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #08090D 0%, #0D1018 55%, #08090D 100%);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 100svh;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}

.aside-top {
  flex-shrink: 0;
  text-align: center;
  opacity: 0;
}

.aside-top__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.aside-top__line {
  flex: 1;
  max-width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.aside-top__mark {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--vermillion);
  opacity: 0.95;
  line-height: 1;
  letter-spacing: 0.18em;
}

.hero__logo {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.aside-top__tagline {
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  color: var(--muted);
  letter-spacing: 0.07em;
  line-height: 1.45;
}

.aside-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.5rem 0;
}

.aside-panel {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  padding: clamp(0.85rem, 1.5vw, 1.1rem) clamp(0.9rem, 1.4vw, 1.15rem);
  background:
    linear-gradient(160deg, rgba(184, 196, 216, 0.06) 0%, transparent 40%),
    var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(184, 196, 216, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
}

.aside-panel__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}

.aside-panel__corner--tl { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.aside-panel__corner--tr { top: 6px; right: 6px; border-width: 1px 1px 0 0; }
.aside-panel__corner--bl { bottom: 6px; left: 6px; border-width: 0 0 1px 1px; }
.aside-panel__corner--br { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

.aside-panel__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.aside-panel__label {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.aside-panel__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.benefits-carousel {
  border-top: 1px solid rgba(184, 196, 216, 0.12);
  padding-top: 0.75rem;
}

.benefits-carousel__stage {
  position: relative;
  min-height: clamp(9.5rem, 20vw, 13rem);
}

.benefit-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  padding: 0.15rem 0.1rem 0;
}

.benefit-card.is-active { visibility: visible; }

.benefit-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.benefit-card p {
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  line-height: 1.5;
  color: var(--text);
  opacity: 0.9;
}

.benefits-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.benefits-carousel__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.25;
  transition: opacity 0.3s, transform 0.3s;
}

.benefits-carousel__dots span.is-active {
  opacity: 0.9;
  transform: scale(1.35);
}

.aside-bottom {
  flex-shrink: 0;
  text-align: center;
  opacity: 0;
}

.aside-bottom__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.aside-bottom__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.aside-bottom__dots {
  display: flex;
  gap: 0.25rem;
}

.aside-bottom__dots i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
}

.aside-bottom__dots i:nth-child(2) { opacity: 0.85; }

.aside-bottom__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #5A6A88 0%, #3D4A62 100%);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: filter 0.25s;
}

.aside-bottom__cta:hover { filter: brightness(1.12); }

.hero__visual {
  position: relative;
  overflow: hidden;
  height: 100svh;
  max-height: 100svh;
}

.hero__sun {
  position: absolute;
  width: clamp(160px, 24vw, 300px);
  height: clamp(160px, 24vw, 300px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 157, 195, 0.55) 0%, transparent 70%);
  opacity: 0;
  top: 12%;
  left: 8%;
  transform: scale(0);
  z-index: 0;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  clip-path: inset(100% 0 0 0);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  display: block;
}

.hero__caption {
  position: absolute;
  top: 50%;
  right: clamp(1.25rem, 3.5vw, 2.75rem);
  left: auto;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  text-align: right;
  opacity: 0;
}

.hero__caption-plate {
  display: inline-block;
  padding: clamp(1rem, 2.2vw, 1.45rem) clamp(1.2rem, 2.8vw, 1.85rem);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 228, 255, 0.28);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero__caption-main {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 600;
  line-height: 0.95;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.hero--mirror .hero__caption-sub {
  margin-left: auto;
}

.hero__caption-sub {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: #D4E4FF;
  letter-spacing: 0.08em;
  text-transform: none;
  line-height: 1.35;
  max-width: 14rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__btn-wrap {
  position: absolute;
  bottom: clamp(4rem, 9vw, 6.5rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.hero__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.05rem, 2.8vw, 1.35rem) clamp(2rem, 4.5vw, 3.1rem);
  background: linear-gradient(135deg, #5A6A88 0%, #3D4A62 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(184, 196, 216, 0.35);
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.85);
  transition: filter 0.25s;
  pointer-events: auto;
  white-space: nowrap;
}

.hero__btn:hover { filter: brightness(1.12); }

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

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

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

  .hero__aside {
    order: 2;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 1rem 1rem 1.25rem;
    max-height: none;
    height: auto;
    overflow: visible;
    justify-content: flex-start;
    gap: 0;
  }

  .aside-center {
    padding: 0.5rem 0 0.35rem;
    flex: 0 0 auto;
  }

  .aside-top__ornament { margin-bottom: 0.7rem; }
  .aside-top__mark { font-size: 1.25rem; }
  .hero__logo { font-size: 1.3rem; margin-bottom: 0.35rem; }
  .aside-top__tagline { font-size: 0.85rem; }
  .aside-panel { padding: 0.75rem 0.85rem; }
  .aside-panel__label { font-size: 0.88rem; }
  .benefits-carousel__stage { min-height: 8.5rem; }
  .benefit-card__title { font-size: 1.5rem; }
  .benefit-card p { font-size: 1.08rem; }
  .aside-bottom { display: none; }

  .hero__image-wrap,
  .hero-image {
    position: absolute;
    inset: 0;
  }

  .hero-image img { object-position: center 58%; }

  .hero__caption {
    display: block;
    top: clamp(0.85rem, 3vw, 1.25rem);
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    width: min(92%, 22rem);
  }

  .hero--mirror .hero__caption-sub {
    margin-left: 0;
  }

  .hero__caption-plate {
    width: 100%;
    padding: 0.95rem 1.15rem 1rem;
  }

  .hero__caption-main { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .hero__caption-sub {
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
    max-width: none;
  }

  .hero__btn-wrap {
    bottom: clamp(0.85rem, 3vw, 1.25rem);
    padding: 0 1rem;
  }

  .hero__btn {
    font-size: clamp(1rem, 2.8vw, 1.15rem);
    padding: 0.9rem 1.5rem;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .benefit-card__title { font-size: 1.35rem; }
  .benefit-card p { font-size: 1rem; }
}

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

.requisites__btn {
  font-family: inherit;
  font-size: 0.65rem;
  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;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.requisites__btn:hover { color: var(--gold); }

.requisites__popup {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  min-width: 15rem;
  padding: 0.8rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 200;
  text-align: left;
  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__name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.requisites__field { font-size: 0.78rem; line-height: 1.4; }

.requisites__field + .requisites__field { margin-top: 0.55rem; }

.requisites--panel { margin-top: 0.75rem; }

.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; }
  .site-foot--dock {
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0.65rem 1rem;
  }
  .site-foot--dock .requisites__popup {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: min(15rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
  }
}

.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(8, 9, 13, 0.72);
  backdrop-filter: blur(4px);
}

.lead-modal__dialog {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem 1.35rem;
  background: #0D1018;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.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;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.lead-modal__close:hover { color: var(--gold); }

.lead-modal__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold);
  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: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.lead-form__input::placeholder { color: rgba(142, 150, 168, 0.65); }

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

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

.lead-form__submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #5A6A88 0%, #3D4A62 100%);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.25s;
}

.lead-form__submit:hover { filter: brightness(1.12); }

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

.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;
  color: var(--gold);
}

.thanks__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #0D1018;
}

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

.thanks__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
}

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

.thanks__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.65rem;
  background: linear-gradient(135deg, #5A6A88 0%, #3D4A62 100%);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: filter 0.25s;
}

.thanks__back:hover { filter: brightness(1.12); }

.site-foot--thanks {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem;
  opacity: 0;
}

.site-foot--thanks .requisites__popup {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: min(15rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
}
