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

:root {
  --bg: #0B0809;
  --text: #F4EDE4;
  --accent: #B91C3C;
  --vermillion: #D63A31;
  --gold: #C9A962;
  --gold-soft: rgba(201, 169, 98, 0.18);
  --muted: #A89B8F;
  --card: rgba(201, 169, 98, 0.07);
  --panel: rgba(18, 13, 15, 0.92);
  --line: rgba(201, 169, 98, 0.22);
  --line-strong: rgba(201, 169, 98, 0.45);
  --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: 30% 70%;
  align-items: stretch;
  opacity: 1;
}

/* ——— Левая колонка ——— */
.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);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(214, 58, 49, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #0B0809 0%, #120D0F 55%, #0E0A0C 100%);
  overflow: hidden;
}

/* Верхнее оформление */
.aside-top {
  flex-shrink: 0;
  text-align: center;
  opacity: 1;
}

.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.4rem, 2.8vw, 1.85rem);
  color: var(--vermillion);
  opacity: 0.9;
  line-height: 1;
}

.hero__logo {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: 0.22em;
  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(201, 169, 98, 0.06) 0%, transparent 40%),
    var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(201, 169, 98, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.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(201, 169, 98, 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;
  pointer-events: none;
  padding: 0.15rem 0.1rem 0;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  transform: translateY(8px);
  z-index: 0;
}

.benefit-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 1;
}

.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;
  font-weight: 400;
}

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

.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__route {
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-bottom__route span {
  color: var(--vermillion);
  margin: 0 0.2em;
}

.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__link {
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(201, 169, 98, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.aside-bottom__link:hover {
  color: var(--text);
  border-color: var(--vermillion);
}

/* ——— Hero справа ——— */
.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, var(--vermillion) 0%, transparent 70%);
  opacity: 0.35;
  top: 10%;
  right: 8%;
  transform: scale(1);
  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(0 0 0 0);
}

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

.hero__btn-wrap {
  position: absolute;
  bottom: clamp(4rem, 9vw, 6.5rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  padding-left: clamp(1.5rem, 8vw, 5.5rem);
  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, var(--accent) 0%, #7A1528 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(201, 169, 98, 0.35);
  border-radius: 2px;
  opacity: 1;
  transform: scale(1);
  transition: filter 0.25s;
  pointer-events: auto;
  white-space: nowrap;
}

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

@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;
    flex-shrink: 0;
    height: 70svh;
    min-height: 70svh;
    max-height: 70svh;
  }

  .hero__aside {
    order: 2;
    border-right: 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.45rem; }

  .hero__logo { font-size: 1.35rem; 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 {
    position: absolute;
    inset: 0;
  }

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

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

  .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__field { font-size: 0.78rem; line-height: 1.4; }

.requisites__name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.55rem;
}

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