/* ============================================================
   Kukurudza · H1 «Ціна як кваліфікатор» — main.css
   Mobile-first. Зелена айдентика + помаранчевий акцент.
   Творча свобода, бренд як якір. Перф: transform/opacity only.
   ============================================================ */

/* ---------------- Reset / base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: var(--container); margin-inline: auto; }
.accent-text {
  background: var(--grad-green);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  top: 8px; z-index: var(--z-modal);
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: var(--r-pill);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ---------------- Section primitives ---------------- */
section { padding-block: var(--section-y); }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section__lead {
  margin-top: var(--space-4);
  max-width: 46ch;
  color: var(--ink-2);
  font-size: var(--fs-lead);
}

/* ---------------- Buttons ---------------- */
.btn {
  --btn-min: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--btn-min);
  padding: .9rem 1.8rem;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; border-radius: var(--r-pill);
  text-align: center; white-space: nowrap;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              background var(--t) var(--ease), color var(--t) var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--lg { --btn-min: 64px; padding: 1.05rem 2.3rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn--cta { background: var(--grad-cta); color: var(--color-on-cta); box-shadow: var(--shadow-cta); }
.btn--cta:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(255,107,0,.5); }

.btn--green { background: var(--grad-green); color: #fff; box-shadow: var(--shadow-card); }
.btn--green:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--green-800); color: var(--green-800); background: var(--surface-3); }

/* loading spinner */
.btn__spinner { display: none; width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading .btn__spinner { display: block; position: absolute; }
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Topbar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  padding-block: .6rem; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.topbar.is-scrolled { box-shadow: 0 6px 24px -16px rgba(19,19,19,.4); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar__logo {
  font-family: var(--font-head); /* Ermilov-Bold — як у бренді */
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.1rem, 4.6vw, 1.4rem); letter-spacing: .005em;
  color: var(--accent); line-height: 1;
}
.topbar__cta { display: none; min-height: 46px; padding: .6rem 1.4rem; }
@media (min-width: 768px) { .topbar__cta { display: inline-flex; } }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(117,209,100,.35), transparent 60%),
    linear-gradient(160deg, #06774a 0%, #001f3e 100%);
  padding-block: clamp(2.5rem, 8vw, 5rem) var(--section-y);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
}
.hero__bg::before { width: 50vw; height: 50vw; background: #75d164; top: -10%; right: -15%; }
.hero__bg::after { width: 40vw; height: 40vw; background: #ff6b00; bottom: -20%; left: -10%; opacity: .25; }
.hero__inner { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
.hero__overline {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; font-size: .72rem;
  color: var(--green-100);
}
.hero__overline::before {
  content: ""; width: 1.9rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), transparent);
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-display); line-height: var(--lh-display);
  letter-spacing: -0.02em; margin-top: .5rem;
  background: linear-gradient(100deg, #ffffff 0%, #e2ffb9 55%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle {
  margin-top: 1rem; max-width: 33ch;
  font-size: var(--fs-lead); line-height: 1.45; color: rgba(255,255,255,.84);
}
/* легкі мета-чипи — інфо, не кнопки */
.hero__meta { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: 1.5rem; }
.meta-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .875rem; color: rgba(255,255,255,.85);
}
.meta-chip__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--green-500); flex: none; }
.meta-chip--accent { color: #fff; font-weight: 600; }
.meta-chip--accent .meta-chip__dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,107,0,.2); }
/* один первинний CTA + текст-лінк */
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; margin-top: 2.2rem; }
.hero__link {
  display: inline-flex; align-items: center; gap: .45rem; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: #fff; padding: .4rem 0;
}
.hero__link span { transition: transform var(--t) var(--ease); }
.hero__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(255,255,255,.4); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.hero__link:hover::after { transform: scaleX(1); }
.hero__link:hover span { transform: translateX(4px); }
/* mobile: центрована hero-копія */
.hero__copy { text-align: center; }
.hero__overline, .hero__meta, .hero__actions { justify-content: center; }
.hero__subtitle { margin-inline: auto; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--r-card);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.55);
}
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .hero__media { order: 2; }
  .hero__copy { text-align: left; }
  .hero__overline, .hero__meta, .hero__actions { justify-content: flex-start; }
  .hero__actions { flex-direction: row; align-items: center; gap: 1rem 1.6rem; }
  .hero__meta { flex-direction: row; align-items: center; gap: .6rem 1.4rem; }
  .hero__subtitle { margin-inline: 0; }
}

/* ---------------- Proof / stats ---------------- */
.proof { background: var(--surface); text-align: center; }
.proof .section__title { margin-inline: auto; max-width: 18ch; }
.proof__grid { display: grid; gap: 1.1rem; margin-top: 2.5rem; }
.stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 2rem 1.5rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.stat--featured { background: var(--grad-green); border: none; color: #fff; }
.stat__value {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 4rem); line-height: 1; color: var(--green-800);
}
.stat--featured .stat__value { color: #fff; }
.stat__label { margin-top: .7rem; color: var(--ink-2); font-size: var(--fs-sm); }
.stat--featured .stat__label { color: rgba(255,255,255,.9); }
@media (min-width: 768px) { .proof__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Program ---------------- */
.program { background: var(--surface-3); }
.program__wrap { margin-top: 2rem; }
.program__toggle { list-style: none; }
.program__toggle::-webkit-details-marker { display: none; }
.program__toggle::after { content: "↓"; margin-left: .4rem; transition: transform var(--t) var(--ease); }
details[open] .program__toggle::after { transform: rotate(180deg); }
.program__list { display: grid; gap: .7rem; margin-top: 1.5rem; }
.program__item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem 1.2rem; font-weight: 500;
}
.program__n {
  flex: none; display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem;
  background: var(--grad-green); color: #fff; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}
.program__item--new .program__n { background: var(--grad-cta); }
@media (min-width: 768px) { .program__list { grid-template-columns: 1fr 1fr; } }

/* ---------------- Price (ключовий блок) ---------------- */
.price { background: var(--surface); text-align: center; }
.price__note { margin-inline: auto; color: var(--accent); font-weight: 600; }
.price__grid { display: grid; gap: 1.4rem; margin-top: 2.5rem; text-align: left; }
.tariff {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-card); padding: 2rem 1.6rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tariff--featured {
  background: linear-gradient(165deg, #06774a 0%, #001f3e 120%); color: #fff; border: none;
  box-shadow: var(--shadow-card-hover);
}
.tariff__ribbon {
  position: absolute; top: -.9rem; left: 1.6rem;
  background: var(--grad-cta); color: #fff; font-weight: 700; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .05em;
  padding: .4rem .9rem; border-radius: var(--r-pill); box-shadow: var(--shadow-cta);
}
.tariff__name { font-family: var(--font-head); font-size: var(--fs-h3); }
.tariff__seats { margin-top: .3rem; font-size: var(--fs-sm); color: var(--muted); }
.tariff--featured .tariff__seats { color: rgba(255,255,255,.75); }
.tariff__price { display: flex; align-items: baseline; gap: .4rem; margin-block: 1.2rem; }
.tariff__num { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 3.2rem); line-height: 1; color: var(--green-800); font-feature-settings: "tnum"; }
.tariff--featured .tariff__num { color: #75d164; }
.tariff__cur { font-weight: 700; color: var(--muted); }
.tariff--featured .tariff__cur { color: rgba(255,255,255,.8); }
.tariff__features { display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.tariff__features li { position: relative; padding-left: 1.8rem; font-size: var(--fs-sm); }
.tariff__features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-700); font-weight: 800;
}
.tariff--featured .tariff__features li::before { color: var(--green-500); }
.tariff__feature--all { font-weight: 700; }
.tariff__features { margin-top: 0; }
.tariff .btn { margin-top: auto; }
@media (min-width: 768px) { .price__grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }

/* ---------------- Speakers ---------------- */
.speakers { background: var(--surface-2); }
.speakers__grid { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.speaker {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 1.2rem; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.speaker:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.speaker__photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 31 / 20; background: var(--surface-3); }
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker__tag {
  display: inline-block; margin-top: 1rem; font-size: var(--fs-xs); font-weight: 700;
  color: var(--green-800); background: var(--green-100); padding: .3rem .7rem; border-radius: var(--r-pill);
}
.speaker__name { font-family: var(--font-head); font-size: var(--fs-h3); margin-top: .6rem; }
.speaker__position { color: var(--green-700); font-weight: 600; font-size: var(--fs-sm); margin-top: .2rem; }
.speaker__about { margin-top: .8rem; font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 640px) { .speakers__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .speakers__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Lead form ---------------- */
.leadform {
  color: #fff;
  background:
    radial-gradient(100% 70% at 10% 0%, rgba(117,209,100,.28), transparent 55%),
    linear-gradient(160deg, #001f3e 0%, #06774a 100%);
}
.leadform__inner { display: grid; gap: 2rem; align-items: center; }
.leadform .section__title { color: #fff; }
.leadform__contact-lead { margin-top: 1.4rem; color: rgba(255,255,255,.8); }
.leadform__alt { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .8rem; }
.contact-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  padding: .65rem 1.1rem; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.contact-pill:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.contact-pill__icon { color: var(--green-500); }

.leadform__form {
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-card); padding: clamp(1.4rem, 5vw, 2.2rem);
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.55);
}
.field { margin-bottom: 1.1rem; }
.field__label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .45rem; }
.req { color: var(--accent); }
.field__input {
  width: 100%; min-height: 54px; padding: .85rem 1.1rem;
  font: inherit; color: var(--ink);
  background: var(--surface-2); border: 2px solid transparent; border-radius: var(--r-input);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus { outline: none; background: #fff; border-color: var(--green-500); }
.field--error .field__input { border-color: #cf2e2e; background: #fff5f5; }
.field__error { margin-top: .4rem; color: #cf2e2e; font-size: var(--fs-sm); }
.leadform__note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.leadform__result { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-md); font-weight: 600; }
.leadform__result.is-success { background: var(--green-100); color: var(--green-800); }
.leadform__result.is-error { background: #fdecec; color: #cf2e2e; }
@media (min-width: 880px) { .leadform__inner { grid-template-columns: 1fr 1fr; } }

/* ---------------- FAQ ---------------- */
.faq { background: var(--surface); }
.faq__items { display: grid; gap: .8rem; margin-top: 2rem; max-width: 820px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq__item[open] { border-color: var(--green-500); box-shadow: var(--shadow-card); }
.faq__q {
  display: flex; align-items: center; gap: .9rem; cursor: pointer; list-style: none;
  padding: 1.2rem 1.3rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__n { color: var(--green-700); font-family: var(--font-display); }
.faq__icon { margin-left: auto; flex: none; width: 1.4rem; height: 1.4rem; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--green-800);
  transition: transform var(--t) var(--ease);
}
.faq__icon::before { width: 1.4rem; height: 2px; }
.faq__icon::after { width: 2px; height: 1.4rem; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { padding: 0 1.3rem 1.3rem; color: var(--ink-2); font-size: var(--fs-body); }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer__logo {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 7vw, 2.5rem); color: var(--accent); line-height: 1;
}
.footer__socials { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; }
.footer__socials a { font-size: var(--fs-sm); transition: color var(--t) var(--ease); }
.footer__socials a:hover { color: var(--green-500); }
/* телефон — кнопка-pill у ряду з соцмережами */
.footer__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm); font-weight: 600; color: #fff;
  border: 1.5px solid rgba(255,255,255,.28); border-radius: var(--r-pill);
  padding: .42rem 1rem;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease);
}
.footer__phone:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,107,0,.12); }
/* мобільний футер: стовпчик по центру + місце під sticky-CTA */
@media (max-width: 767px) {
  .footer { padding-bottom: 2.75rem; text-align: center; }
  .footer__inner { display: block; }
  .footer__logo { display: inline-block; margin-bottom: 1.1rem; }
  .footer__socials { justify-content: center; }
}

/* ---------------- Sticky CTA (mobile) ---------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  background: none;            /* без білого фейду — матчиться з будь-яким фоном/футером */
  pointer-events: none;
}
.sticky-cta .btn { pointer-events: auto; box-shadow: 0 8px 22px -6px rgba(0,0,0,.5), 0 10px 26px -8px rgba(255,107,0,.55); }
.sticky-cta[hidden] { display: none; }
@media (min-width: 768px) { .sticky-cta { display: none !important; } }

/* ---------------- Reveal animations ---------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .stat, .tariff, .speaker, .contact-pill { transition: none; }
  .btn__spinner { animation-duration: 1.2s; }
}

/* ============================================================
   ANIMATIONS — «круті анімації» (GPU-friendly: transform/opacity)
   ============================================================ */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroTitle { from { transform: translateY(20px); } to { transform: none; } }
@keyframes shimmer { to { background-position: 220% center; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10%, 8%) scale(1.18); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-8%, -6%) scale(1.12); } }
@keyframes heroPulse { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }
@keyframes shine { 0%, 55% { transform: translateX(-180%) skewX(-18deg); } 90%, 100% { transform: translateX(360%) skewX(-18deg); } }
@keyframes ctaPulse { 0%, 100% { box-shadow: var(--shadow-cta); } 50% { box-shadow: 0 16px 44px -6px rgba(255,107,0,.72); } }
@keyframes cardGlow { 0%, 100% { box-shadow: var(--shadow-card-hover); } 50% { box-shadow: 0 26px 72px -14px rgba(117,209,100,.5); } }
@keyframes slideUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes revealDown { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }

/* Hero — живий фон + вхід тексту */
.hero__bg { animation: heroPulse 10s ease-in-out infinite; }
.hero__bg::before { animation: drift1 24s ease-in-out infinite; }
.hero__bg::after { animation: drift2 28s ease-in-out infinite; }
.hero__media img { animation: floatY 6s ease-in-out infinite; }
.hero__overline { animation: riseIn .6s var(--ease) both .05s; }
.hero__title { background-size: 220% auto; animation: heroTitle .7s var(--ease) both, shimmer 8s linear infinite .9s; }
.hero__subtitle { animation: riseIn .6s var(--ease) both .2s; }
.hero__meta { animation: riseIn .6s var(--ease) both .3s; }
.hero__actions { animation: riseIn .6s var(--ease) both .42s; }

/* CTA — shine sweep + glow pulse */
.btn--cta { overflow: hidden; }
.btn--cta::before {
  content: ""; position: absolute; top: -20%; left: 0; width: 38%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-180%) skewX(-18deg); pointer-events: none;
  animation: shine 5.5s ease-in-out infinite;
}
.btn--cta .btn__label { position: relative; z-index: 1; }
.btn--cta.btn--lg { animation: ctaPulse 3.2s ease-in-out infinite; }
.btn--cta.btn--lg:hover { animation-play-state: paused; }

/* Featured тариф — пульсуюче світіння */
.tariff--featured { animation: cardGlow 4.5s ease-in-out infinite; }
.tariff--featured:hover { animation-play-state: paused; }

/* Sticky CTA — виїзд знизу */
.sticky-cta:not([hidden]) { animation: slideUp .35s var(--ease); }

/* Акордеон — плавне розкриття контенту */
details[open] .faq__a, details[open] .program__list { animation: revealDown .35s var(--ease); }

/* Stagger-поява гридів (--d ставить ui.js) */
.js [data-stagger] > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s);
}
.js [data-stagger].in-view > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero__bg::before, .hero__bg::after, .hero__media img,
  .hero__overline, .hero__title, .hero__subtitle, .hero__meta, .hero__actions,
  .btn--cta::before, .btn--cta.btn--lg, .tariff--featured, .sticky-cta:not([hidden]),
  details[open] .faq__a, details[open] .program__list { animation: none !important; }
  .js [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none; }
}


/* ── ROI-якір у блоці ціни ── */
.price__roi { max-width: 44ch; margin: .8rem auto .25rem; color: var(--ink); font-size: var(--fs-lead); line-height: 1.4; }
.price__roi strong { color: var(--accent); }
.price__src { color: var(--muted); font-size: .85em; }

/* ── Відгуки (плейсхолдер) ── */
.reviews { background: var(--surface-2); text-align: center; }
.reviews__grid { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.review-placeholder {
  min-height: 200px; border: 2px dashed var(--border); border-radius: var(--r-card);
  display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: var(--fs-sm);
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(19,19,19,.025) 12px 24px);
}
@media (min-width: 768px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   H4 «Квіз-воронка» — COHESION SYSTEM (понад базу H1)
   Спільна граматика блоків: kicker + section__head + panel.
   Hero+квіз злиті в один funnel-вузол. Рівний ритм.
   ============================================================ */

.container--narrow { width: var(--container-narrow); margin-inline: auto; }
.btn--sm { --btn-min: 44px; padding: .55rem 1.2rem; font-size: .9375rem; }

/* ---------- Спільна граматика ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: .72rem; color: var(--green-700);
}
.kicker__dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,107,0,.16); flex: none;
}
.kicker--ondark { color: var(--green-100); }
.kicker--ondark .kicker__dot { background: var(--green-500); box-shadow: 0 0 0 4px rgba(117,209,100,.22); }

.section__head {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  text-align: center; max-width: 54ch; margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section__head .section__lead { margin-top: 0; }

.panel {
  background: var(--surface); border: 1px solid var(--border-green);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
}

/* ---------- 1. Hero-funnel: пітч + квіз = один вузол ---------- */
.herofunnel {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(117,209,100,.35), transparent 60%),
    linear-gradient(160deg, #06774a 0%, #001f3e 100%);
  padding-block: clamp(2.4rem, 7vw, 3.8rem) clamp(2.8rem, 8vw, 4.5rem);
}
.herofunnel__inner { display: grid; gap: clamp(1.8rem, 5vw, 3rem); align-items: center; }
.herofunnel__pitch { text-align: center; }
.herofunnel__pitch .hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 6.2vw, 3.4rem); line-height: var(--lh-display);
  letter-spacing: -.02em; margin-top: .7rem;
  background: linear-gradient(100deg, #fff 0%, #e2ffb9 55%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.herofunnel__pitch .hero__subtitle {
  margin: 1rem auto 0; max-width: 34ch; font-size: var(--fs-lead);
  line-height: 1.45; color: rgba(255,255,255,.86);
}
.hero__lead {
  margin-top: 1rem; font-family: var(--font-head); font-weight: 700;
  font-size: var(--fs-lead); color: var(--green-100);
}
.herofunnel .hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.3rem; margin-top: 1.4rem; }
.herofunnel .hero__actions { display: flex; justify-content: center; margin-top: 1.8rem; }
@media (min-width: 920px) {
  .herofunnel__inner { grid-template-columns: 1.02fr .98fr; align-items: center; }
  .herofunnel__pitch { text-align: left; }
  .herofunnel__pitch .hero__subtitle { margin-inline: 0; }
  .herofunnel .hero__meta { justify-content: flex-start; }
  .herofunnel .hero__actions { display: none; }   /* квіз поряд → CTA зайвий */
}

/* ---------- Quiz (panel) ---------- */
.quiz { padding: clamp(1.4rem, 4.5vw, 2.2rem); color: var(--ink); }

.quiz__progress { margin-bottom: 1.5rem; }
.quiz__progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-bottom: .55rem; }
.quiz__progress-title { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.quiz__progress-label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; }
.quiz__progress-track { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.quiz__progress-fill { height: 100%; width: 33%; border-radius: var(--r-pill); background: var(--grad-green); transition: width var(--t-slow) var(--ease); }

.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__step[hidden] { display: none; }
.quiz__question { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); line-height: var(--lh-head); color: var(--ink); padding: 0; }
.quiz__hint { margin-top: .45rem; color: var(--muted); font-size: var(--fs-sm); }

.quiz__options { display: grid; gap: .65rem; margin-top: 1.3rem; }
.quiz__option {
  position: relative; display: flex; flex-direction: column; gap: .25rem; text-align: left;
  background: var(--surface-2); border: 2px solid transparent; border-radius: var(--r-md);
  padding: .95rem 3.2rem .95rem 1.1rem; color: var(--ink);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}
.quiz__option:hover { border-color: var(--green-500); transform: translateY(-2px); }
.quiz__option.is-selected { border-color: var(--green-800); background: var(--surface-3); box-shadow: 0 0 0 3px rgba(6,119,74,.1); }
.quiz__option-label { font-weight: 700; font-size: 1.0625rem; }
.quiz__option--compact .quiz__option-label { font-weight: 600; font-size: 1rem; }
.quiz__option-desc { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
/* radio-індикатор: завжди видиме коло + ✓ на обраному */
.quiz__option::before {
  content: ""; position: absolute; top: 50%; right: 1.15rem; transform: translateY(-50%);
  width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--border);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.quiz__option.is-selected::before { border-color: var(--green-800); background: var(--grad-green); }
.quiz__option.is-selected::after {
  content: "✓"; position: absolute; top: 50%; right: 1.46rem; transform: translateY(-50%);
  color: #fff; font-size: .72rem; font-weight: 800;
}

.quiz__nav { margin-top: 1.5rem; display: flex; gap: .7rem; }
.quiz__nav .quiz__next { flex: 1 1 auto; }
.quiz__back { flex: 0 0 auto; }
.quiz__next:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.quiz__next:disabled::before { animation: none; }

.quiz__step--form .field:first-of-type { margin-top: 1.3rem; }
.quiz__note { margin-top: .9rem; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.quiz__step--form .quiz__nav { margin-top: .9rem; justify-content: center; }
.leadform__result { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-md); font-weight: 600; }
.leadform__result.is-success { background: var(--green-100); color: var(--green-800); }
.leadform__result.is-error { background: #fdecec; color: #cf2e2e; }

/* ---------- 2. Proof ---------- */
.proof2 { background: var(--surface); text-align: center; }
.proof2 .proof__grid { display: grid; gap: 1rem; }
.proof2 .stat {
  background: var(--surface); border: 1px solid var(--border-green);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 1.8rem 1.4rem; text-align: center;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.proof2 .stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.proof2 .stat--featured { background: var(--grad-green); border: none; color: #fff; }
.proof2 .stat__value { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 8vw, 3.2rem); line-height: 1; color: var(--green-800); }
.proof2 .stat--featured .stat__value { color: #fff; }
.stat__unit { font-size: .4em; font-weight: 400; opacity: .8; }
.proof2 .stat__label { margin-top: .6rem; color: var(--ink-2); font-size: var(--fs-sm); }
.proof2 .stat--featured .stat__label { color: rgba(255,255,255,.9); }
@media (min-width: 768px) { .proof2 .proof__grid { grid-template-columns: repeat(3, 1fr); } }
.proof__person { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .5rem 1.2rem .5rem .5rem; }
.proof__avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--green-100); }
.proof__person-name { font-weight: 700; font-size: var(--fs-sm); text-align: left; }
.proof__person-name span { display: block; font-weight: 500; color: var(--muted); }
.proof__cta { display: flex; justify-content: center; margin-top: 2.2rem; }

/* ---------- 3. Contact ---------- */
.contact2 { background: var(--surface-2); }
.contact__panel { padding: clamp(1.2rem, 4vw, 1.6rem); max-width: 560px; margin-inline: auto; display: grid; gap: .8rem; }
.contact-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}
.contact-row:hover { border-color: var(--green-800); background: var(--surface-3); transform: translateY(-2px); }
.contact-row__icon { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--green-100); color: var(--green-800); }
.contact-row__icon svg { width: 1.3rem; height: 1.3rem; }
.contact-row__body { display: flex; flex-direction: column; min-width: 0; }
.contact-row__label { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-row__value { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.contact-row__arrow { margin-left: auto; color: var(--green-700); flex: none; transition: transform var(--t) var(--ease); }
.contact-row:hover .contact-row__arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .quiz__option, .quiz__progress-fill, .proof2 .stat, .contact-row, .contact-row__arrow { transition: none; }
}

/* ============================================================
   H4 hero — «дихаючий» фон: літаючі кольорові плями (blobs)
   GPU-friendly (transform/opacity), різні тайминги/затримки.
   ============================================================ */
.herofunnel .hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* вимикаємо базові ::before/::after блоби H1 — тут власна система */
.herofunnel .hero__bg::before, .herofunnel .hero__bg::after { display: none; }

.blob {
  position: absolute; border-radius: 50%; filter: blur(64px);
  mix-blend-mode: screen; will-change: transform, opacity;
}
.blob--1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: #75d164; top: -14%; right: -8%;  opacity: .55;
  animation: blobA 11s ease-in-out infinite; }
.blob--2 { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px;
  background: #00804d; bottom: -18%; left: -10%; opacity: .5;
  animation: blobB 13s ease-in-out infinite; }
.blob--3 { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px;
  background: #ff6b00; top: 12%; left: 16%; opacity: .26;
  animation: blobC 15s ease-in-out infinite; }
.blob--4 { width: 26vw; height: 26vw; max-width: 360px; max-height: 360px;
  background: #e2ffb9; bottom: 8%; right: 14%; opacity: .3;
  animation: blobD 9s ease-in-out infinite; }
.blob--5 { width: 22vw; height: 22vw; max-width: 300px; max-height: 300px;
  background: #2f6bff; top: 40%; right: 38%; opacity: .18;
  animation: blobE 17s ease-in-out infinite; }

/* кожна пляма «дихає» (scale) і дрейфує (translate) по-своєму — швидше + більша амплітуда */
@keyframes blobA { 0%,100% { transform: translate(0,0) scale(1);         opacity: .5; }
                   50%     { transform: translate(-16%,20%) scale(1.24);  opacity: .72; } }
@keyframes blobB { 0%,100% { transform: translate(0,0) scale(1);         opacity: .42; }
                   50%     { transform: translate(20%,-14%) scale(1.3);   opacity: .64; } }
@keyframes blobC { 0%,100% { transform: translate(0,0) scale(1);         opacity: .2; }
                   50%     { transform: translate(24%,16%) scale(1.42);   opacity: .38; } }
@keyframes blobD { 0%,100% { transform: translate(0,0) scale(1);         opacity: .24; }
                   50%     { transform: translate(-22%,-18%) scale(1.24); opacity: .44; } }
@keyframes blobE { 0%,100% { transform: translate(0,0) scale(1);         opacity: .12; }
                   50%     { transform: translate(-28%,14%) scale(1.55);  opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

/* ============================================================
   H4 — запевнення (assurances) + стрічка спікерів (team)
   ============================================================ */

/* --- Запевнення під hero-вузлом (обробка заперечень) --- */
.assurances {
  display: grid; gap: .6rem 1.6rem; margin-top: clamp(1.6rem, 4vw, 2.4rem);
  padding-top: clamp(1.2rem, 3vw, 1.6rem); border-top: 1px solid rgba(255,255,255,.14);
}
.assurance {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.9);
}
.assurance__ico {
  flex: none; width: 1.25rem; height: 1.25rem; padding: .15rem;
  color: #001f3e; background: var(--green-500); border-radius: 50%;
}
@media (min-width: 720px) { .assurances { grid-auto-flow: column; justify-content: center; } }

/* --- Стрічка спікерів (соц-доказ) --- */
.team { margin-top: clamp(2.4rem, 6vw, 3.4rem); }
.team__heading {
  text-align: center; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs);
  color: var(--muted); margin-bottom: 1.4rem;
}
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem .8rem; }
.teammate { text-align: center; }
.teammate__photo {
  width: clamp(76px, 22vw, 104px); height: clamp(76px, 22vw, 104px);
  border-radius: 50%; object-fit: cover; margin: 0 auto .65rem;
  border: 3px solid var(--surface); box-shadow: var(--shadow-card);
}
.teammate__name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink); }
.teammate__role { margin-top: .15rem; font-size: var(--fs-xs); color: var(--green-700); font-weight: 600; line-height: 1.35; }
@media (min-width: 640px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .team__grid { grid-template-columns: repeat(5, 1fr); gap: 1.4rem; } }

/* ============================================================
   H4 — фінальний заклик (closing CTA) + secondary-контакти
   ============================================================ */
.finalcta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  border-radius: var(--r-card); max-width: 780px; margin-inline: auto;
  padding: clamp(2.4rem, 6vw, 3.8rem) clamp(1.4rem, 5vw, 3rem);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(117,209,100,.30), transparent 60%),
    linear-gradient(160deg, #06774a 0%, #001f3e 100%);
  box-shadow: var(--shadow-card-hover);
}
/* м'яке «дихання» — як у hero */
.finalcta::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1;
  top: -34%; left: 50%; transform: translateX(-50%);
  background: #75d164; border-radius: 50%; filter: blur(80px); opacity: .28;
  animation: heroPulse 8s ease-in-out infinite; pointer-events: none;
}
.finalcta .kicker--ondark { justify-content: center; }
.finalcta__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: -.01em;
  margin-top: .7rem; color: #fff;
}
.finalcta__sub {
  margin: 1rem auto 0; max-width: 44ch; font-size: var(--fs-lead);
  line-height: 1.45; color: rgba(255,255,255,.86);
}
.finalcta .btn { margin-top: 1.9rem; }
.finalcta__reassure {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--green-100);
}
.finalcta__reassure svg { flex: none; }

/* контакти — secondary під фінальним CTA */
.contact-alt__lead {
  text-align: center; margin: clamp(2.2rem, 5vw, 3rem) 0 1rem;
  color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm);
}
.contact2 .contact__panel { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .finalcta::before { animation: none; }
}
