:root {
  --ink: #060824;
  --cream: #fff8df;
  --gold: #e5b34f;
  --text: #fbf8ed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  width: 100%;
  height: 88px;
  padding: 0 clamp(72px, 7.65vw, 122px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 204px;
  color: var(--cream);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
  text-shadow: 0 0 0.5px rgba(255, 255, 255, 0.28);
}

.brand-mark {
  width: 0.72em;
  height: 0.72em;
  margin-inline: 0.045em;
  display: inline-block;
  position: relative;
  top: 0.045em;
  color: var(--gold);
  border: 0.095em solid currentColor;
  border-radius: 999px;
  font-size: 1em;
  text-indent: -999px;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  width: 72%;
  height: 72%;
  position: absolute;
  top: -3%;
  right: -3%;
  background: var(--ink);
  border-radius: 999px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 3vw, 48px);
  flex: 1 1 auto;
}

.nav-menu a,
.nav-cta {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu a {
  transition: color 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--gold);
}

.nav-cta {
  width: 188px;
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 188px;
  color: #6d32dc;
  background: linear-gradient(180deg, #ffd98b 0%, #e0a246 100%);
  border: 1px solid rgba(255, 229, 166, 0.86);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 7px 14px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.wa-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.nav-toggle,
.nav-toggle-button {
  display: none;
}

.hero {
  width: 100%;
  min-height: 500px;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  width: min(530px, 42vw);
  position: absolute;
  top: 32px;
  left: clamp(72px, 7.65vw, 122px);
  z-index: 1;
}

.hero h1 {
  margin: 0;
  color: #fffdf6;
  font-size: clamp(42px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(27px, 2.4vw, 34px);
  line-height: 1.1;
}

.hero h1 strong {
  display: block;
  margin-top: 4px;
  color: #b28dff;
  font: inherit;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: #c9b4ff;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.2;
}

.hero-copy {
  width: min(400px, 100%);
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.48;
}

.hero-features {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: clamp(22px, 2.5vw, 44px);
  align-items: start;
}

.hero-feature {
  width: 92px;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #fffdf6;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.16;
}

.hero-feature img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  object-position: center;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-cta,
.hero-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.hero-cta {
  width: 204px;
  gap: 9px;
  color: #6d32dc;
  background: linear-gradient(180deg, #ffd98b 0%, #e0a246 100%);
  border: 1px solid rgba(255, 229, 166, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 7px 14px rgba(0, 0, 0, 0.22);
}

.hero-cta img {
  width: 22px;
  height: 22px;
}

.hero-secondary {
  width: 176px;
  color: #fffdf6;
  background: rgba(8, 10, 41, 0.26);
  border: 2px solid rgba(209, 196, 255, 0.78);
}

.sleep-problems {
  padding: 54px clamp(60px, 5vw, 96px) 58px;
  background: #17104a;
}

.sleep-problems-card {
  width: 100%;
  min-height: 256px;
  padding: 22px 40px 16px;
  color: #151331;
  background: rgba(250, 249, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 32px;
}

.sleep-problems h2 {
  margin: 0;
  color: #11102e;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.sleep-problems h2 span {
  color: #6f53bb;
}

.problem-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 20px;
}

.problem-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.problem-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.problem-item p {
  margin: 0;
  color: #1f1a3e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.problem-note {
  margin: 22px 0 0;
  color: #292343;
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.intro {
  padding: 58px clamp(72px, 7.65vw, 122px) 62px;
  display: grid;
  grid-template-columns: minmax(280px, 350px) repeat(2, minmax(270px, 1fr));
  gap: 24px;
  align-items: stretch;
  background: #17104a;
}

.intro-copy {
  padding: 24px 22px 14px 0;
}

.intro-copy h2 {
  margin: 0;
  color: #fffdf6;
  font-size: clamp(30px, 2.9vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}

.intro-copy h2 span {
  color: #9e76ff;
}

.intro-copy p {
  max-width: 320px;
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.intro-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.intro-list li {
  position: relative;
  padding-left: 32px;
  color: #fffdf6;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.intro-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  position: absolute;
  top: -2px;
  left: 0;
  border-radius: 999px;
  background: #8c62d7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.intro-list li::after {
  content: "";
  width: 9px;
  height: 5px;
  position: absolute;
  top: 5px;
  left: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.variant-card {
  min-height: 310px;
  position: relative;
  padding: 36px 18px 54px;
  color: #151331;
  background: #f8f7fb;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
}

.variant-card img {
  width: 100%;
  height: 235px;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(18px);
}

.variant-card p {
  width: min(330px, calc(100% - 40px));
  margin: 0;
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: #211b36;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.24;
  text-align: center;
}

.variant-badge {
  min-width: 124px;
  min-height: 32px;
  padding: 7px 16px 6px;
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  color: #fffdf6;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.variant-badge-latte {
  background: linear-gradient(180deg, #dfbd70 0%, #c59a4d 100%);
}

.variant-badge-original {
  background: linear-gradient(180deg, #9f64db 0%, #7436b2 100%);
}

.why {
  padding: 58px clamp(72px, 7.65vw, 122px) 68px;
  color: #161434;
  background: #f5f3fa;
}

.why h2 {
  margin: 0;
  color: #11102e;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.why h2 span {
  color: #7352bf;
}

.why-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.why-item {
  min-width: 0;
  padding: 8px 30px 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.why-item + .why-item {
  border-left: 1px solid rgba(31, 26, 62, 0.08);
}

.why-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.why-item h3 {
  margin: 10px 0 0;
  color: #161434;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.16;
}

.why-item p {
  max-width: 180px;
  margin: 14px 0 0;
  color: #292343;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.testimonials {
  padding: 48px 14px 56px;
  background: #f5f3fa;
}

.testimonials-panel {
  width: 100%;
  max-width: 1500px;
  min-height: 310px;
  margin: 0 auto;
  position: relative;
  padding: 18px 58px 16px;
  overflow: hidden;
  color: #fffdf6;
  background:
    radial-gradient(circle at 10% 28%, rgba(238, 188, 92, 0.24), transparent 11%),
    linear-gradient(90deg, rgba(7, 8, 31, 0.94), rgba(17, 17, 65, 0.89) 50%, rgba(7, 8, 31, 0.94)),
    #0a0c30;
  border-radius: 16px 16px 28px 28px;
}

.testimonials-panel::before,
.testimonials-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.testimonials-panel::before {
  width: 170px;
  height: 170px;
  left: -18px;
  top: 34px;
  background: radial-gradient(circle, rgba(255, 205, 121, 0.5) 0 7%, transparent 8%),
    radial-gradient(ellipse at center, rgba(255, 214, 128, 0.32), transparent 38%);
}

.testimonials-panel::after {
  width: 220px;
  height: 170px;
  right: 18px;
  top: 6px;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(64, 78, 160, 0.42) 19% 20%, transparent 21% 39%, rgba(64, 78, 160, 0.42) 40% 41%, transparent 42% 61%, rgba(64, 78, 160, 0.42) 62% 63%, transparent 64% 100%),
    radial-gradient(circle at 72% 20%, #f8e692 0 1px, transparent 2px),
    radial-gradient(circle at 44% 46%, #f8e692 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(15, 30, 88, 0.9), rgba(6, 9, 36, 0.9));
}

.testimonials h2 {
  margin: 0;
  position: relative;
  z-index: 1;
  color: #fffdf6;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.testimonials h2 span,
.night-cta h3 span {
  color: #a784ff;
}

.review-list {
  --active-review: 0;
  width: min(860px, calc(100% - 200px));
  margin: 14px auto 0;
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  gap: 20px;
}

.review-card {
  min-width: calc((100% - 40px) / 3);
  min-height: 98px;
  padding: 14px 16px 13px;
  transform: translateX(calc(var(--active-review) * (-100% - 20px)));
  transition: transform 180ms ease;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.stars {
  color: #ffd337;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}

.review-card p {
  margin: 8px 0 10px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.28;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.avatar-1 { background: linear-gradient(135deg, #f1c2a5, #5a315f); }
.avatar-2 { background: linear-gradient(135deg, #d8a17a, #28355c); }
.avatar-3 { background: linear-gradient(135deg, #f0d1bb, #234448); }
.avatar-4 { background: linear-gradient(135deg, #d9b7ff, #4a2c79); }

.review-person strong,
.review-person small {
  display: block;
  color: #fffdf6;
  font-size: 11px;
  line-height: 1.15;
}

.review-person small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
}

.slider-button {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 82px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.slider-button-prev { left: 88px; }
.slider-button-next { right: 144px; }

.slider-dots {
  margin-top: 8px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slider-dots span {
  width: 7px;
  height: 7px;
  display: block;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  cursor: pointer;
}

.slider-dots span.is-active {
  background: var(--gold);
}

.night-cta {
  min-height: 120px;
  margin-top: 9px;
  padding: 20px 260px 18px 260px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 44%, rgba(255, 214, 128, 0.35), transparent 18%),
    linear-gradient(90deg, rgba(20, 20, 65, 0.9), rgba(39, 36, 91, 0.76)),
    #17154d;
  border-radius: 10px;
}

.night-cta h3 {
  margin: 0;
  color: #fffdf6;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 800;
  line-height: 1.05;
}

.night-cta p {
  max-width: 510px;
  margin: 8px 0 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.night-cta-button {
  width: 260px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #6d32dc;
  background: linear-gradient(180deg, #ffd98b 0%, #e0a246 100%);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.night-cta-button img {
  width: 20px;
  height: 20px;
}

.night-products {
  position: absolute;
  right: 180px;
  bottom: -26px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.night-products img {
  width: 118px;
  height: 94px;
  object-fit: cover;
  border-radius: 8px;
}

.trust-list {
  margin-top: 10px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.trust-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.trust-item strong,
.trust-item small {
  display: block;
  color: #fffdf6;
  font-size: 11px;
  line-height: 1.15;
}

.trust-item small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

@media (max-width: 760px) {
  .navbar {
    height: auto;
    min-height: 76px;
    padding: 0 18px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 30px;
  }

  .nav-toggle-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    cursor: pointer;
  }

  .nav-toggle-button span {
    width: 20px;
    height: 2px;
    display: block;
    background: var(--cream);
    border-radius: 999px;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .nav-toggle:checked ~ .nav-menu,
  .nav-toggle:checked ~ .nav-cta {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-menu {
    width: 100%;
    padding: 18px 0 2px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    order: 4;
  }

  .nav-toggle:checked ~ .nav-cta {
    width: 100%;
    margin: 4px 0 18px;
    order: 5;
  }

  .hero {
    min-height: 640px;
  }

  .hero-bg {
    min-height: 640px;
    object-position: 61% top;
    opacity: 0.62;
  }

  .hero-content {
    width: calc(100% - 36px);
    top: 34px;
    left: 18px;
  }

  .hero-copy {
    max-width: 360px;
  }

  .hero-features {
    width: min(390px, 100%);
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }

  .hero-feature {
    width: auto;
  }

  .hero-actions {
    width: min(390px, 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta,
  .hero-secondary {
    width: 100%;
  }

  .sleep-problems {
    padding: 18px 18px 22px;
  }

  .sleep-problems-card {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .problem-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
  }

  .intro {
    padding: 28px 18px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intro-copy {
    padding: 0;
  }

  .intro-copy p {
    max-width: 100%;
  }

  .why {
    padding: 24px 18px 30px;
  }

  .why-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .why-item {
    padding: 0;
  }

  .why-item + .why-item {
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid rgba(31, 26, 62, 0.08);
  }

  .testimonials {
    padding: 10px 10px 14px;
  }

  .testimonials-panel {
    padding: 18px;
    border-radius: 16px 16px 24px 24px;
  }

  .review-list {
    width: 100%;
    display: flex;
    gap: 0;
    overflow: hidden;
  }

  .review-card {
    min-width: 100%;
    transform: translateX(calc(var(--active-review) * -100%));
    transition: transform 180ms ease;
  }

  .slider-button {
    top: 130px;
    display: grid;
  }

  .slider-button-prev {
    left: 26px;
  }

  .slider-button-next {
    right: 26px;
  }

  .night-cta {
    padding: 20px 18px 120px;
  }

  .night-products {
    right: 12px;
    bottom: -18px;
  }

  .trust-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-item {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero h1 span {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .problem-list {
    grid-template-columns: 1fr;
  }

  .variant-card {
    padding-inline: 18px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 27px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h1 span {
    font-size: 22px;
  }
}
