/* ===== Header — floating rounded pill (old site's green palette, current modern shape) ===== */
.site-header{
  position: fixed; top: 14px; left: 0; right: 0; z-index: 900;
  display: flex; justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.header-pill{
  pointer-events: auto;
  width: 100%; max-width: 1240px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-width: 0;
  padding: 0 18px;
  min-height: 100px;
  background: rgba(186, 243, 144, 0.99);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(31,42,19,.1);
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.site-header.is-scrolled .header-pill{ background: #dfffc8; box-shadow: 0 6px 28px rgba(31,42,19,.16); }

.header-logo{ display: flex; align-items: center; flex-shrink: 0; min-width: 0; }
.header-logo img{ height: auto; width: auto; max-height: 84px; max-width: 100%; flex-shrink: 0; }

.header-nav{ display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.header-nav a{ white-space: nowrap; }
.header-nav a{ font-weight: 600; color: var(--text-body); position: relative; padding: 6px 0; }
.header-nav a::after{ content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand-accent); transition: right var(--dur-fast) var(--ease); }
.header-nav a:hover::after, .header-nav a[aria-current="page"]::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Old site's header CTA was a green gradient pill, not the amber accent used elsewhere on the site */
.header-actions .btn-accent{ background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); box-shadow: 0 4px 15px rgba(132,204,22,.3); }
.header-actions .btn-accent:hover{ box-shadow: 0 6px 20px rgba(132,204,22,.4); }

.lang-switch{ display: flex; gap: 4px; font-weight: 700; font-size: .85rem; }
.lang-switch a{ padding: 6px 9px; border-radius: var(--radius-pill); color: var(--text-muted); }
.lang-switch a[aria-current="true"]{ background: var(--tint-1); color: var(--brand-primary-dark); }

.header-phone{ font-weight: 700; color: var(--brand-primary-dark); white-space: nowrap; }

.menu-toggle{ display: none; background: none; border: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-pill); flex-shrink: 0; }
.menu-toggle svg{ width: 22px; height: 22px; }

/* ===== Mobile / tablet header: compact 3-column CSS Grid =====
   Layout structure mirrors the reference header: the logo lockup (icon + name)
   spans the full height in the left column, the phone (top) and language switch
   (below) stack right-aligned in the middle column, and the burger sits in its
   own full-height column on the far right. Logo and burger span both rows and
   stay vertically centred; phone and lang meet toward the middle so the pill
   stays compact — no empty band below the row. `.header-actions` is
   `display:contents` so its children become direct grid items of `.header-pill`,
   giving an explicit grid whose tracks can never overlap. */
@media (max-width: 1340px){
  :root{ --header-h: 92px; }
  .header-nav{ display: none; }
  .menu-toggle{ display: inline-flex; }

  .site-header{ top: 10px; padding: 0 10px; }
  .header-pill{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "logo phone burger"
      "logo lang  burger";
    align-items: center;
    row-gap: 3px; column-gap: 12px;
    min-height: 0; padding: 8px 16px;
    border-radius: 22px;
  }
  .header-logo{ grid-area: logo; align-self: center; min-width: 0; overflow: hidden; }
  .header-logo img{ height: auto; width: auto; max-height: 52px; max-width: 100%; }

  .header-actions{ display: contents; }
  .header-actions .btn-accent.btn-sm{ display: none; } /* covered by .mobile-sticky-cta */

  .header-phone{ grid-area: phone; justify-self: end; align-self: end; font-size: .95rem; white-space: nowrap; }
  .header-phone a{ display: inline-block; }

  .lang-switch{
    grid-area: lang; justify-self: end; align-self: start;
    gap: 2px; padding: 3px; background: rgba(255, 255, 255, .55);
    border-radius: var(--radius-pill);
  }
  .lang-switch a{ padding: 3px 9px; font-size: .74rem; border-radius: var(--radius-pill); color: var(--brand-primary-dark); }
  .lang-switch a[aria-current="true"]{ background: #fff; color: var(--brand-primary-dark); box-shadow: 0 1px 3px rgba(31, 42, 19, .14); }

  .menu-toggle{ grid-area: burger; align-self: center; justify-self: end; width: 40px; height: 40px; }
  .menu-toggle svg{ width: 22px; height: 22px; }
}

@media (max-width: 400px){
  .header-pill{ column-gap: 8px; padding: 8px 12px; }
  .header-logo img{ max-height: 46px; }
  .header-phone{ font-size: .82rem; }
  .menu-toggle{ width: 36px; height: 36px; }
  .menu-toggle svg{ width: 20px; height: 20px; }
}

@media (max-width: 340px){
  .header-phone{ font-size: .74rem; }
  .lang-switch a{ padding: 3px 7px; font-size: .7rem; }
}

.mobile-nav{
  position: fixed; inset: 0; z-index: 950; background: var(--bg-base);
  display: flex; flex-direction: column; padding: 18px 20px; transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  /* overflow-y:auto so the panel always scrolls to the very bottom, even with the
     Programs accordion expanded (previously overflow:hidden clipped it, making the
     lower items — Ціни/Відгуки/Блог/Контакти/phone — unreachable). */
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open{ transform: translateX(0); }
.mobile-nav-close{ align-self: flex-end; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--tint-1); border: none; }
.mobile-nav-list{ margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
.mobile-nav-list a{ display: block; padding: 10px 6px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid var(--tint-1); opacity: 0; translate: 0 12px; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.mobile-nav.is-open .mobile-nav-list a{ opacity: 1; translate: 0 0; }
.mobile-nav-phone{ margin-top: 18px; padding-top: 4px; text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--brand-primary-dark); }

/* ===== Programs dropdown (desktop header) — built by main.js on every page ===== */
.nav-dropdown{ display: flex; align-items: center; gap: 2px; position: relative; }
.nav-dropdown-toggle{ background: none; border: none; padding: 4px; color: var(--text-muted); display: flex; border-radius: 50%; transition: transform var(--dur-fast) var(--ease); }
.nav-dropdown.is-open .nav-dropdown-toggle{ transform: rotate(180deg); color: var(--brand-primary-dark); }
.nav-dropdown-menu{
  position: absolute; top: calc(100% + 16px); left: 50%; translate: -50% 0;
  background: var(--bg-base); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; width: max-content; min-width: 240px;
  opacity: 0; pointer-events: none; translate: -50% 8px;
  transition: opacity var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease);
  display: flex; flex-direction: column; gap: 2px;
  list-style: none; margin: 0;
}
.nav-dropdown.is-open .nav-dropdown-menu{ opacity: 1; pointer-events: auto; translate: -50% 0; }
.nav-dropdown-menu li{ list-style: none; }
.nav-dropdown-menu a{ display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; color: var(--text-body); white-space: nowrap; }
.nav-dropdown-menu a::after{ display: none; }
.nav-dropdown-menu a:hover{ background: var(--tint-2); color: var(--brand-primary-dark); }

/* ===== Programs accordion (mobile nav) — built by main.js on every page ===== */
.mobile-nav-accordion{ position: relative; display: flex; flex-direction: column; border-bottom: 1px solid var(--tint-1); }
.mobile-nav-accordion > a{ border-bottom: none; padding-right: 44px; }
.mobile-nav-accordion-toggle{
  position: absolute; right: 2px; top: 4px; width: 34px; height: 34px;
  background: var(--tint-1); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-primary-dark); transition: transform var(--dur-fast) var(--ease);
}
.mobile-nav-accordion-toggle svg{ width: 15px; height: 15px; }
.mobile-nav-accordion.is-open .mobile-nav-accordion-toggle{ transform: rotate(180deg); }
.mobile-nav-accordion-list{
  list-style: none; margin: 0; padding: 0 0 0 8px;
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-med) var(--ease);
}
.mobile-nav-accordion.is-open .mobile-nav-accordion-list{ max-height: 640px; padding-bottom: 6px; }
.mobile-nav-accordion-list li{ list-style: none; }
.mobile-nav-accordion-list a{
  display: block; padding: 7px 8px; font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  color: var(--text-muted); border-bottom: none; opacity: 1; translate: 0;
}

/* ===== Buttons ===== */
.btn{
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-pill); padding: 18px 36px; font-weight: 700; font-family: var(--font-body);
  border: none; min-height: 48px; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover{ transform: translateY(-3px) scale(1.02); }
.btn:active{ transform: translateY(0) scale(.98); }
.btn-icon{ width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-icon svg{ width: 16px; height: 16px; }

.btn-primary{ background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover{ box-shadow: var(--shadow-lg); }
.btn-accent{ background: var(--brand-accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent:hover{ box-shadow: var(--shadow-lg); }
.btn-secondary{ background: transparent; color: var(--brand-primary-dark); border: 2px solid var(--brand-primary); padding: 16px 34px; }
.btn-secondary:hover{ background: var(--brand-primary); color: #fff; }
.btn-ghost{ background: none; color: var(--brand-primary-dark); padding: 8px 0; gap: 6px; }
.btn-ghost .arrow{ transition: translate var(--dur-fast) var(--ease); }
.btn-ghost:hover .arrow{ translate: 4px 0; }
.btn-sm{ padding: 12px 22px; font-size: .9rem; }

.ripple{ position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple{ to{ transform: scale(3); opacity: 0; } }

/* ===== Hero ===== */
.hero{
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 60px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-base) 100%);
  text-align: center;
}
.hero-inner{ max-width: 760px; margin: 0 auto; position: relative; z-index: 3; }
.hero-figure{ position: relative; width: min(360px, 70vw); margin: 0 auto 8px; z-index: 2; }
.hero h1{ margin: 0 0 20px; }
.hero h1 .accent{ color: var(--brand-accent); }
.hero p.lede{ max-width: 62ch; margin: 0 auto 32px; color: var(--text-muted); font-size: 1.1rem; }
.hero-ribbon{ position: absolute; inset: 0; z-index: 1; color: var(--brand-accent); pointer-events: none; }
.hero-ribbon svg{ width: 100%; height: 100%; }
.hero-ribbon path{ stroke: currentColor; stroke-width: 56; stroke-linecap: round; }
.hero-ribbon.behind{ z-index: 0; }
.wave-draw{ stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: wave-draw var(--dur-slow) var(--ease) forwards .2s; }
@keyframes wave-draw{ to{ stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce){ .wave-draw{ stroke-dashoffset: 0; animation: none; } }
.hero-edge{ position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; color: var(--bg-base); }

/* ===== Hero with full-bleed video background ===== */
.hero.hero-video{
  padding: calc(var(--header-h) + 80px) 0 130px;
  background: var(--text-strong);
  min-height: 560px;
  display: flex; align-items: center;
}
.hero-video-bg{ position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-bg video{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.hero-video-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,42,19,.58) 0%, rgba(31,42,19,.42) 45%, rgba(31,42,19,.72) 100%);
}
.hero.hero-video .hero-inner{ z-index: 2; }
.hero-pill{
  display: inline-block; margin-bottom: 18px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; backdrop-filter: blur(6px);
}
.hero.hero-video h1{ color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero.hero-video p.lede{ color: rgba(255,255,255,.92); }
.hero.hero-video .breadcrumbs{ color: rgba(255,255,255,.75); }
.hero.hero-video .breadcrumbs a{ color: #fff; }
.hero.hero-video .hero-figure{ margin-top: 4px; }
.hero-btn-secondary{
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff;
  backdrop-filter: blur(6px);
}
.hero-btn-secondary:hover{ background: rgba(255,255,255,.2); }
@media (max-width: 640px){
  .hero.hero-video{ padding: calc(var(--header-h) + 48px) 0 90px; min-height: 480px; }
}
@media (prefers-reduced-motion: reduce){
  .hero-video-bg video{ display: none; }
  .hero.hero-video{ background: var(--text-strong) url('/assets/video/hero-bg-poster.jpg') center/cover no-repeat; }
}

/* ===== Lighter-weight video-hero treatment for inner pages that use a plain
   breadcrumb+H1 top section (not the full homepage-style .hero). Keeps each
   page's existing padding/spacing untouched — only adds the video layer
   behind the content and relights text for contrast. ===== */
.section-hero-video{
  overflow: hidden;
  background: var(--text-strong);
  --text-muted: rgba(255,255,255,.72);
}
.section-hero-video > .container{ position: relative; z-index: 2; }
.section-hero-video h1{ color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.section-hero-video p.lede{ color: rgba(255,255,255,.92); }
.section-hero-video .breadcrumbs{ color: rgba(255,255,255,.75); }
.section-hero-video .breadcrumbs a{ color: #fff; }
.section-hero-video .pill-label{
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; backdrop-filter: blur(6px);
}
.section-hero-video .btn-secondary{
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff;
  backdrop-filter: blur(6px);
}
.section-hero-video .btn-secondary:hover{ background: rgba(255,255,255,.2); }
@media (prefers-reduced-motion: reduce){
  .section-hero-video .hero-video-bg video{ display: none; }
  .section-hero-video{ background: var(--text-strong) url('/assets/video/hero-bg-poster.jpg') center/cover no-repeat; }
}

/* ===== About / Intro split ===== */
.split{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } .split.reverse .split-media{ order: -1; } }
.split-text .pill-label{ margin-bottom: 16px; }
.split-text .lead-copy{ font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem,1.6vw,1.35rem); color: var(--brand-primary-dark); line-height: 1.5; margin-bottom: 20px; }
.split-media{ position: relative; }
.trust-strip{ display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 4px 0 24px; }
.trust-strip li{ display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--text-body); }
.trust-strip svg{ width: 20px; height: 20px; flex-shrink: 0; color: var(--brand-primary-dark); background: var(--tint-1); border-radius: 50%; padding: 3px; box-sizing: content-box; }

/* ===== Advantage cards ===== */
.advantage-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px){ .advantage-grid{ grid-template-columns: repeat(2, minmax(min(260px,100%),1fr)); } }
@media (max-width: 480px){ .advantage-grid{ grid-template-columns: 1fr; } }
.advantage-card{
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.advantage-card:nth-child(4n+1){ background: var(--tint-1); }
.advantage-card:nth-child(4n+2){ background: var(--tint-3); }
.advantage-card:nth-child(4n+3){ background: var(--tint-2); }
.advantage-card:nth-child(4n+4){ background: var(--tint-4); }
.advantage-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-md); }
.advantage-card:hover .rosette{ transform: rotate(12deg); }
.advantage-card .decor-shape{ position: absolute; inset: auto -20px -30px auto; width: 120px; height: 120px; opacity: .18; }
.rosette{ display: inline-block; position: relative; width: 76px; height: 76px; margin: 0 auto 18px; color: var(--brand-primary); transition: transform var(--dur-fast) var(--ease); }
.advantage-card:nth-child(4n+2) .rosette{ color: var(--brand-accent); }
.rosette svg.badge-bg{ width: 100%; height: 100%; }
.rosette .rosette-icon{ position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; color: #fff; }
.advantage-card h3{ font-size: 1.15rem; margin-bottom: 8px; }
.advantage-card p{ font-size: .95rem; color: var(--text-muted); margin: 0 auto; }

/* ===== Program cards ===== */
.program-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr)); gap: 28px; }
.program-card{ text-align: center; }
.program-card .cutout-wrap{ width: 100%; max-width: 280px; margin: 0 auto 20px; display: block; }
.program-card .cutout-blob{ inset: 14% 10% 6% 10%; }
.program-card h3{ margin-bottom: 8px; }
.program-card p{ color: var(--text-muted); font-size: .95rem; margin: 0 auto 10px; }
.program-card:hover .cutout-photo{ translate: 0 -6px; }
.program-card:hover .cutout-blob{ scale: 1.06; }
.cutout-blob, .cutout-photo{ transition: translate var(--dur-fast) var(--ease), scale var(--dur-fast) var(--ease); }
.program-card .photo-shape{ width: 100%; aspect-ratio: 4/3; margin-bottom: 20px; }

/* ===== Quote section ===== */
.quote-section{ background: var(--brand-primary); color: var(--text-on-dark); border-radius: var(--radius-xl); margin: 0 24px; padding: 72px 40px; position: relative; overflow: hidden; }
@media (min-width: 1290px){ .quote-section{ margin: 0 auto; max-width: var(--container-w); } }
.quote-mark{ width: 48px; height: 48px; color: rgba(255,255,255,.3); margin: 0 auto 16px; }
.quote-section blockquote{ max-width: 820px; margin: 0 auto; text-align: center; font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; line-height: 1.5; }
.quote-section blockquote .accent{ color: var(--brand-accent); }
.quote-section .pill-label{ background: rgba(255,255,255,.18); margin: 40px auto 24px; display: table; }
.team-row{ display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.team-member{ text-align: center; width: 96px; }
.team-avatar{ display: inline-block; width: 76px; height: 76px; margin: 0 auto 10px; overflow: hidden; clip-path: url(#shape-petal); border: 3px solid rgba(255,255,255,.3); }
.team-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.team-member strong{ display: block; font-size: .85rem; }
.team-member span{ display: block; font-size: .75rem; color: var(--text-on-dark-muted); }

/* ===== CTA banner ===== */
.cta-banner{ background: var(--brand-primary); border-radius: var(--radius-xl); overflow: visible; position: relative; padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 24px; }
@media (max-width: 760px){ .cta-banner{ grid-template-columns: 1fr; padding: 40px 28px; overflow: hidden; } }
.cta-banner h2{ color: var(--brand-accent); margin-bottom: 12px; text-align: left; }
.cta-banner p{ color: var(--text-on-dark-muted); margin-bottom: 24px; }
.cta-actions{ display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-or{ color: var(--text-on-dark-muted); font-weight: 700; font-size: .85rem; }
.cta-contacts{ margin-top: 20px; display: flex; gap: 20px; flex-wrap: wrap; color: #fff; font-weight: 700; }
.cta-contacts a{ display: inline-flex; align-items: center; gap: 8px; }
.cta-media{ position: relative; align-self: end; justify-self: end; width: 100%; max-width: 320px; }
.cta-media .cutout-photo{ position: relative; translate: 0 24px; }
@media (min-width: 761px){ .cta-media{ margin-right: -24px; margin-bottom: -32px; } }

/* ===== Blog cards ===== */
.blog-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr)); gap: 24px; }
.blog-card{ display: block; }
.blog-card .photo-squircle{ aspect-ratio: 4/3; margin-bottom: 16px; }
.blog-card h3{ font-size: 1.05rem; margin-bottom: 8px; }
.blog-card p{ font-size: .9rem; color: var(--text-muted); }

/* ===== FAQ accordion ===== */
.faq-list{ max-width: 820px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--tint-1); }
.faq-question{ width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 700; color: var(--text-strong); font-size: 1.05rem; }
.faq-toggle-icon{ flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--tint-1); display: flex; align-items: center; justify-content: center; transition: transform var(--dur-fast) var(--ease); }
.faq-item.is-open .faq-toggle-icon{ transform: rotate(135deg); background: var(--brand-accent); color: #fff; }
.faq-answer{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-med) var(--ease); }
.faq-item.is-open .faq-answer{ grid-template-rows: 1fr; }
.faq-answer-inner{ overflow: hidden; }
.faq-answer p{ padding: 0 4px 20px; color: var(--text-muted); }

/* ===== Reviews ===== */
.review-card{ display: block; background: var(--bg-base); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; position: relative; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.review-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-head{ display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar{ display: inline-block; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; clip-path: url(#shape-petal); flex-shrink: 0; }
.review-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.review-name{ font-weight: 700; color: var(--text-strong); font-size: .95rem; }
.review-date{ font-size: .8rem; color: var(--text-muted); }
.review-stars{ color: var(--brand-accent); margin-bottom: 8px; }
.review-text{ font-size: .92rem; color: var(--text-body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-google-badge{ position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; }
.reviews-track{ display: flex; gap: 24px; width: max-content; animation: marquee 40s linear infinite; }
.reviews-track:hover{ animation-play-state: paused; }
.reviews-track .review-card{ width: 340px; flex-shrink: 0; }
@keyframes marquee{ to{ translate: -50% 0; } }
@media (prefers-reduced-motion: reduce){ .reviews-track{ animation: none; overflow-x: auto; } }
.reviews-viewport{ overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-pause{ display: block; margin: 20px auto 0; }

.review-tabs{ display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; }
.review-tab{ padding: 10px 22px; border-radius: var(--radius-pill); background: var(--tint-2); font-weight: 700; }
.review-tab[aria-selected="true"]{ background: var(--brand-primary); color: #fff; }

.rating-summary{ text-align: center; margin-bottom: 32px; }
.rating-summary .stars{ color: var(--brand-accent); font-size: 1.4rem; }
.rating-summary .rating-count{ color: var(--text-muted); font-size: .9rem; }

/* ===== Footer ===== */
.site-footer{ background: var(--brand-primary-soft); padding: 72px 0 24px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .header-logo{ margin-bottom: 12px; }
.footer-tagline{ color: var(--text-muted); font-size: .92rem; max-width: 32ch; }
.footer-col h3{ font-family: var(--font-display); font-size: .95rem; margin-bottom: 16px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ color: var(--text-body); font-size: .92rem; }
.footer-col a:hover{ color: var(--brand-primary-dark); }
.footer-contact-item{ display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .92rem; min-width: 0; }
.footer-contact-item a{ overflow-wrap: anywhere; min-width: 0; }
.footer-social{ display: flex; gap: 10px; margin-top: 16px; }
.footer-social a{ width: 40px; height: 40px; border-radius: 50%; background: var(--bg-base); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.footer-social a:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.footer-social svg{ width: 20px; height: 20px; flex-shrink: 0; }
.footer-social a.social-instagram{ color: #E1306C; }
.footer-social a.social-facebook{ color: #1877F2; }
.footer-social a.social-tiktok{ color: #000; }
.footer-google{ background: var(--bg-base); border-radius: var(--radius-lg); padding: 20px; }
.footer-google-head{ display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-bottom{ border-top: 1px solid rgba(31,42,19,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--text-muted); }

/* ===== Floating / sticky CTA ===== */
.fab-stack{ position: fixed; right: 16px; bottom: 20px; z-index: 800; display: flex; flex-direction: column; gap: 10px; }
.fab-btn{ width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); color: #fff; }
.fab-whatsapp{ background: #25D366; }
.fab-viber{ background: #7360F2; }
.fab-telegram{ background: #229ED9; animation: pulse 2.4s infinite; }
@keyframes pulse{ 0%,100%{ box-shadow: 0 0 0 0 rgba(34,158,217,.45);} 50%{ box-shadow: 0 0 0 8px rgba(34,158,217,0);} }
@media (prefers-reduced-motion: reduce){ .fab-telegram{ animation: none; } }
.mobile-sticky-cta{ display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; background: var(--bg-base); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 10px 16px; gap: 10px; }
@media (max-width: 640px){ .mobile-sticky-cta{ display: flex; } .fab-stack{ bottom: 84px; } }
.mobile-sticky-cta .btn{ flex: 1; padding: 14px; }

/* ===== Forms ===== */
.form-card{ background: var(--bg-base); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 32px; }
.field{ position: relative; margin-bottom: 22px; }
.field input, .field select, .field textarea{
  width: 100%; padding: 20px 16px 8px; border-radius: var(--radius-sm); border: 2px solid var(--tint-1);
  background: var(--bg-cream); font: inherit; color: var(--text-strong); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field label{ position: absolute; left: 17px; top: 18px; color: var(--text-muted); transition: all var(--dur-fast) var(--ease); pointer-events: none; }
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px var(--brand-primary-soft); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-value + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label{
  top: 6px; font-size: .72rem; font-weight: 700; color: var(--brand-primary-dark);
}
.field-error{ color: #b91c1c; font-size: .8rem; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select{ border-color: #b91c1c; }
.field.has-error .field-error{ display: block; }
.field-check{ display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--text-muted); }
.field-check input{ width: auto; margin-top: 3px; }
.field-check.has-error .field-error{ display: block; flex-basis: 100%; margin-left: 26px; margin-top: 0; }
.field-consent-link{ color: var(--brand-primary-dark); text-decoration: underline; }
.field.website-trap{ position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-submit-note{ text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: 12px; }
.form-success{ text-align: center; padding: 24px; }
.form-success svg{ width: 56px; height: 56px; color: var(--brand-primary); margin: 0 auto 12px; }

/* ===== Popup ===== */
.popup-overlay{ position: fixed; inset: 0; background: rgba(31,42,19,.5); backdrop-filter: blur(4px); z-index: 990; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease); }
.popup-overlay.is-open{ opacity: 1; pointer-events: auto; }
.popup-card{ background: var(--bg-cream); border-radius: var(--radius-xl); max-width: 760px; width: 100%; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; position: relative; scale: .92; transition: scale var(--dur-fast) var(--ease); max-height: 90vh; overflow-y: auto; }
.popup-overlay.is-open .popup-card{ scale: 1; }
@media (max-width: 640px){ .popup-card{ grid-template-columns: 1fr; } .popup-media{ display: none; } }
.popup-media{ position: relative; background: var(--tint-2); display: flex; align-items: center; justify-content: center; padding: 24px; }
.popup-body{ padding: 40px 32px; }
.popup-close{ position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-base); box-shadow: var(--shadow-sm); border: none; z-index: 2; }
.popup-offer{ display: inline-block; background: var(--tint-3); color: var(--brand-accent-dark); font-weight: 700; padding: 6px 14px; border-radius: var(--radius-pill); font-size: .82rem; margin-bottom: 12px; }

/* ===== Map ===== */
.map-block{ position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/9; }
.map-placeholder{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--tint-2); }
.map-block iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-links{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ===== TOC (sticky longread sidebar) ===== */
.page-with-toc{ display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 1023px){ .page-with-toc{ grid-template-columns: 1fr; } }
.toc{ position: sticky; top: calc(var(--header-h) + 32px); background: var(--tint-2); border-radius: var(--radius-md); padding: 20px; }
.toc-title{ font-family: var(--font-display); font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.toc a{ display: block; padding: 6px 0; font-size: .85rem; color: var(--text-muted); border-left: 2px solid transparent; padding-left: 10px; }
.toc a.is-active{ color: var(--brand-primary-dark); border-left-color: var(--brand-accent); font-weight: 700; }
@media (max-width: 1023px){
  .toc{ position: static; margin-bottom: 24px; }
  .toc-mobile-toggle{ display: flex; width: 100%; justify-content: space-between; background: none; border: none; font-family: var(--font-display); font-weight: 700; }
  .toc-list{ display: none; margin-top: 12px; }
  .toc.is-open .toc-list{ display: block; }
}

/* ===== Fact table / who-for blocks ===== */
.who-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
@media (max-width: 640px){ .who-grid{ grid-template-columns: 1fr; } }
.who-card{ border-radius: var(--radius-md); padding: 24px; }
.who-card.who-yes{ background: var(--tint-1); }
.who-card.who-no{ background: var(--tint-4); }
.who-card h3{ font-family: var(--font-display); margin-bottom: 12px; }
.who-card li{ padding-left: 26px; position: relative; margin-bottom: 8px; font-size: .92rem; }
.who-card li::before{ position: absolute; left: 0; font-weight: 700; }
.who-yes li::before{ content: '✓'; color: var(--brand-primary-dark); }
.who-no li::before{ content: '–'; color: var(--text-muted); }

/* ===== Pricing table ===== */
.price-table{ width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.price-table tr{ background: var(--bg-cream); }
.price-table td{ padding: 16px 20px; border: none; }
.price-table td:first-child{ border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 700; color: var(--text-strong); }
.price-table td:last-child{ border-radius: 0 var(--radius-sm) var(--radius-sm) 0; text-align: right; color: var(--brand-primary-dark); font-weight: 700; white-space: nowrap; }
.price-table tr.featured{ background: var(--tint-3); }

/* Below ~600px a 2-column table with a nowrap price column doesn't fit — stack label/price
   instead of relying on horizontal scroll, since the price is the most important content here. */
@media (max-width: 600px){
  .price-table, .price-table tbody{ display: block; }
  .price-table tr{ display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 10px; }
  .price-table td{ display: block; padding: 0; white-space: normal; }
  .price-table td:first-child{ border-radius: 0; }
  .price-table td:last-child{ border-radius: 0; text-align: left; font-size: 1.05rem; }
}
.price-note{ font-size: .85rem; color: var(--text-muted); }

/* ===== 404 ===== */
.page-404{ text-align: center; padding: calc(var(--header-h) + 80px) 0 100px; }
.page-404 .cutout-wrap{ width: 280px; margin: 0 auto 24px; }

/* ===== Utility ===== */
.mt-0{ margin-top: 0; }
.text-center{ text-align: center; }
.stagger > *{ transition-delay: calc(var(--i, 0) * 80ms); }
