/* ============================================================
   SMEREKA — Штучні ялинки
   Brand: #1F4A34 (green) | #C9A76A (gold) | #EAE3D6 (cream)
   ============================================================ */

:root {
  --green-dark: #1F4A34;
  --green:      #2A6145;
  --green-light:#3A7D58;
  --gold:       #C9A76A;
  --gold-light: #D9BC87;
  --gold-dark:  #A88A50;
  --cream:      #EAE3D6;
  --cream-dark: #DDD4C3;
  --cream-darker:#CEC2AE;
  --brown-dark: #2E2010;
  --brown:      #4A3520;
  --brown-light:#7A5E3A;
  --text:       #2A1C0A;
  --text-light: #5C4A2E;
  --text-muted: #8B7758;
  --white:      #FFFEF9;
  --error:      #B44A3F;
  --success:    #2A6145;
  --border:     rgba(201,167,106,0.2);
  --nav-h:      70px;
  --announce-h: 36px;
}

/* No announce bar (toggled off / empty) → collapse its reserved space so the
   nav sits flush at the top with no gap. JS adds .no-announce to <body>. */
body.no-announce { --announce-h: 0px; }

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { font-size: 16px; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Cursor */
a, button, [role="button"], select, label[for], .product-card, .tab-btn,
.faq-q, .hero-dot, .modal-close, .modal-order-btn, .social-link,
.testimonials-dot, .t-arrow, .nav-burger, .cb-btn, .cb-item { cursor: pointer; }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown-dark);
}

em { font-style: italic; color: var(--green-dark); }

a { text-decoration: none; color: inherit; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--brown-dark);
  border-color: var(--gold);
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-15deg);
  animation: btnShine 2.8s ease-in-out infinite;
  pointer-events: none;
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,167,106,0.45);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-submit { width: 100%; justify-content: center; padding: 1.1rem; font-size: 1.05rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--green-dark);
  height: var(--nav-h);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.nav-logo-tagline {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(0.6); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 1rem; padding: 0.6rem 1.4rem; font-size: 0.85rem; }

.nav-hours {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: auto;
}
.nav-hours svg { color: var(--gold); flex-shrink: 0; }
.nav-hours strong { color: #fff; font-weight: 600; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* Burger → X animation */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--green-dark);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + var(--announce-h) + 2rem) 2rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }

.nm-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nm-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nm-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(201,167,106,0.15);
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}
.nm-link:first-child { border-top: 1px solid rgba(201,167,106,0.15); }
.nm-link:hover { color: var(--gold); padding-left: 0.5rem; }
.nm-link.active { color: var(--gold); padding-left: 0.6rem; box-shadow: inset 3px 0 0 var(--gold); }

.nm-cta {
  width: 100%;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 10px;
}

.nm-contacts {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.nm-phone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nm-phone:hover { color: var(--gold); }
.nm-phone svg { color: var(--gold); }

.nm-socials {
  display: flex;
  gap: 0.75rem;
}
.nm-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,167,106,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.nm-social:hover { background: rgba(201,167,106,0.2); color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--announce-h));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/images/hero-banner.webp') center center / cover no-repeat;
  animation: heroZoom 12s ease forwards;
}
@media (max-width: 800px) {
  .hero-bg { background-image: url('/images/hero-banner-mobile.webp'); }
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  max-width: 780px;
  margin-top: calc(var(--nav-h) / 2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,167,106,0.18);
  border: 1px solid rgba(201,167,106,0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 auto 2.25rem;
  max-width: 620px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,167,106,0.4);
  border-radius: 30px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  letter-spacing: 0.01em;
}
.hero-chip svg {
  color: var(--gold);
  flex-shrink: 0;
}
.hero-chip strong {
  color: var(--gold-light);
  font-weight: 700;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
.hero-scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  right: 2rem;
  z-index: 3;
  color: rgba(255,255,255,0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--green-dark);
  padding: 2rem 0 2.5rem;
}
.trust-heading {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.85);
}
.trust-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(201,167,106,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(201,167,106,0.2);
}
.trust-text { display: flex; flex-direction: column; }
.trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.trust-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ============================================================
   SECTION GLOW
   ============================================================ */
/* ============================================================
   PHOTO STRIP (marquee)
   ============================================================ */
.photo-strip {
  overflow: hidden;
  background: var(--green-dark);
  padding: 10px 0;
}
.photo-strip-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.photo-strip:hover .photo-strip-track {
  animation-play-state: paused;
}
.photo-strip-item {
  flex-shrink: 0;
  width: 220px;
  height: 290px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}
.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-strip-item {
  position: relative;
}
.photo-strip-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}
.photo-strip-item:hover::after {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(201,167,106,0.35);
}
.photo-strip-item:hover img { transform: scale(1.04); }



@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .photo-strip-item { width: 160px; height: 210px; }
}

.section-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,167,106,0.25) 30%, rgba(201,167,106,0.5) 50%, rgba(201,167,106,0.25) 70%, transparent 100%);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.section-glow::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(201,167,106,0.07) 0%, transparent 70%);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown-dark);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
  padding: 5rem 0;
  background: var(--cream);
}

/* Guarantees — reuses .benefit-card styling; 4 cards across on desktop */
.guarantees {
  padding: 5rem 0;
  background: var(--cream);
}
.guarantees-grid {
  grid-template-columns: repeat(4, 1fr);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.benefit-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid rgba(42,28,10,0.06);
  box-shadow: 0 2px 16px rgba(42,28,10,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(42,28,10,0.12);
}

.benefit-icon {
  color: var(--green-dark);
  margin-bottom: 1rem;
}
.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
}
.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   CATALOG / PRODUCTS
   ============================================================ */
.catalog {
  padding: 3rem 0;
  background: var(--cream-dark);
}

.catalog-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.65rem 1.75rem;
  border-radius: 30px;
  background: transparent;
  border: 2px solid rgba(31,74,52,0.2);
  color: var(--text-light);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s;
}
.tab-btn:hover { border-color: var(--green-dark); color: var(--green-dark); }
.tab-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.catalog-tab {
  padding: 0.65rem 1.75rem;
  border-radius: 30px;
  background: transparent;
  border: 2px solid rgba(31,74,52,0.2);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.catalog-tab:hover { border-color: var(--green-dark); color: var(--green-dark); }
.catalog-tab.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* Cards hidden/shown by tab */
.product-card[data-tree-type] { display: none; }
.product-card[data-tree-type].tab-visible { display: flex; flex-direction: column; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.products-grid--single {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}
.products-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.card-type-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 2px;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(42,28,10,0.12);
}

.card-img-wrap { position: relative; }

/* ---- Out of stock (немає в наявності) ---- */
.card-soldout-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 20, 8, 0.45);
  backdrop-filter: saturate(0.6);
}
.card-soldout-overlay span {
  background: rgba(180, 74, 63, 0.95);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  text-transform: uppercase;
}
.product-card.sold-out .card-img-wrap img,
.product-card.sold-out .card-img-placeholder { filter: grayscale(0.55) brightness(0.9); }
.card-btn-soldout {
  background: #d8d2c6 !important;
  color: #6b6357 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}
.card-btn-soldout::after { display: none !important; }
.card-btn-soldout:hover { background: #d8d2c6 !important; transform: none !important; box-shadow: none !important; }

.card-img-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.tree-classic {
  background: linear-gradient(160deg, #1F4A34 0%, #2A6145 50%, #1a3a28 100%);
  color: var(--gold-light);
}
.tree-snow {
  background: linear-gradient(160deg, #2A5A45 0%, #3d7a60 40%, #1a3d2d 100%);
  color: rgba(255,255,255,0.9);
}
.tree-premium {
  background: linear-gradient(160deg, #162b1e 0%, #1F4A34 40%, #2d6648 70%, #111e15 100%);
  color: var(--gold);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--brown-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 1;
}
.card-badge.popular {
  background: var(--green-dark);
  color: #fff;
}

.card-body {
  padding: 1.25rem;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--brown-dark);
}
.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0.8rem;
}
.card-size-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-dark);
  border: 1.5px solid rgba(31,74,52,0.35);
  border-radius: 12px;
  padding: 3px 9px;
  font-family: var(--font-body);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.card-size-chip:hover {
  border-color: var(--green-dark);
  background: rgba(31,74,52,0.07);
}
.card-size-chip.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.price-current {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #b85c00;
}
.price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Card buttons added by JS */
.card-btn {
  display: block;
  width: 100%;
  padding: 0.7rem;
  background: var(--gold);
  color: var(--brown-dark);
  border: none;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.02em;
}
.card-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 30%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-15deg);
  animation: btnShine 2.8s ease-in-out infinite 0.5s;
  pointer-events: none;
}
.card-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201,167,106,0.4);
}
.card-savings {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.card-savings-pct {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: #c0392b;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.card-savings-amt {
  font-size: 0.72rem;
  font-weight: 600;
  color: #c0392b;
  letter-spacing: 0.01em;
}

/* ============================================================
   HOW TO ORDER
   ============================================================ */
.how-to-order {
  padding: 5rem 0;
  background: var(--cream);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(31,74,52,0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--green-dark);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--brown-dark);
}
.step-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-dark), var(--gold));
  margin-top: 5.5rem;
  opacity: 0.3;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 5rem 0;
  background: var(--green-dark);
}
.testimonials .section-header { color: #fff; }
.testimonials .section-header h2 { color: #fff; }
.testimonials .section-header h2 em { color: var(--gold-light); }
.testimonials .section-label { color: var(--gold); }
.testimonials .section-header p { color: rgba(255,255,255,0.65); }

.testimonials-wrapper {
  position: relative;
  padding: 0 56px;
}

.testimonials-track-wrap {
  overflow: hidden;
  min-width: 0;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,167,106,0.2);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}

.t-card-body {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.t-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.t-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
  flex: 1;
}
.t-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}
.t-avatar {
  width: 44px;
  height: 44px;
  background: var(--av-bg, rgba(201,167,106,0.25));
  border: 2px solid rgba(201,167,106,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  position: relative;
}
.t-initial {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: 'Raleway', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.t-review-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}
.t-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
}
.t-meta {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  text-align: center;
}

.t-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,167,106,0.3);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
}
.t-prev { left: 0; }
.t-next { right: 0; }
.t-arrow:hover { background: rgba(201,167,106,0.15); border-color: var(--gold); }

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}
.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  padding: 0;
  transition: all 0.3s;
}
.testimonials-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 5rem 0;
  background: var(--cream-dark);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: 0 4px 16px rgba(42,28,10,0.08); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-dark);
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--gold-dark);
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ============================================================
   CERTIFICATES
   ============================================================ */
.certificates-section {
  padding: 5rem 0;
  background: var(--cream);
}
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cert-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(31,74,52,0.10);
  overflow: hidden;
  border: 1px solid rgba(201,167,106,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
  aspect-ratio: 3/4; /* резерв висоти: lazy-сертифікати не зсувають контент → якорі точні */
}
.cert-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(31,74,52,0.18);
}
.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.75rem;
}
@media (max-width: 900px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .certs-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

/* ============================================================
   CERTIFICATE LIGHTBOX
   ============================================================ */
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cert-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.cert-lightbox-img {
  max-width: min(90vw, 800px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}
.cert-lightbox.active .cert-lightbox-img {
  transform: scale(1);
}
.cert-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cert-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ============================================================
   ORDER FORM
   ============================================================ */
.order-section {
  padding: 5rem 0;
  background: var(--cream);
}

.order-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.order-form {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(42,28,10,0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}
.required { color: var(--error); }

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--cream-darker);
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(31,74,52,0.1);
}
.form-input.error { border-color: var(--error); }
.form-input.valid { border-color: var(--success); }

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C4A2E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-select.error + .form-error { display: block; }
.form-error {
  display: none;
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 2px;
}
.form-input.error + .form-error { display: block; }
.np-field:has(.form-input.error) + .form-error { display: block; }

.form-textarea { resize: vertical; min-height: 90px; }

/* Delivery type toggle */
.delivery-toggle {
  display: flex;
  background: var(--cream);
  border: 1.5px solid var(--cream-darker);
  border-radius: 10px;
  padding: 3px;
  width: fit-content;
}
.delivery-type-btn {
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.delivery-type-btn.active {
  background: var(--green-dark);
  color: #fff;
}

/* Nova Poshta autocomplete */
.np-field { position: relative; }
.np-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--cream-darker);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(42,28,10,0.12);
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  padding: 4px;
}
.np-drop-item {
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1.4;
}
.np-drop-item:hover { background: rgba(31,74,52,0.08); color: var(--green-dark); }

/* Price preview */
.price-preview {
  background: rgba(31,74,52,0.06);
  border: 1px solid rgba(31,74,52,0.12);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.price-preview-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.price-preview-old {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-preview-current {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
}
.price-preview-save {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(42,97,69,0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.qty-group { margin-top: 0; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1.5px solid rgba(31,74,52,0.2);
  border-radius: 10px;
  overflow: hidden;
}
.qty-btn {
  width: 44px;
  height: 44px;
  background: rgba(31,74,52,0.06);
  border: none;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green-dark);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.qty-btn:hover { background: rgba(31,74,52,0.14); }
.qty-input {
  width: 56px;
  height: 44px;
  border: none;
  border-left: 1.5px solid rgba(31,74,52,0.15);
  border-right: 1.5px solid rgba(31,74,52,0.15);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  background: #fff;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.order-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  background: rgba(31,74,52,0.03);
  margin-bottom: 0.85rem;
}
.order-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.order-item-num {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.order-item-remove {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(180,74,63,0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--error);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.order-item-remove:hover { background: var(--error); color: #fff; border-color: var(--error); }
.item-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}
.item-qty-label {
  font-size: 0.87rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 70px;
}
.item-subtotal {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--green-dark);
  font-weight: 600;
  min-height: 1.3em;
}
.btn-add-item {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px dashed rgba(201,167,106,0.5);
  border-radius: 10px;
  background: transparent;
  color: var(--gold-dark);
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.25rem;
}
.btn-add-item:hover { background: rgba(201,167,106,0.08); border-color: var(--gold); }
.order-summary {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 0.85rem;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-light);
}
.summary-total-row {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown-dark);
}
.order-summary-old { color: var(--text-muted); }
.order-summary-discount { color: var(--error); font-weight: 600; }
.order-summary-total { color: var(--green-dark); font-weight: 700; font-size: 1.1rem; }

.price-total {
  background: var(--green-dark);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.price-total-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.price-total-sum {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -0.25rem;
}
.form-note svg { flex-shrink: 0; margin-top: 2px; color: var(--gold-dark); }
.form-note a { color: var(--green-dark); text-decoration: underline; }

/* Order info sidebar */
.order-info-card {
  background: var(--green-dark);
  color: #fff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.order-info-card h3 {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.order-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.order-info-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}
.order-info-list svg { color: var(--gold); flex-shrink: 0; }

.order-info-contact p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}
.order-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  transition: color 0.2s;
}
.order-phone:hover { color: var(--gold); }
.order-phone svg { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--brown-dark);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 280px;
}

.footer-hours {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}
.footer-hours svg { color: var(--gold); flex-shrink: 0; }
.footer-hours div { display: flex; flex-direction: column; gap: 1px; }
.footer-hours strong { color: rgba(255,255,255,0.9); font-size: 0.9rem; }

.footer-socials {
  display: flex;
  gap: 0.6rem;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s;
}
.social-link:hover {
  background: rgba(201,167,106,0.15);
  border-color: rgba(201,167,106,0.4);
  color: var(--gold-light);
}

.footer-nav h4,
.footer-contacts h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-nav ul,
.footer-contacts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-nav li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-nav li a:hover { color: var(--gold-light); }

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}
.footer-contacts li svg { flex-shrink: 0; color: var(--gold); }
.footer-contacts a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-contacts a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold-light); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(14,28,18,0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: min(1080px, 92vw);
  max-height: 92vh;
  overflow: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(42,28,10,0.07);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(42,28,10,0.12); color: var(--text); }

.modal-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

.modal-gallery {
  background: #111a14;
  border-radius: 20px 0 0 20px;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal photo carousel */
.modal-carousel {
  flex: 1;
  min-width: 0;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.modal-carousel-slide {
  display: none;
  position: absolute;
  inset: 0;
}
.modal-carousel-slide.active {
  display: block;
  animation: modalSlideIn 0.35s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.modal-carousel-btn:hover { background: #fff; }
.modal-carousel-btn.prev { left: 8px; }
.modal-carousel-btn.next { right: 8px; }
.modal-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.modal-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.modal-carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.modal-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-badge-wrap { min-height: 24px; }
.modal-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.modal-title {
  font-size: 1.7rem;
  color: var(--brown-dark);
  line-height: 1.2;
}
.modal-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}
.modal-size-selector {
  margin-bottom: 1rem;
}
.modal-size-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.modal-size-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.modal-size-btn {
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--green-dark);
  border-radius: 20px;
  background: transparent;
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-family: var(--font-body);
}
.modal-size-btn:hover,
.modal-size-btn.active {
  background: var(--green-dark);
  color: #fff;
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.modal-price-current {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
}
.modal-price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-savings {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.modal-savings-pct {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: #c0392b;
  padding: 3px 9px;
  border-radius: 10px;
}
.modal-savings-amt {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0392b;
}

.modal-specs {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.modal-specs-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.modal-specs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(201,167,106,0.08);
  font-size: 0.85rem;
}
.modal-specs-row:last-child { border-bottom: none; }
.modal-specs-label { color: var(--text-muted); }
.modal-specs-value { margin-left: auto; font-weight: 600; color: var(--text); }

.modal-order-btn { width: 100%; justify-content: center; margin-top: auto; }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: -80px;
  left: 0; right: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  transition: bottom 0.35s ease;
  box-shadow: 0 -4px 24px rgba(42,28,10,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-cta.visible { bottom: 0; }

.sticky-cta-info { display: flex; flex-direction: column; }
.sticky-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sticky-price {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.sticky-price strong { color: var(--green-dark); font-size: 1.1rem; }
.sticky-savings {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.sticky-savings-pct {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: #c0392b;
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.sticky-savings-amt {
  font-size: 0.7rem;
  font-weight: 600;
  color: #c0392b;
}
/* only show badges with a recognised modifier class */
.card-badge:not(.popular):not(.badge-new):not(.badge-top):not(.badge-premium):not(.badge-season):not(.badge-limited) { display: none; }
.card-badge.badge-new     { background: var(--gold); color: var(--brown-dark); }
.card-badge.badge-top     { background: #C47D2A; color: #fff; }
.card-badge.badge-premium { background: #4A2E10; color: #F0DDB0; }
.card-badge.badge-season  { background: #3D6B4A; color: #fff; }
.card-badge.badge-limited { background: #B44A3F; color: #fff; }

/* ============================================================
   CONTACT BUBBLE
   ============================================================ */
.contact-bubble {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, bottom 0.35s ease;
}
.contact-bubble.visible {
  opacity: 1;
  pointer-events: auto;
}
/* contact-bubble bottom offset when sticky-cta visible is set by JS */

.cb-menu {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
  align-items: center;
  pointer-events: none;
}
.cb-menu .cb-item {
  opacity: 0;
  transform: translateY(14px) scale(0.75);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.5,0.64,1);
}
.contact-bubble.open .cb-menu {
  pointer-events: auto;
}
.contact-bubble.open .cb-menu .cb-item:nth-child(5) { opacity:1; transform:none; transition-delay:0.04s; }
.contact-bubble.open .cb-menu .cb-item:nth-child(4) { opacity:1; transform:none; transition-delay:0.1s; }
.contact-bubble.open .cb-menu .cb-item:nth-child(3) { opacity:1; transform:none; transition-delay:0.16s; }
.contact-bubble.open .cb-menu .cb-item:nth-child(2) { opacity:1; transform:none; transition-delay:0.22s; }
.contact-bubble.open .cb-menu .cb-item:nth-child(1) { opacity:1; transform:none; transition-delay:0.28s; }

.cb-item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s, opacity 0.25s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.cb-item:hover { transform: scale(1.12); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.cb-phone    { background: #27ae60; }
.cb-telegram { background: #229ED9; }
.cb-viber    { background: #7360F2; }
.cb-instagram{ background: linear-gradient(135deg,#E1306C,#833AB4,#FCAF45); }
.cb-close    { background: #9B59B6; }

@keyframes cb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.cb-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.30);
  animation: cb-pulse 2.5s infinite;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.cb-btn:hover { background: var(--gold-dark, #a8883a); color: #fff; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim.visible { opacity: 1; transform: translateY(0); }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1025px) {
  .sticky-cta { display: none !important; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta, .nav-hours { display: none; }
  .nav-burger { display: flex; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand .footer-logo { justify-content: center; }
  .footer-brand .footer-desc { margin-left: auto; margin-right: auto; }
  .footer-brand .footer-hours { justify-content: center; }
  .footer-brand .footer-socials { justify-content: center; }

  .order-wrap { grid-template-columns: 1fr; }
  .order-info-card { position: static; }

  .testimonial-card { flex: 0 0 calc(50% - 0.75rem); }

  .modal-overlay { padding: 0.5rem; }
  .modal { max-width: 100%; border-radius: 16px; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-gallery { border-radius: 16px 16px 0 0; min-height: 60vw; }
  .modal-carousel-slide img { object-fit: cover; object-position: center; }

  .steps-grid { flex-direction: column; align-items: center; max-width: 500px; }
  .step-connector { width: 2px; height: 40px; flex: 0 0 40px; background: linear-gradient(180deg, var(--green-dark), var(--gold)); margin-top: 0; }
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .steps-grid { flex-direction: row; align-items: flex-start; max-width: 100%; }
  .step-card { padding: 0.5rem 0.25rem; }
  .step-num { font-size: 1.6rem; }
  .step-icon { width: 46px; height: 46px; margin-bottom: 0.6rem; }
  .step-card h3 { font-size: 0.72rem; line-height: 1.3; }
  .step-card p { display: none; }
  .step-connector { flex: 0 0 16px; height: 2px; width: auto; background: linear-gradient(90deg, var(--green-dark), var(--gold)); margin-top: 3.8rem; }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-grid > * { text-align: center; }
  .footer-desc { max-width: none; margin-left: auto; margin-right: auto; }
  .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .trust-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }

  .order-form { padding: 1.5rem; }

  .catalog-tabs { flex-direction: column; align-items: center; }
  .tab-btn { width: 200px; text-align: center; }
}

/* ============================================================
   BUTTON ANIMATIONS
   ============================================================ */
@keyframes btnShine {
  0%, 35%  { left: -60%; }
  65%, 100% { left: 130%; }
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,167,106,0), 0 4px 14px rgba(42,28,10,0.2); }
  50%      { box-shadow: 0 0 0 7px rgba(201,167,106,0.22), 0 4px 14px rgba(42,28,10,0.2); }
}
.btn-submit {
  animation: btnPulse 2.2s ease-in-out infinite;
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
  transform: scale(0);
  animation: rippleAnim 0.55s linear forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   PRODUCT CARD CAROUSEL
   ============================================================ */
.card-carousel {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.cc-track {
  position: relative;
  aspect-ratio: 3/4;
}
.cc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.cc-slide.active {
  opacity: 1;
}
.cc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-alt {
  filter: brightness(1.12) saturate(0.88) hue-rotate(5deg);
}
.cc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: none;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.cc-prev { left: 7px; }
.cc-next { right: 7px; }
.card-carousel:hover .cc-btn { opacity: 1; }
.cc-btn:hover { background: #fff; }
.cc-dots {
  position: absolute;
  bottom: 7px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 4;
  pointer-events: none;
}
.cc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, width 0.25s;
  display: inline-block;
}
.cc-dot.active {
  background: #fff;
  width: 14px;
  border-radius: 3px;
}
.cc-video-slide { position: relative; background: #0c0c0c; }
.cc-video-slide .cc-img { object-fit: contain; }
/* scrim so the play button reads on any thumbnail */
.cc-video-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.10), rgba(0,0,0,0.50));
  pointer-events: none;
}
.cc-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  z-index: 4;
}
.cc-play-btn svg { transform: translateX(2px); } /* optical centering of the triangle */
.cc-play-btn:hover {
  background: var(--gold);
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

/* "Відео" flag — corner indicator under the badge */
.card-video-flag {
  position: absolute;
  top: 46px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(2px);
  border-radius: 7px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.card-video-flag svg { display: block; }
/* clickable flag → jumps the carousel to the video slide */
.card-video-flag.clickable {
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.card-video-flag.clickable:hover {
  background: #FF0000;
  transform: translateY(-1px);
}
/* in the modal there's no badge above it → sit at the top corner */
.modal-video-flag { top: 12px; left: 12px; z-index: 6; }

/* ============================================================
   ANNOUNCE BAR (marquee ticker)
   ============================================================ */
.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 201;
  height: var(--announce-h);
  background: #162b1e;
  border-bottom: 1px solid rgba(201,167,106,0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(234,227,214,0.85);
  letter-spacing: 0.02em;
}
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-item {
  flex-shrink: 0;
  padding-right: 80px;
}
.countdown-timer {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Nav offset under announce bar */
.nav { top: var(--announce-h); }

/* ============================================================
   SOCIAL PROOF POPUP
   ============================================================ */
.social-proof {
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 300;
  background: rgba(22,43,30,0.78);
  border: 1px solid rgba(201,167,106,0.25);
  border-radius: 10px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, bottom 0.35s ease;
  color: rgba(234,227,214,0.85);
  font-family: 'Raleway', sans-serif;
  font-size: 0.73rem;
  line-height: 1.4;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.social-proof.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sp-icon { font-size: 14px; flex-shrink: 0; opacity: 0.75; }
.sp-text { opacity: 0.88; }
