:root {
  --red: #ff2e2e;
  --yellow: #ffdc3e;
  --ink: #171717;
  --muted: #686868;
  --surface: #f5f5f3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgb(255 46 46 / 10%), transparent 25%),
    radial-gradient(circle at 92% 7%, rgb(255 220 62 / 24%), transparent 28%),
    linear-gradient(180deg, #fffef8 0%, #fff 42%, #fffdf4 100%);
  font-family: "Manrope", Arial, sans-serif;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: radial-gradient(rgb(23 23 23 / 8%) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}

body::after {
  position: fixed;
  z-index: 0;
  right: -120px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  border: 70px solid rgb(255 46 46 / 6%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.header,
main,
footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -2px;
}

.logo span {
  color: var(--red);
}

.header-gift {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 16px 10px 12px;
  border: 1px solid #f0e4a8;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff9d9, #ffef9c);
  box-shadow: 0 6px 20px rgb(255 220 62 / 18%);
  color: #3a3213;
  font-size: 14px;
  font-weight: 700;
}

.header-gift span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 610px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface);
}

.hero__content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 70px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero__text {
  max-width: 550px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 17px 22px 17px 26px;
  border-radius: 14px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 30px rgb(255 46 46 / 24%);
  font-size: 16px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button span {
  font-size: 22px;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgb(255 46 46 / 32%);
}

.note {
  margin: 14px 0 0;
  color: #999;
  font-size: 12px;
}

.hero__visual {
  position: relative;
  min-height: 520px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb--yellow {
  top: 62px;
  right: -85px;
  width: 440px;
  height: 440px;
  background: var(--yellow);
}

.orb--red {
  right: 310px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  background: var(--red);
}

.search-card,
.mini-card {
  position: absolute;
  z-index: 1;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 13%);
  backdrop-filter: blur(12px);
}

.search-card {
  top: 190px;
  right: 48px;
  left: 25px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  border: 3px solid var(--yellow);
  border-radius: 19px;
  transform: rotate(-3deg);
}

.search-card__mark {
  color: var(--red);
  font-size: 30px;
  font-weight: 800;
}

.search-card__line {
  color: #777;
  font-size: 16px;
}

.search-card__button {
  padding: 15px 24px;
  border-radius: 11px;
  background: var(--yellow);
  font-weight: 700;
}

.mini-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  min-width: 150px;
  padding: 18px;
  border-radius: 20px;
}

.mini-card > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 27px;
}

.mini-card strong {
  font-size: 16px;
}

.mini-card small {
  color: var(--muted);
}

.mini-card--weather {
  top: 72px;
  left: 28px;
  transform: rotate(5deg);
}

.mini-card--mail {
  right: 55px;
  bottom: 78px;
  transform: rotate(4deg);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 72px 0;
}

.features article {
  padding: 30px;
  border: 1px solid #e9e9e6;
  border-radius: 22px;
}

.feature-icon {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.kinopoisk {
  margin-top: 24px;
  padding: 48px 56px;
  border-radius: 32px;
  background: linear-gradient(135deg, #171717 0%, #2a2a2a 100%);
  color: #fff;
}

.kinopoisk .eyebrow {
  color: var(--yellow);
}

.kinopoisk h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.kinopoisk__text {
  max-width: 680px;
  margin: 18px 0 22px;
  color: rgb(255 255 255 / 72%);
  font-size: 16px;
  line-height: 1.65;
}

.kinopoisk__code {
  margin: 0 0 28px;
  font-size: 15px;
}

.kinopoisk__code strong {
  display: inline-block;
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgb(255 255 255 / 10%);
  color: var(--yellow);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.button--dark {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 12px 30px rgb(255 220 62 / 24%);
}

.button--dark:hover {
  box-shadow: 0 16px 34px rgb(255 220 62 / 32%);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 38px;
  border-top: 1px solid #eee;
  color: #8a8a8a;
  font-size: 12px;
}

.logo--small {
  color: var(--ink);
  font-size: 20px;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 54px 40px 20px;
  }

  .hero__visual {
    min-height: 390px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .header {
    height: 70px;
  }

  .hero {
    min-height: auto;
    border-radius: 24px;
  }

  .hero__content {
    padding: 40px 24px 14px;
  }

  h1 {
    font-size: 48px;
  }

  .hero__text {
    margin: 22px 0 28px;
    font-size: 16px;
  }

  .button {
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
  }

  .hero__visual {
    min-height: 340px;
  }

  .orb--yellow {
    top: 32px;
    right: -130px;
    width: 350px;
    height: 350px;
  }

  .orb--red {
    right: auto;
    bottom: -75px;
    left: -25px;
    width: 180px;
    height: 180px;
  }

  .search-card {
    top: 140px;
    right: 18px;
    left: 18px;
    gap: 9px;
  }

  .search-card__line {
    font-size: 13px;
  }

  .search-card__button {
    padding: 13px 15px;
  }

  .mini-card--weather {
    top: 34px;
    left: 18px;
  }

  .mini-card--mail {
    right: 20px;
    bottom: 28px;
  }

  .features {
    padding: 42px 0;
  }

  .kinopoisk {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .kinopoisk__code strong {
    display: block;
    width: fit-content;
    margin: 10px 0 0;
  }

  .button--dark {
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
  }

  footer {
    align-items: flex-start;
    gap: 20px;
  }

  footer p {
    margin: 2px 0 0;
    text-align: right;
  }
}
