/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #2a2624;
  overflow-x: hidden;
  font-family: 'Kurale', serif;
  -webkit-font-smoothing: antialiased;
}
button { border: none; background: none; padding: 0; cursor: pointer; font: inherit; }
a { text-decoration: none; color: inherit; }

/* ===== Сцена 1440px, JS масштабирует под ширину окна ===== */
.stage {
  position: relative;
  width: 1440px;
  margin: 0 auto;
  transform-origin: top center;
}

.screen {
  position: relative;
  width: 1440px;
  overflow: hidden;
}

/* ===== SCREEN 1 ===== */
.screen-1 {
  height: 967px;
  background: #A39790;
}

.deco-stripe {
  position: absolute;
  background: rgba(43, 41, 40, 0.63);
  transform-origin: top left;
  pointer-events: none;
}
.deco-stripe--wide {
  width: 64.53px;
  height: 1419.1px;
  left: 549px;
  top: -192px;
  transform: rotate(-28deg);
}
.deco-stripe--thin {
  width: 5.28px;
  height: 1419.1px;
  left: 632px;
  top: -178px;
  transform: rotate(-28deg);
}

.nav {
  position: absolute;
  top: 30px;
  left: 533px;
  display: flex;
  gap: 30px;
  z-index: 5;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  background: linear-gradient(0deg, rgba(0,0,0,0.14), rgba(0,0,0,0.14)), #2B2928;
  border-radius: 10px;
  color: #DCD3CD;
  font-family: 'Kurale', serif;
  font-size: 32px;
  line-height: 47px;
  transition: transform 0.2s ease;
}
.nav-btn:hover { transform: translateY(-2px); }
.nav-btn--icon { width: 63px; position: relative; }
.nav-btn--icon:nth-of-type(3) { width: 62px; }
.nav-btn--support {
  width: 188px;
  padding: 0;
  white-space: nowrap;
}
.nav-btn img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.hero-title {
  position: absolute;
  width: 532px;
  height: 109px;
  left: 105px;
  top: 212px;
  margin: 0;
  font-family: 'Kurale', serif;
  font-weight: 400;
  font-size: 128px;
  line-height: 1;
  color: #2B2928;
  white-space: nowrap;
}

.hero-text {
  position: absolute;
  width: 1125px;
  left: 105px;
  top: 415px;
  margin: 0;
  font-family: 'Kurale', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 47px;
  color: #000000;
}

/* ===== SCREEN 2 ===== */
.screen-2 {
  height: 1024px;
  background: #A39790;
}

.blabla-bar {
  position: absolute;
  width: 100%;
  height: 60px;
  left: 0;
  top: 18px;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  overflow: hidden;
  background: rgba(43, 41, 40, 0.10);
}
.blabla-bar .marquee__track {
  font-family: 'Kurale', serif;
  font-size: 36px;
  line-height: 53px;
  color: #000000;
  padding-top: 3px;
}

/* Кошачий след сверху-справа (наклон -33deg) — скрыт пока нет ассета */
.paws--top-right {
  position: absolute;
  width: 999px;
  height: 655px;
  left: 1046px;
  top: -624px;
  background: url('assets/png-klev-club-5unw-p-sledi-kota-png-10.png') no-repeat center/contain;
  transform: rotate(-33deg);
  opacity: 0.85;
  pointer-events: none;
}

.img--cat {
  position: absolute;
  width: 557px;
  height: 731px;
  left: 53px;
  top: 233px;
  background: #c9bdb5 url('assets/6036693199.jpg') no-repeat center/cover;
  border-radius: 4px;
}

.img--product {
  position: absolute;
  width: 512px;
  height: 512px;
  left: 782px;
  top: 270px;
  background: url('assets/272498.png') no-repeat center/contain;
}

.label {
  position: absolute;
  font-family: 'Kurale', serif;
  font-size: 48px;
  line-height: 71px;
  color: #000000;
  border: none;
  padding: 0;
  background: transparent;
  white-space: nowrap;
}
.label--no-this { width: 337px; height: 71px; left: 163px; top: 95px; }
.label--no-that { width: 247px; height: 70px; left: 933px; top: 911px; }

.arrow {
  position: absolute;
  background: #000000;
  border: 2px solid #000000;
  height: 0;
  transform-origin: left center;
}
.arrow--1 {
  width: 59.68px;
  left: 301px;
  top: 166px;
  transform: rotate(121.29deg);
}
.arrow--1::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -8px;
  width: 0; height: 0;
  border-left: 14px solid #000;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.arrow--2 {
  width: 147.73px;
  left: 985px;
  top: 782px;
  transform: rotate(-119.17deg);
}
.arrow--2::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -8px;
  width: 0; height: 0;
  border-left: 14px solid #000;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.sale {
  position: absolute;
  font-family: 'Lemonada', cursive;
  font-weight: 575;
  color: #CD2A00;
  white-space: nowrap;
}
.sale--big {
  width: 342.21px;
  height: 192px;
  left: 692px;
  top: 129px;
  font-size: 96px;
  line-height: 192px;
  transform: rotate(-26deg);
}
.sale--small {
  width: 225.17px;
  height: 128px;
  left: 1115px;
  top: 710px;
  font-size: 64px;
  font-weight: 380;
  line-height: 128px;
  color: #FF5023;
  transform: rotate(4deg);
}

/* ===== SCREEN 3 ===== */
.screen-3 {
  height: 1027px;
  background: #544D49;
}

.no-cats {
  position: absolute;
  width: 585px;
  height: 95px;
  left: 427px;
  top: 155px;
  margin: 0;
  font-family: 'Kurale', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 95px;
  color: #000000;
  white-space: nowrap;
}

.paws--bottom-left {
  position: absolute;
  width: 201.56px;
  height: 606.85px;
  left: -54.23px;
  top: 764.98px;
  background: url('assets/png-klev-club-5unw-p-sledi-kota-png-10.png') no-repeat center/contain;
  transform: rotate(-104deg);
  opacity: 0.85;
  pointer-events: none;
}
.paws--top-right-3 {
  position: absolute;
  width: 469.79px;
  height: 317.92px;
  left: 965.27px;
  top: 277.52px;
  background: url('assets/png-klev-club-5unw-p-sledi-kota-png-10.png') no-repeat center/contain;
  transform: matrix(-0.8, 0.6, 0.6, 0.8, 0, 0);
  opacity: 0.85;
  pointer-events: none;
}

.img--box {
  position: absolute;
  width: 777px;
  height: 492px;
  left: 331px;
  top: 482px;
  background: url('assets/png-klev-club-6nn6-p-pustaya-korobka-png-17.png') no-repeat center/contain;
}

.for-free {
  position: absolute;
  width: 187px;
  height: 70px;
  left: 753px;
  top: 729px;
  font-family: 'Mansalva', cursive;
  font-weight: 400;
  font-size: 64px;
  line-height: 70px;
  letter-spacing: 0.06em;
  color: #000000;
  transform: rotate(-21deg);
  white-space: nowrap;
}

/* ===== SCREEN 4 ===== */
.screen-4 {
  height: 1104px;
  background: #A39790;
}

.exit-bar {
  position: absolute;
  background: rgba(42, 38, 36, 0.76);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.exit-bar .marquee__track {
  font-family: 'Loved by the King', cursive;
  font-size: 48px;
  line-height: 83px;
  color: #000000;
  white-space: nowrap;
}

.exit-bar--top {
  width: 1478px;
  height: 80px;
  left: 0;
  top: -7px;
}
.exit-bar--bottom {
  width: 1478px;
  height: 80px;
  left: 0;
  top: 1036px;
}
.exit-bar--diag-left {
  width: 1847px;
  height: 80px;
  left: -101.58px;
  top: 309.24px;
  transform: rotate(-21deg);
  transform-origin: center;
}
.exit-bar--diag-right {
  width: 1847px;
  height: 80px;
  left: -166.67px;
  top: 676.8px;
  transform: rotate(6deg);
  transform-origin: center;
}

.goodbye {
  position: absolute;
  width: 145px;
  height: 95px;
  left: 167px;
  top: 442px;
  font-family: 'Kurale', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 95px;
  color: #000000;
  z-index: 4;
  white-space: nowrap;
}

.door {
  position: absolute;
  width: 595px;
  height: 1057px;
  left: 422px;
  top: 100px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.door:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 24px rgba(0,0,0,0.5));
}
.door:active { transform: scale(0.99); }
.door img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Бегущая строка ===== */
.marquee {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 40s linear infinite;
}
.marquee--reverse .marquee__track {
  animation: marquee-scroll-reverse 40s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-scroll-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Скорости разных бегущих */
.blabla-bar .marquee__track { animation-duration: 60s; }
.exit-bar--top .marquee__track { animation-duration: 35s; }
.exit-bar--bottom .marquee__track { animation-duration: 35s; }
.exit-bar--diag-left .marquee__track { animation-duration: 45s; }
.exit-bar--diag-right .marquee__track { animation-duration: 45s; }

/* ===== Мобильная адаптация (≤768px) ===== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    background: #A39790;
  }
  .stage {
    width: 100%;
    transform: none !important;
  }
  .screen {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    padding: 80px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .screen > * {
    position: static;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
  }

  /* --- Скрываем десктопные декорации --- */
  .deco-stripe,
  .arrow,
  .paws--top-right,
  .paws--bottom-left,
  .paws--top-right-3,
  .sale--small,
  .exit-bar--diag-left,
  .exit-bar--diag-right {
    display: none !important;
  }

  /* ===== SCREEN 1 ===== */
  .screen-1 {
    padding-top: 100px;
    text-align: center;
  }
  .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    width: 100%;
  }
  .nav-btn {
    height: 44px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
  }
  .nav-btn--icon { width: 50px; }
  .nav-btn--icon:nth-of-type(3) { width: 50px; }
  .nav-btn--support {
    width: auto;
    padding: 0 18px;
  }
  .hero-title {
    font-size: 64px;
    line-height: 1;
    text-align: center;
    margin: 20px 0 30px;
    width: 100%;
  }
  .hero-text {
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    margin: 0;
    width: 100%;
  }

  /* ===== SCREEN 2 ===== */
  .screen-2 {
    padding: 0 0 60px;
    align-items: stretch;
  }
  .blabla-bar {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
  }
  .blabla-bar .marquee__track {
    font-size: 22px;
    line-height: 60px;
  }
  .label--no-this,
  .label--no-that {
    font-size: 30px;
    text-align: center;
    width: 100%;
    margin: 10px 0 20px;
  }
  .img--cat,
  .img--product {
    width: 90%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 24px;
    background-size: cover;
  }
  .img--cat {
    aspect-ratio: 557 / 731;
    background-size: cover;
  }
  .img--product { background-size: contain; }
  .sale--big {
    position: absolute;
    width: auto;
    height: auto;
    font-size: 56px;
    line-height: 1;
    top: 80px;
    right: 10px;
    transform: rotate(-18deg);
    z-index: 3;
    pointer-events: none;
  }

  /* ===== SCREEN 3 ===== */
  .screen-3 {
    background: #544D49;
    padding: 60px 20px;
  }
  .no-cats {
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    width: 100%;
    margin: 0 0 30px;
  }
  .img--box {
    width: 100%;
    aspect-ratio: 777 / 492;
    margin: 0 auto 20px;
  }
  .for-free {
    font-size: 40px;
    line-height: 1;
    width: auto;
    transform: rotate(-12deg);
    margin: -60px auto 0;
    text-align: center;
  }

  /* ===== SCREEN 4 ===== */
  .screen-4 {
    padding: 70px 20px 80px;
    overflow: hidden;
  }
  .exit-bar--top {
    position: absolute;
    width: 100%;
    height: 50px;
    top: 0;
    left: 0;
  }
  .exit-bar--bottom {
    position: absolute;
    width: 100%;
    height: 50px;
    bottom: 0;
    left: 0;
    top: auto;
  }
  .exit-bar .marquee__track {
    font-size: 28px;
    line-height: 50px;
  }
  .goodbye {
    font-size: 44px;
    line-height: 1;
    text-align: center;
    margin: 10px 0 20px;
    width: 100%;
  }
  .door {
    width: 70%;
    max-width: 320px;
    aspect-ratio: 595 / 1057;
    height: auto;
    margin: 0 auto;
  }
}

/* Совсем узкие — iPhone SE и подобные */
@media (max-width: 380px) {
  .hero-title { font-size: 52px; }
  .hero-text { font-size: 16px; }
  .label--no-this,
  .label--no-that { font-size: 26px; }
  .no-cats { font-size: 30px; }
  .sale--big { font-size: 44px; top: 70px; }
  .for-free { font-size: 34px; }
  .goodbye { font-size: 36px; }
  .exit-bar .marquee__track { font-size: 24px; }
  .blabla-bar .marquee__track { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 200s !important; }
  .door { transition: none; }
}
