/* ─── Reset & Variables ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #09090b;   /* zinc-950 */
  --bg-card:   rgba(255,255,255,0.02);
  --border:    rgba(255,255,255,0.08);
  --purple:    #a855f7;
  --blue:      #3b82f6;
  --cyan:      #22d3ee;
  --grad:      linear-gradient(135deg, #a855f7, #3b82f6);
  --grad-hero: linear-gradient(135deg, #a855f7, #3b82f6, #22d3ee);
  --white:     #ffffff;
  --zinc-300:  #d4d4d8;
  --zinc-400:  #a1a1aa;
  --zinc-500:  #8a8a95; /* a11y: було #71717a (контраст 3.99 — фейл); тепер ~5.5:1 на тёмному */
  --radius-xl: 1.5rem;
  --radius-2xl:2rem;
  --container: 1200px;
  --font: 'Montserrat', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Utilities ───────────────────────────────────────────── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-tag {
  display: inline-block;
  padding: .25rem .875rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--zinc-300);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

/* ─── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(9,9,11,.85);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -.05em;
}
.navbar__logo-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.navbar__logo-dot { color: var(--purple); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.navbar__links a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--zinc-300);
  transition: color .2s;
  position: relative;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .3s;
}
.navbar__links a:hover { color: #fff; }
.navbar__links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform .3s, box-shadow .3s;
  border-radius: 9999px;
}
.btn-primary {
  padding: .875rem 2rem;
  background: var(--grad);
  color: #fff;
  font-size: 1rem;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(168,85,247,.5);
}
.btn-outline {
  padding: .75rem 1.5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: .875rem;
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }

.navbar__cta { display: none; }
@media (min-width: 768px) { .navbar__cta { display: flex; } }

.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.navbar__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 767px) { .navbar__burger { display: flex; } }
@media (max-width: 767px) { .navbar__links { display: none; } }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--zinc-300);
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .btn-primary { margin-top: 1rem; width: 100%; border-radius: 1rem; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* стабільна висота на мобільному — не стрибає при зникненні адресного рядка (фікс CLS) */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}
.hero__bg {
  position: absolute;
  inset: 0; z-index: 0;
}
.hero__video, .hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9,9,11,.65) 0%, rgba(9,9,11,.55) 50%, rgba(9,9,11,.9) 100%);
}
.hero__glow {
  position: absolute;
  top: 50svh; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: rgba(168,85,247,.25);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
}
.hero__heading {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.375rem);
  color: var(--zinc-300);
  max-width: 680px;
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__reassure { margin: .9rem auto 0; max-width: 32rem; text-align: center; font-size: .95rem; line-height: 1.5; color: #e2e8f0; }
.hero__trust { margin: .8rem auto 0; text-align: center; font-size: .82rem; letter-spacing: .01em; color: var(--zinc-300); }
.btn-watch {
  padding: .875rem 2rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  transition: background .3s;
}
.btn-watch:hover { background: rgba(255,255,255,.18); }
.btn-watch__icon {
  width: 2rem; height: 2rem;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #09090b;
  transition: background .3s;
  flex-shrink: 0;
}
.btn-watch:hover .btn-watch__icon { background: var(--purple); color: #fff; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  width: 100%;
  max-width: 900px;
}
@media (min-width: 768px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.stat__value { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; }
.stat__label {
  font-size: .75rem;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .25rem;
}
.hero__bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 10;
}

/* ─── Section Common ──────────────────────────────────────── */
.section { padding: 6rem 0; }
.section__header { margin-bottom: 4rem; }
.section__header--center { text-align: center; }
.section__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section__desc {
  color: var(--zinc-400);
  font-size: 1.125rem;
  max-width: 600px;
}
.section__header--center .section__desc { margin: 0 auto; }

/* ─── Classes / Styles ────────────────────────────────────── */
.classes__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .classes__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.classes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .classes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .classes__grid { grid-template-columns: repeat(3, 1fr); } }

.class-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.class-card--wide {
  grid-column: 1 / -1;
}
@media (min-width: 1024px) { .class-card--wide { grid-column: span 2; } }

.class-card__img-wrap { aspect-ratio: 4/3; min-height: 400px; }
.class-card--wide .class-card__img-wrap { aspect-ratio: 4/3; }
@media (min-width: 768px) { .class-card--wide .class-card__img-wrap { aspect-ratio: 16/7; } }
.class-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.class-card:hover .class-card__img { transform: scale(1.05); }
.class-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,1) 0%, rgba(9,9,11,.35) 60%, transparent 100%);
  transition: opacity .3s;
}
.class-card:hover .class-card__overlay { opacity: .95; }
.class-card__body {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.class-card__accent {
  width: 3rem; height: 3px;
  border-radius: 2px;
  margin-bottom: 1rem;
  transition: transform .3s;
  transform-origin: left;
}
.class-card:hover .class-card__accent { transform: scaleX(1.5); }
.class-card__name {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .5rem;
}
.class-card__meta {
  display: flex;
  gap: 1rem;
  font-size: .8rem;
  color: var(--zinc-300);
  margin-bottom: 1rem;
}
.class-card__meta-item { display: flex; align-items: center; gap: .3rem; }
.class-card__desc {
  font-size: .875rem;
  color: var(--zinc-400);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.class-card__cta {
  margin-top: 1rem;
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 9999px;
  background: var(--grad);
  border: none;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .3s;
}
.class-card__cta:hover { box-shadow: 0 0 20px rgba(168,85,247,.5); }

/* ─── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(59,130,246,.15));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .cta-banner__inner { grid-template-columns: 1fr 1fr; } }
.cta-banner__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.cta-banner__desc { color: var(--zinc-400); margin-bottom: 2rem; }

.cta-form { display: flex; flex-direction: column; gap: 1rem; }
.cta-form .wpcf7-form { display: flex; flex-direction: column; gap: 1rem; }
.cta-form input[type="text"],
.cta-form input[type="tel"],
.cta-form .wpcf7-text { width: 100%; }
input.field, .cta-form input, .contact-form input, .contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .875rem;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: box-shadow .3s;
}
input.field:focus, .cta-form input:focus, .contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px var(--purple);
}
input.field::placeholder, .cta-form input::placeholder,
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--zinc-500);
}
.cta-form .wpcf7-submit,
.cta-form input[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: var(--grad);
  border: none;
  border-radius: .875rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow .3s, transform .3s;
}
.cta-form .wpcf7-submit:hover { box-shadow: 0 0 20px rgba(168,85,247,.4); }

/* ─── Instructors ─────────────────────────────────────────── */
.instructors { overflow: hidden; }
.instructors__glow {
  position: absolute;
  top: 50%; right: 0;
  width: 500px; height: 500px;
  background: rgba(59,130,246,.15);
  filter: blur(100px);
  border-radius: 50%;
  transform: translateX(50%) translateY(-50%);
  pointer-events: none;
}
.instructors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 600px) { .instructors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .instructors-grid { grid-template-columns: repeat(3, 1fr); } }

.instructor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background .3s;
  display: flex;
  flex-direction: column;
}
.instructor-card:hover { background: rgba(255,255,255,.04); }
.instructor-card__glow {
  position: absolute;
  top: 0; right: 0;
  width: 8rem; height: 8rem;
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(59,130,246,.2));
  filter: blur(40px);
  transition: transform .5s;
}
.instructor-card:hover .instructor-card__glow { transform: scale(1.5); }
.instructor-card__avatar-wrap {
  width: 9rem; height: 9rem;
  border-radius: 50%;
  padding: 3px;
  background: var(--grad);
  margin: 0 auto 1.5rem;
  transition: transform .3s;
}
.instructor-card:hover .instructor-card__avatar-wrap { transform: scale(1.05); }
.instructor-card__avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--bg);
}
.instructor-card__avatar-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.instructor-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.instructor-card__role {
  font-size: .75rem;
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.instructor-card__bio {
  font-size: .875rem;
  color: var(--zinc-400);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1 1 auto;
}
.instructor-card__page-link { margin-top: auto; }
.instructor-card__socials {
  display: flex;
  justify-content: center;
  gap: .75rem;
}
.instructor-card__social {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--zinc-400);
  transition: background .3s;
  font-size: .875rem;
}
.instructor-card__social:hover { background: rgba(168,85,247,.2); color: #fff; }
.instructor-card__cta {
  margin-top: auto;
  padding-top: 1.25rem;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 9999px;
  background: var(--grad);
  border: none;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.instructor-card__cta:hover {
  box-shadow: 0 0 24px rgba(168,85,247,.5);
}

/* ─── Stats ───────────────────────────────────────────────── */
.stats-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid__value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats-grid__label {
  font-size: .75rem;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .25rem;
}

/* ─── About ───────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) { .about__grid { grid-template-columns: 1fr 1fr; } }
.about__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__benefits { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.about__benefit {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.about__benefit-icon {
  width: 3rem; height: 3rem;
  border-radius: .75rem;
  background: rgba(168,85,247,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.about__benefit-title { font-weight: 700; margin-bottom: .2rem; }
.about__benefit-desc { font-size: .875rem; color: var(--zinc-400); }

/* ─── Gallery ─────────────────────────────────────────────── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.gallery__item:hover img { transform: scale(1.08); }

/* ─── Pricing ─────────────────────────────────────────────── */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) { .pricing__grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  border-radius: var(--radius-xl);
  padding: 2px;
  background: rgba(255,255,255,.08);
  position: relative;
}
.price-card--popular { background: var(--grad); }
.price-card__popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.price-card__inner {
  background: var(--bg);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.price-card__name { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.price-card__desc { font-size: .875rem; color: var(--zinc-400); margin-bottom: 1.5rem; min-height: 2.5rem; }
.price-card__amount {
  display: flex;
  align-items: flex-end;
  gap: .3rem;
  margin-bottom: 2rem;
}
.price-card__value { font-size: 2.5rem; font-weight: 900; }
.price-card__per { color: var(--zinc-500); font-size: .875rem; margin-bottom: .3rem; }
.price-card__features { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; flex: 1; }
.price-card__feature {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--zinc-300);
}
.price-card__check {
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: rgba(168,85,247,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.price-card__check svg { width: .75rem; height: .75rem; }
.price-card__btn {
  width: 100%;
  padding: 1rem;
  border-radius: .875rem;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .3s;
}
.price-card--popular .price-card__btn {
  background: var(--grad);
  color: #fff;
}
.price-card--popular .price-card__btn:hover { box-shadow: 0 0 20px rgba(168,85,247,.4); }
.price-card:not(.price-card--popular) .price-card__btn {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.price-card:not(.price-card--popular) .price-card__btn:hover { background: rgba(255,255,255,.15); }

/* ─── Contact / Footer ────────────────────────────────────── */
.contact-section { padding: 6rem 0; background: #000; border-top: 1px solid var(--border); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form .wpcf7-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form textarea, .contact-form .wpcf7-textarea {
  width: 100%;
  resize: none;
  min-height: 9rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .875rem;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: box-shadow .3s;
}
.contact-form textarea:focus { box-shadow: 0 0 0 2px var(--blue); }
.contact-form .wpcf7-submit, .contact-form input[type="submit"] {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: none;
  border-radius: .875rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow .3s, transform .3s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.contact-form .wpcf7-submit:hover { box-shadow: 0 0 20px rgba(59,130,246,.4); }

.contact-map {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.contact-map iframe { width: 100%; height: 100%; border: none; filter: grayscale(60%); }

.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
  color: #fff;
}
.contact-info__list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--zinc-400);
  font-size: .9rem;
}
.contact-info__icon { color: var(--blue); flex-shrink: 0; margin-top: .1rem; }

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: #000;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-socials { display: flex; gap: 1rem; }
.footer-social {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--zinc-400);
  transition: background .3s;
}
.footer-social:hover { background: rgba(255,255,255,.15); color: #fff; }
.footer-copy { font-size: .8rem; color: var(--zinc-400); }
.footer-made-by { margin-left: .75rem; display: inline-block; white-space: nowrap; }
.footer-made-by a { color: var(--zinc-400); text-decoration: underline; transition: color .2s; }
.footer-made-by a:hover { color: #fff; }

/* ── Переліковка картками (напрямки / корисні сторінки) ── */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0 1.75rem; }
.link-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.25rem; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  transition: border-color .25s, transform .25s, background .25s; }
.link-card:hover { border-color: rgba(168,85,247,.5); background: rgba(255,255,255,.05); }
.link-card__name { font-weight: 700; color: #fff; font-size: .98rem; line-height: 1.25; }
.link-card__sub { color: var(--zinc-400); font-size: .82rem; flex: 1; }
.link-card__arrow { margin-top: .5rem; font-size: .78rem; font-weight: 700; color: var(--cyan, #22d3ee); }
.link-card:hover .link-card__arrow { color: #fff; }
@media (max-width: 900px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .link-cards { grid-template-columns: 1fr; } }

/* ─── Popup (CF7 modal) ───────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #18181b;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.modal__close:hover { background: rgba(255,255,255,.2); }
.modal__title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}
.modal__sub { font-size: .875rem; color: var(--zinc-400); margin-bottom: 2rem; }

/* ─── Wpcf7 reset ─────────────────────────────────────────── */
.wpcf7-response-output {
  border: none !important;
  border-radius: .75rem !important;
  padding: .75rem 1rem !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  margin: .5rem 0 0 !important;
  text-align: center !important;
}
/* Success */
.wpcf7-response-output.wpcf7-mail-sent-ok {
  background: rgba(74, 222, 128, .12) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, .3) !important;
}
/* Error / validation */
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-spam-blocked,
.wpcf7-response-output.wpcf7-aborted {
  background: rgba(248, 113, 113, .1) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, .3) !important;
}
/* Invalid field: red border */
input.wpcf7-not-valid,
textarea.wpcf7-not-valid {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, .06) !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, .15) !important;
}
/* Error tip below field */
.wpcf7-not-valid-tip {
  display: block !important;
  font-size: .75rem !important;
  color: #f87171 !important;
  margin-top: .35rem !important;
  padding-left: .25rem !important;
}
span.wpcf7-spinner { display: none !important; }

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 1; } /* статичний сайт: без анімації руху (фікс non-composited animations) */
.fade-up--d1 { animation-delay: .1s; }
.fade-up--d2 { animation-delay: .25s; }
.fade-up--d3 { animation-delay: .4s; }
.fade-up--d4 { animation-delay: .55s; }

/* Доступність: вимкнути анімації для тих, хто цього просить */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fade-up, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── Testimonials ────────────────────────────────────────── */
.testimonials { position: relative; overflow: hidden; }
.testimonials__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50rem; height: 25rem;
  background: radial-gradient(ellipse, rgba(168,85,247,.1) 0%, transparent 70%);
  pointer-events: none;
}
.testimonials-swiper-wrap { margin-top: 3rem; padding-bottom: 3rem; }
.testimonials-swiper { overflow: visible; }
.testimonials-swiper .swiper-wrapper { align-items: stretch; }
.testimonials-swiper .swiper-slide { height: auto; display: flex; }
.tcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  transition: background .3s, transform .3s;
}
.tcard:hover { background: rgba(255,255,255,.04); }
.tcard__stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: .1em;
}
.tcard__text {
  font-size: .9375rem;
  color: var(--zinc-300);
  line-height: 1.75;
  flex: 1;
}
.tcard__author {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.tcard__avatar {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.tcard__name { font-weight: 700; font-size: .9375rem; }
.tcard__course { font-size: .75rem; color: var(--zinc-400); margin-top: .15rem; }
.testimonials-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}
.testimonials-pagination .swiper-pagination-bullet {
  width: .5rem; height: .5rem;
  border-radius: 9999px;
  background: var(--zinc-600);
  opacity: 1;
  transition: width .3s, background .3s;
}
.testimonials-pagination .swiper-pagination-bullet-active {
  width: 1.5rem;
  background: var(--purple);
}

/* ─── Instagram Section ───────────────────────────────────── */
.ig-section { overflow: hidden; }
.ig-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .ig-header { grid-template-columns: 1fr 1fr; }
}
.ig-header__sub {
  color: var(--zinc-400);
  font-size: .9375rem;
  line-height: 1.7;
  margin: 1rem 0 1.75rem;
}
.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.75rem;
  border-radius: 9999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  transition: opacity .3s, transform .3s;
}
.ig-follow-btn:hover { opacity: .85; }
.ig-header__big-img {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.ig-header__big-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.ig-header__big-img:hover img { transform: scale(1.05); }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
@media (min-width: 600px) { .ig-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) { .ig-grid { grid-template-columns: repeat(9, 1fr); } }
.ig-item {
  display: block;
  border-radius: .75rem;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.ig-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.ig-item:hover img { transform: scale(1.08); }
.ig-item__hover {
  position: absolute; inset: 0;
  background: rgba(168,85,247,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.ig-item:hover .ig-item__hover,
.ig-header__big-img:hover .ig-item__hover { opacity: 1; }

/* ─── Awards Slider ───────────────────────────────────────── */
.awards {
  position: relative;
  overflow: hidden;
}
.awards__glow {
  position: absolute;
  bottom: -10rem; left: 50%;
  transform: translateX(-50%);
  width: 60rem; height: 30rem;
  background: radial-gradient(ellipse, rgba(168,85,247,.15) 0%, transparent 70%);
  pointer-events: none;
}
.awards-swiper-wrap {
  position: relative;
  margin-top: 3rem;
}
.awards-swiper {
  overflow: hidden;
  border-radius: var(--radius-2xl);
}
.awards-slide {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
@media (min-width: 768px) {
  .awards-slide { grid-template-columns: 1fr 1fr; min-height: 360px; }
}
.awards-slide__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
@media (min-width: 768px) {
  .awards-slide__img-wrap { aspect-ratio: unset; }
}
.awards-slide__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.swiper-slide-active .awards-slide__img-wrap img { transform: scale(1.04); }
.awards-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(9,9,11,.6));
}
.awards-slide__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
}
.awards-slide__date {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #c084fc; /* a11y: контраст 6.6:1 на тёмному оверлеї (було var(--purple) #a855f7 = 4.37, фейл) */
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 9999px;
  padding: .25rem .9rem;
  width: fit-content;
}
.awards-slide__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}
.awards-slide__text {
  font-size: .9375rem;
  color: var(--zinc-400);
  line-height: 1.75;
}
.awards-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(168,85,247,.15);
  border: 1px solid rgba(168,85,247,.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s, transform .3s;
  backdrop-filter: blur(8px);
}
.awards-swiper-btn:hover {
  background: rgba(168,85,247,.4);
  transform: translateY(-50%);
}
.awards-swiper-btn--prev { left: -1.5rem; }
.awards-swiper-btn--next { right: -1.5rem; }
@media (max-width: 767px) {
  .awards-swiper-btn--prev { left: .5rem; }
  .awards-swiper-btn--next { right: .5rem; }
}

/* Intersection observer based reveal */
.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .section { padding: 4rem 0; }
  .hero__heading { font-size: clamp(2.5rem, 12vw, 4rem); }
  .contact-info { grid-template-columns: 1fr; }
  .modal { padding: 1.75rem; }
  .hero__video { display: none; }
  .hero__bg {
    background: url('/wp-content/themes/ahodessa-new/assets/img/hero-poster.jpg') center/cover no-repeat;
  }
}

/* ─── Swiper: compositor-friendly pagination ──────────────── */
.swiper-pagination-bullet {
  transition: transform .3s, opacity .3s !important;
}
.swiper-pagination-bullet-active {
  transform: scale(1.5) !important;
}

/* ─── AI modal: rounded top corners on mobile ────────────── */
@media (max-width: 480px) {
  #rwai-modal {
    top: 36px !important;
    border-radius: 30px 30px 0 0 !important;
    overflow: hidden;
  }
}

/* Фото-слайди нагород без тексту — на всю ширину */
.awards-slide--photo { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .awards-slide--photo { grid-template-columns: 1fr; }
  .awards-slide--photo .awards-slide__img-wrap { aspect-ratio: 16/9; }
}
.awards-slide--photo .awards-slide__overlay { background: linear-gradient(to top, rgba(9,9,11,.35), transparent 40%); }

/* ── Блог ──────────────────────────────────────────────────── */
.blog-navbar { position: sticky; background: rgba(9,9,11,.9); }
.blog-page { padding: 3rem 0 4rem; }
.blog-page__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.blog-page__head h1 { margin-bottom: 1rem; }
.blog-page__sub { color: var(--zinc-400); font-size: 1rem; line-height: 1.7; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.post-card:hover { border-color: rgba(168,85,247,.4); }
.post-card__img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .75rem; color: var(--zinc-500); }
.post-card__cat { color: var(--purple); background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3); border-radius: 9999px; padding: .15rem .7rem; font-weight: 700; }
.post-card__title { font-size: 1.125rem; font-weight: 800; line-height: 1.35; }
.post-card__title a:hover { color: var(--purple); }
.post-card__excerpt { color: var(--zinc-400); font-size: .9rem; line-height: 1.65; flex: 1; }
.post-card__more { font-size: .875rem; font-weight: 700; color: var(--cyan); }
.blog-cta { text-align: center; margin: 3.5rem auto 0; max-width: 640px; padding: 2.5rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-2xl); }
.blog-cta__title { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; margin-bottom: .75rem; }
.blog-cta__text { color: var(--zinc-400); margin-bottom: 1.5rem; line-height: 1.7; }
.footer-blog-link { font-size: .875rem; font-weight: 700; color: var(--zinc-300); border: 1px solid var(--border); border-radius: 9999px; padding: .4rem 1rem; transition: color .2s, border-color .2s; }
.footer-blog-link:hover { color: #fff; border-color: rgba(168,85,247,.5); }
/* стаття */
.article { max-width: 780px; padding-top: 1rem; }
.article__head { margin-bottom: 1.5rem; }
.article__title { font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 900; line-height: 1.2; margin-top: .9rem; letter-spacing: -.02em; }
.article__hero { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 2rem; }
.article__hero img { width: 100%; height: auto; display: block; }
.article__content { font-size: 1.03rem; line-height: 1.85; color: var(--zinc-300); }
.article__content p { margin-bottom: 1.25rem; }
.article__content h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 800; color: #fff; margin: 2.25rem 0 1rem; line-height: 1.3; }
.article__content h3 { font-size: 1.08rem; font-weight: 700; color: #fff; margin: 1.5rem 0 .5rem; }
.article__content ul, .article__content ol { margin: 0 0 1.25rem 1.25rem; }
.article__content li { margin-bottom: .5rem; }
.article__content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article__content strong { color: #fff; }
.article__content table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 1.5rem; min-width: 560px; }
.article__content thead th { text-align: left; color: #fff; background: rgba(255,255,255,.05); }
.article__content th, .article__content td { padding: .65rem .8rem; border: 1px solid var(--border); vertical-align: top; }
.article__content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 820px) { .article__content table { display: table; min-width: 0; } }
.article__related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article__related-title { font-size: 1.1rem; font-weight: 800; margin-bottom: .75rem; }
.article__related ul { list-style: none; }
.article__related li { margin-bottom: .5rem; }
.article__related a { color: var(--cyan); font-weight: 600; }
.article__related a:hover { text-decoration: underline; }
/* пагінація WP */
.blog-page .navigation.pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.blog-page .nav-links { display: flex; gap: .5rem; }
.blog-page .page-numbers { min-width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9999px; color: var(--zinc-300); font-weight: 700; font-size: .875rem; padding: 0 .75rem; }
.blog-page .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

/* Навбар на внутрішніх сторінках: одразу з фоном */
.navbar--solid { background: rgba(9,9,11,.88); backdrop-filter: blur(12px); padding: 1rem 0; border-color: rgba(255,255,255,.05); }
.blog-page { padding-top: 6.5rem; }

/* Стаття: ширина як у головної на ПК */
.article { max-width: var(--container); }
.article__title { max-width: 900px; }

/* Відступ контенту блогу під фіксованим навбаром */
.blog-page { padding-top: 8.5rem; }
@media (max-width: 767px) { .blog-page { padding-top: 7rem; } }

/* Підвал: рівні компактні кнопки без переносів */
.footer-socials { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: nowrap; flex-shrink: 0; }
.footer-blog-link { white-space: nowrap; line-height: 1; padding: .55rem 1.1rem; display: inline-flex; align-items: center; }
.footer-social { flex: 0 0 auto; }
.site-footer .navbar__logo { white-space: nowrap; }
@media (max-width: 767px) {
  .footer-bottom { flex-direction: column; gap: 1.25rem; text-align: center; }
  /* На мобільному кнопки й іконки переносяться по центру, але соц-іконки тримаються поряд */
  .footer-socials { flex-wrap: wrap; justify-content: center; gap: .5rem .6rem; }
}

/* Сторінки напрямків */
.style-hero { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin-bottom: 3rem; }
@media (min-width: 900px) { .style-hero { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.style-hero__lead { color: var(--zinc-400); line-height: 1.8; margin-top: 1rem; font-size: 1.05rem; }
.style-hero__img { border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--border); }
.style-hero__img img { width: 100%; height: auto; display: block; }
.style-section { margin-bottom: 2.5rem; }
.section-title-sm { font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 800; margin-bottom: 1rem; }
.style-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.style-chip { padding: .45rem 1rem; border-radius: 9999px; background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3); color: var(--zinc-300); font-size: .875rem; font-weight: 600; }
.style-benefits { list-style: none; display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 768px) { .style-benefits { grid-template-columns: 1fr 1fr; } }
.style-benefits li { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1rem 1.25rem; color: var(--zinc-300); line-height: 1.6; }
.style-teachers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .style-teachers { grid-template-columns: repeat(4, 1fr); } }
.style-teacher { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; text-align: center; padding-bottom: 1rem; }
.style-teacher img { width: 100%; aspect-ratio: 3/4; object-fit: cover; margin-bottom: .75rem; }
.style-teacher__name { font-weight: 700; font-size: .9rem; padding: 0 .75rem; }
.style-teacher__role { color: var(--zinc-500); font-size: .78rem; padding: .25rem .75rem 0; line-height: 1.5; }
.style-note { color: var(--zinc-400); line-height: 1.8; }
.style-note a { color: var(--cyan); text-decoration: underline; }
.style-faq-q { font-weight: 700; margin: 1.25rem 0 .4rem; font-size: 1.05rem; }
.style-faq-a { color: var(--zinc-400); line-height: 1.75; }
.style-form { max-width: 480px; margin: 0 auto; text-align: left; }
.class-card__more { position: absolute; inset: 0; z-index: 3; }
.class-card__more span { position: absolute; bottom: 1.25rem; right: 1.5rem; font-size: .875rem; font-weight: 700; color: var(--cyan); }
.class-card__page-link { display: inline-block; margin-bottom: .75rem; font-size: .875rem; font-weight: 700; color: var(--cyan); position: relative; z-index: 3; }
.class-card__page-link:hover { text-decoration: underline; }

/* AI-Overview паттерн: зміст, довідкова таблиця, FAQ-акордеон, нагору */
.style-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.style-toc a { padding: .45rem 1rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--zinc-300); font-size: .85rem; font-weight: 600; white-space: nowrap; transition: border-color .2s, color .2s; }
.style-toc a:hover { color: #fff; border-color: rgba(168,85,247,.5); }
.style-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.style-table th, .style-table td { padding: .7rem 1rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.style-table th { color: var(--zinc-400); font-weight: 600; width: 40%; background: rgba(255,255,255,.03); }
.style-table td { color: var(--zinc-300); }
@media (max-width: 640px) { .style-table th { width: 44%; } .style-table th, .style-table td { padding: .55rem .7rem; font-size: .875rem; } }
.style-faq details { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg-card); margin-bottom: .75rem; overflow: hidden; }
.style-faq summary { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; cursor: pointer; font-weight: 700; list-style: none; }
.style-faq summary::-webkit-details-marker { display: none; }
.style-faq summary .icon { flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.style-faq summary .chev { margin-left: auto; color: var(--zinc-500); transition: transform .25s; }
.style-faq details[open] summary .chev { transform: rotate(90deg); }
.style-faq .answer { padding: 0 1.25rem 1.25rem 3.5rem; color: var(--zinc-400); line-height: 1.75; }
@media (max-width: 640px) { .style-faq .answer { padding-left: 1.25rem; } }
.style-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--border); color: var(--zinc-500); font-size: .9rem; }
.style-foot a { color: var(--cyan); text-decoration: underline; }
.style-backtop { white-space: nowrap; font-weight: 700; }

/* Головна: чипи напрямків у hero + FAQ */
.hero-toc { justify-content: center; margin-top: 1.75rem; }
.home-faq__grid { display: grid; grid-template-columns: 1fr; gap: .75rem; max-width: 900px; margin: 0 auto; }
@media (min-width: 900px) { .home-faq__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.style-toc a { display: inline-flex; align-items: center; gap: .45rem; }
.style-toc a svg { color: var(--purple); flex-shrink: 0; }
.hero-toc a svg { color: var(--cyan); }
.about__benefit-icon svg { display: block; }

/* Підвал: навігація напрямків */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.footer-nav a { font-size: .85rem; font-weight: 600; color: var(--zinc-400); transition: color .2s; }
.footer-nav a:hover { color: #fff; }

/* Сторінка викладача */
.teacher-hero{display:grid;grid-template-columns:1fr;gap:1.5rem;align-items:center}
@media(min-width:720px){.teacher-hero{grid-template-columns:300px 1fr;gap:2rem}}
.teacher-hero__photo{border-radius:var(--radius-2xl);overflow:hidden;border:1px solid var(--border);max-width:300px}
.teacher-hero__photo img{width:100%;height:auto;display:block}
.teacher-role{color:var(--cyan);font-weight:700;margin:.4rem 0 1rem}
.teacher-facts{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;padding:0}
.teacher-facts li{font-size:.8rem;font-weight:600;color:var(--zinc-300);background:rgba(168,85,247,.1);border:1px solid rgba(168,85,247,.28);border-radius:9999px;padding:.35rem .85rem}
.instructor-card__page-link{display:inline-block;margin:.25rem 0 .75rem;font-size:.82rem;font-weight:700;color:var(--cyan)}
.instructor-card__page-link:hover{text-decoration:underline}

/* 404 */
.error404{max-width:760px;margin:0 auto;text-align:center;padding:2rem 0}
.error404__lead{color:var(--zinc-400);line-height:1.7;margin:1rem auto 2rem;max-width:60ch}
.error404__grid{display:grid;grid-template-columns:1fr;gap:.75rem;margin-bottom:2rem;text-align:left}
@media(min-width:640px){.error404__grid{grid-template-columns:1fr 1fr}}
.error404__grid a{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-xl);padding:1rem 1.25rem;font-weight:700;transition:border-color .2s,transform .2s}
.error404__grid a:hover{border-color:rgba(168,85,247,.45)}
.error404__grid a span{display:block;font-size:.8rem;font-weight:500;color:var(--zinc-500);margin-top:.2rem}
.error404__cta{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}

/* ── Статичний режим: анімації руху миттєві, кінцевий стан показуємо одразу (легше читати + швидше) ── */
.fade-up, .reveal, .reveal.visible { opacity: 1 !important; transform: none !important; }
*, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html { scroll-behavior: auto !important; }

/* ── Плаваюча кнопка контакту на мобільному (CRO: дзвінок + безкоштовне пробне) ── */
.mobile-cta-bar { display: none; }
@media (max-width: 767px) {
  .mobile-cta-bar {
    display: flex; gap: 2px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    box-shadow: 0 -2px 14px rgba(0,0,0,.35);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-cta-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 52px; text-align: center; padding: .9rem .8rem;
    font-weight: 800; font-size: .9rem; line-height: 1.2; color: #fff; text-decoration: none;
    letter-spacing: .005em; white-space: nowrap;
  }
  .mobile-cta-bar .mcb-ico { flex: 0 0 auto; width: 20px; height: 20px; }
  /* Фірмовий градієнт сайту (не зелений), глибший відтінок — білий текст проходить контраст 5:1 (a11y) */
  .mobile-cta-bar__call { background: linear-gradient(135deg, #7c3aed, #2563eb); }
  .mobile-cta-bar__trial { background: var(--grad, linear-gradient(135deg,#a855f7,#3b82f6)); }
  body { padding-bottom: 3.6rem; }
  /* AI-віджет (rw-ai-consultant) ховаємо на мобільному — плаваюча панель зі дзвінком/пробним головна; віджет лишається на десктопі (рішення 2026-11-21) */
  #rwai-trigger, #rwai-modal { display: none !important; }
}
