*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --pink: #fe1786;
  --pink-soft: #ff4da0;
  --text: #111;
  --text-muted: #5a5a5a;
  --white: #fefefe;
  --bg-prices: #f2f5f4;
  --font: "Geologica", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1440px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(254, 23, 134, 0.18);
  color: #111;
}

img {
  display: block;
  max-width: 100%;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn--fill {
  background: var(--pink);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  min-width: 300px;
  border-radius: 30px;
  box-shadow: 0 10px 28px rgba(254, 23, 134, 0.28);
}

.btn--fill:hover {
  background: var(--pink-soft);
  box-shadow: 0 14px 34px rgba(254, 23, 134, 0.36);
  transform: translateY(-1px);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.55);
  color: #111;
  border: 2px solid var(--pink);
  padding: 12px 24px;
  font-size: 22px;
  width: 100%;
  max-width: 460px;
  border-radius: 80px;
  height: 50px;
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(254, 23, 134, 0.25);
}

.btn--outline:focus-visible {
  outline-color: var(--pink);
}

/* Hero */
.hero {
  position: relative;
  height: 800px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0%, transparent 35%);
  pointer-events: none;
}

.nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1600px);
  padding: 60px 80px 0;
}

.nav__vk,
.footer__vk,
.lang__item,
.nav__logo,
.footer__logo,
.footer__policy {
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__vk:hover,
.footer__vk:hover,
.nav__logo:hover,
.footer__logo:hover {
  transform: scale(1.04);
  opacity: 0.95;
}

.nav__vk:focus-visible,
.footer__vk:focus-visible,
.nav__logo:focus-visible,
.lang__item:focus-visible,
.footer__logo:focus-visible,
.footer__policy:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 8px;
}

.footer__policy:focus-visible,
.lang__item:focus-visible {
  outline-color: var(--pink);
}

.nav__vk {
  justify-self: start;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(254, 23, 134, 0.25);
}

.nav__vk img {
  width: 56px;
  height: 56px;
}

.nav__logo {
  justify-self: center;
  width: 200px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}

.nav__logo img {
  width: 100%;
  height: auto;
}

.lang {
  justify-self: end;
  display: inline-flex;
  align-items: stretch;
  height: 56px;
  border-radius: 50px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  font-size: 20px;
  color: var(--pink);
}

.lang__item:hover:not(.lang__item--active) {
  background: rgba(254, 23, 134, 0.08);
}

.lang__item--active {
  background: var(--pink);
  color: var(--white);
  border-radius: 50px 0 0 50px;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 0 24px;
  margin-top: 40px;
  animation: rise-in 0.9s var(--ease) both;
}

.hero__title {
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  max-width: 18ch;
}

/* About */
.about {
  background: #fff;
  padding: 132px 24px 88px;
}

.about__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  margin: 0 0 22px;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.about p {
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
  color: #222;
}

/* Prices */
.prices {
  background: var(--bg-prices);
  padding: 96px 24px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.prices__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(640px, 100%);
  font-size: 24px;
  line-height: 1.55;
}

.prices__list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 0;
}

.prices__list .dots {
  flex: 1;
  border-bottom: 1.5px dotted rgba(17, 17, 17, 0.45);
  min-width: 16px;
  transform: translateY(-4px);
}

.prices__list li > span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.prices__mark {
  width: 56px;
  height: auto;
  opacity: 0.92;
}

/* Form */
.form-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
}

.form-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.form-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.form-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 246, 0.18);
  pointer-events: none;
}

.form-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
  width: min(1180px, 100%);
}

.form-section__key {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-section__key img {
  width: min(500px, 92%);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.18));
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease);
}

.form-section__key:hover img {
  transform: rotate(1deg) translateY(-4px);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 460px;
  margin-left: auto;
  margin-right: 32px;
  padding: 28px 28px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(60, 40, 30, 0.08);
}

.field input {
  width: 100%;
  height: 50px;
  border: none;
  border-bottom: 2px dotted rgba(17, 17, 17, 0.55);
  background: transparent;
  font-family: inherit;
  font-size: 22px;
  padding: 8px 2px;
  color: #111;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s var(--ease), border-bottom-style 0.25s var(--ease);
}

.field input::placeholder {
  color: #111;
  opacity: 0.48;
}

.field input:hover {
  border-bottom-color: rgba(254, 23, 134, 0.45);
}

.field input:focus {
  border-bottom-style: solid;
  border-bottom-color: var(--pink);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 4px;
}

.consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.consent__box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid #333;
  border-radius: 4px;
  margin-top: 2px;
  background: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.consent:hover .consent__box {
  border-color: var(--pink);
}

.consent input:focus-visible + .consent__box {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.consent input:checked + .consent__box {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: inset 0 0 0 3px #fff;
}

.consent__text {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  max-width: 390px;
  color: #333;
}

.consent__text a {
  color: inherit;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.consent__text a:hover {
  color: var(--pink);
  border-bottom-color: rgba(254, 23, 134, 0.45);
}

/* Outro */
.outro {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.outro__bg {
  position: absolute;
  inset: 0;
}

.outro__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.outro__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.outro__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

/* Footer */
.footer {
  background: #fff;
  padding: 68px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer__logo {
  width: 188px;
}

.footer__logo img {
  width: 100%;
  height: auto;
}

.footer__vk {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  box-shadow: 0 6px 16px rgba(254, 23, 134, 0.22);
}

.footer__vk img {
  width: 100%;
  height: 100%;
}

.footer__policy {
  max-width: 420px;
  font-size: 18px;
  line-height: 1.35;
  color: #222;
  border-bottom: 1px solid transparent;
}

.footer__policy:hover {
  color: var(--pink);
  border-bottom-color: rgba(254, 23, 134, 0.35);
}

.footer__copy {
  margin: 4px 0 0;
  font-size: 18px;
  color: #333;
}

.footer__legal {
  margin: 4px 0 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__content,
  .btn,
  .nav__vk,
  .footer__vk,
  .nav__logo,
  .footer__logo,
  .form-section__key img {
    animation: none !important;
    transition: none !important;
  }
}

/* Tablet */
@media (max-width: 1100px) {
  .nav {
    padding: 36px 32px 0;
  }

  .hero {
    height: auto;
    min-height: 640px;
    padding: 140px 0 80px;
  }

  .hero__title,
  .about h2,
  .outro__text {
    font-size: 34px;
  }

  .btn--fill {
    font-size: 22px;
    min-width: 260px;
  }

  .about p,
  .prices__list {
    font-size: 20px;
  }

  .about {
    padding: 100px 24px 64px;
  }

  .prices {
    padding: 80px 24px;
  }

  .form-section__inner {
    gap: 20px;
  }

  .lead-form {
    margin-right: 0;
  }

  .outro {
    height: 520px;
  }
}

/* Mobile */
@media (max-width: 800px) {
  .nav {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 24px 16px 0;
    width: 100%;
  }

  .nav__logo {
    width: 140px;
  }

  .nav__vk {
    width: 44px;
    height: 44px;
  }

  .nav__vk img {
    width: 44px;
    height: 44px;
  }

  .lang {
    height: 44px;
  }

  .lang__item {
    width: 48px;
    font-size: 16px;
  }

  .hero {
    min-height: 620px;
    padding: 120px 0 72px;
  }

  .hero__title {
    font-size: 26px;
    max-width: 14ch;
  }

  .btn--fill {
    font-size: 18px;
    min-width: 0;
    width: min(300px, calc(100vw - 48px));
    padding: 12px 24px;
    box-shadow: 0 8px 20px rgba(254, 23, 134, 0.24);
  }

  .about h2 {
    font-size: 26px;
  }

  .about p {
    font-size: 17px;
    line-height: 1.5;
  }

  .about p br {
    display: none;
  }

  .prices__list {
    font-size: 16px;
    line-height: 1.6;
  }

  .form-section {
    min-height: auto;
    padding: 40px 16px 56px;
  }

  .form-section__inner {
    grid-template-columns: 1fr;
  }

  .form-section__key img {
    width: min(260px, 72%);
    transform: none;
  }

  .form-section__key:hover img {
    transform: translateY(-3px);
  }

  .lead-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 22px 18px 24px;
  }

  .btn--outline {
    max-width: 100%;
  }

  .outro {
    height: 420px;
  }

  .outro__text {
    font-size: 26px;
  }

  .footer {
    gap: 14px;
    padding: 56px 20px 64px;
  }

  .footer__policy,
  .footer__copy {
    font-size: 15px;
  }

  .footer__legal {
    font-size: 13px;
  }
}

/* Legal / policy page */
.legal-page {
  background: #fff;
  /* отступы от краёв экрана */
  padding-inline: clamp(28px, 10vw, 160px);
  padding-block: 12px 48px;
  box-sizing: border-box;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 0 16px;
}

.legal-top__logo img {
  width: 140px;
  height: auto;
}

.legal-top__back {
  color: var(--pink);
  font-size: 15px;
  font-weight: 400;
  flex-shrink: 0;
}

.legal-top__back:hover {
  text-decoration: underline;
}

.legal {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 64px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

.legal h1 {
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.3;
}

.legal h2 {
  margin: 44px 0 16px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text);
}

.legal h2:first-of-type {
  margin-top: 8px;
}

.legal h3 {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.legal p {
  margin: 0 0 14px;
}

.legal .legal-lead {
  margin: 0 0 8px;
}

.legal-list {
  margin: 0 0 18px;
  padding: 0 0 0 1.25em;
  list-style: disc;
}

.legal-list li {
  margin: 0 0 10px;
  padding-left: 0.15em;
  line-height: 1.65;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.footer--legal {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 0 24px;
  border-top: 1px solid #eee;
  text-align: left;
  display: block;
  align-items: flex-start;
}

.footer--legal .footer__copy {
  margin: 0 0 12px;
}

.footer--legal .footer__legal {
  margin: 0;
}

@media (max-width: 640px) {
  .legal-page {
    padding-inline: clamp(20px, 6vw, 32px);
    padding-block: 8px 32px;
  }

  .legal {
    padding: 4px 0 48px;
    font-size: 15px;
    line-height: 1.65;
  }

  .legal h1 {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .legal h2 {
    margin-top: 36px;
  }

  .legal-list {
    padding-left: 1.1em;
  }

  .legal-top {
    padding: 18px 0 10px;
  }

  .footer--legal {
    padding: 22px 0 16px;
  }
}
