/* =============================================================
   DentMove — page.css  (page & section components)
   ============================================================= */

/* ----------  HERO  ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: clamp(120px, 15vh, 170px); padding-bottom: clamp(44px, 6vw, 76px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 82% 45%, #1c1c1c 0%, var(--color-black) 58%); }
.hero__grid-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px); mask-image: radial-gradient(120% 120% at 50% 40%, #000 20%, transparent 78%); opacity: 0.8; }
.hero__inner { position: relative; width: 100%; color: var(--color-off-white); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 3vw, 60px); align-items: center; }
.hero__content { display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 34px); }
.hero__eyebrow { align-self: flex-start; color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.16); }
.hero__title { font-size: clamp(32px, 3.7vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; margin: 0; }
.hero__title em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--color-yellow); }
.hero__lead { max-width: 44ch; color: color-mix(in srgb, var(--color-white) 76%, transparent); }
.hero__actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.hero__tlink { color: #fff; }
.hero__meta { display: flex; gap: clamp(22px, 2.6vw, 46px); flex-wrap: wrap; margin-top: 6px; }
.hero__meta-item .num { font-size: clamp(24px, 2.6vw, 38px); display: block; color: var(--color-white); line-height: 1; }
.hero__meta-item span { font-size: 14px; color: var(--color-gray); }

/* interactive tooth */
.hero__visual { position: relative; display: grid; place-items: center; min-height: clamp(320px, 52vh, 620px); perspective: 1100px; cursor: grab; touch-action: none; }
.hero__visual:active { cursor: grabbing; }
.hero__tooth-glow { position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,212,0,0.32), rgba(255,212,0,0.06) 45%, transparent 68%); filter: blur(40px); animation: toothpulse 6s ease-in-out infinite; }
@keyframes toothpulse { 0%,100%{ transform: scale(1); opacity:.9 } 50%{ transform: scale(1.08); opacity:1 } }
.hero__tooth { position: relative; width: min(80%, 480px); height: auto; filter: drop-shadow(0 44px 60px rgba(0,0,0,0.55)); will-change: transform; transform-style: preserve-3d; -webkit-user-drag: none; user-select: none; }
.hero__tooth3d { position: relative; width: min(100%, 540px); aspect-ratio: 1 / 1; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5)); }
.hero__tooth3d canvas { display: block; }
.hero__tooth-hint { position: absolute; bottom: 4px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-gray); display: inline-flex; align-items: center; gap: 8px; opacity: 0.7; transition: opacity 0.3s ease; pointer-events: none; }
.hero__visual:hover .hero__tooth-hint { opacity: 0; }

@media (max-width: 900px){
  .hero { align-items: flex-end; }
  .hero__inner { grid-template-columns: 1fr; gap: clamp(20px,5vw,40px); }
  .hero__visual { min-height: 300px; order: -1; }
  .hero__tooth { width: min(56%, 280px); }
  .hero__tooth-hint { display: none; }
}

/* dark / graphite sections */
.section--dark { background: var(--color-black); color: var(--color-off-white); }
.section--dark .eyebrow, .section--graphite .eyebrow { color: color-mix(in srgb, var(--color-white) 62%, transparent); border-color: rgba(255,255,255,0.16); }
.section--dark .eyebrow::before, .section--graphite .eyebrow::before { background: var(--color-white); }
.section--dark .lead, .section--graphite .lead { color: color-mix(in srgb, var(--color-white) 72%, transparent); }
.section--graphite { background: var(--color-graphite); color: var(--color-off-white); }

/* section header */
.sec-head { display: block; margin-bottom: clamp(20px, 2vw, 32px); }
.sec-head__title { font-size: var(--step-h2); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
.sec-head__title em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--color-yellow-deep); }
.section--dark .sec-head__title em { color: var(--color-yellow); }
.sec-head__aside { color: color-mix(in srgb, currentColor 68%, transparent); max-width: 62ch; margin-top: 18px; }

/* intro / positioning split */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.intro__statement { font-size: clamp(20px, 2.1vw, 33px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.14; }
.intro__statement em { font-family: inherit; font-style: normal; font-weight: inherit; color: color-mix(in srgb, var(--color-black) 50%, transparent); }
.intro__aside { display: flex; flex-direction: column; gap: 22px; }
.intro__aside p { color: color-mix(in srgb, var(--color-black) 74%, transparent); }
@media (max-width: 900px){ .intro { grid-template-columns: 1fr; } }

/* value list (numbered editorial) */
.vlist { border-top: 1px solid var(--color-border); }
.vlist__row { display: grid; grid-template-columns: max-content 1.15fr 1.4fr; gap: clamp(20px, 2.4vw, 40px); padding-block: clamp(26px, 3vw, 42px); border-bottom: 1px solid var(--color-border); align-items: center; transition: background 0.4s var(--ease); }
.vlist__row:hover { background: rgba(255,212,0,0.07); }
.vlist__num { font-family: var(--font-display); font-size: clamp(17px, 1.5vw, 24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--color-yellow-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vlist__title { font-size: clamp(18px, 1.7vw, 25px); font-weight: 700; letter-spacing: -0.02em; }
.vlist__text { color: color-mix(in srgb, var(--color-black) 66%, transparent); }
.section--dark .vlist, .section--dark .vlist__row { border-color: var(--color-border-light); }
.section--dark .vlist__row:hover { background: rgba(255,212,0,0.06); }
.section--dark .vlist__text { color: color-mix(in srgb, var(--color-white) 64%, transparent); }
.section--dark .vlist__num { color: var(--color-yellow); }
@media (max-width: 760px){ .vlist__row { grid-template-columns: max-content 1fr; } .vlist__text { grid-column: 1 / -1; } }

/* feature split */
.fsplit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: stretch; }
.fsplit--rev .fsplit__media { order: 2; }
.fsplit__media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--color-gray-light); }
.fsplit__media img { position: absolute; inset: 0; width: 100%; height: 108%; object-fit: cover; }
.fsplit .fsplit__media--portrait { display: grid; place-items: end center; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.fsplit .fsplit__media--portrait img { position: relative; inset: auto; width: 100%; height: auto; max-height: 580px; object-fit: contain; object-position: center bottom; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0,0,0,.82) 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0,0,0,.82) 86%, transparent 100%); }
.fsplit__badge { position: absolute; left: 20px; bottom: 20px; z-index: 2; }
.fsplit__list { display: flex; flex-direction: column; margin-top: 26px; }
.fsplit__li { display: flex; gap: 16px; align-items: flex-start; padding-block: 16px; border-top: 1px solid var(--color-border); }
.fsplit__li:last-child { border-bottom: 1px solid var(--color-border); }
.section--dark .fsplit__li { border-color: var(--color-border-light); }
.fsplit__li svg { flex-shrink: 0; margin-top: 2px; }
/* desktop: media matches the height of the content column (no fixed ratio) */
@media (min-width: 901px){ .fsplit__media { aspect-ratio: auto !important; height: 100%; min-height: 100%; } }
@media (max-width: 900px){ .fsplit { grid-template-columns: 1fr; } .fsplit--rev .fsplit__media { order: 0; } }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border-light); border: 1px solid var(--color-border-light); }
.stats__cell { background: var(--color-black); padding: clamp(30px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.stats__num { font-size: clamp(30px, 3.8vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--color-white); }
.stats__num em { color: var(--color-yellow); font-style: normal; }
.stats__label { margin-top: 14px; color: var(--color-gray); font-size: 15px; max-width: 22ch; }
@media (max-width: 820px){ .stats { grid-template-columns: 1fr 1fr; } }

/* program / modules (horizontal scroll) */
.hscroll { overflow: hidden; }
.hscroll__track { display: flex; gap: 24px; padding-inline: var(--gutter); will-change: transform; }
.modcard { flex: 0 0 clamp(300px, 34vw, 460px); background: var(--color-graphite); color: var(--color-off-white); border-radius: var(--radius); padding: clamp(30px, 3vw, 46px); display: flex; flex-direction: column; min-height: clamp(360px, 42vw, 520px); border: 1px solid var(--color-border-light); transition: transform 0.5s var(--ease); }
.modcard:hover { transform: translateY(-8px); }
.modcard__num { font-size: 14px; font-weight: 700; color: var(--color-yellow); letter-spacing: 0.1em; }
.modcard__title { font-size: clamp(19px, 1.7vw, 25px); font-weight: 700; letter-spacing: -0.02em; margin-top: 16px; }
.modcard__text { color: var(--color-gray); margin-top: 12px; font-size: 16px; }
.modcard__tag { align-self: flex-start; margin-bottom: 20px; }
.hscroll__hint { display: flex; align-items: center; gap: 12px; color: var(--color-gray); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 26px; padding-inline: var(--gutter); }
/* ---------- pinned horizontal program ---------- */
.horizontal { position: relative; overflow: hidden; }
.horizontal__track { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 30px); height: 100vh; width: max-content; padding-left: var(--gutter); padding-right: 48px; }
.horizontal__intro { flex: 0 0 clamp(300px, 34vw, 520px); display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-right: 30px; }
.horizontal__title { font-family: var(--font-display); font-size: var(--step-h2); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
.horizontal__title em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--color-yellow); }
.horizontal__hint { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-gray); margin-top: 6px; }
.horizontal .panel.modcard { flex: 0 0 clamp(280px, 30vw, 420px); height: clamp(300px, 40vh, 400px); min-height: 0; justify-content: flex-start; }
@media (max-width: 900px){
  .horizontal { overflow-x: auto; overflow-y: hidden; height: auto; box-shadow: none; -webkit-overflow-scrolling: touch; }
  .horizontal__track { height: auto; width: max-content; padding-block: 64px; align-items: stretch; }
  .horizontal__intro { flex: 0 0 78vw; justify-content: flex-start; }
  .horizontal .panel.modcard { flex: 0 0 76vw; min-height: 340px; }
}

/* ---------- 3D char reveal + card tilt ---------- */
[data-hero-split], [data-split] { perspective: 900px; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.courses, .lect-grid, .pricing { perspective: 1400px; }
.course-card, .lect, .plan { transform-style: preserve-3d; }

/* lecturers */
.lect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
/* two lecturers — full-width cards, name + role overlaid on the photo */
.lect-grid--duo { grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 2.4vw, 44px); max-width: none; margin-inline: 0; }
.lect-grid--duo .lect { display: block; position: relative; border-radius: 26px; overflow: hidden; transition: box-shadow 0.55s var(--ease); will-change: transform; }
.lect-grid--duo .lect:hover { box-shadow: 0 40px 80px -38px rgba(11,11,11,0.4); }
.lect-grid--duo .lect__media { aspect-ratio: auto; height: clamp(380px, 36vw, 520px); border-radius: 26px; background: var(--color-graphite); }
.lect-grid--duo .lect__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(18,18,22,0.94) 0%, rgba(18,18,22,0.6) 24%, rgba(18,18,22,0) 50%); }
.lect-grid--duo .lect__media img { position: relative; z-index: 1; filter: brightness(0.66) saturate(0.92); transition: transform 0.8s var(--ease), filter 0.55s var(--ease); }
.lect-grid--duo .lect:hover .lect__media img { filter: brightness(1) saturate(1); transform: scale(1.04); }
.lect-grid--duo .lect__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 26px clamp(22px, 2vw, 32px) 28px; }
.lect-grid--duo .lect__name { margin: 0 0 14px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.28); color: #fff; font-size: clamp(20px, 1.6vw, 27px); font-weight: 700; letter-spacing: -0.02em; }
.lect-grid--duo .lect__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lect-grid--duo .lect__role { margin: 0; color: rgba(255,255,255,0.72); font-size: 15px; }
.lect-grid--duo .lect__mark { position: static; opacity: 1; transform: none; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--color-black); display: grid; place-items: center; transition: background 0.35s var(--ease), transform 0.35s var(--ease); }
.lect-grid--duo .lect:hover .lect__mark { background: var(--color-yellow); transform: translate(2px, -2px); }
@media (max-width: 640px){ .lect-grid--duo { grid-template-columns: 1fr; } }
.lect__media { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--color-gray-light); position: relative; }
.lect__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.8s var(--ease); }
.lect:hover .lect__media img { transform: scale(1.04); }
.lect__mark { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--color-yellow); display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: 0.4s var(--ease); }
.lect:hover .lect__mark { opacity: 1; transform: scale(1); }
.lect__name { font-size: clamp(17px, 1.4vw, 21px); font-weight: 700; letter-spacing: -0.02em; margin-top: 20px; }
.lect__role { color: var(--color-gray); font-size: 15px; margin-top: 4px; }
.section--dark .lect__name { color: var(--color-white); }
@media (max-width: 900px){ .lect-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .lect-grid { grid-template-columns: 1fr; } }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; background: var(--color-white); color: var(--color-black); transition: transform 0.5s var(--ease), box-shadow 0.5s ease; }
.plan__name { color: color-mix(in srgb, var(--color-black) 60%, transparent); }
.plan--featured .plan__name { color: color-mix(in srgb, var(--color-black) 58%, transparent); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -40px rgba(0,0,0,0.4); }
.plan--featured { background: var(--color-yellow); color: var(--color-black); border-color: var(--color-yellow); }
.plan--featured .plan__price { color: var(--color-black); }
.plan--featured .plan__price small { color: color-mix(in srgb, var(--color-black) 55%, transparent); }
.plan--featured .plan__tag { background: var(--color-black); color: var(--color-white); border-color: transparent; }
.plan--featured .plan__feat svg path { stroke: #0B0B0B; }
.plan--featured .btn--primary { background: var(--color-black); color: var(--color-white); }
.plan--featured .btn--primary:hover { background: #222; box-shadow: none; transform: translateY(-2px); }
.plan__tag { align-self: flex-start; margin-bottom: 24px; }
.plan__name { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.plan__price { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.04em; margin-top: 18px; line-height: 1; }
.plan__price small { font-size: 16px; font-weight: 600; color: var(--color-gray); letter-spacing: 0; }
.plan__desc { color: color-mix(in srgb, currentColor 64%, transparent); margin-top: 14px; }
.plan__feats { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; padding-top: 24px; border-top: 1px solid var(--color-border); }
.plan--featured .plan__feats { border-color: rgba(11,11,11,0.18); }
.plan__feat { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.plan__feat svg { flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
@media (max-width: 900px){ .pricing { grid-template-columns: 1fr; } }

/* reviews */
.review { background: var(--color-white); color: var(--color-black); border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(26px, 2.6vw, 40px); height: 100%; display: flex; flex-direction: column; gap: 20px; }
/* equal-height review slides */
[data-swiper-reviews] .swiper-wrapper { align-items: stretch; }
[data-swiper-reviews] .swiper-slide { height: auto; display: flex; }
.review__stars { color: var(--color-yellow-deep); letter-spacing: 2px; }
.review__text { font-size: 18px; line-height: 1.5; }
.review__who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.review__ava { width: 46px; height: 46px; border-radius: 50%; background: var(--color-yellow); display: grid; place-items: center; font-weight: 800; color: var(--color-black); }
.review__name { font-weight: 700; font-size: 15px; }
.review__meta { color: var(--color-gray); font-size: 13px; }

/* faq */
.faq { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 30px; text-align: left; padding-block: clamp(24px, 2.6vw, 36px); font-size: clamp(16px, 1.35vw, 20px); font-weight: 600; letter-spacing: -0.02em; }
.faq__icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--color-black); transition: transform 0.4s var(--ease); }
.faq__icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq__icon::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__body p { padding-bottom: clamp(24px, 2.6vw, 34px); max-width: 68ch; color: color-mix(in srgb, var(--color-black) 70%, transparent); }

/* cta band */
.cta { position: relative; background: var(--color-yellow); border-radius: var(--radius); padding: clamp(48px, 7vw, 110px) var(--gutter); text-align: center; overflow: hidden; }
.cta__title { font-size: var(--step-h2); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; color: var(--color-black); position: relative; z-index: 2; }
.cta__title em { font-family: inherit; font-style: normal; font-weight: inherit; }
.cta__lead { position: relative; z-index: 2; color: rgba(11,11,11,0.7); max-width: 46ch; margin: 20px auto 0; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; position: relative; z-index: 2; }
.cta__ghost { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(80px, 20vw, 280px); font-weight: 800; letter-spacing: -0.05em; color: rgba(11,11,11,0.05); z-index: 1; user-select: none; }

/* catalog */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filters__chip { padding: 11px 22px; border: 1px solid var(--color-border); border-radius: 100px; font-size: 14px; font-weight: 600; transition: 0.3s var(--ease); }
.filters__chip.is-active { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }
.filters__chip:hover:not(.is-active) { border-color: var(--color-black); }
.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.course-card { position: relative; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-white); color: var(--color-black); display: flex; flex-direction: column; transition: transform 0.5s var(--ease), box-shadow 0.5s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -50px rgba(0,0,0,0.45); }
.course-card__media { aspect-ratio: 16/10; background: var(--color-graphite); position: relative; overflow: hidden; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.05); }
.course-card__tag { position: absolute; top: 16px; left: 16px; }
.course-card__body { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-card__title { font-size: clamp(18px, 1.6vw, 23px); font-weight: 700; letter-spacing: -0.02em; }
.course-card__desc { color: color-mix(in srgb, var(--color-black) 66%, transparent); font-size: 15px; }
.course-card__meta { display: flex; gap: 20px; color: var(--color-gray); font-size: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--color-border); }
.course-card__foot { display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(24px,2.6vw,34px) clamp(24px,2.6vw,34px); }
.course-card__price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 760px){ .courses { grid-template-columns: 1fr; } }

/* blog */
.blog-section { padding-top: clamp(48px, 6vw, 88px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px,2.4vw,44px); }
.post { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 22px; row-gap: 16px; }
.post__media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; background: var(--color-gray-light); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__cat { grid-column: 1; grid-row: 2; align-self: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-yellow-deep); }
.post__title { grid-column: 1 / -1; grid-row: 3; font-size: clamp(17px,1.4vw,21px); font-weight: 700; letter-spacing: -0.02em; }
.post__meta { grid-column: 2; grid-row: 2; align-self: center; color: var(--color-gray); font-size: 14px; }
.post__button { grid-column: 1 / -1; grid-row: 5; position: relative; display: inline-flex; width: fit-content; margin-bottom: 12px; padding-bottom: 5px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.post__button::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.post__button > span { display: none; }
.post:hover .post__button::after { transform: scaleX(1); }
.post:active .post__button { transform: translateY(1px); }
.post:focus-visible { outline: 2px solid var(--color-yellow-deep); outline-offset: 6px; border-radius: 18px; }
.post--feature { grid-column: span 2; }
.post--feature .post__media { aspect-ratio: 16/9; }
@media (max-width: 900px){ .blog-grid { grid-template-columns: 1fr 1fr; } .post--feature { grid-column: span 2; } }
@media (max-width: 600px){ .blog-grid { grid-template-columns: 1fr; } .post--feature { grid-column: span 1; } }

/* page hero (inner) — dark, like the main hero */
.phero { padding-top: clamp(140px, 11vw, 176px); padding-bottom: clamp(44px, 5vw, 84px); position: relative; background: radial-gradient(120% 135% at 88% -12%, rgba(233,191,0,0.16), transparent 46%), #0d0d0d; color: var(--color-off-white); }
.phero__crumbs { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,0.5); font-size: 14px; margin-bottom: 26px; }
.phero__crumbs a { color: rgba(255,255,255,0.82); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px); -webkit-mask-image: radial-gradient(120% 120% at 50% 30%, #000 20%, transparent 78%); mask-image: radial-gradient(120% 120% at 50% 30%, #000 20%, transparent 78%); opacity: 0.8; }
.phero > .container { position: relative; z-index: 1; }

/* course hero — text left (wide), glass stat cards on the right */
.course-hero { display: grid; grid-template-columns: 1.55fr 0.45fr; gap: clamp(28px, 3.4vw, 60px); align-items: end; }
.course-hero__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; color: #fff; font-size: clamp(34px, 4.2vw, 64px); }
.course-hero__title em { font-style: normal; color: var(--color-yellow); }
.course-hero__lead { max-width: 58ch; margin-top: 26px; font-size: clamp(16px, 1.2vw, 19px); color: var(--color-off-white); }
.course-hero__stats { display: flex; flex-direction: column; gap: clamp(14px, 1.3vw, 20px); }
.cstat { background: rgba(255,255,255,0.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: clamp(18px, 1.6vw, 26px) clamp(20px, 1.8vw, 28px); }
.cstat__num { font-family: var(--font-display); display: block; font-size: clamp(28px, 2.8vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.cstat__label { font-size: 14px; color: var(--color-gray); margin-top: 6px; display: block; }
@media (max-width: 900px){
  .course-hero { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .course-hero__stats { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .cstat { flex: 1 1 140px; }
}
.phero__title { font-size: clamp(40px, 5vw, 78px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; color: #fff; }
.phero__title em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--color-yellow); }
.phero__lead { max-width: 54ch; margin-top: 26px; color: var(--color-off-white); }
/* split hero: text left, stats right */
.phero--split .phero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.phero--split .phero__lead { max-width: 46ch; }
.phero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; overflow: hidden; }
.phero__stat { background: #0d0d0d; padding: clamp(22px, 2.2vw, 34px) clamp(20px, 2vw, 30px); }
.phero__stat-num { font-family: var(--font-display); font-size: clamp(30px, 3vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.phero__stat-num em { color: var(--color-yellow); font-style: normal; }
.phero__stat-label { margin-top: 12px; color: var(--color-gray); font-size: 14px; line-height: 1.35; max-width: 20ch; }
@media (max-width: 960px){ .phero--split .phero__grid { grid-template-columns: 1fr; align-items: start; gap: clamp(30px, 5vw, 44px); } .phero--split .phero__lead { max-width: 54ch; } }
@media (max-width: 480px){ .phero__stats { grid-template-columns: 1fr 1fr; } }
/* hero visual (transparent cutout on the right) */
.phero__visual { display: grid; place-items: center; align-self: center; }
.phero__visual img { width: auto; max-width: 100%; height: auto; max-height: clamp(400px, 44vw, 560px); object-fit: contain; object-position: center; margin-inline: auto; transform: translateY(-6%); filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5)); }
@media (max-width: 960px){ .phero__visual img { max-height: 380px; } }
/* vertical stat list variant */
.phero__stats--list { display: block; grid-template-columns: none; background: none; border: none; border-radius: 0; overflow: visible; }
.phero__stats--list .phero__stat { background: none; display: flex; align-items: baseline; justify-content: space-between; gap: clamp(18px, 2vw, 32px); padding: clamp(18px, 2vw, 26px) 4px; border-top: 1px solid rgba(255,255,255,0.12); }
.phero__stats--list .phero__stat:first-child { border-top: none; padding-top: 0; }
.phero__stats--list .phero__stat-num { order: 2; flex: none; text-align: right; }
.phero__stats--list .phero__stat-label { order: 1; margin-top: 0; max-width: none; align-self: center; }
/* history timeline */
.timeline { margin-top: clamp(28px, 3.4vw, 52px); }
.timeline__item { display: grid; grid-template-columns: minmax(110px, 190px) 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(26px, 3vw, 44px) 0; border-top: 1px solid var(--color-border); transition: padding-left 0.4s var(--ease); }
.timeline__item:last-child { border-bottom: 1px solid var(--color-border); }
.timeline__item:hover { padding-left: 8px; }
.timeline__year { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--color-black); display: flex; align-items: center; gap: 14px; }
.timeline__year::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--color-yellow); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-yellow) 22%, transparent); }
.timeline__title { font-size: clamp(19px, 1.6vw, 25px); font-weight: 700; letter-spacing: -0.02em; }
.timeline__text { margin-top: 12px; color: color-mix(in srgb, var(--color-black) 62%, transparent); max-width: 62ch; }
@media (max-width: 640px){ .timeline__item { grid-template-columns: 1fr; gap: 14px; } }
/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chip { padding: 11px 20px; border: 1px solid var(--color-border); border-radius: 100px; font-size: 15px; font-weight: 500; color: var(--color-black); background: var(--color-white); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.chip:hover { border-color: var(--color-yellow); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(0,0,0,0.35); }
/* frameless cutout image floating on the page background */
.fsplit__media--cutout { background: none !important; background-image: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible; display: grid; place-items: center; align-self: center; }
.fsplit__media--cutout::before, .fsplit__media--cutout::after { display: none !important; }
.fsplit__media--cutout img { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; max-height: 520px; object-fit: contain !important; scale: 1 !important; }
@media (min-width: 901px){ .fsplit__media--cutout { aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; } }
.fsplit__col { display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3vw, 34px); }
.fsplit__col .chips { margin-top: 0; justify-content: center; }
/* lecturer rows: photo left + graphite panel with name bubble */
.lecturers { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 48px); margin-top: clamp(28px, 3.4vw, 52px); }
.lrow { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(16px, 1.8vw, 26px); align-items: stretch; }
.lrow__media { border-radius: 26px; overflow: hidden; background: var(--color-gray-light); min-height: 340px; }
.lrow__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.8s var(--ease); }
.lrow:hover .lrow__media img { transform: scale(1.04); }
/* mirror every second row: photo on the right */
.lrow:nth-child(even) { grid-template-columns: 1.15fr 0.85fr; }
.lrow:nth-child(even) .lrow__media { order: 2; }
.lrow__panel { background: var(--color-graphite); color: var(--color-off-white); border-radius: 26px; padding: clamp(28px, 3vw, 54px); display: flex; flex-direction: column; }
.lrow__eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; color: var(--color-gray); }
.lrow__bubble { position: relative; align-self: flex-start; margin-top: clamp(22px, 2.6vw, 38px); max-width: 100%; background: var(--color-white); color: var(--color-black); border-radius: 18px; padding: clamp(18px, 1.8vw, 26px) clamp(24px, 2.6vw, 36px); box-shadow: 7px 7px 0 var(--color-yellow); }
.lrow__name { font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.lrow__role { margin-top: 8px; color: color-mix(in srgb, var(--color-black) 60%, transparent); font-size: clamp(14px, 1.1vw, 16px); font-weight: 600; }
.lrow__list { margin-top: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.lrow__list li { position: relative; padding-left: 26px; color: var(--color-off-white); font-size: 15.5px; line-height: 1.5; }
.lrow__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-yellow); }
@media (max-width: 820px){ .lrow { grid-template-columns: 1fr; } .lrow__media { aspect-ratio: 16/11; } }

/* article */
.article-container { max-width: var(--maxw); }
.article-hero { padding-top: clamp(140px, 11vw, 176px); padding-bottom: clamp(42px, 5vw, 68px); }
.article-hero__title { margin-top: 16px; font-size: clamp(42px, 5.5vw, 78px); line-height: .94; text-wrap: balance; }
.article-hero__line { display: block; }
.article-hero__line--accent { color: var(--color-yellow); }
.article-section { padding-top: clamp(48px, 6vw, 82px); }
.article-cover { width: 100%; margin: 0 0 clamp(48px, 6vw, 76px); }
.article-cover__media { aspect-ratio: 2.25 / 1; overflow: hidden; border-radius: 18px; background: var(--color-gray-light); }
.article-cover__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.article { width: 100%; margin-inline: auto; }
.article__lead p { margin-block: 24px; }
.article p { margin-block: 24px; font-size: var(--step-lead); line-height: 1.62; color: color-mix(in srgb, var(--color-black) 82%, transparent); }
.article h2 { font-size: clamp(22px, 2.2vw, 31px); margin-top: 58px; letter-spacing: -0.03em; }
.article h3 { font-size: clamp(18px, 1.6vw, 23px); margin-top: 38px; }
.article ul { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.article ul li { position: relative; padding-left: 28px; font-size: 18px; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 2px; background: var(--color-yellow-deep); }
.article blockquote { margin: 44px 0; padding-left: 30px; border-left: 3px solid var(--color-yellow); font-family: var(--font-serif); font-style: normal; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.3; }
.article figure { margin: 44px 0; }
.article figure img { border-radius: var(--radius); }
.article figcaption { color: var(--color-gray); font-size: 14px; margin-top: 12px; }
.related-articles { width: 100%; margin-top: clamp(44px, 6vw, 76px); padding-top: clamp(36px, 4vw, 54px); border-top: 1px solid var(--color-border); }
.related-articles__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.related-articles__all { min-width: 220px; }
.related-articles__title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -.045em; }
.related-articles__grid { align-items: stretch; }
@media (max-width: 600px) {
  .article-cover__media { aspect-ratio: 4 / 3; border-radius: 14px; }
  .related-articles__head { align-items: flex-start; flex-direction: column; }
}

/* swiper pagination dots (reviews) — outside the swiper so nothing clips them */
.reviews-pagination { position: static; display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 34px; padding: 6px 0; overflow: visible; }
.reviews-pagination .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0; background: rgba(255,255,255,0.3); opacity: 1; border-radius: 50%; transition: background 0.3s ease, transform 0.3s ease; }
.reviews-pagination .swiper-pagination-bullet-active { background: var(--color-yellow); transform: scale(1.3); }

/* lead-form popup modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10,10,12,0.62); backdrop-filter: blur(5px); }
.modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 460px; animation: modalIn 0.35s var(--ease); }
.modal__dialog .leadform__card { box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6); }
.modal__close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 42px; height: 42px; border: none; border-radius: 50%; background: var(--color-white); color: var(--color-black); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.45); transition: transform 0.3s var(--ease), background 0.3s var(--ease); }
.modal__close:hover { background: var(--color-yellow); transform: rotate(90deg); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px){ .modal__close { top: 8px; right: 8px; } }

/* "choose format" popup */
.modal__dialog--choose { max-width: 540px; }
.choose { background: var(--color-graphite); color: var(--color-off-white); border-radius: 26px; padding: clamp(28px, 3vw, 46px); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6); }
.choose .eyebrow { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.16); }
.choose__title { font-family: var(--font-display); font-size: clamp(23px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 16px 0 26px; color: #fff; }
.choose__options { display: grid; gap: 14px; }
.choose__opt { display: flex; flex-direction: column; gap: 5px; position: relative; padding: 22px 58px 22px 24px; border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; background: rgba(255,255,255,0.04); transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.choose__opt:hover { background: var(--color-yellow); border-color: var(--color-yellow); transform: translateY(-2px); }
.choose__opt-title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.choose__opt-desc { font-size: 14px; color: rgba(255,255,255,0.6); }
.choose__opt:hover .choose__opt-title, .choose__opt:hover .choose__opt-desc { color: var(--color-black); }
.choose__arrow { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--color-yellow); color: var(--color-black); display: grid; place-items: center; font-size: 18px; transition: background 0.3s var(--ease); }
.choose__opt:hover .choose__arrow { background: var(--color-black); color: var(--color-yellow); }

/* fsplit media shown as a plain photo (no card / watermark / badge) */
.fsplit__media--photo { background: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible; }
.fsplit__media--photo::before, .fsplit__media--photo::after { display: none !important; }
.fsplit__media--photo img { position: relative; inset: auto; width: 100%; height: 100%; object-fit: cover; }
/* enlarge the plain product photo (chair) — scale composes with GSAP's parallax transform */
.fsplit__media--photo:not(.fsplit__media--blend) img { scale: 1.22; }
.fsplit__media--course { translate: 0 clamp(18px, 2.4vw, 34px); }
/* fade the photo edges so it blends into a dark section seamlessly */
.fsplit__media--blend { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%); mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%); }
.fsplit__media--blend img { scale: 1.1; transform-origin: center right; }
/* on mobile fade the sides as well, so the photo melts into the dark background */
@media (max-width: 900px){
  .fsplit__media--blend {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

/* events gallery carousel — small square photos */
.evt-gallery { overflow: hidden; }
.evt-photo { aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; background: var(--color-graphite); }
.evt-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-pagination { position: static; display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }
.gallery-pagination .swiper-pagination-bullet { width: 9px; height: 9px; margin: 0; background: rgba(11,11,11,0.22); opacity: 1; border-radius: 50%; transition: background 0.3s ease, transform 0.3s ease; }
.gallery-pagination .swiper-pagination-bullet-active { background: var(--color-yellow-deep); transform: scale(1.3); }

/* events schedule table */
.evt-table { border-top: 1px solid var(--color-border); }
.evt-row { display: grid; grid-template-columns: 96px 140px minmax(0,1fr) 130px auto; gap: clamp(16px, 2vw, 32px); align-items: center; padding: clamp(18px, 2vw, 26px) 10px; border-bottom: 1px solid var(--color-border); transition: background 0.35s var(--ease); }
.evt-row--head { padding-block: 14px; }
.evt-row--head span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-gray); }
.evt-row:not(.evt-row--head):hover { background: rgba(255,212,0,0.07); }
.evt-date { font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.evt-city { font-weight: 600; }
.evt-name { font-size: clamp(16px, 1.3vw, 19px); font-weight: 700; letter-spacing: -0.02em; }
.evt-badge { display: inline-flex; padding: 7px 15px; border-radius: 100px; font-size: 13px; font-weight: 600; border: 1px solid var(--color-border); }
.evt-badge--online { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-black); }
.evt-cta { justify-self: end; }
.evt-reg { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 100px; background: var(--color-black); color: var(--color-white); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.evt-reg:hover { background: var(--color-yellow); color: var(--color-black); transform: translateY(-2px); }
@media (max-width: 860px){
  .evt-row--head { display: none; }
  .evt-row { grid-template-columns: auto 1fr; gap: 6px 16px; padding: 22px 6px; }
  .evt-date { grid-column: 1; grid-row: 1; }
  .evt-city { grid-column: 2; grid-row: 1; justify-self: end; color: var(--color-gray); }
  .evt-name { grid-column: 1 / -1; grid-row: 2; }
  .evt-row > span:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .evt-cta { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: 4px; }
}

/* product spec strip (course page) */
.specs { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--color-border); border-radius: 22px; overflow: hidden; }
.spec { padding: clamp(20px, 2.2vw, 34px); border-right: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 10px; }
.spec:last-child { border-right: none; }
.spec__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-gray); }
.spec__value { font-family: var(--font-display); font-size: clamp(20px, 2vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
@media (max-width: 820px){
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
  .spec:nth-child(2n) { border-right: none; }
}

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.field label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gray); }
.field input, .field textarea, .field select { padding: 16px 18px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-white); font: inherit; font-size: 16px; transition: border-color 0.3s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-black); }
.contact__info { display: flex; flex-direction: column; gap: 28px; }
.contact__item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gray); margin-bottom: 8px; }
.contact__item a, .contact__item p { font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 900px){ .contact { grid-template-columns: 1fr; } }

/* ---------- lead form panel ---------- */
.leadform { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 80px); align-items: center; background: var(--color-graphite); color: var(--color-off-white); border-radius: clamp(24px, 2.6vw, 40px); padding: clamp(32px, 4.5vw, 76px); }
.leadform__eyebrow { color: var(--color-yellow); }
.leadform__title { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin: 22px 0 30px; color: var(--color-white); }
.leadform__title em { color: var(--color-yellow); font-style: normal; }
.leadform__list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.leadform__list li { display: flex; align-items: center; gap: 14px; font-size: clamp(15px, 1.15vw, 18px); color: color-mix(in srgb, var(--color-off-white) 88%, transparent); }
.leadform__check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--color-yellow); color: var(--color-black); display: grid; place-items: center; }

.leadform__card { background: var(--color-white); color: var(--color-black); border-radius: clamp(18px, 1.8vw, 26px); padding: clamp(24px, 2.4vw, 38px); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.5); }
.leadform__card .field { margin-bottom: 18px; gap: 8px; }
.leadform__card .field label { text-transform: none; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--color-black); }
.leadform__card .field label b { color: #E1483B; font-weight: 700; }
.leadform__card .field input { padding: 15px 18px; border: 1px solid var(--color-border); border-radius: 12px; background: #F4F5F7; font-size: 16px; transition: border-color 0.3s ease, background 0.3s ease; }
.leadform__card .field input:focus { outline: none; border-color: var(--color-yellow-deep); background: var(--color-white); box-shadow: 0 0 0 3px rgba(233,191,0,0.18); }
.phone { display: flex; align-items: stretch; gap: 10px; }
.phone__cc { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--color-border); border-radius: 12px; background: #F4F5F7; font-size: 16px; font-weight: 600; white-space: nowrap; }
.phone input { flex: 1 1 auto; min-width: 0; }
.leadform__submit { width: 100%; justify-content: center; margin-top: 6px; }
.leadform__fine { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--color-gray); }
.leadform__fine a { color: var(--color-yellow-deep); text-decoration: underline; text-underline-offset: 2px; }
.leadform__ok { display: none; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(233,191,0,0.12); color: var(--color-yellow-deep); font-weight: 600; font-size: 15px; }
@media (max-width: 900px){ .leadform { grid-template-columns: 1fr; align-items: start; } }
/* leadform: style select + textarea like inputs, plus quick-contact meta */
.leadform__card .field select, .leadform__card .field textarea { padding: 15px 18px; border: 1px solid var(--color-border); border-radius: 12px; background: #F4F5F7; font-size: 16px; font-family: inherit; color: var(--color-black); width: 100%; transition: border-color 0.3s ease, background 0.3s ease; }
.leadform__card .field select:focus, .leadform__card .field textarea:focus { outline: none; border-color: var(--color-yellow-deep); background: var(--color-white); box-shadow: 0 0 0 3px rgba(233,191,0,0.18); }
.leadform__card .field textarea { resize: vertical; min-height: 84px; }
.leadform__meta { margin-top: clamp(26px, 3vw, 40px); padding-top: clamp(22px, 2.4vw, 30px); border-top: 1px solid var(--color-border-light); display: grid; gap: 16px; }
.leadform__meta-item { display: flex; flex-direction: column; gap: 3px; }
.leadform__meta-item span { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gray); }
.leadform__meta-item a, .leadform__meta-item p { font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; color: var(--color-off-white); }
.leadform__meta-item a:hover { color: var(--color-yellow); }

/* wider form variant (contacts page) */
.leadform--wide { grid-template-columns: 0.78fr 1.22fr; align-items: start; }
.leadform--wide .leadform__title { font-size: clamp(26px, 2.3vw, 38px); }
.leadform--wide .leadform__card { max-width: 760px; margin-left: auto; width: 100%; }
@media (max-width: 900px){ .leadform--wide { grid-template-columns: 1fr; } }

/* contact cards */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 24px); align-items: stretch; }
.ccard { height: 100%; }
.ccard { display: flex; align-items: flex-start; gap: 18px; padding: clamp(24px, 2.4vw, 32px); background: var(--color-white); border: 1px solid var(--color-border); border-radius: 20px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
a.ccard:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--color-yellow) 60%, var(--color-border)); box-shadow: 0 30px 60px -40px rgba(0,0,0,0.4); }
.ccard__ico { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--color-yellow); color: var(--color-black); }
.ccard__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ccard__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gray); }
.ccard__value { font-size: clamp(16px, 1.3vw, 19px); font-weight: 700; letter-spacing: -0.01em; color: var(--color-black); word-break: break-word; }
.ccard__hint { font-size: 14px; color: color-mix(in srgb, var(--color-black) 55%, transparent); }
.ccard__arrow { margin-left: auto; flex: 0 0 auto; color: var(--color-black); transition: transform 0.4s var(--ease); }
a.ccard:hover .ccard__arrow { transform: translate(3px, -3px); }
.ccard__socials { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 2px; }
.ccard__socials a { font-size: 16px; font-weight: 600; color: var(--color-black); position: relative; }
.ccard__socials a:hover { color: var(--color-yellow-deep); }
@media (max-width: 820px){ .ccards { grid-template-columns: 1fr; } }

/* map block */
.mapblock { position: relative; border-radius: clamp(20px, 2.4vw, 32px); overflow: hidden; border: 1px solid var(--color-border); min-height: 460px; display: grid; }
.mapblock__frame { width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(0.3) contrast(1.05); }
.mapblock__card { position: absolute; top: clamp(18px, 2vw, 30px); left: clamp(18px, 2vw, 30px); max-width: min(380px, calc(100% - 36px)); background: var(--color-graphite); color: var(--color-off-white); border-radius: 20px; padding: clamp(24px, 2.4vw, 34px); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6); }
.mapblock__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 12px; color: var(--color-white); }
.mapblock__text { color: color-mix(in srgb, var(--color-off-white) 82%, transparent); font-size: 15.5px; line-height: 1.55; margin-bottom: 22px; }
@media (max-width: 620px){ .mapblock__card { position: static; max-width: none; border-radius: 0; } .mapblock { display: block; } }

/* logo lockup fallback (until real logo files added) */
.logo-lockup { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; line-height: 1; }
.logo-lockup__mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-lockup__mark path { transition: fill 0.3s ease; }
.logo-lockup em { font-weight: 800; font-style: normal; }
.header--solid .logo-lockup { color: var(--color-black); }
.header--solid .logo-lockup .logo-lockup__mark .m-white { fill: var(--color-black); }

/* misc */
.divider { height: 1px; background: var(--color-border); }
.section--dark .divider { background: var(--color-border-light); }
.center { text-align: center; }
.mt-lg { margin-top: clamp(40px, 5vw, 70px); }
.spanfull { grid-column: 1 / -1; }
.maxw-title { max-width: 16ch; }

/* =============================================================
   WOW LAYER — floating glass nav, grain, orbs, double-bezel,
   button-in-button, blur reveals, haptic hovers
   ============================================================= */
:root { --spring: cubic-bezier(0.32, 0.72, 0, 1); }

/* display font on numeric / big display elements */
.stats__num, .plan__price, .hero__meta-item .num, .num, .footer__mega, .cta__ghost, .marquee__item { font-family: var(--font-display); }

/* ---------- film grain (fixed, GPU-cheap) ---------- */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-3%,2%)} 100%{transform:translate(2%,-2%)} }

/* ---------- floating glass island nav ---------- */
.header { padding-block: 18px; padding-inline: var(--gutter); }
.header__inner {
  max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto; padding: 11px 12px 11px 26px;
  border-radius: 100px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(11,11,11,0.5); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 50px -30px rgba(0,0,0,0.6);
  transition: background 0.5s var(--spring), border-color 0.5s var(--spring), box-shadow 0.5s var(--spring), transform 0.5s var(--spring);
}
/* nav stays a dark glass island in all states (white logo always readable) */
.header--solid { background: none; backdrop-filter: none; border-bottom: none; }
.header--solid .header__inner {
  background: rgba(11,11,11,0.72); border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 26px 55px -32px rgba(0,0,0,0.7);
}
.nav__link { color: color-mix(in srgb, var(--color-off-white) 82%, transparent); }
.nav__link:hover { color: #fff; }
.burger { border-color: rgba(255,255,255,0.22); }
.burger span { background: #fff; }
.site-logo { height: 100%; width: auto; display: block; }
.header .header__actions .btn { --pad-y: 13px; --pad-x: 24px; }
@media (max-width: 1024px){ .header__inner { padding-right: 12px; } .header__logo { height: 34px; } }

/* ---------- button-in-button trailing icon ---------- */
.btn .arrow {
  width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  background: color-mix(in srgb, currentColor 16%, transparent);
  font-size: 13px; line-height: 1; transition: transform 0.5s var(--spring), background 0.4s ease;
}
.btn:hover .arrow { transform: translate(3px, -3px) scale(1.06); }
.btn:active { transform: scale(0.975); }
.btn__label { gap: 12px; }

/* magnetic buttons get spring feel */
[data-magnetic] { transition: transform 0.5s var(--spring); }

/* ---------- hero glowing orbs ---------- */
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: float 14s var(--spring) infinite alternate;
}
.hero__bg::before { width: 44vw; height: 44vw; top: -12%; right: -6%; background: radial-gradient(circle, rgba(255,212,0,0.5), transparent 65%); }
.hero__bg::after { width: 34vw; height: 34vw; bottom: -14%; left: -8%; background: radial-gradient(circle, rgba(255,212,0,0.18), transparent 65%); animation-delay: -6s; }
@keyframes float { to { transform: translate(4%, 6%) scale(1.12); } }

/* ---------- double-bezel machined cards ---------- */
.modcard, .plan, .course-card, .review, .fsplit__media, .post__media, .lect__media {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 34px 70px -46px rgba(0,0,0,0.55);
}
.plan, .course-card, .review { border-radius: 20px; }
.plan { box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 34px 70px -48px rgba(0,0,0,0.35); }
.plan--featured { box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 40px 80px -44px rgba(0,0,0,0.6); }
.modcard { border-radius: 22px; }
.fsplit__media, .post__media, .lect__media, .course-card__media { border-radius: 18px; }
.course-card__media { border-radius: 0; }
.plan:hover, .course-card:hover, .modcard:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 50px 90px -40px rgba(0,0,0,0.6); }

/* ---------- branded SVG covers (behind photos; visible until real photo added) ---------- */
.fsplit__media, .course-card__media, .lect__media, .post__media {
  background-color: var(--color-graphite); background-size: cover; background-position: center; background-repeat: no-repeat;
}
.fsplit__media { background-image: url("../images/cover-1.svg"); }
.fsplit--rev .fsplit__media { background-image: url("../images/cover-2.svg"); }
/* lecturers / galleries */
.lect__media { background-image: url("../images/cover-6.svg"); }
.lect:nth-of-type(3n+2) .lect__media { background-image: url("../images/cover-2.svg"); }
.lect:nth-of-type(3n+3) .lect__media { background-image: url("../images/cover-5.svg"); }
.lect-grid > .lect__media:nth-of-type(2) { background-image: url("../images/cover-3.svg"); }
.lect-grid > .lect__media:nth-of-type(3) { background-image: url("../images/cover-4.svg"); }
/* blog posts */
.post:nth-of-type(6n+1) .post__media { background-image: url("../images/cover-1.svg"); }
.post:nth-of-type(6n+2) .post__media { background-image: url("../images/cover-3.svg"); }
.post:nth-of-type(6n+3) .post__media { background-image: url("../images/cover-5.svg"); }
.post:nth-of-type(6n+4) .post__media { background-image: url("../images/cover-2.svg"); }
.post:nth-of-type(6n+5) .post__media { background-image: url("../images/cover-4.svg"); }
.post:nth-of-type(6n+6) .post__media { background-image: url("../images/cover-6.svg"); }
/* course cards */
.course-card:nth-of-type(4n+1) .course-card__media { background-image: url("../images/cover-1.svg"); }
.course-card:nth-of-type(4n+2) .course-card__media { background-image: url("../images/cover-3.svg"); }
.course-card:nth-of-type(4n+3) .course-card__media { background-image: url("../images/cover-4.svg"); }
.course-card:nth-of-type(4n+4) .course-card__media { background-image: url("../images/cover-5.svg"); }
/* real <img> covers the SVG when it loads; hidden on error to reveal cover */
.fsplit__media img, .course-card__media img, .lect__media img, .post__media img { position: relative; z-index: 1; }

/* ---------- blur-in reveal ---------- */
.reveal { filter: blur(10px); transition: opacity 0.9s var(--spring), transform 0.9s var(--spring), filter 0.9s var(--spring); }
.reveal.is-in { filter: blur(0); }

/* ---------- eyebrow pill upgrade ---------- */
.eyebrow { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--color-border); }
.eyebrow::before { display: none; }
.eyebrow--dot::before { display: inline-block; content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section--dark .eyebrow, .hero .eyebrow { border-color: rgba(255,255,255,0.16); }
.hero .eyebrow { color: rgba(255,255,255,0.75); }

/* ---------- section number watermark accents ---------- */
.vlist__row { position: relative; }
.vlist__row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--color-yellow); transition: width 0.6s var(--spring); }
.vlist__row:hover::after { width: 100%; }

/* ---------- custom cursor dot (pointer:fine) ---------- */
@media (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-magnetic] { cursor: none; }
  .cursor { position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--color-yellow); pointer-events: none; z-index: 200; transform: translate(-50%,-50%); mix-blend-mode: difference; transition: width 0.3s var(--spring), height 0.3s var(--spring), background 0.3s ease; }
  .cursor--ring { width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,212,0,0.6); z-index: 199; transition: transform 0.18s ease-out, width 0.3s var(--spring), height 0.3s var(--spring); }
  .cursor.is-hover { width: 0; height: 0; }
  .cursor--ring.is-hover { width: 64px; height: 64px; background: rgba(255,212,0,0.1); border-color: transparent; }
}

/* reduced motion: kill grain + orbs */
@media (prefers-reduced-motion: reduce) {
  body::after, .hero__bg::before, .hero__bg::after { animation: none; }
  .reveal { filter: none; }
}

/* =============================================================
   HOMEPAGE — for-whom cards + process steps
   ============================================================= */
.icard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; perspective: 1400px; }
.icard { border: 1px solid var(--color-border); border-radius: 20px; padding: clamp(26px, 2.6vw, 38px); background: var(--color-white); color: var(--color-black); display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 34px 70px -50px rgba(0,0,0,0.3); transition: transform 0.5s var(--ease), box-shadow 0.5s ease; }
.icard:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 44px 80px -44px rgba(0,0,0,0.4); }
.icard__num { font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; color: var(--color-yellow-deep); letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.icard__title { font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.02em; }
.icard__text { color: color-mix(in srgb, var(--color-black) 66%, transparent); font-size: 15px; }
@media (max-width: 820px){ .icard-grid { grid-template-columns: 1fr; } .icard { min-height: 0; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 40px); border-top: 1px solid var(--color-border); }
.section--dark .steps { border-color: var(--color-border-light); }
.step-col { display: flex; flex-direction: column; gap: 12px; position: relative; padding-top: clamp(26px, 3vw, 40px); }
.step-col::before { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 3px; background: var(--color-yellow); }
.step-col__num { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--color-gray); }
.step-col__title { font-size: clamp(19px, 1.7vw, 25px); font-weight: 700; letter-spacing: -0.02em; }
.step-col__text { color: color-mix(in srgb, currentColor 66%, transparent); font-size: 15px; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr 1fr; gap: 30px 24px; } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   MOBILE PASS — overflow fixes & small-screen polish
   ========================================================================== */

/* no accidental horizontal scroll; `clip` (not hidden) keeps ScrollTrigger pinning working */
html, body { overflow-x: clip; }

@media (max-width: 900px) {
  /* grid/flex children must be allowed to shrink below their min-content */
  .leadform, .leadform > *, .fsplit, .fsplit > *, .lrow, .lrow > *,
  .phero__grid, .phero__grid > * { min-width: 0; }

  .leadform { padding: clamp(24px, 6vw, 44px); }
  .leadform__card, .leadform--wide .leadform__card { max-width: none; width: 100%; margin-left: 0; }
  .leadform__title, .leadform--wide .leadform__title { font-size: clamp(26px, 6.6vw, 38px); }

  /* phone field: country code must not force the row wider than the card */
  .phone { gap: 8px; }
  .phone__cc { padding: 0 12px; font-size: 15px; }
  .phone input { min-width: 0; }
}

@media (max-width: 620px) {
  /* scaled cover photos were bleeding out of their frame */
  .fsplit__media--photo:not(.fsplit__media--cutout) { overflow: hidden; }
  .fsplit__media--photo:not(.fsplit__media--blend) img { scale: 1.04; }

  /* forms & inputs: 16px min avoids iOS zoom-on-focus */
  .field input, .field select, .field textarea,
  .leadform__card .field input, .leadform__card .field select, .leadform__card .field textarea { font-size: 16px; }

  /* comfortable tap targets */
  .btn { min-height: 48px; }
  .chip { padding: 10px 16px; }

  /* lecturer rows read better stacked and tighter */
  .lrow__panel { padding: clamp(22px, 6vw, 30px); }
  .lrow__bubble { padding: 16px 20px; box-shadow: 5px 5px 0 var(--color-yellow); }
  .lrow__media { min-height: 0; aspect-ratio: 4/3; }

  /* contact cards */
  .ccard { padding: 20px; gap: 14px; }
  .ccard__value { font-size: 17px; }

  /* map */
  .mapblock, .mapblock__frame { min-height: 320px; }
}

@media (max-width: 820px) {
  /* the mirrored-row rule outranks the plain .lrow stack rule, so reset it explicitly */
  .lrow, .lrow:nth-child(even) { grid-template-columns: 1fr; }
  .lrow:nth-child(even) .lrow__media { order: 0; }
}

@media (max-width: 620px) {
  /* hero CTAs share one row: shrink the big button so the text link fits beside it */
  .hero__actions { gap: 12px; flex-wrap: nowrap; }
  .hero__actions .btn--lg { --pad-y: 12px; --pad-x: 16px; font-size: 11.5px; min-height: 42px; }
  .hero__actions .btn__label { white-space: nowrap; gap: 8px; }
  .hero__actions .btn .arrow { display: none; }
  .hero__tlink { font-size: 13.5px; white-space: nowrap; }
}

/* touch devices have no hover, so reveal the underline that hover would have shown */
@media (hover: none), (max-width: 620px) {
  .tlink::after { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 620px) {
  /* clamp() bottomed out at 80px, so blocks sat ~160px apart on phones */
  .section { padding-block: 48px; }
  .sec-head { margin-bottom: 18px; }
  .phero { padding-top: 112px; padding-bottom: 36px; }
  .footer { padding-block: 56px 32px; }
  .footer__top { padding-bottom: 40px; }
  .footer__cols { padding-block: 36px; gap: 28px; }
}

/* ---------- card grid -> mobile slider (one full card, no peek, dots below) ---------- */
.cards-swiper { position: relative; }
.cards-swiper .swiper-pagination { display: none; }
/* desktop: Swiper is never initialised here, so the wrapper stays a plain grid */
@media (min-width: 721px) {
  .cards-swiper .swiper-wrapper { display: grid; transform: none !important; }
}
@media (max-width: 720px) {
  /* clip the track, otherwise the next slide peeks past the container edge.
     Swiper sizes slides with offsetWidth (whole px) while the real container
     width is fractional, so ~0.5px of the neighbour can show through — the
     1px inset swallows that sliver on any device pixel ratio. */
  .cards-swiper { overflow: hidden; clip-path: inset(0 1px); }
  /* let the track grow to the tallest card so slides never overlap the dots.
     gap must be 0: .icard-grid's gap also applies to flex and Swiper positions
     slides assuming spaceBetween:0, which shifted every slide after the first */
  .cards-swiper .swiper-wrapper { display: flex; align-items: stretch; height: auto; gap: 0; }
  .cards-swiper .swiper-slide { height: auto; }
  .cards-swiper .icard { box-shadow: none; }
  .cards-swiper .swiper-pagination { display: flex; justify-content: center; gap: 8px; position: static; margin-top: 22px; }
  .cards-swiper .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; background: var(--color-black); opacity: 0.2; transition: opacity 0.3s ease, width 0.3s ease; }
  .cards-swiper .swiper-pagination-bullet-active { opacity: 1; width: 24px; border-radius: 4px; background: var(--color-yellow-deep); }
  .section--dark .cards-swiper .swiper-pagination-bullet,
  .section--graphite .cards-swiper .swiper-pagination-bullet { background: #fff; }
  /* tighter gap between the section heading and the cards */
  .sec-head { margin-bottom: 14px; }
}

/* 6.5vw gutters produce a fractional container width (e.g. 339.65px at 390px),
   while Swiper sizes slides in whole pixels — the 0.35px difference clipped the
   active card's rounded edge and looked like the next slide peeking. */
@media (max-width: 720px) {
  :root { --gutter: 24px; }
}

@media (max-width: 720px) {
  /* same sub-pixel sliver fix for the other one-per-view sliders */
  [data-swiper-reviews], [data-swiper-gallery], [data-swiper-mobile] { clip-path: inset(0 1px); }
}

/* ---------- "Програма у русі": pinned horizontal on desktop, slider on mobile ---------- */
/* desktop keeps the cards as direct flex children of the pinned track */
@media (min-width: 721px) {
  .horizontal__cards, .horizontal__cards > .swiper-wrapper,
  .horizontal__cards > .swiper-wrapper > .swiper-slide { display: contents; }
  .horizontal__cards .swiper-nav { display: none; }
}
@media (max-width: 720px) {
  .horizontal { overflow: visible; height: auto; }
  .horizontal__track { display: block; width: auto; height: auto; padding: 48px var(--gutter); }
  /* keep the flex gap — as a plain block the title collided with the eyebrow */
  .horizontal__intro { flex: none; padding-right: 0; margin-bottom: 26px; }
  .horizontal__hint { display: none; }
  .horizontal__cards { overflow: hidden; }
  .horizontal__cards .swiper-wrapper { display: flex; align-items: stretch; gap: 0; }
  /* the slide is a transparent shell; the 3px inset is what the sub-pixel
     overhang eats into, so the card's own border is never trimmed */
  .horizontal__cards .swiper-slide { flex: 0 0 100%; width: 100%; padding-inline: 3px; display: flex; }
  /* override the desktop `flex: 0 0 clamp(280px,30vw,420px)` basis */
  .horizontal .panel.modcard { flex: 1 1 auto; width: 100%; height: auto; min-height: 0; }
}

/* slider nav: arrows on the sides, pill bullets in the middle */
.swiper-nav { display: none; }
@media (max-width: 720px) {
  .swiper-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
  .swiper-nav__btn { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--color-white); color: var(--color-black); border: 1px solid var(--color-border);
    transition: transform 0.3s var(--ease), opacity 0.3s ease; }
  .swiper-nav__btn:active { transform: scale(0.94); }
  .swiper-nav__btn.swiper-button-disabled { opacity: 0.35; }
  .swiper-nav .swiper-pagination { position: static; display: flex; align-items: center; justify-content: center; gap: 7px; width: auto; }
  .swiper-nav .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; border-radius: 100px;
    background: var(--color-yellow); opacity: 0.28; transition: width 0.35s var(--ease), opacity 0.35s ease; }
  .swiper-nav .swiper-pagination-bullet-active { width: 26px; opacity: 1; }
}

/* ---------- mobile lead form: smaller type, button not squashed ---------- */
@media (max-width: 620px) {
  .leadform__card { padding: 20px; }
  .leadform__card .field { margin-bottom: 14px; }
  .leadform__card .field label { font-size: 14px; }
  .leadform__card .field input, .leadform__card .field select, .leadform__card .field textarea { padding: 13px 14px; }
  .leadform__card .phone__cc { font-size: 14px; padding: 0 10px; }
  .leadform__submit { --pad-y: 14px; --pad-x: 18px; font-size: 12px; min-height: 46px; }
  .leadform__submit .btn__label { white-space: nowrap; }
  .leadform__fine { font-size: 12px; margin-top: 12px; }
  .leadform__list li { font-size: 14.5px; }
}

@media (max-width: 620px) {
  /* big CTAs were 22px/44px padding at 14px — too bulky on a phone */
  .btn--lg { --pad-y: 14px; --pad-x: 22px; font-size: 12.5px; min-height: 46px; }
  .btn--lg .arrow { width: 26px; margin-block: -6px; font-size: 12px; }
  .btn:not(.btn--lg) { --pad-y: 12px; --pad-x: 18px; font-size: 12.5px; }
}

@media (max-width: 960px) {
  /* about-page hero: photo above the text on mobile */
  .phero--split .phero__visual { order: -1; }
}

@media (max-width: 960px) {
  /* tighten the stacked about-hero: photo sits closer to header and to the text */
  .phero--split .phero__grid { gap: 12px; }
  /* the square image is capped by the container width, so let it bleed a little
     past the gutters to read bigger without overflowing the screen */
  .phero--split .phero__visual img { transform: none; max-height: none; width: min(112%, 92vw); max-width: none; }
}
@media (max-width: 620px) {
  .phero--split { padding-top: 92px; padding-bottom: 30px; }
}

@media (max-width: 900px) {
  /* about page: text first, photo (with its chips) below it */
  .fsplit { gap: 16px; }
  .fsplit__col { order: 2; gap: 14px; }
  /* the cutout has no frame, so the 4/5 box just padded it with ~230px of air */
  .fsplit__media--cutout { aspect-ratio: auto; height: auto; min-height: 0; }
  /* left-align the chips so they share the text's edge instead of being centred */
  .fsplit__col .chips { gap: 5px; margin-top: 0; justify-content: flex-start; }
  /* sized so the rows split 3 + 2 down to ~360px wide screens */
  .chip { padding: 5px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0; }
}

@media (max-width: 900px) {
  /* the 4/5 box left a tall empty gap above the bottom-anchored portrait */
  .fsplit .fsplit__media--portrait { aspect-ratio: auto; height: auto; min-height: 0; }
  .fsplit .fsplit__media--portrait img { max-height: 380px; }
}

@media (max-width: 620px) {
  /* header ends around 106px, so 112px left the crumbs almost touching it */
  .phero:not(.phero--split) { padding-top: 134px; }
}

@media (max-width: 620px) {
  /* course heroes set padding-top inline (88px on phones) but the fixed header is
     ~106px tall, so the breadcrumbs slid underneath it */
  .hero { padding-top: 134px !important; }
}

/* ---------- spec chips: bordered grid on desktop, content-width slider on phones ---------- */
.specs-swiper .swiper-pagination { display: none; }
@media (min-width: 721px) {
  .specs-swiper .swiper-wrapper { display: grid; transform: none !important; }
}
@media (max-width: 720px) {
  .specs-swiper { overflow: hidden; }
  .specs-swiper .swiper-wrapper { display: flex; grid-template-columns: none; border: 0; border-radius: 0; overflow: visible; }
  /* each card only as wide as its own text */
  .specs-swiper .swiper-slide.spec { width: auto; flex: 0 0 auto; padding: 16px 20px; border: 1px solid var(--color-border); border-radius: 16px; margin-right: 10px; }
  .specs-swiper .swiper-slide.spec:last-child { margin-right: 0; }
  .specs-swiper .spec__value { font-size: 20px; }
  .specs-swiper .swiper-pagination { display: flex; justify-content: center; gap: 7px; position: static; margin-top: 18px; }
  .specs-swiper .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; border-radius: 100px; background: var(--color-black); opacity: 0.22; transition: width 0.35s var(--ease), opacity 0.35s ease; }
  .specs-swiper .swiper-pagination-bullet-active { width: 24px; opacity: 1; background: var(--color-yellow-deep); }

  /* pricing: pull the first plan card closer to the heading */
  .pricing { gap: 14px; }
  .sec-head__aside { margin-top: 10px; }
}

/* pricing plans: 3-col grid on desktop, slider on phones (featured card first) */
@media (min-width: 721px) {
  .pricing-swiper .swiper-slide { display: contents; }
}
@media (max-width: 720px) {
  .pricing-swiper .swiper-slide { padding-inline: 3px; display: flex; }
  .pricing-swiper .plan { width: 100%; }
  .pricing-swiper .swiper-nav__btn { background: var(--color-white); color: var(--color-black); border-color: rgba(255,255,255,0.2); }
}

@media (max-width: 720px) {
  /* smaller spec chips so three fit on screen without the third being cut */
  .specs-swiper .swiper-slide.spec { padding: 12px 14px; margin-right: 8px; gap: 6px; }
  .specs-swiper .spec__label { font-size: 10px; letter-spacing: 0.1em; }
  .specs-swiper .spec__value { font-size: 17px; }
}

@media (max-width: 720px) {
  /* the .cards-swiper rule added margin-top:22px, which pushed the bullets
     ~11px below the arrows inside the centred nav row */
  .swiper-nav .swiper-pagination { margin-top: 0; }
  /* Swiper sizes these slides (3 per view), so no manual width/margin */
  .specs-swiper .swiper-slide.spec { width: auto; margin-right: 0; }
}

@media (max-width: 720px) {
  /* equal-width slides now, so the longest value ("Сертифікат") must fit */
  .specs-swiper .swiper-slide.spec { padding: 10px; }
  .specs-swiper .spec__value { font-size: 14px; letter-spacing: -0.03em; }
  .specs-swiper .spec__label { font-size: 9px; letter-spacing: 0.08em; }
}

@media (max-width: 620px) {
  /* breadcrumbs: keep every crumb on one line; scroll sideways if they ever
     get longer than the screen instead of wrapping mid-word */
  .phero__crumbs { flex-wrap: nowrap; white-space: nowrap; font-size: 12px; gap: 7px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .phero__crumbs::-webkit-scrollbar { display: none; }
  .phero__crumbs > * { flex: 0 0 auto; }
}

@media (max-width: 620px) {
  /* keep the trail inside the screen: the last crumb shrinks and ellipsises
     instead of scrolling off the edge */
  .phero__crumbs { overflow: hidden; }
  .phero__crumbs > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 620px) {
  /* the nowrap flex row was widening its grid parent (min-width defaults to auto),
     so the whole trail pushed past the screen edge */
  .course-hero, .course-hero__text, .phero__main { min-width: 0; }
  .phero__crumbs { max-width: 100%; }
}

@media (max-width: 620px) {
  /* smaller chips so they pair up 2 per row, and sit closer to the cards */
  .filters { gap: 8px; margin-bottom: 14px; }
  .filters__chip { padding: 8px 14px; font-size: 12px; }
}

/* events on mobile: keep a real table row instead of a 4-tier stack */
@media (max-width: 860px) {
  .evt-row { grid-template-columns: 54px auto 1fr auto; gap: 5px 12px; padding: 14px 4px; align-items: center; }
  .evt-date { grid-column: 1; grid-row: 1 / span 2; font-size: 17px; align-self: center; }
  .evt-name { grid-column: 2 / 4; grid-row: 1; font-size: 14.5px; line-height: 1.25; }
  .evt-city { grid-column: 2; grid-row: 2; justify-self: start; font-size: 12px; font-weight: 500; }
  .evt-row > span:nth-child(4) { grid-column: 3; grid-row: 2; justify-self: start; }
  .evt-badge { padding: 3px 9px; font-size: 10.5px; }
  .evt-cta { grid-column: 4; grid-row: 1 / span 2; justify-self: end; align-self: center; margin-top: 0; }
  .evt-reg { padding: 8px 13px; font-size: 11.5px; gap: 5px; }
}

@media (max-width: 620px) {
  /* pill tags across the site read too heavy on phones */
  .tag { padding: 5px 12px; font-size: 11px; gap: 6px; }
}

/* blog cards: the underline was hover-only (never fires on touch), and the 1fr
   spacer row pushed the link far below the title */
@media (hover: none), (max-width: 620px) {
  .post__button::after { transform: scaleX(1); }
}
@media (max-width: 620px) {
  .post { grid-template-rows: auto auto auto auto auto; row-gap: 10px; }
  .post__button { margin-bottom: 0; }
}

@media (max-width: 620px) {
  /* 42px + text-wrap:balance stranded "яких" on its own line — balance evens the
     line lengths, which is what split the phrase */
  .article-hero__title { font-size: clamp(28px, 8.4vw, 42px); text-wrap: wrap; }
}

@media (max-width: 620px) {
  /* "Інші статті": keep the button on the same row, right-aligned and compact */
  .related-articles__head { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
  .related-articles__all { min-width: 0; flex: 0 0 auto; --pad-y: 10px; --pad-x: 14px; font-size: 11px; min-height: 38px; }
  .related-articles__all .arrow { display: none; }

  /* article body: 58px before headings and 24px between paragraphs read airy on a phone */
  .article p { margin-block: 14px; }
  .article h2 { margin-top: 30px; }
  .article h3 { margin-top: 22px; }
  .article ul { margin: 14px 0; gap: 8px; }
  .article ul li { font-size: 16px; }
  .article blockquote { margin: 26px 0; padding-left: 18px; }
  .article figure { margin: 26px 0; }
}

@media (max-width: 620px) {
  /* contacts form was very tall: tighten every row rather than the card itself */
  .leadform__card { padding: 18px; }
  .leadform__card .field { margin-bottom: 10px; gap: 5px; }
  .leadform__card .field label { font-size: 13px; }
  .leadform__card .field input,
  .leadform__card .field select { padding: 11px 13px; }
  /* rows="3" kept the textarea ~100px tall regardless of min-height */
  .leadform__card .field textarea { padding: 11px 13px; min-height: 0; height: 62px; }
  /* narrower side padding gives the card more width, so it reads less stretched */
  .leadform--wide { padding: 16px; }
  .leadform__card .phone__cc { font-size: 13px; padding: 0 9px; }
  .leadform__submit { --pad-y: 12px; min-height: 42px; margin-top: 2px; }
  .leadform__fine { font-size: 11px; margin-top: 10px; line-height: 1.45; }
}

@media (max-width: 620px) {
  /* word-break:break-word split the email mid-word ("com.u / a") */
  .ccard__label { font-size: 11px; }
  .ccard__value { font-size: 15px; word-break: normal; overflow-wrap: anywhere; }
  .ccard__hint { font-size: 13px; }
  .ccard__ico { width: 42px; height: 42px; border-radius: 12px; }
  .ccard__ico svg { width: 19px; height: 19px; }
}
