@import url("https://fonts.googleapis.com/css2?family=Forum&family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;500;600&display=swap");

:root {
  --deep: #030e1f;
  --deep-2: #071529;
  --gold: #f8ecb3;
  --gold-soft: #fff7d2;
  --text: #040404;
  --content: 1100px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--deep);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--deep);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 32px), var(--content));
  transform: translateX(-50%);
  padding: 16px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 21px;
  height: 20px;
  border-radius: 5px;
  background:
    center / cover no-repeat url("https://con.xl.ru/jLdvFS9X2UqmCxo_fOj78Q/images/CuR-igL7ckC70tht05EKyA.png"),
    linear-gradient(318deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
}

.brand-text {
  font-family: "Forum", Georgia, serif;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.site-nav a {
  color: #e5e7eb;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(248, 236, 179, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.social-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
}

.section-inner {
  width: min(calc(100% - 100px), var(--content));
  margin: 0 auto;
}

.sleep-page {
  flex: 1;
  display: flex;
  background: var(--deep);
}

.sleep-hero {
  position: relative;
  flex: 1;
  min-height: max(738px, calc(100svh - 177px));
  padding: 112px 0 52px;
  background: var(--deep);
  overflow: hidden;
}

.sleep-hero__background {
  position: absolute;
  top: 16px;
  left: 50%;
  width: min(1200px, 100%);
  height: 623px;
  transform: translateX(-50%);
  background: center top / cover no-repeat url("https://con.xl.ru/jLdvFS9X2UqmCxo_fOj78Q/images/QV3cfOjAGEa2akHMjTlPsA.png");
  pointer-events: none;
}

.sleep-hero__blur {
  position: absolute;
  border-radius: 999px;
  background: #030e1f;
  filter: blur(50px);
  pointer-events: none;
}

.sleep-hero__blur--wide {
  left: 50%;
  bottom: 140px;
  width: min(962px, calc(100% - 120px));
  height: 145px;
  transform: translateX(-50%);
}

.sleep-hero__blur--left,
.sleep-hero__blur--right {
  top: 76px;
  width: 145px;
  height: 464px;
}

.sleep-hero__blur--left {
  left: max(24px, calc(50% - 478px));
}

.sleep-hero__blur--right {
  right: max(24px, calc(50% - 478px));
}

.sleep-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sleep-hero h1 {
  max-width: 848px;
  margin: 24px 0 16px;
  color: var(--gold);
  font-family: "Forum", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.sleep-hero__lead {
  max-width: 642px;
  margin: 0;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.sleep-hero__lead + .sleep-hero__lead {
  margin-top: 18px;
}

.sleep-hero__callout {
  max-width: 727px;
  margin-top: 164px;
}

.sleep-hero__callout p {
  margin: 0;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.sleep-hero__question {
  margin-top: 12px;
  color: var(--gold) !important;
  font-family: "Forum", Georgia, serif !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
}

.gold-button {
  margin-top: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 16px;
  border-radius: 10px;
  color: var(--deep);
  background: linear-gradient(318deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
  font-family: "Forum", Georgia, serif;
  font-size: 24px;
  line-height: 1.05;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gold-button:hover,
.gold-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(248, 236, 179, 0.22);
}

.gold-button span {
  width: 49px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(270deg, #ffed97 0%, #fff5c7 50%, #ffed97 100%);
}

.gold-button span img {
  width: 28px;
  height: auto;
}

.site-footer {
  width: 100%;
  padding: 40px max(24px, calc((100vw - 1200px) / 2 + 89px)) 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: rgba(255, 255, 255, 0.9);
  background: #000204;
}

.site-footer__brand {
  display: grid;
  gap: 8px;
}

.brand--footer .brand-text {
  color: #fff;
}

.site-footer__brand p,
.site-footer__links a {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.site-footer__links {
  max-width: 525px;
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
}

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

@media (min-width: 781px) and (max-width: 1180px) {
  .sleep-hero {
    flex: 0 0 auto;
    min-height: auto;
    padding: 112px max(48px, calc((100% - 560px) / 2)) 48px;
  }

  .sleep-hero__background {
    top: 214px;
    width: min(100%, 780px);
    height: 430px;
    left: 50%;
    transform: translateX(-50%);
    background-position: center center;
    background-size: cover;
  }

  .sleep-hero__blur--left,
  .sleep-hero__blur--right {
    display: none;
  }

  .sleep-hero__blur--wide {
    bottom: 170px;
    width: min(calc(100% - 64px), 760px);
    height: 124px;
  }

  .sleep-hero__inner {
    position: relative;
    left: auto;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    transform: none;
    align-items: center;
    text-align: center;
  }

  .sleep-hero h1 {
    margin-top: 8px;
    max-width: 560px;
    margin-inline: auto;
    align-self: center;
    font-size: 34px;
    text-align: center;
  }

  .sleep-hero__lead,
  .sleep-hero__callout p {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    align-self: center;
    text-align: center;
    font-size: 15px;
  }

  .sleep-hero__callout {
    width: 100%;
    max-width: 560px;
    margin-top: 120px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sleep-hero__question {
    max-width: 560px;
    margin-inline: auto;
    align-self: center;
    font-size: 28px !important;
    text-align: center;
  }

  .gold-button {
    width: min(100%, 320px);
    margin-inline: auto;
    align-self: center;
  }
}

@media (min-width: 781px) and (max-width: 980px) {
  .sleep-hero {
    padding-inline: max(36px, calc((100% - 520px) / 2));
  }

  .sleep-hero__background {
    top: 198px;
    width: min(100%, 700px);
    height: 400px;
  }

  .sleep-hero__blur--wide {
    bottom: 160px;
    width: min(calc(100% - 48px), 680px);
  }

  .sleep-hero__callout {
    margin-top: 108px;
  }

  .sleep-hero__inner {
    max-width: 520px;
  }

  .sleep-hero h1 {
    max-width: 520px;
    font-size: 32px;
  }

  .sleep-hero__lead,
  .sleep-hero__callout,
  .sleep-hero__question {
    max-width: 520px;
  }

}

@media (max-width: 1180px) {
  .site-footer {
    padding-inline: 32px;
  }
}

@media (max-width: 780px) {
  .site-header {
    top: 8px;
    width: min(calc(100% - 28px), var(--content));
    padding: 16px 19px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 28px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-toggle span {
    width: 18px;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .social-links {
    display: none;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 4px;
  }

  .site-nav.is-open + .social-links,
  .site-header:has(.site-nav.is-open) .social-links {
    display: flex;
  }

  .section-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .sleep-hero {
    padding: 112px 0 48px;
  }

  .sleep-hero__background {
    top: 86px;
    height: auto;
    bottom: 52px;
    width: 100%;
    left: 0;
    transform: none;
    background-position: center top;
    background-size: cover;
  }

  .sleep-hero__blur--left,
  .sleep-hero__blur--right {
    display: none;
  }

  .sleep-hero__blur--wide {
    bottom: 164px;
    width: calc(100% - 28px);
    height: 132px;
  }

  .sleep-hero h1 {
    margin-top: 8px;
    font-size: 32px;
  }

  .sleep-hero__lead,
  .sleep-hero__callout p {
    font-size: 15px;
  }

  .sleep-hero__callout {
    margin-top: 134px;
  }

  .sleep-hero__question {
    font-size: 28px !important;
  }

  .gold-button {
    width: min(100%, 320px);
  }
}

@media (max-width: 540px) {
  .sleep-hero h1 {
    font-size: 28px;
  }

  .sleep-hero__background {
    top: 96px;
    bottom: 48px;
    background-position: center center;
  }

  .sleep-hero__callout {
    margin-top: 112px;
  }

  .sleep-hero__question {
    font-size: 24px !important;
  }

  .gold-button {
    font-size: 21px;
  }

  .site-footer {
    padding: 36px 20px;
  }
}

@media (max-width: 980px) {
  .site-footer {
    flex-direction: column;
  }
}
