@font-face {
  font-family: Rubik;
  src: url("/fonts/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Rubik;
  src: url("/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #070070;
  --cream: #fff7ee;
  --orange: #ffa858;
  --soft: #e3d2ed;
  --rule: #745381;
  font-family: Rubik, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background: var(--navy);
  color: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p { margin: 0; }
img { display: block; }
::selection { background: var(--orange); color: var(--navy); }

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}

.wrap { width: min(86.667%, 1248px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--rule); }
.logo { width: 120px; height: auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding-block: clamp(42px, 7vh, 88px);
}

h1 {
  font-size: clamp(2.5rem, 4.798vw, 4.32rem);
  font-weight: 700;
  line-height: 1.035;
  letter-spacing: -.04em;
}

h1 span { display: block; }
h1 em { position: relative; color: var(--orange); font-style: normal; }
h1 em::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -.03em;
  height: .074em;
  background: currentColor;
  transform: rotate(-1.3deg);
  transform-origin: left center;
}

.intro p {
  max-width: 522px;
  margin-top: 24px;
  color: var(--soft);
  font-size: clamp(1.06rem, 1.45vw, 1.25rem);
  line-height: 1.57;
}

.product { white-space: nowrap; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 52px;
  padding: 10px 23px;
  border-radius: 5.6px;
  background: var(--orange);
  color: #321343;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  touch-action: manipulation;
}

.cta:hover { background: #ffb778; }
.cta:focus-visible { outline: 3px solid #ff9b00; outline-offset: 3px; box-shadow: 0 0 0 3px #20134a; }
.illustration img { width: 100%; height: auto; }

footer {
  border-top: 1px solid var(--rule);
  padding-block: 23px;
  color: var(--soft);
  font-size: .875rem;
  line-height: 1.5;
}

@media (max-width: 700px), (max-width: 900px) and (orientation: portrait) {
  .wrap { width: 90.8%; }
  .logo { width: 94px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    gap: clamp(18px, 3svh, 30px);
    padding-block: clamp(24px, 4svh, 42px);
    text-align: center;
  }
  .illustration {
    grid-row: 1;
    width: min(88%, 350px, 46svh);
  }
  h1 { font-size: clamp(1.89rem, 9.64vw, 3.4rem); }
  .intro p { max-width: 352px; margin: 17px auto 0; font-size: 1.03rem; text-wrap: balance; }
  .cta { margin-top: 22px; min-height: 48px; padding-inline: 17px; font-size: .96rem; }
  footer { padding-block: 16px; text-align: center; }
}

@media (min-width: 701px) and (max-width: 900px) and (orientation: portrait) {
  .illustration { width: min(66%, 455px); }
  .intro p { max-width: 490px; font-size: 1.125rem; }
}

@media (max-width: 700px) and (max-height: 680px) {
  .logo { width: 78px; }
  .hero { padding-block: 16px; gap: 12px; }
  .illustration { width: min(68%, 32svh); }
  .intro p { margin-top: 14px; }
  .cta { margin-top: 16px; }
  footer { padding-block: 12px; }
}

@media (orientation: landscape) and (min-width: 480px) and (max-height: 580px) {
  .logo { width: clamp(46px, 15vh, 64px); }
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
    align-content: center;
    justify-items: stretch;
    gap: clamp(14px, 2vw, 26px);
    padding-block: 10px;
    text-align: left;
  }
  .intro { grid-area: 1 / 1; }
  h1 { font-size: clamp(1.7rem, 4.2vw, 3rem); }
  .illustration { grid-area: 1 / 2; width: min(100%, 66vh); justify-self: center; }
  .intro p { max-width: 522px; margin: 12px 0 0; font-size: clamp(.94rem, 1.7vw, 1rem); line-height: 1.4; text-wrap: wrap; }
  .cta { margin-top: 12px; min-height: 44px; }
  footer { padding-block: 8px; }
}
