:root {
  --cream: #d3c0b5;
  --dark:  #000000;
  --ink:   #0a0a0a;
  --paper: #ffffff;
  --muted-light: #6b5b50;
  --muted-dark:  #968578;
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; user-select: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--cream);
}

/* Половины фона */
.pane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}

.pane--light { left: 0;  background: var(--cream); }
.pane--dark  { right: 0; background: var(--dark);  }

/* ===== Переход на каталог: заливка выбранной половины ===== */
.pane { transition: width 500ms cubic-bezier(0.85, 0, 0.15, 1); }

/* z-index: 1 поднимает растущую половину выше второй (важно для .pane--light
   которая в DOM раньше .pane--dark и иначе уезжает под чёрный) */
.hero.is-going-women .pane--light,
.hero.is-going-men   .pane--dark {
  width: 100%;
  z-index: 1;
}

.hero.is-going .brand-stage,
.hero.is-going .content,
.hero.is-going .logo {
  transition: opacity 320ms ease-out;
  opacity: 0;
  pointer-events: none;
}

/* ===== Логотип сверху по центру ===== */
/* Лого hero: две SVG-половины (чёрная для левой части, белая для правой)
   Накладываются друг на друга, каждая обрезана по своему полю стыка */
.logo {
  position: absolute;
  left: 50%;
  top: 5.5%;
  height: 10%;
  aspect-ratio: 656.08 / 714.44;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.logo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
}

.logo__img--black { clip-path: inset(0 50% 0 0); }
.logo__img--white { clip-path: inset(0 0 0 50%); }

/* ===== Сцена для лого брендов ===== */
.brand-stage {
  position: absolute;
  top: 0;
  height: 60%;
  width: 50%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.brand-stage--left  { left: 0;  }
.brand-stage--right { right: 0; }

.brand-logo {
  position: absolute;
  width: 11vw;
  height: 11vw;
  max-width: 160px;
  max-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(var(--ang, 0deg)) scale(0.78);
  transform-origin: center center;
  opacity: 0;
  transition: opacity 880ms cubic-bezier(.22,.61,.36,1),
              transform 880ms cubic-bezier(.22,.61,.36,1);
  user-select: none;
  pointer-events: none;
  will-change: opacity, transform;
}
.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  user-select: none;
  filter: brightness(0);
}
.brand-stage--right .brand-logo img {
  filter: brightness(0) invert(1);
}
.brand-logo.is-on {
  opacity: 0.92;
  transform: translate(-50%, -50%) rotate(var(--ang, 0deg)) scale(1);
}

/* ===== Контент в каждой половине: внизу по центру половины ===== */
.content {
  position: absolute;
  bottom: 6%;
  width: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4%;
}

.content--left  { left: 0;   color: var(--ink);   }
.content--right { right: 0;  color: var(--cream); }
.content--right .rule { margin-left: 0; }

/* ===== Заголовок ===== */
.title {
  font-family: "Saira Extra Condensed", "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 3.4vh, 48px);
  user-select: none;
}

/* ===== Описание ===== */
.desc {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 0.78vw, 12px);
  line-height: 1.7;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 2.4vh, 30px);
}

.content--left .desc  { color: var(--muted-light); }
.content--right .desc { color: var(--muted-dark);  }

/* ===== Разделитель ===== */
.rule {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  margin-bottom: clamp(20px, 2.6vh, 32px);
  opacity: 0.55;
}

/* ===== CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: currentColor;
  transition: gap .25s ease;
}

.cta svg { flex-shrink: 0; transition: transform .25s ease; }
.cta:hover { gap: 22px; }
.cta:hover svg { transform: translateX(4px); }

/* ===== Mobile ===== */
@media (max-width: 760px) {
  /* Лого BS сверху чуть мельче */
  .logo {
    top: 2%;
    height: 7.5%;
  }

  /* Сцена брендов: верхняя половина каждой колонки */
  .brand-stage {
    top: 10%;
    height: 45%;
  }

  /* Лого фикс. размера под мобилу */
  .brand-logo {
    width: 22vw;
    height: 22vw;
    max-width: 110px;
    max-height: 110px;
  }

  /* Текстовый блок — нижняя половина колонки */
  .content {
    bottom: 4%;
    padding: 0 4vw;
  }

  .title {
    font-size: clamp(24px, 7vw, 44px);
    margin-bottom: 0;
  }

  .desc {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-top: 3vh;
    margin-bottom: 0;
  }

  .rule { margin: 2.5vh 0; }

  .cta { font-size: 11px; margin-top: 1vh; }
  .cta span { transform: translateX(2vw); }
}
