/* ============================================================
   Training (program) single — conversion-oriented
   სტრუქტურა: hero (split + price card) → facts → outcomes →
   curriculum → audience → instructor → pricing → FAQ →
   lead form → CTA → sticky CTA
   ============================================================ */


/* ============================================================
   Hero — split layout (text + price card)
   ============================================================ */

.page-hero--split .page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: end;
}

.page-hero--split .page-hero__title {
  max-width: none;
  font-size: clamp(28px, 3.6vw, 44px);
}

.training-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.training-hero__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.training-hero__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.training-hero__actions .btn { height: 46px; padding: 0 22px; }

.training-hero__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.training-hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
}

/* Price card — white on dark hero */
.training-hero__card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-4);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  isolation: isolate;
  overflow: hidden;
}

.training-hero__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}

.training-hero__card-eyebrow {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.training-hero__seats-stat {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.training-hero__seats-stat-suffix {
  font-size: var(--fs-18);
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.training-hero__card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-13);
}

.training-hero__card-row + .training-hero__card-row { padding-top: 12px; }

.training-hero__card-label { color: var(--text-muted); }
.training-hero__card-value { color: var(--ink); font-weight: 600; }
.training-hero__card-value--accent { color: var(--red); }

.training-hero__card .btn {
  height: 46px;
  justify-content: center;
  margin-top: 4px;
}

.training-hero__seats-bar {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--paper);
  overflow: hidden;
}

.training-hero__seats-fill {
  height: 100%;
  background: var(--ink);
  border-radius: var(--r-pill);
}

@media (max-width: 1023.98px) {
  .page-hero--split .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
}


/* ============================================================
   Section nav — sticky, minimalist underline style
   ============================================================ */

.section-nav {
  position: sticky;
  top: calc(var(--header-h-sticky) + var(--topbar-h));
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
          backdrop-filter: saturate(150%) blur(14px);
}

.section-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav__inner::-webkit-scrollbar { display: none; }

.section-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.section-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.section-nav__link:hover { color: var(--ink); }

.section-nav__link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.section-nav__link.is-active::after { transform: scaleX(1); }

@media (max-width: 1279.98px) {
  .section-nav { top: var(--header-h-sticky); }
  .section-nav__inner {
    margin: 0 calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    gap: 20px;
    min-height: 44px;
  }
  .section-nav__link { padding: 12px 0; font-size: 12.5px; }
}

/* Sections need scroll offset to clear sticky header + section-nav */
[data-section] {
  scroll-margin-top: calc(var(--header-h-sticky) + var(--topbar-h) + 64px);
}

@media (max-width: 1279.98px) {
  [data-section] { scroll-margin-top: calc(var(--header-h-sticky) + 56px); }
}


/* ============================================================
   Generic content section
   ============================================================ */

.section {
  background: var(--white);
  padding: 80px 0;
}

.section--soft { background: var(--paper-2); }

.section__head {
  margin-bottom: 40px;
  max-width: 720px;
}

.section__head--center { margin-inline: auto; text-align: center; }

.section__eyebrow {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.section__lede {
  margin-top: 12px;
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

@media (max-width: 767.98px) {
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 28px; }
}


/* ============================================================
   Quick facts strip — 4 columns
   ============================================================ */

.facts {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fact__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.fact__icon svg { width: 18px; height: 18px; }

.fact__label {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.fact__value {
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

@media (max-width: 767.98px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}


/* ============================================================
   Outcomes — "რას ისწავლი"
   ============================================================ */

.outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}

.outcome {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.outcome__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.outcome__check svg { width: 12px; height: 12px; }

.outcome__text {
  font-size: var(--fs-15);
  line-height: 1.5;
  color: var(--ink);
}

@media (max-width: 767.98px) {
  .outcomes { grid-template-columns: 1fr; gap: 16px; }
}


/* ============================================================
   Curriculum — accordion + 2-col layout with side image
   ============================================================ */

.curriculum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

.curriculum-aside {
  position: sticky;
  top: calc(var(--header-h-sticky) + var(--topbar-h) + 80px);
}

.curriculum-aside__img {
  width: 100%;
  border-radius: var(--r-3);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--paper);
}

.curriculum-aside__caption {
  margin-top: 14px;
  font-size: var(--fs-13);
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1023.98px) {
  .curriculum-layout { grid-template-columns: 1fr; gap: 32px; }
  .curriculum-aside { position: static; max-width: 100%; order: -1; }
  .curriculum-aside__img { aspect-ratio: 16 / 10; }
}

/* ---- Accordion stepper ---- */
.curriculum {
  position: relative;
  border-top: 1px solid var(--border);
}

.curriculum__step {
  border-bottom: 1px solid var(--border);
}

.curriculum__head {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.curriculum__head:hover .curriculum__toggle {
  background: var(--ink);
  color: var(--white);
}

.curriculum__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-13);
  font-weight: 600;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
}

.curriculum__step.is-open .curriculum__num { background: var(--red); }

.curriculum__head-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.curriculum__title {
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: color var(--dur-fast) var(--ease);
}

.curriculum__duration {
  font-size: var(--fs-13);
  color: var(--text-muted);
  font-weight: 500;
}

.curriculum__toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.curriculum__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.curriculum__step.is-open .curriculum__toggle {
  background: var(--ink);
  color: var(--white);
}

.curriculum__step.is-open .curriculum__toggle svg { transform: rotate(180deg); }

.curriculum__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}

.curriculum__step.is-open .curriculum__body { grid-template-rows: 1fr; }

.curriculum__body-inner {
  overflow: hidden;
  min-height: 0;
}

.curriculum__body-content {
  padding: 4px 0 24px 52px;
}

.curriculum__desc {
  font-size: var(--fs-15);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 64ch;
}

@media (max-width: 575.98px) {
  .curriculum__head { gap: 14px; padding: 16px 0; }
  .curriculum__body-content { padding-left: 0; padding-top: 8px; }
  .curriculum__title { font-size: var(--fs-16); }
}

/* Format chip — თეორია / პრაქტიკა / შეფასება */
.curriculum__format {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.curriculum__format--practice {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.curriculum__format--exam {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}

/* Topics list — syllabus-style breakdown */
.curriculum__topics {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  display: flex;
  flex-direction: column;
}

.section--soft .curriculum__topics { background: var(--paper-2); }

.curriculum__topics-label {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.curriculum__topic {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  font-size: var(--fs-14);
  line-height: 1.5;
  border-bottom: 1px dashed var(--line-soft);
}

.curriculum__topic:last-child { border-bottom: 0; }

.curriculum__topic-time {
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.curriculum__topic-title { color: var(--ink); }

@media (max-width: 575.98px) {
  .curriculum__topics { padding: 14px 16px; }
  .curriculum__topic { grid-template-columns: 56px 1fr; gap: 10px; font-size: 13.5px; }
}


/* ============================================================
   Audience — "ვისთვისაა"
   ============================================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--dur-fast) var(--ease);
}

.audience-card:hover { border-color: var(--ink-3); }

.audience-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.audience-card__icon svg { width: 20px; height: 20px; }

.audience-card__title {
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.audience-card__desc {
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 1023.98px) {
  .audience-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Instructor
   ============================================================ */

.instructor {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: 32px;
}

.instructor__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--paper);
}

.instructor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor__name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}

.instructor__role {
  font-size: var(--fs-14);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.instructor__bio {
  font-size: var(--fs-15);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 60ch;
}

.instructor__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.instructor__stat-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.instructor__stat-label {
  font-size: var(--fs-12);
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 767.98px) {
  .instructor { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .instructor__photo { max-width: 200px; }
}


/* ============================================================
   FAQ accordion
   ============================================================ */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-top: 1px solid var(--border);
}

.faq__item:last-child { border-bottom: 1px solid var(--border); }

.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  transition: color var(--dur-fast) var(--ease);
}

.faq__btn:hover { color: var(--red); }

.faq__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
  color: var(--ink);
}

.faq__icon svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.faq__item.is-open .faq__icon {
  background: var(--ink);
  color: var(--white);
}

.faq__item.is-open .faq__icon svg { transform: rotate(45deg); }

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}

.faq__item.is-open .faq__body { grid-template-rows: 1fr; }

.faq__body-inner {
  overflow: hidden;
  min-height: 0;
}

.faq__answer {
  font-size: var(--fs-15);
  line-height: 1.65;
  color: var(--text-muted);
  padding: 0 48px 24px 0;
  max-width: 64ch;
}

@media (max-width: 767.98px) {
  .faq__btn { font-size: var(--fs-16); padding: 18px 0; }
}


/* ============================================================
   Lead form section (inline)
   ============================================================ */

.lead-section {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
}

.lead-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.lead-section__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: 16px;
}

.lead-section__lede {
  font-size: var(--fs-16);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 44ch;
}

.lead-section__highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-section__highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.82);
}

.lead-section__highlight svg {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
}

/* Form override for dark background */
.lead-section .form-input,
.lead-section .form-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.lead-section .form-input::placeholder,
.lead-section .form-textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

.lead-section .form-input:hover,
.lead-section .form-textarea:hover { border-color: rgba(255, 255, 255, 0.4); }

.lead-section .form-input:focus,
.lead-section .form-textarea:focus {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.lead-section .form-label { color: var(--white); }

.lead-section .form-check { color: rgba(255, 255, 255, 0.72); }

.lead-section .form-check__mark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.lead-section .form-check input:checked + .form-check__mark {
  background: var(--white);
  border-color: var(--white);
}

.lead-section .form-check input:checked + .form-check__mark::after {
  border-color: var(--ink);
}

.lead-section .form-check__label a { color: var(--white); }

.lead-section .form-actions__hint { color: rgba(255, 255, 255, 0.6); }

@media (max-width: 1023.98px) {
  .lead-section__grid { grid-template-columns: 1fr; gap: 40px; }
}


/* ============================================================
   Sticky CTA bar — appears after scrolling past hero
   ============================================================ */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease);
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.sticky-cta__info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.sticky-cta__title {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta__meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-13);
  color: var(--text-muted);
  white-space: nowrap;
}

.sticky-cta__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sticky-cta__meta-item svg { width: 12px; height: 12px; color: var(--text-faint); }

.sticky-cta__price {
  font-weight: 600;
  color: var(--ink);
}

.sticky-cta .btn { height: 40px; padding: 0 18px; flex-shrink: 0; }

@media (max-width: 767.98px) {
  .sticky-cta__meta { display: none; }
  .sticky-cta__title { font-size: var(--fs-13); }
  .sticky-cta .btn { padding: 0 14px; font-size: 12.5px; }
}
