/* ============================================================
   ESSENS — style.css
   Fonts: Cormorant Garamond (headings) · Raleway (UI) · Open Sans (body)
   Colors: #003468 primary · #dc2569 accent · grays · white
   ============================================================ */

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
  background: #fff;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── CSS VARIABLES ───────────────────────────────────────── */
:root {
  --primary:   #003468;
  --primary-d: #002550;
  --accent:    #dc2569;
  --accent-d:  #b81e57;
  --bg-light:  #f2f5f9;
  --bg-dark:   #001f3f;
  --gray-100:  #f8f9fa;
  --gray-200:  #e8edf2;
  --gray-400:  #9aa5b1;
  --gray-600:  #5f6b7a;
  --gray-800:  #2d3748;
  --white:     #ffffff;
  --r-sm:      8px;
  --r-md:      16px;
  --r-lg:      24px;
  --sh-sm:     0 2px 12px rgba(0,52,104,.07);
  --sh-md:     0 8px 32px rgba(0,52,104,.12);
  --sh-lg:     0 20px 60px rgba(0,52,104,.18);
  --tr:        .3s ease;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
h5 { font-size: 1rem; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ── UTILITY ─────────────────────────────────────────────── */
.clr-accent { color: var(--accent); }
.clr-white  { color: var(--white); }
.fw-700     { font-weight: 700; }

/* ── SECTION HEADING ─────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-label-light {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.section-head::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 18px;
  border-radius: 2px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--tr);
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: transparent;
  color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: .92rem;
  margin-top: 4px;
  position: relative;
}
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(220, 37, 105, 0.5);
  animation: btn-ripple 1.8s ease-out infinite;
}
@keyframes btn-ripple {
  0%   { box-shadow: 0 0 0 0 rgba(220, 37, 105, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(220, 37, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 37, 105, 0); }
}
.btn-submit svg { flex-shrink: 0; }

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.lbl-num { color: var(--accent); margin-right: 3px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 10px 2px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gray-200);
  color: var(--gray-800);
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--tr);
  border-radius: 0;
}
.form-group input:focus { border-bottom-color: var(--primary); }
.form-group input::placeholder { color: var(--gray-400); font-size: .88rem; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.form-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.form-check label {
  font-family: 'Open Sans', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray-600);
  cursor: pointer;
}
.form-check label a { color: var(--accent); text-decoration: underline; }

/* ── MESSENGER SELECT ────────────────────────────────────── */
.form-group select {
  width: 100%;
  padding: 10px 2px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  font-family: 'Open Sans', sans-serif;
  font-size: .88rem;
  color: var(--primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa5b1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  transition: border-color var(--tr);
}
.form-group select:focus { border-bottom-color: var(--primary); }
.form-group select option[value=""] { color: var(--gray-400); }

/* ── HEADER ──────────────────────────────────────────────── */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow var(--tr);
}
#main-header.scrolled { box-shadow: var(--sh-sm); }

.header-top {
  background: var(--primary);
  padding: 7px 0;
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-top__slogan {
  font-family: 'Open Sans', sans-serif;
  font-size: .78rem;
  font-style: italic;
  color: rgba(255,255,255,.65);
}
.header-top__contact a {
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--tr);
}
.header-top__contact a:hover { color: var(--accent); }
.header-top__contact svg { width: 14px; height: 14px; flex-shrink: 0; }

.header-main { padding: 11px 0; border-bottom: 1px solid var(--gray-200); }
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.header-logo__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav a {
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gray-800);
  padding: 7px 10px;
  border-radius: var(--r-sm);
  transition: all var(--tr);
  white-space: nowrap;
}
.header-nav a:hover { color: var(--primary); background: var(--bg-light); }

.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--tr);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,36,80,.97);
  z-index: 2000;
  padding: 56px 28px 32px;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--tr);
}
.nav-mobile a:hover { color: var(--accent); }
.nav-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.5rem;
  padding: 6px 10px;
  opacity: .7;
  transition: opacity var(--tr);
}
.nav-close-btn:hover { opacity: 1; }

/* ── HERO SECTION ────────────────────────────────────────── */
.hero-section {
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero-left h1 { margin-bottom: 14px; font-size: clamp(1.9rem, 3vw, 2.5rem); white-space: nowrap; }
.hero-subtext {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 28px;
  max-width: 420px;
  line-height: 1.6;
}
.form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--sh-lg);
  border-top: 4px solid var(--accent);
}
.form-card-head { text-align: center; margin-bottom: 16px; }
.form-card-head h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  line-height: 1.3;
}
.pulse-text { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.75; } }
.form-card-head p { font-size: .85rem; color: var(--gray-600); }

/* Hero right */
.hero-right { display: flex; flex-direction: column; gap: 20px; }
.countdown-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 22px 24px 18px;
  box-shadow: var(--sh-md);
  text-align: center;
}
.countdown-label {
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.countdown-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.cdown-unit { text-align: center; min-width: 56px; }
.cdown-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}
.cdown-lbl {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}
.cdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  padding-bottom: 16px;
}
.countdown-offer {
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.countdown-offer strong { color: var(--accent); }
.hero-img-box {
  border-radius: var(--r-md);
  overflow: hidden;
  background: transparent;
}
.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── STEPS SECTION ───────────────────────────────────────── */
.steps-section { background: var(--bg-light); }
.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 8px;
  margin-bottom: 36px;
}
.step-connector {
  align-self: start;
  margin-top: 58px;
  height: 2px;
  width: 100%;
  min-width: 16px;
  background: repeating-linear-gradient(
    90deg,
    var(--gray-400) 0, var(--gray-400) 6px,
    transparent 6px, transparent 14px
  );
}
.step-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 28px 18px 24px;
  text-align: center;
  box-shadow: var(--sh-sm);
  transition: transform var(--tr), box-shadow var(--tr);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  flex-shrink: 0;
}
.step-num.accent { background: var(--accent); }
.step-icon-box {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--primary);
}
.step-icon-box svg { width: 100%; height: 100%; }
.step-card h5 {
  font-family: 'Raleway', sans-serif;
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--primary);
  margin-bottom: 8px;
}
.step-card p { font-size: .82rem; color: var(--gray-600); line-height: 1.5; }
.steps-desc {
  text-align: center;
  color: var(--gray-600);
  font-size: .9rem;
  max-width: 580px;
  margin: 0 auto 28px;
}
.steps-cta { text-align: center; }

/* ── BENEFITS SECTION ────────────────────────────────────── */
.benefits-section { background: var(--white); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.benefit-card {
  border-radius: var(--r-md);
  padding: 26px 22px 22px;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: all var(--tr);
}
.benefit-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.benefit-card:nth-child(2n)::after { background: var(--accent); }
.benefit-card:hover {
  box-shadow: var(--sh-md);
  border-color: transparent;
  transform: translateY(-3px);
}
.benefit-card:hover::after { transform: scaleX(1); }
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card h5 {
  font-family: 'Raleway', sans-serif;
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--primary);
  margin-bottom: 8px;
}
.benefit-card p { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }
.benefit-line {
  position: absolute;
  bottom: 0; left: 22px; right: 22px;
  height: 1px;
  background: var(--gray-200);
}
.benefits-cta { text-align: center; }

/* ── COLLECTION SECTION ──────────────────────────────────── */
.collection-section { background: var(--bg-light); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}
.product-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--tr);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-body {
  padding: 14px 18px;
  border-top: 1px solid var(--gray-200);
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.collection-note {
  text-align: center;
  color: var(--gray-600);
  font-size: .88rem;
  max-width: 520px;
  margin: 0 auto 24px;
}
.collection-cta { text-align: center; }

/* ── PODBOR SECTION ──────────────────────────────────────── */
.podbor-section { background: var(--white); }
.podbor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.podbor-text .section-label { display: block; margin-bottom: 10px; }
.podbor-text h2 { margin-bottom: 16px; }
.podbor-text p {
  color: var(--gray-600);
  font-size: .97rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.podbor-btn-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.podbor-note {
  font-size: .78rem;
  color: var(--gray-400);
}
.podbor-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.podbor-img img { width: 100%; height: 380px; object-fit: cover; }

/* ── JOIN SECTION ────────────────────────────────────────── */
.join-section { background: var(--bg-light); }
.join-intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.join-intro p {
  color: var(--gray-600);
  font-size: .97rem;
  line-height: 1.75;
}
.tabs {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--gray-200);
}
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
}
.tab-btn {
  flex: 1;
  padding: 17px 24px;
  background: var(--gray-100);
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--tr);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--primary); background: var(--white); }
.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.tab-pane { display: none; padding: 36px 40px; }
.tab-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.tab-img {
  border-radius: var(--r-md);
  overflow: hidden;
}
.tab-img img { width: 100%; height: 300px; object-fit: cover; object-position: top; }
.tab-text h3 { margin-bottom: 14px; }
.tab-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 16px;
}
.tab-text p {
  color: var(--gray-600);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 26px;
}

/* ── CONTACTS SECTION ────────────────────────────────────── */
.contacts-section {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}
.contacts-section .section-head::before { background: var(--accent); }
.contacts-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.contacts-photo {
  flex-shrink: 0;
}
.contacts-photo img {
  width: 220px;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-lg);
  border: 3px solid rgba(255,255,255,.2);
  box-shadow: var(--sh-lg);
}
.contacts-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  transition: all var(--tr);
  color: var(--white);
  text-decoration: none;
}
.contact-item:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
  transform: translateX(4px);
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; color: var(--white); fill: currentColor; }
.contact-icon--tg { background: #229ED9; }
.contact-icon--wa { background: #25D366; }
.contact-icon--em { background: var(--accent); }
.contact-icon--em svg { width: 20px; height: 20px; stroke: var(--white); fill: none; }
.contact-label {
  font-family: 'Raleway', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.5);
  padding: 28px 0;
  text-align: center;
  font-size: .8rem;
}
footer p { margin-bottom: 5px; line-height: 1.6; }
footer a {
  color: rgba(255,255,255,.65);
  text-decoration: underline;
  transition: color var(--tr);
}
footer a:hover { color: var(--white); }

/* ── BACK TO TOP ──────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--tr);
  z-index: 500;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--accent); transform: translateY(-2px); }
#back-to-top svg { width: 18px; height: 18px; }

/* ── QUIZ MODAL ──────────────────────────────────────────── */
#quiz-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,24,60,.78);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
#quiz-modal.open { display: flex; }
.quiz-dialog {
  background: var(--white);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  position: relative;
  animation: dialogIn .3s ease;
}
@keyframes dialogIn {
  from { opacity:0; transform:translateY(16px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.quiz-dialog h3 { text-align: center; margin-bottom: 6px; font-size: 1.5rem; }
.quiz-progress {
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 22px;
}
.quiz-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-600);
  transition: all var(--tr);
  line-height: 1;
}
.quiz-close-btn:hover { background: var(--accent); color: var(--white); }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-q {
  font-family: 'Raleway', sans-serif;
  font-size: .97rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .88rem;
  color: var(--gray-800);
  font-family: 'Open Sans', sans-serif;
  transition: all var(--tr);
}
.quiz-option:hover { border-color: var(--primary); background: rgba(0,52,104,.06); }
.quiz-option.selected { border-color: var(--primary); background: rgba(0,52,104,.08); color: var(--primary); font-weight: 600; }
.quiz-emoji { font-size: 1.2rem; flex-shrink: 0; }
.quiz-back-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: .8rem;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Open Sans', sans-serif;
  transition: color var(--tr);
  text-decoration: underline;
  width: 100%;
}
.quiz-back-btn:hover { color: var(--primary); }
.quiz-form-title {
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.4;
}
.quiz-success {
  text-align: center;
  padding: 16px;
  background: rgba(0,168,72,.08);
  border-radius: var(--r-sm);
  color: #00a848;
  font-weight: 600;
  font-size: .9rem;
  margin-top: 12px;
}
.quiz-error {
  text-align: center;
  padding: 12px;
  background: rgba(220,37,105,.08);
  border-radius: var(--r-sm);
  color: var(--accent);
  font-size: .88rem;
  margin-top: 10px;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-animate].in-view { opacity: 1; transform: none; }
[data-animate-delay="1"] { transition-delay: .1s; }
[data-animate-delay="2"] { transition-delay: .2s; }
[data-animate-delay="3"] { transition-delay: .3s; }
[data-animate-delay="4"] { transition-delay: .4s; }

/* Мобильные флаконы — скрыты на десктопе */
.hero-mob-bottles { display: none; }
.hero-subtext-row { display: contents; } /* на десктопе не мешает flow */

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .step-connector { display: none; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero-section::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-subtext { font-size: .82rem; }
  .form-card-head h3 { font-size: 1rem; white-space: nowrap; }

  /* Флаконы поверх формы — только мобильная */
  .hero-subtext-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
  }
  .hero-subtext-row .hero-subtext {
    flex: 1;
    margin-bottom: 0;
    padding-right: 8px;
  }
  .hero-mob-bottles {
    display: block;
    width: 110px;
    flex-shrink: 0;
    align-self: flex-start;
    position: relative;
    z-index: 0;
    margin-bottom: -90px;
    pointer-events: none;
  }
  .form-card {
    position: relative;
    z-index: 1;
  }

  .form-card { padding: 24px 20px; }
  .steps-row { grid-template-columns: 1fr; gap: 14px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .podbor-grid { grid-template-columns: 1fr; gap: 28px; }
  .podbor-img { order: -1; }
  .podbor-img img { height: 240px; }
  .tab-pane.active { grid-template-columns: 1fr; gap: 20px; padding: 24px 22px; }
  .tab-img img { height: 200px; }
  .contacts-layout { gap: 32px; flex-direction: column; }
  .contacts-photo { order: 1; }
  .contacts-items { order: 0; }
  .contacts-photo img { width: 160px; height: 200px; }
  .footer-sep { display: none; }
  .footer-line { display: block; }
  .header-nav { display: none; }
  .header-burger { display: flex; }
  .nav-mobile { display: flex; }
  .header-top__slogan { display: none; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 36px 0 52px; }
  .countdown-wrap { gap: 6px; }
  .cdown-num { font-size: 2.2rem; }
  .quiz-dialog { padding: 28px 20px 24px; }
}
