*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0C0E12;
  --text: #ECEFF3;
  --accent: #1E4D8C;
  --accent-bright: #2B6CB8;
  --gold: #D4A84B;
  --muted: #9CA3AF;
  --panel: rgba(12, 14, 18, 0.95);
  --line: rgba(212, 168, 75, 0.18);
  --line-strong: rgba(212, 168, 75, 0.35);
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Nunito 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: 68% 32%;
  align-items: stretch;
  opacity: 0;
}

.hero--text-right .hero__visual { order: 1; }
.hero--text-right .hero__aside {
  order: 2;
  border-right: none;
  border-left: 1px solid var(--line);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 100svh;
  padding: clamp(1.2rem, 2.4vw, 1.9rem) clamp(1rem, 2vw, 1.4rem);
  background:
    radial-gradient(ellipse 70% 40% at 100% 30%, rgba(30, 77, 140, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, #0C0E12 0%, #10141C 50%, #0A0C10 100%);
  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.7rem;
  margin-bottom: 0.9rem;
}

.aside-top__line {
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.aside-top__mark {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--accent-bright);
  line-height: 1;
}

.hero__logo {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.aside-top__tagline {
  font-size: clamp(0.84rem, 1.45vw, 0.98rem);
  color: var(--muted);
  letter-spacing: 0.04em;
  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%;
  padding: clamp(0.9rem, 1.5vw, 1.15rem);
  background:
    linear-gradient(225deg, rgba(30, 77, 140, 0.08) 0%, transparent 50%),
    var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(12px);
}

.aside-panel__head { margin-bottom: 0.65rem; text-align: center; }

.aside-panel__label {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.benefits-carousel { border-top: 1px solid rgba(212, 168, 75, 0.1); padding-top: 0.65rem; }

.benefits-carousel__stage { position: relative; min-height: clamp(9.5rem, 20vw, 13rem); }

.benefit-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  text-align: center;
  padding: 0.1rem 0.15rem 0;
}

.benefit-card.is-active { visibility: visible; }

.benefit-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.9vw, 1.88rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.55rem;
  line-height: 1.2;
}

.benefit-card p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  color: var(--text);
  opacity: 0.88;
}

.benefits-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.benefits-carousel__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  opacity: 0.22;
  transition: opacity 0.3s, background 0.3s;
}

.benefits-carousel__dots span.is-active { opacity: 0.95; background: var(--gold); }

.aside-bottom {
  flex-shrink: 0;
  text-align: center;
  opacity: 0;
  overflow: visible;
  position: relative;
  z-index: 30;
}

.aside-bottom__rule {
  display: block;
  width: 70%;
  margin: 0 auto 0.65rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
}

.aside-bottom__link {
  font-size: clamp(0.8rem, 1.2vw, 0.92rem);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(212, 168, 75, 0.3);
  padding-bottom: 2px;
}

.aside-bottom__link:hover { color: var(--accent-bright); }

.hero__visual {
  position: relative;
  overflow: hidden;
  height: 100svh;
  max-height: 100svh;
}

.hero__glow {
  position: absolute;
  width: clamp(140px, 21vw, 270px);
  height: clamp(140px, 21vw, 270px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-bright) 0%, transparent 68%);
  opacity: 0;
  bottom: 18%;
  left: 10%;
  transform: scale(0);
  z-index: 0;
}

.hero__image-wrap { position: absolute; inset: 0; z-index: 1; }

.hero-image {
  position: absolute;
  inset: 0;
  clip-path: circle(0% at 30% 50%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  display: block;
}

.hero__btn-wrap {
  position: absolute;
  bottom: clamp(2rem, 5vw, 3.75rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  transform: translateX(clamp(-2.5rem, -6vw, -1.25rem));
  z-index: 3;
  pointer-events: none;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.28rem) clamp(1.75rem, 3.8vw, 2.6rem);
  background: linear-gradient(135deg, var(--accent) 0%, #0F2D52 100%);
  color: var(--text);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid rgba(212, 168, 75, 0.32);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  opacity: 0;
  transform: scale(0.85);
  transition: filter 0.25s;
  pointer-events: auto;
}

.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 { display: flex; flex-direction: column; height: auto; min-height: 100svh; max-height: none; overflow: visible; }
  .hero__visual { order: 1 !important; height: 70svh; min-height: 70svh; max-height: 70svh; }
  .hero__aside { order: 2 !important; border-left: none; border-top: 1px solid var(--line); padding: 1rem; max-height: none; height: auto; }
  .aside-top, .aside-center, .benefit-card, .aside-bottom { text-align: center; }
  .aside-top__ornament { justify-content: center; }
  .aside-top__line { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .aside-panel__head, .benefit-card { text-align: center; }
  .benefits-carousel__dots { justify-content: center; }
  .aside-bottom { display: none; }
  .hero-image { clip-path: inset(100% 0 0 0); }
  .hero-image img { object-position: center 58%; }
  .hero__btn-wrap { justify-content: center; transform: none; bottom: clamp(0.85rem, 3vw, 1.25rem); padding: 0 1rem; }
  .hero__btn { white-space: normal; text-align: center; max-width: 100%; }
}

.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;
  cursor: pointer;
}

.requisites__btn:hover { color: var(--gold); }

.requisites__popup {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  min-width: 14.5rem;
  padding: 0.8rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 300;
  text-align: left;
}

.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__name { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.55rem; }

.requisites--panel { margin-top: 0.65rem; }

.site-foot--dock {
  position: fixed;
  bottom: 0;
  right: 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(14.5rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
  }
}

/* без скриптов */
.hero { opacity: 1 !important; }
.hero-image { clip-path: none !important; }
.aside-top, .aside-panel, .aside-bottom, .hero__btn, .hero__glow { opacity: 1 !important; transform: none !important; }
.aside-panel { transform: none !important; }
.benefit-card:first-child { opacity: 1 !important; visibility: visible !important; position: relative !important; }
.benefit-card:not(:first-child) { display: none !important; }
.benefits-carousel__dots { display: none !important; }
.hero__btn { white-space: normal; line-height: 1.25; text-align: center; font-size: clamp(0.78rem, 2vw, 1.05rem); }
.requisites { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.requisites summary.requisites__btn { list-style: none; cursor: pointer; 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: 20px; }
.requisites summary.requisites__btn::-webkit-details-marker { display: none; }
.requisites__popup { position: absolute; bottom: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); min-width: 15rem; padding: 0.85rem 1rem; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5); z-index: 300; text-align: left; }
.requisites:not([open]) .requisites__popup { display: none; }
.requisites__name { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; }
.requisites__field { font-size: 0.78rem; line-height: 1.4; }
.requisites--panel { margin-top: 0.65rem; }
