@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap");

:root {
  --ink: #1a332c;
  --ink-soft: rgba(26, 51, 44, 0.55);
  --lake: #2f86a3;
  --sand: #a56b45;
  --paper: #f4f7f5;
  --space: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.top {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.15rem 1.5rem;
  padding: calc(1.15rem + env(safe-area-inset-top, 0px)) var(--space) 0.9rem;
  color: var(--ink);
}

.top::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 18rem);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(244, 247, 245, 0.55) 0%,
    rgba(244, 247, 245, 0.4) 22%,
    rgba(244, 247, 245, 0.2) 48%,
    rgba(244, 247, 245, 0.06) 74%,
    rgba(244, 247, 245, 0) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 30%, rgba(0, 0, 0, 0.28) 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 30%, rgba(0, 0, 0, 0.28) 62%, transparent 100%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 0 16px rgba(244, 247, 245, 0.95);
}

.logo__mark {
  width: auto;
  height: 1.85rem;
  display: block;
  flex: none;
  filter: drop-shadow(0 1px 1px rgba(26, 51, 44, 0.55));
}

.top__phone {
  margin-left: auto;
  flex: none;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(244, 247, 245, 0.95);
}

.nav-fold {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-fold__toggle {
  display: none;
}

/* Закрытый details прячет содержимое сильнее, чем .nav { display: flex }. */
details.nav-fold::details-content {
  display: contents;
}

details.nav-fold > .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
}

.nav a {
  text-shadow: 0 0 16px rgba(244, 247, 245, 0.95);
}

.hero {
  --bottle-x: 70%;
  --bottle-y: 58%;
  --bottle-left: 54%;
  --bottle-rx: 16%;
  --bottle-ry: 30%;
  --water-top: 64%;
  --shore-left: 10%;
  --shore-right: 78%;
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16vh;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}

.hero__lake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 78%;
}

.hero__mist,
.hero__ripple,
.hero__sheen,
.hero__still {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__fog {
  position: absolute;
  width: 72%;
  height: 34%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(236, 242, 240, 0.42) 36%,
    transparent 70%
  );
  filter: blur(16px);
  animation: mist-drift 16s ease-in-out infinite alternate;
}

.hero__fog--far {
  top: 16%;
  left: -18%;
}

.hero__fog--near {
  top: 30%;
  left: 28%;
  width: 64%;
  height: 28%;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.hero__ripple,
.hero__sheen {
  mask-image:
    linear-gradient(to bottom, transparent var(--water-top), #000 calc(var(--water-top) + 7%)),
    linear-gradient(
      to right,
      transparent var(--shore-left),
      #000 calc(var(--shore-left) + 5%),
      #000 calc(var(--shore-right) - 5%),
      transparent var(--shore-right)
    ),
    radial-gradient(
      ellipse var(--bottle-rx) var(--bottle-ry) at var(--bottle-x) var(--bottle-y),
      transparent 0 76%,
      #000 94%
    );
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.hero__ripple-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 78%;
  filter: url("#lake-ripple");
}

.hero__still {
  z-index: 2;
  mask-image: radial-gradient(
    ellipse var(--bottle-rx) var(--bottle-ry) at var(--bottle-x) var(--bottle-y),
    #000 0 74%,
    transparent 90%
  );
}

.hero__still-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 78%;
}

.hero__sheen {
  background: linear-gradient(
    102deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 58%,
    transparent 100%
  );
  mix-blend-mode: soft-light;
  animation: water-sheen 26s ease-in-out infinite alternate;
}

.hero__filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero__copy {
  position: absolute;
  z-index: 3;
  top: var(--bottle-y);
  right: calc(100% - var(--bottle-left) + clamp(2.5rem, 4vw, 5rem));
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: none;
  transform: translateY(-50%);
  text-align: center;
}

@keyframes mist-drift {
  from { transform: translate3d(-6%, 0, 0); }
  to { transform: translate3d(28%, 4%, 0); }
}

@keyframes water-sheen {
  from { transform: translate3d(-12%, 0, 0); }
  to { transform: translate3d(14%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mist,
  .hero__ripple,
  .hero__sheen {
    display: none;
  }
}

.hero__copy h1,
.story h2,
.price h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero__copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 5.2rem);
  white-space: nowrap;
}

.hero__slogan {
  align-self: stretch;
  width: 0;
  min-width: 100%;
  margin: 0.55em 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  line-height: 1.35;
  text-wrap: balance;
}

.hero__offer {
  margin-top: 1.15rem;
  padding: 0.62rem 1.35rem 0.7rem;
  max-width: 100%;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.25;
  text-wrap: balance;
  background: rgba(244, 247, 245, 0.92);
  border: 1px solid rgba(26, 51, 44, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(26, 51, 44, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.hero__offer:hover {
  background: #f7faf8;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(26, 51, 44, 0.22);
}

.hero__order {
  display: inline-block;
  margin-top: 1.35rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid currentColor;
}

.offer,
.offer:focus,
.offer:focus-visible,
.hero__offer:focus,
.hero__offer:focus-visible,
.offer__close:focus,
.offer__close:focus-visible {
  outline: none;
}

.offer {
  position: relative;
  width: min(42rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    overlay 0.9s ease allow-discrete,
    display 0.9s ease allow-discrete;
}

.offer[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .offer[open] {
    opacity: 0;
    transform: translateY(10px);
  }
}

.offer::backdrop {
  background: rgba(26, 51, 44, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .offer,
  .offer::backdrop,
  .hero__offer {
    transition: none;
  }

  .offer__steam span {
    animation: none;
    opacity: 0.35;
    transform: translateY(-8px);
  }
}

.offer__steam {
  position: absolute;
  z-index: 0;
  left: 6%;
  right: 6%;
  top: 0;
  height: 0;
  pointer-events: none;
}

.offer__steam span {
  position: absolute;
  top: 0;
  width: 36%;
  height: 6.2rem;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.82) 32%,
    transparent 70%
  );
  filter: blur(10px);
  opacity: 0;
  animation: offer-steam 6.5s ease-out infinite;
}

.offer__steam span:nth-child(1) {
  left: 2%;
}

.offer__steam span:nth-child(2) {
  left: 24%;
  width: 46%;
  animation-delay: -1.6s;
  animation-duration: 7.2s;
}

.offer__steam span:nth-child(3) {
  left: 48%;
  animation-delay: -3.4s;
  animation-duration: 7.8s;
}

.offer__steam span:nth-child(4) {
  left: 66%;
  width: 32%;
  animation-delay: -5s;
  animation-duration: 6.8s;
}

@keyframes offer-steam {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.7);
  }

  32% {
    opacity: 1;
    transform: translateY(-42px) scale(1.05);
  }

  100% {
    opacity: 0;
    transform: translateY(-150px) scale(1.7);
  }
}

.offer__pane {
  position: relative;
  z-index: 1;
  padding: 1.6rem clamp(1.1rem, 3vw, 2.2rem) 2rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.4rem;
  background: rgba(244, 247, 245, 0.9);
  overflow: hidden;
  box-shadow:
    0 22px 48px rgba(26, 51, 44, 0.1),
    0 2px 8px rgba(26, 51, 44, 0.05);
}

.offer__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.offer__still {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.4rem auto 0.7rem;
}

.offer__bottle {
  height: 13.5rem;
  width: auto;
}

.offer__pump {
  height: 8.6rem;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(26, 51, 44, 0.16));
}

.offer h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
}

.offer p {
  margin: 0.85rem auto 0;
  max-width: 26em;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

.story,
.price {
  position: relative;
  padding: clamp(4.5rem, 12vh, 8rem) var(--space);
  text-align: center;
}

.story {
  margin-top: -8vh;
  padding-bottom: clamp(6rem, 16vh, 12rem);
  background: linear-gradient(to bottom, transparent, var(--paper) 28%);
}

.story p {
  margin: 1.1rem auto 0;
  max-width: 28em;
  font-size: 1.15rem;
  line-height: 1.5;
}

.price {
  background:
    radial-gradient(ellipse 42% 55% at 28% 42%, rgba(47, 134, 163, 0.16), transparent 70%),
    radial-gradient(ellipse 36% 48% at 74% 58%, rgba(165, 107, 69, 0.12), transparent 72%),
    linear-gradient(180deg, var(--paper), #e7f3f4 42%, #f7f4ef);
}

.price h2 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.price__pair {
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 10vw, 8rem);
  margin-top: 2.5rem;
}

.price__pair p {
  margin: 0;
}

.price__pair strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price__now strong {
  color: var(--ink);
}

.price__later strong {
  color: var(--lake);
}

.price__pair span,
.steps,
.paths {
  color: var(--ink-soft);
}

.price__pair span {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
}

.steps,
.paths {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
}

.steps {
  margin-top: 3.2rem;
}

.paths {
  margin-top: 1.35rem;
}

.steps button.is-on {
  color: var(--lake);
}

.paths [data-path="cheap"] {
  color: var(--sand);
}

.paths [data-path="balance"] {
  color: var(--ink-soft);
}

.paths [data-path="ideal"] {
  color: var(--lake);
}

.paths button[aria-pressed="true"] {
  color: var(--ink);
}

.nav-fold__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-fold__icon {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  box-shadow:
    0 -0.38rem 0 currentColor,
    0 0.38rem 0 currentColor;
  filter: drop-shadow(0 0 6px rgba(244, 247, 245, 0.95));
}

@media (max-width: 720px) {
  .top {
    align-items: center;
    flex-wrap: nowrap;
    column-gap: 0.55rem;
  }

  .top__phone {
    order: 2;
    margin-left: auto;
    font-size: 0.95rem;
  }

  .nav-fold {
    order: 3;
    flex: none;
  }

  .nav-fold__toggle {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: -0.35rem;
    cursor: pointer;
    list-style: none;
  }

  .nav-fold__toggle::-webkit-details-marker {
    display: none;
  }

  .nav-fold__toggle:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 0.2rem;
  }

  .nav-fold[open] .nav-fold__icon {
    height: 1.15rem;
    background: transparent;
    box-shadow: none;
    position: relative;
  }

  .nav-fold[open] .nav-fold__icon::before,
  .nav-fold[open] .nav-fold__icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: currentColor;
  }

  .nav-fold[open] .nav-fold__icon::before {
    transform: rotate(40deg);
  }

  .nav-fold[open] .nav-fold__icon::after {
    transform: rotate(-40deg);
  }

  details.nav-fold:not([open])::details-content,
  details.nav-fold:not([open]) > .nav {
    display: none;
  }

  .nav-fold[open] > .nav {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    margin: 0;
    padding: 0.45rem var(--space) 2.1rem;
    font-size: 1.05rem;
    background: rgba(244, 247, 245, 0.28);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
  }

  .top:has(.nav-fold[open])::before {
    height: 100%;
    background: rgba(244, 247, 245, 0.28);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    mask-image: none;
    -webkit-mask-image: none;
  }

  .nav a,
  .top__phone {
    padding: 0.4rem 0;
  }

  .hero__lake,
  .hero__ripple-photo,
  .hero__still-photo {
    object-position: 64% 76%;
  }

  .top::before {
    height: calc(100% + 1.25rem);
  }

  .hero__copy {
    top: calc(var(--header-h, 4.6rem) + 1.75rem);
    left: var(--space);
    right: auto;
    width: max-content;
    max-width: min(17rem, calc(100% - 2 * var(--space)));
    margin-inline: 0;
    align-items: flex-start;
    text-align: left;
    transform: none;
  }

  .hero__copy h1 {
    font-size: 2.65rem;
    white-space: normal;
  }

  .price__pair {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}
