/* ============================================================
   Альпийская вода — базовые стили: токены, типографика, кнопки,
   хедер, навигация, служебные элементы
   ============================================================ */

:root {
  /* палитра: вода, чистота, альпийский лёд + зелёный CTA из макета */
  --navy-950: #03192c;
  --navy-900: #04203a;
  --navy-800: #062b4a;
  --navy-700: #093a61;
  --blue-700: #0e5a8a;
  --blue-600: #2277ca;
  --blue-500: #3e93de;
  --blue-300: #68acef;
  --aqua-400: #5fd0ef;
  --aqua-200: #b7ecfa;
  --ice-100: #eaf6fc;
  --ice-50: #f5fafd;
  --green: #6eb348;
  --green-600: #5fa43c;
  --green-700: #4d8a2e;
  --ink: #0b2438;
  --ink-2: #3d5c70;
  --muted: #6d8595;
  --line: rgba(11, 36, 56, .10);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 6px 18px rgba(4, 32, 58, .06);
  --shadow: 0 18px 50px rgba(4, 32, 58, .10);
  --shadow-lg: 0 34px 80px rgba(4, 32, 58, .18);

  --container: 1240px;
  --ease: cubic-bezier(.22, .7, .24, 1);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.022em;
  color: var(--ink);
}

p { margin: 0; }

a { color: inherit; }

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

button { font-family: inherit; }

:focus-visible {
  outline: 3px solid rgba(34, 119, 202, .55);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--xs { width: 14px; height: 14px; }
.icon--solid { fill: currentColor; stroke: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: #fff;
  color: var(--ink);
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--aqua-400), var(--blue-500));
  z-index: 120;
  transition: width .12s linear;
}

/* ---------------- Анимации ---------------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes caustic {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .5; }
  33% { transform: translate3d(6%, -4%, 0) scale(1.15); opacity: .8; }
  66% { transform: translate3d(-5%, 5%, 0) scale(1.05); opacity: .6; }
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes ripple {
  0% { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(110, 179, 72, .5); }
  70% { box-shadow: 0 0 0 16px rgba(110, 179, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 179, 72, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Кнопки ---------------- */
.btn {
  --btn-bg: var(--blue-600);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .005em;
  color: #fff;
  background: var(--btn-bg);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn--green {
  --btn-bg: linear-gradient(180deg, #7ac055 0%, #66ac40 100%);
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(94, 164, 58, .75);
}
.btn--green:hover { box-shadow: 0 20px 38px -12px rgba(94, 164, 58, .8); }

.btn--navy {
  --btn-bg: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(4, 32, 58, .7);
}
.btn--navy:hover { background: var(--navy-800); }

.btn--outline {
  background: transparent;
  border-color: rgba(11, 36, 56, .16);
  color: var(--ink);
  box-shadow: none;
}
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-600); background: #fff; }

.btn--glass {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .18); }

.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--full { width: 100%; }

.btn--caps {
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: 14px;
  font-weight: 800;
}

.circle-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: .25s var(--ease);
}
.circle-btn:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); transform: translateY(-2px); }
.circle-btn:disabled { opacity: .35; cursor: default; transform: none; }
.circle-btn:disabled:hover { background: #fff; color: var(--ink); border-color: var(--line); }
#reviewsPrev .icon { transform: rotate(180deg); }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: .2s;
}
.icon-btn:hover { background: var(--ice-100); }

/* ---------------- Хедер ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  color: #fff;
}

.topbar {
  background: rgba(3, 25, 44, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  transition: height .35s var(--ease), opacity .25s, border-color .25s;
  height: 40px;
  overflow: hidden;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 40px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  white-space: nowrap;
}
.topbar__item svg { width: 14px; height: 14px; color: var(--aqua-400); }
.topbar__item:hover { color: #fff; }
.topbar__call {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, .85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 3px;
}
.topbar__call:hover { text-decoration-color: #fff; }
.topbar__vk { margin-left: auto; color: #fff; font-weight: 700; }
.topbar__vk .icon { width: 16px; height: 16px; }

.header {
  padding: 14px 0;
  transition: background .35s var(--ease), box-shadow .35s, padding .35s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}

.site-header.is-stuck .header {
  background: rgba(4, 32, 58, .97);
  box-shadow: 0 12px 34px rgba(2, 18, 32, .35);
  padding: 9px 0;
}
.site-header.is-stuck .topbar { height: 0; opacity: 0; border-color: transparent; }
.site-header.is-stuck .brand img { height: 32px; }

.brand { display: block; flex: none; }
.brand img {
  height: 38px;
  width: auto;
  transition: height .3s var(--ease);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, .84);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: .2s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .10); }
.nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .14); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .22s var(--ease);
  z-index: 5;
}
.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}
.has-dropdown.is-open .dropdown,
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.dropdown a:hover { background: var(--ice-100); }
.dropdown em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* мега-меню каталога */
.dropdown--mega { min-width: 590px; padding: 16px 14px 14px; }
.mega { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.mega__col { display: flex; flex-direction: column; gap: 1px; }
.mega__title {
  padding: 6px 10px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega__group { padding: 10px 10px 3px; font-size: 13px; font-weight: 800; color: var(--ink); }
.dropdown .mega__link {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.dropdown .mega__link em { font-size: 11px; font-weight: 700; color: var(--muted); }
.dropdown .mega__link:hover { background: var(--ice-100); color: var(--ink); }
.dropdown .mega__link--sub {
  position: relative;
  padding-left: 24px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.dropdown .mega__link--sub::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}
.dropdown .mega__all {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ice-50);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-600);
}
.dropdown .mega__all:hover { background: var(--ice-100); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}
.header__phone small { font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .58); }
.header__phone:hover span { color: var(--aqua-200); }
.header__cta { padding: 11px 20px; font-size: 13.5px; }

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  cursor: pointer;
  transition: .2s;
}
.cart-btn:hover { background: rgba(255, 255, 255, .2); }
.cart-btn__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
.cart-btn.has-items { animation: pulseRing 1.2s ease-out; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  position: relative;
  z-index: 86;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* мобильное меню */
.nav__mobile-cta { display: none; }

@media (max-width: 1180px) {
  .header__phone small { display: none; }
}

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    margin: 0;
    padding: 96px 24px 32px;
    background: var(--navy-900);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .35);
    transform: translateX(105%);
    transition: transform .4s var(--ease);
    overflow-y: auto;
    z-index: 85;
  }
  .nav.is-open { transform: none; }
  .nav.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(3, 25, 44, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 16.5px; }
  .has-dropdown::after { display: none; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 8px;
    background: none;
    box-shadow: none;
    transition: max-height .35s var(--ease);
  }
  .has-dropdown.is-open .dropdown { max-height: 300px; padding: 4px 0 10px 8px; }
  .has-dropdown--mega.is-open .dropdown { max-height: 1200px; }
  .dropdown a { color: rgba(255, 255, 255, .8); border-left: 1px solid rgba(255, 255, 255, .18); border-radius: 0 10px 10px 0; }
  .dropdown a:hover { background: rgba(255, 255, 255, .08); }
  .dropdown em { color: rgba(255, 255, 255, .45); }
  .dropdown--mega { min-width: 0; padding: 0 0 0 8px; }
  .mega { grid-template-columns: 1fr; gap: 0; }
  .dropdown .mega__title { color: rgba(255, 255, 255, .45); padding-left: 8px; }
  .dropdown .mega__group { color: #fff; padding-left: 8px; }
  .dropdown .mega__link {
    border-left: 0;
    color: rgba(255, 255, 255, .84);
    padding-left: 8px;
  }
  .dropdown .mega__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .dropdown .mega__link em { color: rgba(255, 255, 255, .45); }
  .dropdown .mega__link--sub { padding-left: 22px; color: rgba(255, 255, 255, .6); }
  .dropdown .mega__link--sub::before { left: 12px; }
  .dropdown .mega__all { background: rgba(255, 255, 255, .08); color: #fff; margin-top: 10px; }
  .dropdown .mega__all:hover { background: rgba(255, 255, 255, .16); }
  .nav__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav__mobile-cta .btn { width: 100%; }
  .nav__mobile-phone { color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; }
  .nav__mobile-note { color: rgba(255, 255, 255, .55); font-size: 12.5px; }

  .header__phone { display: none; }
  .header__cta { padding: 11px 18px; font-size: 13px; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .header { padding: 10px 0; }
  .brand img { height: 30px; }
  .site-header.is-stuck .brand img { height: 27px; }
  .header__cta { display: none; }
  .nav { padding-top: 84px; }
}
