/* ==========================================================================
   Кавун · доставка води. Публічна частина сайту.
   ========================================================================== */

:root {
  --navy: #0b2f4a;
  --navy-2: #123f5f;
  --blue: #1b8fd0;
  --aqua: #19a7da;
  --aqua-soft: #e6f6fd;
  --ice: #f3f9fc;
  --line: #dcebf4;
  --melon: #e8485f;
  --melon-dark: #c93047;
  --melon-soft: #ffedef;
  --leaf: #3fa34d;
  --leaf-soft: #e9f6eb;
  --text: #12324a;
  --muted: #5b7689;
  --white: #ffffff;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 30px;
  --shadow-s: 0 4px 14px rgba(11, 47, 74, 0.07);
  --shadow: 0 14px 40px rgba(11, 47, 74, 0.1);
  --shadow-l: 0 30px 70px rgba(11, 47, 74, 0.18);

  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Unbounded", "Manrope", "Segoe UI", sans-serif;

  --header-full: 76px; /* повна висота шапки на самому початку сторінки */
  --header-h: var(--header-full); /* поточна: після прокрутки шапка стає нижчою */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-menu: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 3px solid rgba(25, 167, 218, 0.55); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.icon { flex: none; }

/* ---------- Кнопки ---------- */

.btn {
  --btn-bg: var(--melon);
  --btn-bg-hover: var(--melon-dark);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  color: var(--btn-color);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--melon), #f26277); box-shadow: 0 12px 26px rgba(232, 72, 95, 0.32); }
.btn--primary:hover { background: linear-gradient(135deg, var(--melon-dark), var(--melon)); box-shadow: 0 16px 32px rgba(232, 72, 95, 0.4); }
.btn--aqua { --btn-bg: var(--aqua); --btn-bg-hover: var(--blue); box-shadow: 0 12px 26px rgba(25, 167, 218, 0.32); }
.btn--ghost { --btn-bg: transparent; --btn-bg-hover: var(--navy); --btn-color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { color: #fff; }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, 0.12); --btn-bg-hover: #fff; --btn-color: #fff; border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { color: var(--navy); border-color: #fff; }
.btn--light { --btn-bg: #fff; --btn-bg-hover: var(--aqua-soft); --btn-color: var(--navy); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* Стрілка стоїть у потоці тексту, тож при переносі рядка вона йде одразу за останнім словом, а не на край блоку */
.link-arrow { display: inline-block; font-weight: 800; color: var(--blue); transition: color 0.2s; }
.link-arrow:hover { color: var(--navy); }
.link-arrow .icon { display: inline-block; vertical-align: -4px; margin-left: 4px; transition: margin-left 0.2s var(--ease); }
.link-arrow:hover .icon { margin-left: 8px; }

/* Стрілки: при наведенні «вилітають» і повертаються з іншого боку (як у ds-solutions) */
.btn:hover .icon--arrow, .link-arrow:hover .icon--arrow, .footer__more:hover .icon--arrow, .mobile-menu__links a:hover .icon--arrow { animation: arrowGlobe 0.42s ease-in-out; }
.footer__more { display: inline-flex; align-items: center; gap: 8px; }
@keyframes arrowGlobe { 0% { transform: translateX(0); opacity: 1; } 38% { transform: translateX(12px); opacity: 0; } 39% { transform: translateX(-12px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }

/* Плавні переходи між сторінками (як у ds-solutions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s ease both vtOut; }
::view-transition-new(root) { animation: 0.25s ease both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  /* Висота шапки зменшується, а відступ знизу росте на ту саму величину: вміст сторінки при цьому не стрибає. */
  margin-bottom: calc(var(--header-full) - var(--header-h));
  transition: box-shadow 0.25s, border-color 0.25s, background-color 0.25s, margin-bottom 0.3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(11, 47, 74, 0.08); background: rgba(255, 255, 255, 0.7); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height 0.3s var(--ease); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; transition: height 0.3s var(--ease), transform 0.3s var(--ease); }
/* Прокрутили вниз: шапка трохи нижча, логотип менший. */
:root.is-scrolled { --header-h: 60px; }
:root.is-scrolled .brand img { height: 36px; }
.brand:hover img { transform: scale(1.04) rotate(-1deg); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 700; color: var(--navy); border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
.nav__link:hover { background: var(--aqua-soft); }
.nav__link.is-active { color: var(--melon-dark); background: var(--melon-soft); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.header__phone .icon { color: var(--aqua); }
.header__phone:hover { color: var(--blue); }

.burger { position: relative; display: none; align-items: center; justify-content: center; width: 46px; height: 46px; color: var(--navy); background: var(--ice); border: 1px solid var(--line); border-radius: 14px; }
/* Дві іконки лежать одна на одній і плавно перетікають: гамбургер повертається й тане, хрестик виринає. */
.burger .icon { position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -12px; transition: opacity 0.3s ease, transform 0.5s var(--ease-menu); }
.burger .icon--close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.burger[aria-expanded="true"] .icon--menu { opacity: 0; transform: rotate(90deg) scale(0.5); }
.burger[aria-expanded="true"] .icon--close { opacity: 1; transform: none; }

.mobile-menu { display: none; }

/* ---------- Героя ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(120, 220, 255, 0.4), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(232, 72, 95, 0.2), transparent 60%),
    linear-gradient(160deg, #0b2f4a 0%, #0f4c75 48%, #1b8fd0 120%);
  padding: 72px 0 150px;
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 40px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.01em; color: #d8f2ff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; backdrop-filter: blur(6px); }
.pill .icon { color: #8fe3ff; }
.hero h1 { margin-top: 22px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 3.5vw, 3.05rem); line-height: 1.14; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: #ff9aa9; }
.hero__lead { margin-top: 22px; max-width: 540px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 580px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hero__facts b { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.2; }
.hero__facts span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.72); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero__glow { position: absolute; width: min(460px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(120, 220, 255, 0.18) 55%, transparent 70%); filter: blur(6px); }
.hero__ring { position: absolute; width: min(430px, 86%); aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.25); animation: spin 60s linear infinite; }
.hero__bottle { position: relative; z-index: 2; width: min(300px, 62%); filter: drop-shadow(0 34px 44px rgba(0, 18, 38, 0.5)); animation: bob 6s ease-in-out infinite; }

.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; color: var(--navy); background: rgba(255, 255, 255, 0.95); border-radius: 18px; box-shadow: var(--shadow-l); animation: bob 7s ease-in-out infinite; }
.float-card__icon { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 13px; background: linear-gradient(135deg, var(--aqua), var(--blue)); }
.float-card--leaf .float-card__icon { background: linear-gradient(135deg, #58c066, var(--leaf)); }
.float-card div > b { display: block; font-size: 14px; line-height: 1.2; }
.float-card div > span { display: block; font-size: 12px; color: var(--muted); }
.float-card--a { top: 14%; left: -2%; animation-delay: -1.2s; }
.float-card--b { bottom: 16%; right: -2%; animation-delay: -3.4s; }

.hero__bottle, .hero__ring, .float-card, .bubble, .product__media img { will-change: transform; }

.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bubble { position: absolute; bottom: -80px; border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 62%); border: 1px solid rgba(255, 255, 255, 0.35); animation: rise linear infinite; opacity: 0; }
.bubble:nth-child(1) { left: 6%; width: 38px; height: 38px; animation-duration: 15s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 18%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: 3s; }
.bubble:nth-child(3) { left: 32%; width: 60px; height: 60px; animation-duration: 19s; animation-delay: 1s; }
.bubble:nth-child(4) { left: 48%; width: 24px; height: 24px; animation-duration: 13s; animation-delay: 6s; }
.bubble:nth-child(5) { left: 63%; width: 44px; height: 44px; animation-duration: 17s; animation-delay: 2s; }
.bubble:nth-child(6) { left: 78%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 8s; }
.bubble:nth-child(7) { left: 90%; width: 52px; height: 52px; animation-duration: 21s; animation-delay: 4s; }
.bubble:nth-child(8) { left: 40%; width: 14px; height: 14px; animation-duration: 10s; animation-delay: 9s; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%; height: 110px; display: block; }
.hero__wave path { fill: #fff; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 0.9; } 90% { opacity: 0.7; } 100% { transform: translateY(-110vh) translateX(40px); opacity: 0; } }

/* ---------- Смуга переваг під героєм ---------- */

.trust { position: relative; z-index: 5; margin-top: -78px; padding-bottom: 12px; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; }
.trust__item { display: flex; align-items: center; gap: 16px; padding: 26px 26px; position: relative; }
.trust__item + .trust__item::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.trust__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; color: var(--blue); background: var(--aqua-soft); border-radius: 16px; }
.trust__item:nth-child(2) .trust__icon { color: var(--melon-dark); background: var(--melon-soft); }
.trust__item:nth-child(3) .trust__icon { color: var(--leaf); background: var(--leaf-soft); }
.trust__item b { display: block; font-size: 15px; line-height: 1.3; color: var(--navy); }
.trust__item div > span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.trust__item small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--muted); opacity: 0.85; }

/* ---------- Секції ---------- */

.section { padding: 96px 0; }
/* Секції нижче першого екрана браузер не малює, доки до них не доскролять: початковий рендер довгих сторінок значно коротший.
   Орієнтовна висота `auto` запамʼятовується після першого показу, тож смуга прокрутки не стрибає. Секції з sticky-елементами
   (картка товару, форма замовлення) виключено: пошук, якорі й друк при цьому працюють як звичайно. */
.section:not(:has(.product__media, .order__grid)) { content-visibility: auto; contain-intrinsic-size: auto 800px; }
@media (max-width: 768px) { .section:not(:has(.product__media, .order__grid)) { contain-intrinsic-size: auto 1200px; } }
.section--tint { background: linear-gradient(180deg, var(--ice), #fff); }
.section--ice { background: var(--ice); }
.section--tight-bottom { padding-bottom: 32px; }
.section--tight-top { padding-top: 48px; }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--melon-dark); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--melon), var(--aqua)); }
.section__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--navy); }
.section__lead { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--muted); }

/* ---------- Для кого ---------- */

.aud { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.aud__tabs { display: flex; flex-direction: column; gap: 10px; }
.aud__tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; font-weight: 800; font-size: 16px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s; }
.aud__tab .tab-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: var(--blue); background: var(--aqua-soft); border-radius: 14px; transition: background-color 0.2s, color 0.2s; }
.aud__tab:hover { transform: translateX(4px); border-color: #bfdff0; }
.aud__tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: transparent; box-shadow: 0 16px 34px rgba(11, 47, 74, 0.28); transform: translateX(8px); }
.aud__tab[aria-selected="true"] .tab-icon { color: #fff; background: rgba(255, 255, 255, 0.16); }

.aud__panels { position: relative; }
.aud__panel { display: none; height: 100%; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.aud__panel.is-active { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; animation: panelIn 0.45s var(--ease); }
.aud__panel::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 167, 218, 0.16), transparent 70%); pointer-events: none; }
.aud__big { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; color: #fff; background: linear-gradient(135deg, var(--aqua), var(--blue)); border-radius: 24px; box-shadow: 0 16px 30px rgba(25, 167, 218, 0.35); }
.aud__panel h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2; color: var(--navy); }
.aud__panel p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.aud__panel .btn { margin-top: 26px; }
.checklist { display: grid; gap: 12px; position: relative; z-index: 1; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; line-height: 1.45; }
.checklist .tick { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; color: #fff; background: var(--leaf); border-radius: 50%; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Товари ---------- */

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.products--4 .pcard__body { padding: 20px 20px 22px; }
.products--4 .pcard__title { font-size: 15px; }
.products--4 .pcard__media { padding: 20px; }
.products--4 .price b { font-size: 23px; }
.pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); border-color: #bfdff0; }
.pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.92; padding: 26px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #fff 0%, var(--aqua-soft) 62%, #d3eefa 100%); }
.pcard__media::before { content: ""; position: absolute; inset: auto -20% -30% -20%; height: 60%; background: radial-gradient(ellipse at center, rgba(25, 167, 218, 0.22), transparent 70%); }
.pcard__media img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; filter: drop-shadow(0 18px 20px rgba(11, 47, 74, 0.25)); transition: transform 0.5s var(--ease); }
.products--4 .pcard__media img { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
.pcard:hover .pcard__media img { transform: scale(1.06) rotate(-1.5deg); }
.badge { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 13px; font-size: 12.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--melon), #f26277); border-radius: 999px; box-shadow: 0 8px 18px rgba(232, 72, 95, 0.3); }
.pcard__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 24px 26px 26px; }
.pcard__title { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--navy); }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__features { display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.pcard__features li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.pcard__features .icon { margin-top: 2px; color: var(--leaf); }
.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }
.price b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1; color: var(--navy); }
.price b small { font-family: var(--font-body); font-size: 15px; font-weight: 800; margin-left: 3px; }
.price span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.price--ask b { font-size: 16px; line-height: 1.3; }
.pcard .btn { position: relative; z-index: 2; }

/* ---------- Переваги ---------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px; color: var(--blue); background: var(--aqua-soft); border-radius: 18px; }
.feature:nth-child(3n+2) .feature__icon { color: var(--melon-dark); background: var(--melon-soft); }
.feature:nth-child(3n) .feature__icon { color: var(--leaf); background: var(--leaf-soft); }
.feature h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.feature p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }

/* ---------- Кроки ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; position: relative; }
.step { position: relative; padding: 34px 30px 30px; color: #fff; background: linear-gradient(160deg, var(--navy), var(--navy-2)); border-radius: var(--radius-l); overflow: hidden; counter-increment: step; }
.step::before { content: counter(step); position: absolute; right: 22px; top: 6px; font-family: var(--font-head); font-weight: 700; font-size: 96px; line-height: 1; color: rgba(255, 255, 255, 0.07); }
.step:nth-child(2) { background: linear-gradient(160deg, #0f5a8a, var(--blue)); }
.step:nth-child(3) { background: linear-gradient(160deg, #19879f, #2bb3a0); }
.step__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; color: #fff; background: rgba(255, 255, 255, 0.16); border-radius: 17px; }
.step h3 { font-size: 19px; font-weight: 800; }
.step p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }

/* ---------- Тара ---------- */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { position: relative; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); overflow: hidden; }
.panel--ok { background: linear-gradient(160deg, #fff, var(--leaf-soft)); border-color: #cfe9d3; }
.panel--deposit { background: linear-gradient(160deg, #fff, var(--melon-soft)); border-color: #ffd3d8; }
.panel__tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; color: #fff; background: var(--leaf); }
.panel--deposit .panel__tag { background: var(--melon); }
.panel h3 { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--navy); }
.panel p { margin-top: 12px; color: var(--muted); }
.panel .checklist { margin-top: 18px; }
.panel .big-number { display: block; margin-top: 18px; font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--melon-dark); }
.panel .big-number small { font-size: 18px; font-family: var(--font-body); font-weight: 800; }

/* ---------- Якість ---------- */

.quality { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.quality__text p { margin-top: 18px; font-size: 17px; color: var(--muted); }
.quality__text .btn, .quality__text .link-arrow { margin-top: 28px; }
.quality__visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; background: linear-gradient(160deg, var(--aqua-soft), #fff); border: 1px solid var(--line); border-radius: var(--radius-l); }
.cert { position: relative; display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-s); aspect-ratio: 3 / 4; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.cert:hover { transform: translateY(-5px) rotate(-0.8deg); box-shadow: var(--shadow); }
.cert img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cert__pdf { position: absolute; left: 10px; top: 10px; padding: 3px 9px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: var(--melon); border-radius: 999px; }
.quality__doc { margin: 0; min-width: 0; }
.quality__doc .cert-caption { margin-top: 10px; font-size: 13px; line-height: 1.35; }
.quality__empty { grid-column: 1 / -1; display: grid; place-items: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--muted); }
.quality__empty .shield { display: grid; place-items: center; width: 84px; height: 84px; color: var(--blue); background: #fff; border-radius: 26px; box-shadow: var(--shadow); }
.quality__empty b { color: var(--navy); font-size: 18px; }

/* ---------- Замовлення ---------- */

.order { position: relative; overflow: hidden; color: #fff; background: radial-gradient(800px 460px at 100% 0%, rgba(25, 167, 218, 0.45), transparent 60%), radial-gradient(600px 420px at 0% 100%, rgba(232, 72, 95, 0.25), transparent 60%), linear-gradient(160deg, #0b2f4a, #0f4c75); }
.order__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.order__grid > :first-child { position: sticky; top: calc(var(--header-h) + 28px); }
.order .eyebrow { color: #8fe3ff; }
.order .section__title { color: #fff; }
.order__lead { margin-top: 18px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.82); }
.order__contacts { display: grid; gap: 14px; margin-top: 34px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; transition: background-color 0.2s, transform 0.2s var(--ease); }
a.contact-line:hover { background: rgba(255, 255, 255, 0.16); transform: translateX(4px); }
.contact-line .icon-wrap { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.14); border-radius: 14px; color: #8fe3ff; }
.contact-line b { display: block; font-size: 17px; line-height: 1.25; }
.contact-line span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

.form-card { position: relative; padding: 36px; color: var(--text); background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.form-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--navy); }
.form-card__hint { margin: 6px 0 22px; font-size: 14px; color: var(--muted); }

.lead-form { display: grid; gap: 16px; }
.lead-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lead-form .row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead-form .row--2-1 { grid-template-columns: 1.6fr 1fr; }
.field { display: grid; gap: 7px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 800; color: var(--navy); }
.field__label i { color: var(--melon); font-style: normal; }
.field__label small { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.field__control, .field select, .field textarea, .field input[type="text"], .field input[type="tel"], .field input[type="number"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text);
  background: var(--ice);
  border: 2px solid transparent;
  border-radius: 14px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231b8fd0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input::placeholder, .field textarea::placeholder { color: #8fa8b8; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #eaf4fa; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(25, 167, 218, 0.16); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--melon); background: var(--melon-soft); }
/* Власний випадаючий список: рідний select лишається в формі, але невидимий */
.cselect { position: relative; }
.cselect__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cselect__btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 16px; text-align: left; color: var(--text); cursor: pointer;
  background: var(--ice); border: 2px solid transparent; border-radius: 14px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.cselect__btn:hover { background: #eaf4fa; }
.cselect__btn:focus-visible, .cselect.is-open .cselect__btn { outline: none; background: #fff; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(25, 167, 218, 0.16); }
.cselect__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--navy); }
.cselect__value.is-placeholder { font-weight: 500; color: #8fa8b8; }
.cselect__btn .cselect__price { flex: none; }
.cselect__price { padding: 4px 10px; font-size: 13px; font-weight: 800; color: var(--blue); background: rgba(25, 167, 218, 0.12); border-radius: 999px; white-space: nowrap; }
.cselect__chev { flex: none; color: var(--blue); transition: transform 0.35s var(--ease); }
.cselect.is-open .cselect__chev { transform: rotate(180deg); }
.cselect__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; max-height: 320px; overflow-y: auto; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-l);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98); transform-origin: top center;
  transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.cselect.is-open .cselect__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cselect__group { padding: 10px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cselect__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 12px; font: inherit; font-size: 15px; font-weight: 600; text-align: left;
  color: var(--navy); cursor: pointer; background: transparent; border: 0; border-radius: 12px; transition: background-color 0.15s, color 0.15s;
}
.cselect__opt + .cselect__opt { margin-top: 2px; }
.cselect__opt:hover, .cselect__opt:focus-visible { outline: none; background: var(--ice); }
.cselect__opt--empty { color: var(--muted); font-weight: 500; }
.cselect__tick { flex: none; color: var(--aqua); opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.3s var(--ease); }
.cselect__opt[aria-selected="true"] { background: rgba(25, 167, 218, 0.1); }
.cselect__opt[aria-selected="true"] .cselect__tick { opacity: 1; transform: none; }
.cselect__name { flex: 1; min-width: 0; }
.cselect__opt .cselect__price { margin-left: auto; }
.field__error { display: none; font-size: 13px; font-weight: 700; color: var(--melon-dark); }
.field.has-error .field__error { display: block; }



.check { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; color: transparent; background: var(--ice); border: 2px solid #b9d6e6; border-radius: 8px; transition: all 0.2s var(--ease); }
.check input:checked + .check__box { color: #fff; background: var(--leaf); border-color: var(--leaf); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(25, 167, 218, 0.25); }
.check a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.field.has-error .check__box { border-color: var(--melon); background: var(--melon-soft); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--melon-dark); background: var(--melon-soft); border-radius: 12px; }
.form-status.is-visible { display: block; }

.form-success { display: none; text-align: center; padding: 28px 8px 8px; }
.form-card.is-sent .lead-form, .form-card.is-sent .form-card__head { display: none; }
.form-card.is-sent .form-success { display: block; animation: panelIn 0.5s var(--ease); }
.form-success__icon { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 22px; color: #fff; background: linear-gradient(135deg, #58c066, var(--leaf)); border-radius: 50%; box-shadow: 0 18px 34px rgba(63, 163, 77, 0.35); animation: pop 0.6s var(--ease); }
.form-success h3 { font-size: 24px; }
.form-success p { margin: 12px auto 24px; max-width: 420px; color: var(--muted); }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Модальне вікно ---------- */

.modal { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; color: var(--text); background: transparent; border: 0; overflow: visible; }
.modal::backdrop { background: rgba(7, 28, 46, 0.62); backdrop-filter: blur(5px); }
.modal[open] { animation: modalIn 0.5s var(--ease); }
.modal[open]::backdrop { animation: fade 0.45s ease; }
.modal[open].is-closing { animation: modalOut 0.4s var(--ease) forwards; }
.modal[open].is-closing::backdrop { animation: fadeOut 0.4s ease forwards; }
.modal .form-card { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; place-items: center; width: 42px; height: 42px; color: var(--navy); background: var(--ice); border: 0; border-radius: 50%; transition: background-color 0.2s, transform 0.2s var(--ease); }
.modal__close:hover { background: var(--melon-soft); color: var(--melon-dark); transform: rotate(90deg); }
@keyframes modalIn { from { opacity: 0; transform: translateY(32px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes modalOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes menuItemIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Внутрішні сторінки ---------- */

.page-hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 96px; background: radial-gradient(700px 380px at 90% 0%, rgba(120, 220, 255, 0.4), transparent 62%), linear-gradient(160deg, #0b2f4a, #0f4c75 60%, #1b8fd0 130%); }
.page-hero .bubbles { opacity: 0.8; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__inner > h1, .page-hero__inner > .hero-title, .page-hero__inner > p { max-width: 780px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs .sep { opacity: 0.5; }
.page-hero h1, .page-hero .hero-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.15; letter-spacing: -0.02em; }
.page-hero p { margin-top: 16px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.84); }
.page-hero .hero__wave { height: 70px; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.cat-tab { padding: 11px 22px; font-weight: 800; font-size: 15px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; transition: all 0.2s var(--ease); }
.cat-tab:hover { border-color: var(--aqua); transform: translateY(-2px); }
.cat-tab.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.cat-group { margin-bottom: 56px; }
.cat-group:last-child { margin-bottom: 0; }
.cat-group[hidden] { display: none; }
.cat-group__title { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-family: var(--font-head); font-weight: 600; font-size: 24px; color: var(--navy); }
.cat-group__title span { padding: 4px 12px; font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--blue); background: var(--aqua-soft); border-radius: 999px; }

.note-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 56px; padding: 30px 36px; color: #fff; background: linear-gradient(135deg, var(--navy), #0f5a8a); border-radius: var(--radius-l); }
.note-band h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.note-band p { margin-top: 6px; color: rgba(255, 255, 255, 0.8); }
.note-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Сторінка товару */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product__media { position: sticky; top: calc(var(--header-h) + 24px); display: grid; place-items: center; aspect-ratio: 1 / 1.05; padding: 40px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #fff 0%, var(--aqua-soft) 60%, #cdebf8 100%); border: 1px solid var(--line); border-radius: var(--radius-l); }
.product__media img { position: absolute; inset: 36px; width: calc(100% - 72px); height: calc(100% - 72px); object-fit: contain; filter: drop-shadow(0 28px 30px rgba(11, 47, 74, 0.3)); animation: bob 7s ease-in-out infinite; }
.product__info h1 { margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.22; color: var(--navy); }
.product__lead { margin-top: 16px; font-size: 18px; color: var(--muted); }
.product__price { display: flex; align-items: flex-end; gap: 14px; margin: 26px 0; padding: 22px 26px; background: var(--ice); border-radius: 20px; }
.product__price .price b { font-size: 38px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product__facts { display: grid; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.product__facts li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.product__facts .icon-wrap { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--blue); background: var(--aqua-soft); border-radius: 12px; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: #31506a; }
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 1.8em 0 0.6em; font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--navy); }
.prose h3 { margin: 1.4em 0 0.5em; font-size: 18px; font-weight: 800; color: var(--navy); }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.35em 0; padding-left: 4px; }
.prose li::marker { color: var(--aqua); font-weight: 800; }
.prose strong { color: var(--navy); }

/* Про нас */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-grid p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 24px 22px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.stat b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--blue); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.cert-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cert-grid figure { width: min(280px, 100%); }
.cert-grid .cert { aspect-ratio: 3 / 4; }
.cert-caption { margin-top: 10px; font-size: 14px; font-weight: 700; text-align: center; color: var(--navy); }

/* Доставка */
.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.info-card { display: flex; gap: 20px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.info-card .feature__icon { margin: 0; flex: none; }
.info-card h3 { font-size: 19px; font-weight: 800; color: var(--navy); }
.info-card p { margin-top: 8px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-weight: 800; font-size: 15px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-s); }
.chip .icon { color: var(--aqua); }
.schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.schedule__item { padding: 26px; text-align: center; background: linear-gradient(160deg, #fff, var(--aqua-soft)); border: 1px solid var(--line); border-radius: var(--radius); }
.schedule__item .icon { color: var(--blue); }
.schedule__item span { display: block; margin-top: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.schedule__item b { display: block; margin-top: 6px; font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--navy); }
.price-table { width: 100%; border-collapse: collapse; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-s); }
.price-table th, .price-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--navy); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: var(--ice); }
.price-table a { font-weight: 700; color: var(--navy); }
.price-table a:hover { color: var(--blue); }
.price-table .p { font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* Контакти */
.contacts-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
a.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: #bfdff0; }
.contact-card .feature__icon { margin: 0; flex: none; }
.contact-card small { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-card b { display: block; margin-top: 2px; font-size: 18px; line-height: 1.35; color: var(--navy); }
.contact-card div > span { display: block; font-size: 14px; color: var(--muted); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.social { display: grid; place-items: center; width: 50px; height: 50px; color: #fff; border-radius: 16px; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.social:hover { transform: translateY(-4px) rotate(-4deg); box-shadow: var(--shadow); }
.social--tg { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.social--viber { background: linear-gradient(135deg, #8a6bd1, #665cac); }
.social--ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.social--fb { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

/* Юридичні сторінки */
.legal { max-width: 820px; margin: 0 auto; }
.legal__meta { margin-bottom: 28px; font-size: 14px; color: var(--muted); }

/* 404 */
.error-page { display: grid; place-items: center; min-height: 62vh; padding: 80px 20px; text-align: center; background: radial-gradient(600px 360px at 50% 0%, var(--aqua-soft), transparent 70%); }
.error-page__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; background: linear-gradient(135deg, var(--melon), var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--navy); }
.error-page p { margin: 14px auto 28px; max-width: 460px; color: var(--muted); }

/* ---------- Підвал ---------- */

.site-footer { position: relative; margin-top: 0; color: rgba(255, 255, 255, 0.78); background: linear-gradient(180deg, #0a2a43, #071d30); }
.footer__top { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr; gap: 40px; padding: 72px 0 48px; }
.footer__brand img { width: 190px; padding: 12px 16px; background: #fff; border-radius: 18px; }
.footer__brand p { margin-top: 18px; max-width: 320px; font-size: 15px; line-height: 1.65; }
.site-footer h4 { margin-bottom: 18px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8fe3ff; }
.nowrap { white-space: nowrap; }
.footer__links { display: grid; gap: 11px; }
.footer__links a { display: inline-block; justify-self: start; font-size: 15px; transition: color 0.2s, transform 0.25s var(--ease); }
.footer__links a:hover { color: #fff; transform: translateX(6px); }
.footer__links a.footer__more { color: #8fe3ff; }
.footer__contacts { display: grid; gap: 14px; font-size: 15px; }
.footer__contacts a, .footer__contacts div { display: flex; align-items: flex-start; gap: 12px; }
.footer__contacts a:hover { color: #fff; }
.footer__contacts .icon { margin-top: 3px; color: #8fe3ff; }
.footer__contacts b { color: #fff; }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 24px; padding: 24px 0 30px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer__bottom nav a:hover { color: #fff; text-decoration: underline; }
.footer-credit { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; font-size: 15px; white-space: nowrap; text-decoration: none; }
.footer-credit:hover { text-decoration: none; }
.footer-credit svg { flex: none; vertical-align: middle; }
.footer-credit__label { color: rgba(255, 255, 255, 0.68); transition: color 0.2s; }
.footer-credit:hover .footer-credit__label { color: #fff; }
/* Плавний перелив підпису: світла смуга проходить текстом; на краях градієнт однорідний, тож цикл без стрибка. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .footer-credit__label {
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.62) 35%, #fff 50%, rgba(255, 255, 255, 0.62) 65%, rgba(255, 255, 255, 0.62) 100%) 100% 0 / 250% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: creditShine 4.5s ease-in-out infinite;
  }
  .footer-credit:hover .footer-credit__label { background: none; -webkit-text-fill-color: #fff; animation: none; }
}
@keyframes creditShine { to { background-position: 0 0; } }

/* ---------- Плаваюча кнопка контактів ---------- */

.float-contact {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 85;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: rgba(27, 143, 208, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(11, 47, 74, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.35s var(--ease), transform 0.25s var(--ease);
}
.float-contact:hover { background: rgba(232, 72, 95, 0.78); transform: scale(1.08); }
.float-contact::before, .float-contact::after { content: ""; position: absolute; inset: -1px; border: 2px solid rgba(25, 167, 218, 0.75); border-radius: 50%; opacity: 0; pointer-events: none; animation: floatPulse 2.6s ease-out infinite; }
.float-contact::after { animation-delay: 1.3s; }
.float-contact__icon { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.3s ease; }
.float-contact__icon.is-active { opacity: 1; }
@keyframes floatPulse { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Нижня панель на телефоні ---------- */

.mobile-bar { display: none; }

/* ---------- Сповіщення ---------- */

.toasts { position: fixed; z-index: 400; left: 50%; bottom: 24px; display: grid; gap: 10px; width: min(480px, calc(100vw - 24px)); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; font-size: 15px; font-weight: 700; line-height: 1.45; color: #fff; background: var(--navy); border-radius: 16px; box-shadow: var(--shadow-l); pointer-events: auto; animation: toastIn 0.4s var(--ease); }
.toast--success { background: linear-gradient(135deg, #2f9a46, #3fa34d); }
.toast--error { background: linear-gradient(135deg, var(--melon-dark), var(--melon)); }
.toast.is-leaving { opacity: 0; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Поява при прокрутці ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__phone span { display: none; }
  .header__phone { width: 46px; height: 46px; justify-content: center; background: var(--aqua-soft); border-radius: 14px; transition: width 0.3s var(--ease), height 0.3s var(--ease); }
  .burger { transition: width 0.3s var(--ease), height 0.3s var(--ease); }
  :root.is-scrolled .header__phone, :root.is-scrolled .burger { width: 40px; height: 40px; }
  .mobile-menu { position: fixed; z-index: 99; left: 0; right: 0; top: var(--header-h); bottom: 0; display: block; padding: 20px 20px 120px; overflow-y: auto; background: #fff; clip-path: inset(0 0 100% 0); opacity: 0; visibility: hidden; transition: clip-path 0.4s var(--ease-menu), opacity 0.3s ease, visibility 0s 0.4s; }
  .mobile-menu.is-open { clip-path: inset(0); opacity: 1; visibility: visible; transition: clip-path 0.6s var(--ease-menu), opacity 0.35s ease, visibility 0s; }
  /* Пункти з'являються по черзі. Анімація, а не transition: після неї нічого не лишається, тож наведення на кнопки працює як завжди. */
  .mobile-menu.is-open .mobile-menu__links a, .mobile-menu.is-open .mobile-menu__foot > * { animation: menuItemIn 0.55s var(--ease-menu) backwards; }
  .mobile-menu.is-open .mobile-menu__links a:nth-child(1) { animation-delay: 0.08s; }
  .mobile-menu.is-open .mobile-menu__links a:nth-child(2) { animation-delay: 0.13s; }
  .mobile-menu.is-open .mobile-menu__links a:nth-child(3) { animation-delay: 0.18s; }
  .mobile-menu.is-open .mobile-menu__links a:nth-child(4) { animation-delay: 0.23s; }
  .mobile-menu.is-open .mobile-menu__links a:nth-child(5) { animation-delay: 0.28s; }
  .mobile-menu.is-open .mobile-menu__foot > :nth-child(1) { animation-delay: 0.33s; }
  .mobile-menu.is-open .mobile-menu__foot > :nth-child(2) { animation-delay: 0.38s; }
  .mobile-menu.is-open .mobile-menu__foot > :nth-child(3) { animation-delay: 0.43s; }
  .mobile-menu.is-open .mobile-menu__foot > :nth-child(4) { animation-delay: 0.48s; }
  .mobile-menu__links { display: grid; gap: 6px; }
  .mobile-menu__links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 18px; font-weight: 800; color: var(--navy); background: var(--ice); border-radius: 16px; }
  .mobile-menu__links a.is-active { color: var(--melon-dark); background: var(--melon-soft); }
  .mobile-menu__foot { display: grid; gap: 12px; margin-top: 24px; }
  .mobile-menu .socials { margin-top: 4px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 440px; margin-top: 8px; }
  .hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__facts { text-align: left; }
  .hero { padding: 40px 0 130px; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item > div { min-width: 0; }
  .trust__item:nth-child(3)::before { display: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .aud { grid-template-columns: minmax(0, 1fr); }
  .aud__tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 -20px; padding: 4px 20px 10px; }
  .aud__tabs::-webkit-scrollbar { display: none; }
  .aud__tab { flex: none; width: auto; white-space: nowrap; }
  .aud__tab:hover, .aud__tab[aria-selected="true"] { transform: none; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality, .order__grid, .about-grid, .contacts-grid, .product { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .product__media { position: relative; top: 0; }
  .order__grid > :first-child { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-full: 68px; }
  :root.is-scrolled { --header-h: 56px; }
  :root.is-scrolled .brand img { height: 32px; }
  .site-footer { padding-bottom: calc(63px + env(safe-area-inset-bottom)); }
  .footer__bottom { padding-bottom: 18px; }
  .section { padding: 64px 0; }
  .section--tight-bottom { padding-bottom: 16px; }
  .section--tight-top { padding-top: 40px; }
  .section__head { margin-bottom: 36px; }
  .brand img { height: 40px; }
  .header__actions .btn { display: none; }
  .hero__lead { font-size: 16.5px; }
  .hero__facts { grid-template-columns: 1fr; gap: 16px; text-align: center; margin-top: 32px; padding-top: 24px; }
  .hero__facts b { font-size: 20px; }
  .hero__bottle { width: min(220px, 54%); }
  .hero__visual { min-height: 340px; }
  .hero__ring { animation: none; }
  .bubble:nth-child(n+5) { display: none; }
  .float-card--a { left: 0; top: 8%; }
  .float-card--b { right: 0; bottom: 10%; }
  .float-card { padding: 9px 14px 9px 9px; }
  .float-card__icon { width: 36px; height: 36px; }
  .trust { margin-top: -64px; }
  .trust__item { padding: 18px 16px; gap: 12px; }
  .trust__icon { width: 44px; height: 44px; border-radius: 14px; }
  .trust__item b { font-size: 14px; }
  .trust__item span { font-size: 12.5px; }
  .aud__panel { padding: 26px; }
  .aud__panel.is-active { grid-template-columns: 1fr; gap: 24px; }
  .products, .features, .steps, .duo, .info-cards, .schedule { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 28px 24px; }
  .form-card { padding: 26px 20px; }
  .lead-form .row, .lead-form .row--3, .lead-form .row--2-1 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 20px 12px; }
  .stat b { font-size: 26px; }
  .price-table th, .price-table td { padding: 13px 14px; }
  .price-table td { font-size: 15px; }
  .cert-grid figure { width: calc(50% - 8px); }
  .cert-grid { gap: 16px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-credit { white-space: normal; flex-wrap: wrap; font-size: 14px; }
  .footer-credit svg { width: 124px; height: 36px; }
  .note-band { padding: 26px 22px; }
  .page-hero { padding: 44px 0 80px; }
  .product__price { flex-wrap: wrap; }
  .mobile-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(11, 47, 74, 0.1); transition: transform 0.3s var(--ease), background-color 0.3s; }
  .mobile-bar.is-solid { background: #fff; }
  html.modal-open .mobile-bar { transform: translateY(110%); }
  .float-contact { right: 16px; bottom: 90px; width: 52px; height: 52px; transition: background-color 0.35s var(--ease), transform 0.35s var(--ease), opacity 0.3s ease; }
  .float-contact.is-away { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }
  .toasts { bottom: 90px; }
}

@media (max-width: 560px) {
  /* Плаваюча кнопка контактів нижче, ближче до нижньої панелі (зазор над панеллю лишається й на телефонах із вирізом). */
  .float-contact { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .section { padding: 36px 0; }
  .section--tight-bottom { padding-bottom: 12px; }
  .section--tight-top { padding-top: 28px; }
  .section__head { margin-bottom: 28px; }
  /* Перший екран плотніше: менші проміжки між плашкою, заголовком, текстом, кнопками та цифрами. */
  .hero { padding-top: 32px; }
  .pill .icon { width: 24px; height: 24px; }
  .hero h1 { margin-top: 16px; }
  .hero__lead { margin-top: 14px; font-size: 16px; line-height: 1.55; }
  .hero__cta { gap: 10px; margin-top: 22px; }
  .hero__facts { gap: 12px; margin-top: 24px; padding-top: 18px; }
  .hero__facts span { margin-top: 3px; }
  .hero__visual { margin-top: 0; }
  .form-card { padding: 15px; border-radius: 22px; }
  .panel { padding: 15px; border-radius: 22px; }
  .step { padding: 15px; border-radius: 22px; }
  .feature { padding: 15px; border-radius: 22px; }
  /* Вкладки не гортаємо вбік: усі сфери видно одразу сіткою по дві, а непарна остання займає весь рядок. */
  .aud { gap: 14px; }
  .aud__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
  .aud__tab { gap: 8px; padding: 10px; font-size: 13px; line-height: 1.25; white-space: normal; border-radius: 16px; }
  .aud__tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .aud__tab .tab-icon { width: 30px; height: 30px; border-radius: 10px; }
  .aud__tab .tab-icon .icon { width: 18px; height: 18px; }
  .aud__panel { padding: 15px; border-radius: 22px; }
  /* Усередині блоку сфери: іконка стоїть поруч із заголовком, усе дрібніше. */
  .aud__panel.is-active { gap: 14px; }
  .aud__panel.is-active > div:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; }
  .aud__big { width: 48px; height: 48px; margin-bottom: 0; border-radius: 15px; box-shadow: 0 8px 16px rgba(25, 167, 218, 0.3); }
  .aud__big .icon { width: 26px; height: 26px; }
  .aud__panel h3 { font-size: 1.2rem; }
  .aud__panel p { grid-column: 1 / -1; margin-top: 10px; font-size: 15px; }
  .aud__panel .btn { grid-column: 1 / -1; justify-self: start; margin-top: 14px; }
  .aud__panel .checklist { gap: 8px; }
  .aud__panel .checklist li { gap: 10px; font-size: 15px; line-height: 1.4; }
  .aud__panel .checklist .tick { width: 22px; height: 22px; }
  .modal { width: calc(100% - 12px); max-width: none; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-bottom: 24px; }
  .footer__bottom { padding-top: 16px; }
  .hours-label { display: block; }
  .footer__contacts .hours-label + .nowrap + br + .hours-label { margin-top: 6px; }
  .footer__brand, .footer__top > :last-child { grid-column: 1 / -1; }
  .info-card { flex-direction: column; gap: 16px; padding: 24px 22px; }
  .trust__grid { grid-template-columns: minmax(0, 1fr); }
  .trust__item::before { display: none; }
  .trust__item + .trust__item { border-top: 1px solid var(--line); }
  .trust__item b { font-size: 15px; }
  .trust__item div > span { font-size: 13px; }
}

@media (max-width: 420px) {
  .modal .form-card__head { padding-right: 44px; }
  .form-card h3 { font-size: 20px; }
  .cselect__list { padding: 6px; }
  .cselect__opt { gap: 8px; padding: 11px 10px; font-size: 14px; }
  .cselect__tick { display: none; }
  .cselect__opt[aria-selected="true"] .cselect__name { color: var(--blue); }
  .cselect__price { padding: 3px 8px; font-size: 12px; }
  .mobile-bar .btn { padding: 0 14px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 13px; }
  .contact-card { padding: 18px 16px; gap: 14px; }
  .contact-card b { font-size: 16px; overflow-wrap: anywhere; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.85rem; }
  .btn { padding: 0 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .quality__visual { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
