:root {
  --color-text: #192033;
  --color-muted: #667085;
  --color-surface: rgba(255, 255, 255, 0.78);
  --color-lavender: #d9cdfa;
  --color-mint: #c9f1e8;
  --color-blue-soft: #d9edff;
  --shadow-soft: 0 24px 70px rgba(84, 98, 130, 0.16);
  --shadow-button: 0 18px 34px rgba(48, 113, 212, 0.25);
  --radius-xl: 34px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 14% 18%, rgba(217, 205, 250, 0.55), transparent 34vw),
    radial-gradient(circle at 86% 82%, rgba(201, 241, 232, 0.56), transparent 32vw),
    linear-gradient(135deg, #fffdfb 0%, #f8fbff 48%, #fefcff 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 86px);
  gap: clamp(28px, 6vw, 92px);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__text {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.58;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: clamp(30px, 4.4vw, 54px);
}

.social-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  min-width: 210px;
  padding: 20px 28px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transform: translateY(0) scale(1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.social-button:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 24px 44px rgba(48, 113, 212, 0.34);
  filter: saturate(1.08);
}

.social-button:focus-visible {
  outline: 4px solid rgba(95, 200, 226, 0.42);
  outline-offset: 5px;
}

.social-button--telegram {
  background: linear-gradient(135deg, #33b6ed 0%, #1f8fe5 100%);
}

.social-button--vk {
  background: linear-gradient(135deg, #5d73f5 0%, #3165dd 52%, #6f54e8 100%);
}

.social-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-right: 12px;
  flex: 0 0 auto;
}

.social-button__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(380px, 52vw, 680px);
  isolation: isolate;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: min(92%, 590px);
  aspect-ratio: 1;
  border-radius: 42% 58% 53% 47% / 45% 42% 58% 55%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.46)),
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(135deg, rgba(217, 205, 250, 0.78), rgba(201, 241, 232, 0.7));
  box-shadow: var(--shadow-soft);
  z-index: -2;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.92;
  z-index: -1;
}

.shape--lavender {
  width: clamp(126px, 17vw, 232px);
  aspect-ratio: 1;
  top: 9%;
  left: 3%;
  background: linear-gradient(135deg, rgba(217, 205, 250, 0.88), rgba(237, 231, 255, 0.58));
}

.shape--mint {
  width: clamp(116px, 15vw, 210px);
  aspect-ratio: 1;
  right: 1%;
  bottom: 12%;
  background: linear-gradient(135deg, rgba(201, 241, 232, 0.9), rgba(231, 252, 246, 0.62));
}

.shape--blue {
  width: clamp(86px, 10vw, 150px);
  aspect-ratio: 1;
  right: 13%;
  top: 10%;
  background: linear-gradient(135deg, rgba(217, 237, 255, 0.92), rgba(238, 247, 255, 0.62));
}

.hero__image {
  width: min(92%, 560px);
  max-height: min(72vh, 670px);
  object-fit: contain;
  filter: drop-shadow(0 30px 44px rgba(51, 64, 86, 0.18));
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(20px, 5vw, 44px);
    padding: clamp(28px, 7vw, 60px);
    text-align: center;
  }

  .hero__content {
    max-width: 760px;
    margin: 0 auto;
  }

  .hero h1,
  .hero p {
    max-width: none;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    min-height: clamp(220px, 42vw, 390px);
  }

  .hero__image {
    width: min(76%, 390px);
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .hero {
    justify-items: center;
    padding: 30px 20px 24px;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.05;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
  }

  .social-button {
    width: 100%;
    min-height: 62px;
    min-width: 0;
    padding: 18px 24px;
  }

  .hero__visual {
    width: 100%;
    min-height: 185px;
    margin-top: 4px;
  }

  .hero__visual::before {
    width: min(74%, 280px);
  }

  .shape--lavender {
    width: 96px;
    left: 9%;
    top: 0;
  }

  .shape--mint {
    width: 104px;
    right: 9%;
    bottom: 4%;
  }

  .shape--blue {
    display: none;
  }

  .hero__image {
    width: min(64%, 240px);
    max-height: 190px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-inline: 16px;
  }

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

  .social-button {
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
