/* Первый экран АСТРЫ. Все его стили собраны здесь для следующих итераций. */
#hero {
  --hero-bottom-space: 9.8svh;
  --hero-wave-height: clamp(84px, 12svh, 126px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center;
  align-content: stretch;
  row-gap: clamp(16px, 2.8svh, 28px);
  min-height: 100vh;
  min-height: 100svh;
  padding: 30svh 20px 9.8svh;
  padding-top: max(30svh, env(safe-area-inset-top, 0px));
  padding-bottom: max(var(--hero-bottom-space), env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  overflow: clip;
  text-align: center;
  background: #827087;
}

#hero .bg {
  position: absolute;
  inset: -10% -25%;
  z-index: 0;
  opacity: .65;
  filter: blur(2px);
  pointer-events: none;
}

#hero .herophoto {
  position: absolute;
  inset: -7%;
  z-index: 0;
  width: 114%;
  height: 114%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.76) brightness(.88);
  transform-origin: 50% 90%;
  animation: hero-breeze 7s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

/* Фото → затемнение → логотип, текст и кнопка. */
#hero::before,
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#hero::before {
  background: linear-gradient(180deg, rgba(39, 23, 45, .08), rgba(39, 23, 45, .2) 42%, rgba(35, 23, 40, .42) 82%, rgba(35, 23, 40, .3));
}

#hero::after {
  top: auto;
  bottom: -1px;
  height: clamp(48px, 12svh, 120px);
  background: linear-gradient(180deg, transparent, #f4eaf0);
}

#hero .logo,
#hero .slogan,
#hero .cta {
  position: relative;
  z-index: 3;
  animation: hero-appear .8s ease-out both;
}

#hero .logo {
  grid-row: 1;
  width: clamp(148px, min(52vw, 24svh), 280px);
  aspect-ratio: 1;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(255, 253, 255, .5), rgba(248, 237, 250, .34) 50%, rgba(241, 217, 243, .29));
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  box-shadow: 0 10px 28px rgba(36, 18, 41, .14), 0 0 0 2px rgba(255, 255, 255, .22), inset -3px 3px 5px rgba(255, 255, 255, .9), inset 3px -3px 5px rgba(255, 255, 255, .76);
}

#hero .logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
}

#hero .logo::before,
#hero .logo::after,
#hero .cta::before,
#hero .cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

#hero .logo::before {
  z-index: 1;
  background: radial-gradient(ellipse at 86% 12%, rgba(255, 255, 255, .64), transparent 27%), radial-gradient(ellipse at 8% 85%, rgba(255, 242, 255, .52), transparent 25%);
}

#hero .logo::after {
  z-index: 2;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-top-color: rgba(82, 50, 86, .32);
  border-right-color: rgba(255, 255, 255, .8);
  box-shadow: 0 0 2px rgba(255, 255, 255, .6), inset 0 0 2px rgba(255, 255, 255, .28);
}

#hero .slogan {
  grid-row: 3;
  color: #fff;
  text-shadow: 0 1px 12px rgba(20, 10, 28, .35);
  animation-delay: .08s;
}

#hero .slogan h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  font-style: normal;
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: balance;
}

#hero .slogan h1 em { font-weight: inherit; font-style: normal; }

#hero .slogan-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 128px;
  height: 14px;
  margin: 12px auto 10px;
  color: rgba(255, 255, 255, .83);
}

#hero .slogan-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72));
}
#hero .slogan-divider i:last-child { transform: scaleX(-1); }
#hero .slogan-divider svg {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

#hero .slogan p {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .01em;
}

#hero .cta {
  grid-row: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(80vw, 420px);
  max-width: 100%;
  height: 78px;
  min-height: 78px;
  padding: 9px 12px 9px 24px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 40px;
  background: linear-gradient(112deg, rgba(235, 212, 245, .66), rgba(247, 240, 249, .5) 55%, rgba(252, 249, 251, .58));
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 12px 28px rgba(37, 21, 44, .13), inset -2px 3px 4px rgba(255, 255, 255, .78), inset 1px -2px 3px rgba(255, 255, 255, .24);
  color: #623168;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
  text-align: left;
  text-decoration: none;
  animation-delay: .16s;
  transition: border-color .25s, box-shadow .25s;
}

#hero .cta::before {
  background: radial-gradient(ellipse at 88% 0%, rgba(255, 255, 255, .62), transparent 47%), radial-gradient(ellipse at 12% 100%, rgba(225, 194, 241, .3), transparent 58%);
}
#hero .cta::after {
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
}
#hero .cta-label { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; white-space: nowrap; }
#hero .cta-flower { width: 24px; height: 24px; flex: 0 0 24px; color: #fff; stroke-width: 1.2; }

#hero .cta i {
  display: grid;
  position: relative;
  z-index: 1;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(140deg, rgba(255, 255, 255, .6), rgba(250, 244, 252, .24));
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, .74), 0 2px 8px rgba(64, 40, 68, .08);
  color: #623168;
  font-style: normal;
  transition: transform .25s;
}

#hero .cta i svg { width: 24px; height: 24px; stroke-width: 1.3; }

@media (hover: hover) {
  #hero .cta:hover { border-color: rgba(255, 255, 255, .85); box-shadow: 0 14px 38px rgba(20, 10, 28, .25), inset 0 1px 3px rgba(255, 255, 255, .9); }
  #hero .cta:hover i { transform: translateX(3px); }
}

#hero .cta:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
#hero .cta:active { box-shadow: inset 0 2px 8px rgba(20, 10, 28, .15), inset 0 1px 1px rgba(255, 255, 255, .5); }

@media (max-width: 620px) {
  #hero .slogan h1 { font-size: 28px; }
}

@media (max-width: 360px) {
  #hero .cta { gap: 8px; padding-left: 18px; padding-right: 9px; font-size: 17px; }
  #hero .cta-label { gap: 10px; }
  #hero .cta-flower { width: 22px; height: 22px; flex-basis: 22px; }
}

/* Плавный поворот вокруг основания создаёт заметное покачивание от ветерка.
   Запас изображения за краями исключает просветы во время движения. */
@keyframes hero-breeze {
  from { transform: translate3d(-.8%, .2%, 0) rotate(-1.35deg) scale(1.025); }
  to { transform: translate3d(.8%, -.2%, 0) rotate(1.35deg) scale(1.025); }
}
@keyframes hero-appear {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-height: 720px) {
  #hero { --hero-bottom-space: 7svh; row-gap: 14px; padding-top: max(18svh, env(safe-area-inset-top, 0px)); }
  #hero .logo { width: clamp(138px, min(52vw, 24svh), 190px); }
}

@media (max-height: 480px) {
  #hero { --hero-bottom-space: 24px; row-gap: 14px; padding-top: 24px; }
  #hero .logo { width: 120px; }
  #hero .slogan h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  #hero .herophoto, #hero .logo, #hero .slogan, #hero .cta { animation: none; }
  #hero .herophoto { will-change: auto; }
  #hero .cta, #hero .cta i { transition: none; }
}

/* Волны лежат на фотографии; отдельного блока между секциями нет. */
#hero::after {
  display: block;
  height: clamp(130px, 20svh, 210px);
  background: linear-gradient(180deg,
    rgba(242, 200, 217, 0),
    rgba(242, 200, 217, .06) 25%,
    rgba(246, 217, 230, .28) 62%,
    rgba(248, 229, 237, .72));
}

.hero-transition {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--hero-wave-height);
  margin: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.hero-transition-wave {
  display: block;
  width: 100%;
  height: 100%;
}

.transition-arrow {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 72%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid rgba(178, 93, 126, .48);
  border-bottom: 1.5px solid rgba(178, 93, 126, .48);
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-height: 600px) {
  #hero { --hero-wave-height: 48px; }
  .transition-arrow { width: 10px; height: 10px; }
}

/* На телефоне волны начинаются за первым экраном; композиция остаётся на месте. */
@media (max-width: 620px) {
  #hero {
    min-height: calc(100svh + var(--hero-wave-height));
    min-height: calc(100dvh + var(--hero-wave-height));
    padding-bottom: calc(max(var(--hero-bottom-space), env(safe-area-inset-bottom, 0px)) + var(--hero-wave-height));
  }
}
