/* Afrodisiaci dal mare — teal & cream, Preset H (Bold Typography + Asymmetric Blocks) */

:root {
  --brine-bg: #FBF7F0;
  --brine-surface: #FFFFFF;
  --brine-tone: #0E7C7B;
  --brine-tone-hover: #0A5C5B;
  --brine-coral: #B33E17;
  --brine-plum: #5A3E6B;
  --brine-ink: #1A1A2A;
  --brine-muted: #4A4A5A;
  --brine-deep: #0F2A2E;
  --brine-mist: #E9F1F0;
  --brine-line: #DCD3C3;
  --brine-gradient: linear-gradient(135deg, #0E7C7B 0%, #0F2A2E 100%);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', Arial, sans-serif;
  --brine-pad: 10dvh;
  --brine-radius: 3px;
}

/* ---------- Міжсторінкові переходи ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s ease both vt-out; }
::view-transition-new(root) { animation: 0.45s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Базові стилі ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--brine-bg);
  color: var(--brine-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--brine-ink);
}

p { margin: 0 0 1rem; }

a { color: var(--brine-tone); }
a:hover { color: var(--brine-tone-hover); }

:focus-visible {
  outline: 3px solid var(--brine-plum);
  outline-offset: 3px;
}

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

main { display: block; overflow-x: clip; }

/* ---------- Header ---------- */
.brine-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 5vw;
  background: var(--brine-surface);
  border-bottom: 1px solid var(--brine-line);
}

.brine-menu-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.brine-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brine-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  font-weight: 700;
}
.brine-brand svg {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  color: var(--brine-tone);
}
.brine-brand:hover { color: var(--brine-tone); }
.brine-logo-dot { fill: var(--brine-coral); }

.brine-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.brine-menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brine-ink);
}

.brine-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brine-nav a {
  font-variant: small-caps;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--brine-ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.brine-nav a:hover,
.brine-nav a[aria-current="page"] {
  color: var(--brine-tone);
  border-bottom-color: var(--brine-tone);
}

.brine-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--brine-tone);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: brine-fill linear both;
  animation-timeline: scroll(root);
}
@keyframes brine-fill { to { transform: scaleX(1); } }

/* ---------- Загальні блоки ---------- */
.brine-sec { position: relative; padding: var(--brine-pad) 5vw; }
.brine-wrap-inner { max-width: 1200px; margin: 0 auto; }
.brine-sec-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 2.5rem;
  max-width: 24ch;
}
.brine-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brine-tone);
  font-weight: 600;
  margin-bottom: 1rem;
}
.brine-lead {
  font-size: 1.15rem;
  color: var(--brine-muted);
  max-width: 40rem;
}

/* ---------- Кнопки ---------- */
.brine-cta-solid {
  display: inline-block;
  background: var(--brine-tone);
  color: #fff;
  border: 0;
  border-radius: var(--brine-radius);
  padding: 0.95rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.brine-cta-solid:hover {
  background: var(--brine-tone-hover);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(14, 124, 123, 0.18);
}
.brine-cta-light {
  background: #fff;
  color: var(--brine-tone);
}
.brine-cta-light:hover {
  background: var(--brine-mist);
  color: var(--brine-tone-hover);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}
.brine-cta-ghost {
  display: inline-block;
  border: 1.5px solid #fff;
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: var(--brine-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.brine-cta-ghost:hover {
  background: #fff;
  color: var(--brine-deep);
}

/* ---------- Index: hero (word-by-word) ---------- */
.brine-opening {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: 78dvh;
  padding: var(--brine-pad) 5vw;
}
.brine-opening-bg {
  position: absolute;
  inset: 0;
  background: url('img/bg.webp') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.brine-opening-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.brine-opening-title {
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 700;
  margin: 0 0 2rem;
}
.brine-word {
  display: block;
  width: fit-content;
  max-width: 100%;
}
.brine-word--l { margin-right: auto; }
.brine-word--r { margin-left: auto; }
.brine-word--c { margin-left: 12vw; }
.brine-accent {
  color: var(--brine-tone);
  background: linear-gradient(transparent 84%, var(--brine-coral) 84%, var(--brine-coral) 92%, transparent 92%);
}
.brine-opening-lead {
  font-size: 1.15rem;
  color: var(--brine-muted);
  max-width: 36rem;
  margin: 0 0 2.2rem;
}

/* ---------- Текстовий reveal (H1) ---------- */
.js .brine-word { opacity: 0; animation: brine-rise 0.8s ease forwards; }
.js .brine-word:nth-child(2) { animation-delay: 0.12s; }
.js .brine-word:nth-child(3) { animation-delay: 0.24s; }
.js .brine-word:nth-child(4) { animation-delay: 0.36s; }
@keyframes brine-rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Marquee ---------- */
.brine-ticker {
  overflow: hidden;
  background: var(--brine-ink);
  color: #fff;
  padding: 0.95rem 0;
  white-space: nowrap;
}
.brine-ticker-track {
  display: inline-flex;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  animation: brine-slide 38s linear infinite;
}
.brine-ticker:hover .brine-ticker-track { animation-play-state: paused; }
@keyframes brine-slide { to { transform: translateX(-50%); } }

/* ---------- Три колонки тексту ---------- */
.brine-columns {
  columns: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--brine-line);
}
.brine-column-block {
  break-inside: avoid;
  margin: 0 0 2.5rem;
  padding-bottom: 1rem;
}
.brine-column-block h3 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}
.brine-col-icon {
  margin: 1.5rem 0 0;
  color: var(--brine-tone);
}
.brine-col-icon svg {
  width: 32px;
  height: 32px;
}

/* ---------- Фото-банд (bg2) ---------- */
.brine-photo-band {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: 50vh;
  padding: 8dvh 5vw;
  background: url('img/bg2.webp') center / cover no-repeat;
  color: #fff;
}
.brine-photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 42, 46, 0.9) 0%, rgba(15, 42, 46, 0.72) 55%, rgba(15, 42, 46, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}
.brine-photo-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.brine-photo-inner h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  max-width: 18ch;
  margin: 0 0 1.25rem;
}
.brine-photo-inner p {
  max-width: 38rem;
  color: #EEF5F4;
  font-size: 1.1rem;
}

/* ---------- Маніфест (inline рядки) ---------- */
.brine-manifesto {
  list-style: none;
  margin: 0;
  padding: 0;
}
.brine-manifest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--brine-line);
}
.brine-manifest-row:last-child { border-bottom: 0; }
.brine-manifest-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--brine-tone);
  min-width: 3ch;
}
.brine-manifest-ico {
  width: 24px;
  height: 24px;
  color: var(--brine-tone);
  align-self: center;
  flex: none;
}
.brine-manifest-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
.brine-manifest-phrase {
  margin: 0;
  color: var(--brine-muted);
}

/* ---------- Кроки (асиметрія + великі цифри) ---------- */
.brine-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}
.brine-step {
  position: relative;
  flex: 1 1 260px;
  padding: 2.5rem 0 0;
}
.brine-step:nth-child(2) { margin-top: 3.5rem; }
.brine-step:nth-child(3) { margin-top: 1.25rem; padding-left: 3rem; }
.brine-step-num {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--brine-tone);
  opacity: 0.15;
  transform: rotate(-10deg);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.brine-step-body {
  position: relative;
  z-index: 1;
}
.brine-step-body h3 {
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
}
.brine-step-body p { color: var(--brine-muted); }

/* ---------- CTA strip ---------- */
.brine-strip {
  background: var(--brine-deep);
  color: #fff;
  padding: 6dvh 5vw;
}
.brine-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brine-strip-slogan {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: 22ch;
  margin: 0;
  color: #fff;
}

/* ---------- Cookie-банер ---------- */
.brine-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  background: #fff;
  color: var(--brine-ink);
  border-top: 3px solid var(--brine-tone);
}
.brine-cookie[hidden] { display: none; }
.brine-cookie p {
  margin: 0;
  max-width: 46rem;
  font-size: 0.95rem;
}
.brine-cookie a { color: var(--brine-tone); }
.brine-cookie-actions {
  display: flex;
  gap: 0.75rem;
}
.brine-cookie-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--brine-radius);
  border: 1.5px solid var(--brine-tone);
  background: #fff;
  color: var(--brine-tone);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.brine-cookie-btn:hover { background: var(--brine-mist); }
.brine-cookie-btn--solid {
  background: var(--brine-tone);
  color: #fff;
}
.brine-cookie-btn--solid:hover {
  background: var(--brine-tone-hover);
  color: #fff;
}

/* ---------- Footer ---------- */
.brine-foot {
  background: var(--brine-deep);
  color: var(--brine-mist);
  padding: 5dvh 5vw 3dvh;
}
.brine-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brine-brand--foot {
  color: #fff;
  font-size: 1.8rem;
}
.brine-brand--foot svg { color: #7FD1CF; }
.brine-brand--foot:hover { color: #7FD1CF; }
.brine-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.brine-foot a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brine-foot a:hover { color: #7FD1CF; }
.brine-disclaimer {
  max-width: 1200px;
  margin: 2.5dvh auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(233, 241, 240, 0.2);
  font-size: 0.95rem;
  color: var(--brine-mist);
}
.brine-copy {
  max-width: 1200px;
  margin: 0.6rem auto 0;
  font-size: 0.85rem;
  color: var(--brine-mist);
}

/* ---------- Expert: сторінка і спліт ---------- */
.brine-page-head { padding: 10dvh 5vw 4dvh; }
.brine-page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 18ch;
  margin: 0 0 1.25rem;
}
.brine-expert-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80dvh;
}
.brine-bio-copy { padding: 6dvh 5vw 8dvh; }
.brine-bio-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 0 0 2rem;
}
.brine-bio-copy > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 0.85;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--brine-tone);
}
.brine-expert-visual {
  margin: 0;
  min-height: 420px;
  background: url('img/bg3.webp') center / cover no-repeat;
}

/* Статистика (plain text) */
.brine-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 4rem;
}
.brine-stat {
  flex: 1 1 180px;
  border-top: 2px solid var(--brine-tone);
  padding-top: 1rem;
}
.brine-stat-fig {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--brine-tone);
}
.brine-stat-cap {
  margin: 0;
  color: var(--brine-muted);
}

/* Іконкові блоки експерта */
.brine-tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}
.brine-tip svg {
  width: 36px;
  height: 36px;
  color: var(--brine-tone);
}
.brine-tip h3 {
  font-size: 1.4rem;
  margin: 0.8rem 0 0.6rem;
}
.brine-tip p { color: var(--brine-muted); }

/* ---------- Reserve ---------- */
.brine-page-head--big { padding-bottom: 6dvh; }
.brine-big-title {
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: 1.02;
  margin: 0 0 1.5rem;
  font-weight: 700;
}
.brine-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.brine-tile {
  background: #fff;
  border-top: 3px solid var(--brine-tone);
  border-radius: var(--brine-radius);
  padding: 2rem;
}
.brine-tile svg {
  width: 40px;
  height: 40px;
  color: var(--brine-tone);
}
.brine-tile h3 {
  font-size: 1.35rem;
  margin: 1rem 0 0.6rem;
}
.brine-tile p { color: var(--brine-muted); }
.brine-badge-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.brine-badge-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brine-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.brine-badge--1 { background: var(--brine-tone); }
.brine-badge--2 { background: var(--brine-coral); }
.brine-badge--3 { background: var(--brine-plum); }
.brine-badge--4 { background: var(--brine-tone-hover); }

.brine-form-sec {
  background: var(--brine-surface);
  border-top: 1px solid var(--brine-line);
  border-bottom: 1px solid var(--brine-line);
}
.brine-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.brine-form-wrap h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
}
.brine-field {
  display: block;
  margin: 1.6rem 0 0;
}
.brine-field > span {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brine-ink);
}
.brine-field input,
.brine-field textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--brine-ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--brine-ink);
}
.brine-field input:focus,
.brine-field textarea:focus {
  outline: none;
  border-bottom-color: var(--brine-tone);
  box-shadow: 0 2px 0 0 var(--brine-tone);
}
.brine-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.8rem;
  font-size: 0.95rem;
}
.brine-consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  accent-color: var(--brine-tone);
}
.brine-form .brine-cta-solid { margin-top: 1.8rem; }
.brine-mail { margin-top: 2rem; }

.brine-faq-wrap h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
}
.brine-faq details {
  border-bottom: 1px solid var(--brine-line);
  padding: 1.1rem 0;
}
.brine-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
}
.brine-faq summary::-webkit-details-marker { display: none; }
.brine-faq details p {
  margin: 0.6rem 0 0;
  color: var(--brine-muted);
}

/* ---------- Legal pages ---------- */
.brine-legal-page { min-height: 100vh; }
.brine-legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 6dvh 5vw 10dvh;
}
.brine-legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
}
.brine-legal h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 0.8rem;
}
.brine-updated {
  color: var(--brine-muted);
  font-size: 0.95rem;
}
.brine-cookie-sec {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brine-line);
}

/* ---------- Thank you ---------- */
.brine-thanks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 80dvh;
  padding: 8dvh 5vw;
}
.brine-thanks-card {
  background: #fff;
  padding: 3rem;
  border-radius: var(--brine-radius);
  border-top: 3px solid var(--brine-tone);
}
.brine-thanks-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
}
.brine-thanks-card .brine-cta-solid { margin-top: 1rem; }
.brine-thanks-visual { margin: 0; }
.brine-thanks-visual img {
  width: 100%;
  height: 60dvh;
  object-fit: cover;
  border-radius: var(--brine-radius);
}

/* ---------- Stagger-reveal (JS-клас .js на html) ---------- */
.js .brine-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .brine-stagger.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Поява секцій при вході у viewport (лише з підтримкою) ---------- */
@supports (animation-timeline: view()) {
  .brine-view-fade {
    animation: brine-fade-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}
@keyframes brine-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Адаптивність ---------- */
@media (max-width: 960px) {
  .brine-expert-split { grid-template-columns: 1fr; }
  .brine-expert-visual { min-height: 42vh; }
  .brine-thanks { grid-template-columns: 1fr; }
  .brine-columns { columns: 2; }
}

@media (max-width: 760px) {
  .brine-menu-btn { display: flex; }
  .brine-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-top: 1rem;
  }
  .brine-menu-check:checked ~ .brine-nav { display: flex; }

  .brine-columns { columns: 1; }
  .brine-word--c { margin-left: 6vw; }
  .brine-step:nth-child(2),
  .brine-step:nth-child(3) { margin-top: 0; padding-left: 0; }
  .brine-step:nth-child(3) { padding-left: 1.5rem; }
  .brine-thanks-card { padding: 2rem; }
  .brine-thanks-visual img { height: 40dvh; }
  .brine-cookie-actions { width: 100%; }
  .brine-cookie-btn { flex: 1 1 0; }
}

/* ---------- Доступність: зменшений рух ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { view-transition-name: none; }
  .js .brine-word,
  .js .brine-stagger {
    opacity: 1;
    transform: none;
  }
}