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

/* ===== BASE ===== */
html, body {
  font-family: 'Raleway', sans-serif;
  background: #f7f4ee;
  color: #2a2a2a;
}

/* ===== LENIS ===== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ===== HEADER ===== */
.header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.logo {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  opacity: 0.7;
}

.socials {
  display: flex;
  gap: 14px;
}

/* ===== PAGE SYSTEM ===== */
.page {
  min-height: 100vh;
  display: flex;
}

/* ===== HERO ===== */
.hero {
  display: flex;
}

.hero-left {
  flex: 1;
  background: #e9e5df;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px;
}

.hero-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.hero-right img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

/* текст */
.hero-left h1 {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: 0.04em;
}

.hero-left p {
  margin-top: 20px;
  font-size: 18px;
  letter-spacing: 0.05em;
  font-weight: 400;
  opacity: 0.85;
}

/* ===== SPLIT ===== */
.split {
  display: flex;
}

.split.reverse {
  flex-direction: row-reverse;
}

.split-image {
  flex: 1;
  min-height: 100vh;
  position: relative;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text {
  flex: 1;
  background: #f7f4ee;
  position: relative;
}

/* ===== ТЕКСТ ===== */

.inner {
  position: absolute;
  top: 140px;
  left: 60px;
  width: 480px;
}

.inner h2 {
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 300;
  margin-top: -120px;
  margin-bottom: 200px;
}

.inner ul {
  list-style: none;
}

.inner li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 16px;
}

.inner a {
  font-size: 13px;
  opacity: 0.5;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.inner a:hover {
  opacity: 1;
  font-style: italic;
  letter-spacing: 0.05em;
}

.inner em {
  font-style: italic;
  opacity: 0.6;
  margin-right: 6px;
}

/* ===== POPUP ===== */

.popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 100;
}

.popup.active {
  opacity: 1;
  pointer-events: all;
}

.popup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup.active::before {
  opacity: 1;
}

.popup-content {
  position: relative;
  width: 80%;
  padding: 30px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.popup.active .popup-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.popup-text {
  font-size: 15px;
  line-height: 1.6;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
}

/* ===== INLINE EXPAND ===== */

.inline-expand {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  font-size: 14px;
  line-height: 1.6;
}

.inline-expand.active {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 20px;
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {

  .nav,
  .socials {
    display: none;
  }

  .page {
    flex-direction: column;
  }

  .hero {
    flex-direction: column;
    height: 100vh;
  }

  .hero-left,
  .hero-right {
    flex: none;
  }

  .hero-right {
    height: 70vh;
    order: -1;
  }

  .hero-left {
    height: 30vh;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-right img {
    object-fit: cover;
    object-position: center 77%;
  }

  .hero-left h1 {
    font-size: 32px;
  }

  .hero-left p {
    font-size: 13px;
  }

  .split,
  .split.reverse {
    flex-direction: column;
  }

  .split-image {
    order: -1;
    height: 45vh;
    min-height: 250px;
    overflow: hidden;
  }

  .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .inner {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 40px 20px;
  }

  .inner h2 {
    margin-top: 0;
    margin-bottom: 40px;
  }

}