/* ===== Self-hosted Manrope (variable, subset woff2) — прибрано Google Fonts CDN ===== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ===== HyperCode — стилі сайту (перенесено з design-бандла «HyperCode - Сайт.html») ===== */

:root {
  --ink: #241a4a;
  --body: #5a5276;
  --soft: #f7f5fc;
  --line: #e9e4f6;
  --brand: #b46bf3;
  --brand-deep: #8f3fd8;
  --brand-soft: #f5ecff;
  --grad: linear-gradient(90deg, #cf98ff 0%, #b46bf3 50%, #cf98ff 100%);
  --grad-banner: linear-gradient(120deg, #cf98ff 0%, #b46bf3 55%, #9b4ce0 100%);
  --lime: #e3f3c8; --lime-ink: #4a6b14;
  --sky: #dcebfb;  --sky-ink: #1d5a96;
  --lav: #ece2fb;  --lav-ink: #7a3fd1;
  --sun: #fdeec9;  --sun-ink: #8f6a10;
  --pad: 40px;
  --sec: 88px;
}

html, body { margin: 0; padding: 0; background: #fff; overflow-x: hidden; }
* { box-sizing: border-box; }
body { font-family: 'Manrope', sans-serif; color: var(--ink); }
a { text-decoration: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-deep); outline-offset: 2px;
}

.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 100;
  background: var(--brand-deep); color: #fff;
  padding: 10px 18px; border-radius: 8px; font-weight: 800; font-size: 14px;
}
.skip-link:focus { top: 8px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding-top: var(--sec); padding-bottom: var(--sec); }

.h2 { font-size: clamp(26px, 4.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; line-height: 1.18; }
.h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0; color: var(--ink); max-width: 700px; }
.sub { font-size: 16.5px; color: var(--body); line-height: 1.65; margin: 14px 0 0; max-width: 600px; }

/* Тони */
.t-lime { background: var(--lime); color: var(--lime-ink); }
.t-sky  { background: var(--sky);  color: var(--sky-ink); }
.t-lav  { background: var(--lav);  color: var(--lav-ink); }
.t-sun  { background: var(--sun);  color: var(--sun-ink); }
.bg-soft { background: var(--soft); }
.bg-ink { background: var(--ink); }

/* ——— Кнопки ——— */
.gbtn {
  display: inline-block; color: #fff; border: none; border-radius: 999px;
  padding: 16px 30px; font-size: 15.5px; font-weight: 800; text-align: center;
  box-shadow: 0 6px 18px rgba(180, 107, 243, .35);
  background: var(--brand-deep);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, opacity .25s ease;
}
.gbtn:hover { background: #7a2fc4; transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 24px rgba(180, 107, 243, .35); }
.gbtn--sm { padding: 11px 22px; font-size: 14px; }
.gbtn--lg { padding: 18px 38px; font-size: 16px; }
.gbtn--white { background: #fff; color: var(--brand-deep); box-shadow: 0 6px 18px rgba(36, 26, 74, .18); }
.gbtn--white:hover { background: #fff; opacity: .92; box-shadow: 0 12px 26px rgba(36, 26, 74, .22); }
.gbtn:active { transform: translateY(-1px) scale(.99); }

.obtn {
  display: inline-block; background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 15px 28px; font-size: 15px; font-weight: 800; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.obtn:hover { transform: translateY(-4px) scale(1.03); border-color: var(--brand); box-shadow: 0 10px 22px rgba(36, 26, 74, .12); }
.obtn:active { transform: translateY(-1px) scale(.99); }
.obtn--sm { padding: 11px 22px; font-size: 14px; }
.obtn--dark { color: #fff; border-color: rgba(255, 255, 255, .35); }

.tag {
  display: inline-block; font-size: 12.5px; font-weight: 800;
  border-radius: 999px; padding: 5px 12px;
}
.tag--white { background: rgba(255, 255, 255, .8); }
.tag--ghost { background: transparent; color: var(--body); border: 1.5px dashed var(--line); }

/* ——— Плейсхолдер зображення ——— */
.ph {
  border-radius: 16px;
  background: repeating-linear-gradient(-45deg, var(--ph-tone, #ece2fb), var(--ph-tone, #ece2fb) 10px, rgba(255, 255, 255, .55) 10px, rgba(255, 255, 255, .55) 20px);
  border: 1px dashed #c5a8ee;
  display: flex; align-items: center; justify-content: center;
}
.ph--flat { border: none; border-radius: 0; }
.ph span {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px; color: #7a5fa8; background: rgba(255, 255, 255, .85);
  padding: 6px 12px; border-radius: 6px; letter-spacing: .02em; text-align: center;
}

/* ——— Промо-смуга + хедер ——— */
.promo {
  background: var(--ink); color: #fff; text-align: center;
  padding: 11px 16px; font-size: 13.5px; font-weight: 700;
}
.promo a { color: #d8b6ff; margin-left: 8px; font-weight: 800; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; z-index: 50; position: relative; }
.site-header.is-float {
  position: fixed; top: 0; left: 0; right: 0;
  box-shadow: 0 8px 30px rgba(36, 26, 74, .10);
  animation: hcSlideDown .35s ease;
}
@keyframes hcSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-spacer { display: none; height: 72px; }
.header-spacer.is-on { display: block; }

.header-inner { height: 72px; display: flex; align-items: center; gap: 24px; }
.logo-link { display: flex; align-items: center; line-height: 1; }
.logo-link img { height: 34px; width: auto; }
.footer .logo-link img { height: 30px; }

.nav-desktop { display: flex; gap: 24px; margin-left: 6px; }
.nav-desktop a {
  color: var(--body); font-size: 14.5px; font-weight: 700;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-desktop a.active { color: var(--brand-deep); border-bottom-color: var(--brand); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 19px; line-height: 1; align-items: center; justify-content: center;
  color: var(--ink); padding: 0; position: relative;
}
.burger::before, .burger::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease;
}
.burger::before { transform: translateY(-6px); box-shadow: 0 6px 0 currentColor; }
.burger::after { transform: translateY(6px); }
.burger.is-open::before { transform: rotate(45deg); box-shadow: none; }
.burger.is-open::after { transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ——— Банер-CTA ——— */
.banner-outer { padding: 0 var(--pad) var(--sec); }
.banner-inner {
  background: var(--grad-banner); border-radius: 24px; padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.banner-inner .h2 { color: #fff; font-size: 28px; max-width: 620px; }
.banner-inner .gbtn { flex-shrink: 0; }

/* ——— FAQ ——— */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; background: transparent; border: none; text-align: left;
  padding: 22px 4px; color: var(--ink);
}
.faq-q strong { font-weight: 800; font-size: 16.5px; }
.faq-q .faq-sign { color: var(--brand); font-size: 24px; font-weight: 400; flex-shrink: 0; }
.faq-a-wrap {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .5s ease, opacity .4s ease;
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; opacity: 1; }
.faq-a {
  margin: 0; padding: 0 4px; font-size: 15px; color: var(--body); line-height: 1.65; max-width: 680px;
  overflow: hidden; min-height: 0;
}
.faq-item.open .faq-a { padding-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  .faq-a-wrap, .how-tab, .how-tab p, .learning-tab-img,
  .value-card, .teacher-card, .teacher-card .teacher-img,
  .gbtn, .obtn, .filter-btn, .arrow-btn,
  .course-card, .course-card .cc-image, .age-card, .age-photo-img,
  .roadmap-step, .roadmap-num, .roadmap-step-t, .result-card .result-img,
  .testimonial, .result-card, .project-card, .plan-card, .stat-card { transition: none; }
  .value-card:hover, .teacher-card:hover, .teacher-card:hover .teacher-img,
  .gbtn:hover, .gbtn:active, .obtn:hover, .obtn:active,
  .filter-btn:hover, .arrow-btn:hover, .arrow-btn:active,
  .course-card:hover, .course-card:hover .cc-image,
  .age-card:hover, .age-card:hover .age-photo-img, .roadmap-step:hover, .roadmap-step:hover .roadmap-num,
  .result-card:hover .result-img, .price-row:hover,
  .testimonial:hover, .result-card:hover, .project-card:hover, .plan-card:hover, .stat-card:hover { transform: none; }
  .price-row { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .h1, .hero-top h1, .mobile-menu.open { animation: none; }
  .site-header.is-float { animation: none; }
}

/* ——— Футер ——— */
.footer { background: var(--ink); color: #fff; }
.footer-grid {
  padding: 56px var(--pad) 0;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { font-size: 13.5px; color: rgba(255, 255, 255, .6); line-height: 1.6; margin-top: 16px; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col strong { font-size: 12.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); text-transform: uppercase; }
.footer-col a { color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 600; }
.pay-icons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.pay-icons > div { display: flex; align-items: center; gap: 18px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px;
  padding: 22px 0 30px; display: flex; justify-content: space-between;
  font-size: 12.5px; color: rgba(255, 255, 255, .55);
}
.foot-bottom .made { color: #ffffffb7; }

/* ——— Сітки ——— */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.stats-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; }
/* асиметричні двоколонкові секції */
.split { display: grid; gap: 56px; align-items: center; }
.split--12-8 { grid-template-columns: 1.2fr .8fr; gap: 64px; }
.split--11-9 { grid-template-columns: 1.1fr .9fr; }
.split--9-11 { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split--10-11 { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }

.sec-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.sec-link { color: var(--brand-deep); font-weight: 800; font-size: 15px; white-space: nowrap; }
.sec-link--light { color: #d8b6ff; }

/* ——— Hero головної ——— */
.hero-top { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.hero-top h1 { font-size: clamp(30px, 7vw, 48px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 0; max-width: 620px; color: var(--ink); }
.hero-aside { max-width: 320px; }
.hero-aside p { font-size: 15.5px; color: var(--body); line-height: 1.6; margin: 0; }

/* картки вікових груп */
.age-card { background: #fff; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.age-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 30px rgba(36, 26, 74, .12); }
.age-card .age-photo { position: relative; }
.age-photo-img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: top; transition: transform .4s ease; }
.age-card:hover .age-photo-img { transform: scale(1.05); }
.age-card .age-photo .tag { position: absolute; top: 14px; left: 14px; font-size: 14px; padding: 7px 14px; background: #fff; color: var(--ink); }
.age-card .age-body { padding: 20px 22px 24px; }
.age-card .age-note { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.age-card .age-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.age-card .age-links .tag { font-size: 13.5px; padding: 8px 14px; }

/* ——— Знайомство: картка «Маршрут навчання» ——— */
.intro-roadmap { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px 30px; box-shadow: 0 18px 50px rgba(36, 26, 74, .07); }
.roadmap-label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 6px; }
.roadmap-track { position: relative; }
.roadmap-line { position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.roadmap-step { display: flex; gap: 18px; align-items: flex-start; padding: 14px 0; position: relative; transition: transform .25s ease; }
.roadmap-step:hover { transform: translateX(8px); }
.roadmap-num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; z-index: 1; border: 3px solid #fff; transition: transform .25s ease; }
.roadmap-step:hover .roadmap-num { transform: scale(1.12); }
.roadmap-step-t { font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.25; padding-top: 4px; transition: color .25s ease; }
.roadmap-step:hover .roadmap-step-t { color: var(--brand-deep); }
.roadmap-step-d { font-size: 13.5px; color: var(--body); margin-top: 2px; }

/* ——— Фільтри ——— */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(36, 26, 74, .10); border-color: var(--brand); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-btn--dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.filter-btn--dark.active { background: #fff; color: var(--ink); border-color: #fff; }

/* ——— Галерея курсів ——— */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
#home-gallery.gallery {
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-arrows { display: flex; gap: 10px; }
.arrow-btn {
  width: 44px; height: 44px; border-radius: 99px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-size: 17px; font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.arrow-btn:hover { transform: translateY(-2px) scale(1.08); border-color: var(--brand); box-shadow: 0 8px 18px rgba(36, 26, 74, .14); }
.arrow-btn:active { transform: scale(.97); }
.arrow-btn--brand { border: none; color: #fff; background: #b46bf3; }
.arrow-btn--brand:hover { background: var(--grad); box-shadow: 0 8px 18px rgba(180, 107, 243, .35); }

/* ——— Картка курсу ——— */
.course-card {
  background: #fff; border-radius: 24px; border: 1px solid var(--line);
  padding: 10px; display: flex; flex-direction: column; flex-shrink: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.course-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 30px rgba(36, 26, 74, .12); }
.gallery .course-card { width: 350px; }
.course-card .cc-head { position: relative; border-radius: 16px; overflow: hidden; }
.course-card .cc-tags { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.course-card .cc-tags .tag--white { background: rgba(255, 255, 255, .88); }
.course-card .cc-head .ph { border: none; border-radius: 0; height: 180px; }
.course-card .cc-image { display: block; width: 100%; height: 180px; object-fit: cover; object-position: center; transition: transform .4s ease; }
.course-card:hover .cc-image { transform: scale(1.06); }
.course-card .cc-body { padding: 20px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card h2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); }
.course-card .cc-short { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); flex: 1; }
.course-card .cc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.course-card .cc-price { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.course-card .cc-price span { font-weight: 500; color: var(--body); font-size: 12.5px; }
.course-card .cc-status { background: var(--soft); color: var(--body); }
.course-card .cc-more { background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 13.5px; font-weight: 700; }

/* ——— HowBlock (таби) ——— */
.how-tabs { display: flex; flex-direction: column; gap: 12px; }
.how-tab {
  background: transparent; border-radius: 16px; text-align: left;
  border: 1px solid transparent; padding: 18px 22px; color: var(--ink);
  transition: background .3s ease, border-color .3s ease;
}
.how-tab.active { background: var(--soft); border-color: var(--line); }
.how-tab .how-t { font-weight: 800; font-size: 16px; }
.how-tab p {
  margin: 0; font-size: 14px; color: var(--body); line-height: 1.55;
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin-top .35s ease;
}
.how-tab.active p { margin-top: 6px; max-height: 160px; opacity: 1; }
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; margin-top: 40px; align-items: center; }
.learning-tab-img { display: block; width: 100%; height: 380px; object-fit: cover; object-position: center; border-radius: 22px; transition: opacity .3s ease; }
.learning-tab-img.is-swapping { opacity: 0; }

/* ——— Відгуки ——— */
.testimonial {
  margin: 0; background: #fff; border-radius: 24px; border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.testimonial .tq-mark { font-size: 30px; line-height: 1; font-weight: 800; }
.testimonial blockquote { margin: 0; font-size: 14.5px; line-height: 1.65; flex: 1; color: var(--ink); }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial .tq-ava { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; }
.testimonial .tq-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.testimonial .tq-who { font-size: 12.5px; color: var(--body); }

/* ——— Результати ——— */
.result-card { border-radius: 20px; padding: 30px; display: grid; grid-template-columns: 1fr 135px; gap: 24px; align-items: center; }
.result-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.result-card p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink); opacity: .78; line-height: 1.6; }
.result-card .ph { height: 110px; border: none; --ph-tone: rgba(255, 255, 255, .65); }

/* ——— Проєкти ——— */
.project-card { border-radius: 20px; overflow: hidden; }
.project-img { display: block; width: 100%; object-fit: cover; object-position: center; }
.result-card .result-img { width: 135px; height: 135px; object-fit: cover; display: block; margin: 0 auto; border-radius: 16px; transition: transform .35s ease; }
.result-card:hover .result-img { transform: scale(1.12); }
.teacher-card .teacher-img { display: block; width: 100%; height: 275px; object-fit: cover; object-position: center; transition: transform .4s ease; }
.project-card--dark { background: rgba(255, 255, 255, .06); }
.project-card--light { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.project-card .pc-body { padding: 20px 24px 26px; }
.project-card--light .pc-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card h2 { margin: 12px 0 6px; font-size: 18px; font-weight: 800; color: #fff; }
.project-card--light h2 { margin: 6px 0 0; color: var(--ink); }
.project-card p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .65); line-height: 1.55; }
.project-card--light p { color: var(--body); flex: 1; }
.project-card .pc-author { font-size: 12.5px; font-weight: 700; color: var(--brand-deep); margin-top: 6px; }
.project-card--light .tag { align-self: flex-start; }

/* ——— Цифри / статистика ——— */
.stat-card { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.stat-card .stat-n { font-size: clamp(32px, 5vw, 40px); font-weight: 800; color: var(--brand-deep); }
.stat-card p { margin: 10px 0 0; font-size: 14.5px; color: var(--body); line-height: 1.6; }
.stat-card--ink { background: var(--ink); border: none; }
.stat-card--ink .stat-t { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.45; }
.stat-card--ink p { margin: 12px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.stats-4 .stat-n { font-size: clamp(30px, 5vw, 44px); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stats-4 p { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); line-height: 1.5; }

/* ——— Сторінка курсу ——— */
.course-hero { padding-top: 64px; padding-bottom: 72px; }
.course-hero h1 { font-size: clamp(30px, 7vw, 52px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 22px 0 0; color: var(--ink); }
.course-hero .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.course-hero .hero-price { font-size: 16px; font-weight: 800; color: var(--ink); }
.course-hero .hero-price span { font-weight: 500; color: rgba(36, 26, 74, .78); font-size: 13.5px; }
.course-hero .ph { --ph-tone: rgba(255, 255, 255, .6); }
.tag--ink { background: var(--ink); color: #fff; }
.tag--ink-soft { background: rgba(36, 26, 74, .12); color: var(--ink); }

.result-box { background: var(--soft); border-radius: 20px; border: 1px solid var(--line); padding: 22px 26px; margin-top: 28px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-deep); }
.result-box p { margin: 8px 0 0; font-size: 15px; color: var(--ink); font-weight: 700; line-height: 1.55; }

.learn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.learn-list li { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.learn-list .ln-num { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.learn-list .ln-text { font-size: 15px; font-weight: 600; color: var(--ink); }

.program-card { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 28px; }
.program-card h3 { margin: 10px 0 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.program-card p { margin: 10px 0 0; font-size: 14.5px; color: var(--body); line-height: 1.6; }

/* ——— Шлях навчання ——— */
.path-card { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 28px; height: 100%; }
.path-num { width: 40px; height: 40px; border-radius: 99px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.path-card h3 { margin: 16px 0 2px; font-size: 20px; font-weight: 800; color: var(--ink); }
.path-card .path-age { font-size: 13px; font-weight: 800; color: var(--brand-deep); }
.path-card p { margin: 10px 0 0; font-size: 14px; color: var(--body); line-height: 1.55; }

/* ——— Формати (тарифи) ——— */
.plan-card {
  background: #fff; border-radius: 24px; border: 1px solid var(--line);
  padding: 30px; display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border: 2px solid var(--brand); box-shadow: 0 14px 40px rgba(180, 107, 243, .18); }
.plan-card .plan-badge {
  position: absolute; top: -13px; left: 30px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 800; border-radius: 999px; padding: 5px 14px; letter-spacing: .03em;
}
.plan-card .tag { align-self: flex-start; font-size: 16.25px; padding: 6.5px 15.6px; }
.plan-card .plan-price { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; }
.plan-card .plan-p { font-size: clamp(30px, 5vw, 38px); font-weight: 800; color: var(--ink); }
.plan-card .plan-note { font-size: 13.5px; color: var(--body); font-weight: 600; }
.plan-card .plan-payment-note { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--body); font-weight: 600; }
.plan-card ul { list-style: none; margin: 20px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-card li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--body); line-height: 1.5; }
.plan-card li::before { content: "✓"; color: var(--brand-deep); font-weight: 800; }

/* ——— Таблиця цін ——— */
.price-table { margin-top: 36px; background: #fff; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.price-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 16px; align-items: center;
  padding: 18px 26px; border-top: 1px solid var(--line);
  position: relative; transition: transform .25s ease, background .25s ease;
}
.price-row:hover { transform: scale(1.02); background: var(--brand-soft); z-index: 1; border-radius: 14px; }
.price-row:first-child { border-top: none; }
.price-row .pr-name { display: flex; align-items: center; gap: 12px; }
.price-row .pr-letter { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.price-row .pr-name strong { font-size: 15.5px; color: var(--ink); }
.price-row .pr-meta { font-size: 14px; color: var(--body); font-weight: 600; }
.price-row .pr-price { font-size: 15px; color: var(--ink); }
.price-row .pr-price span { font-weight: 500; color: var(--body); font-size: 12.5px; }
.price-row .tag { justify-self: start; background: var(--soft); color: var(--body); }

/* ——— Про нас ——— */
.about-hero { padding-top: 64px; padding-bottom: 72px; }
.about-hero .sub { max-width: 760px; }
.value-card { border-radius: 20px; padding: 30px; transition: transform .3s ease, box-shadow .3s ease; }
.value-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 30px rgba(36, 26, 74, .12); }
.value-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.value-card p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink); opacity: .78; line-height: 1.6; }
.teacher-section-head { max-width: 760px; }
.teacher-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; max-width: 1040px; }
.teacher-card { background: #fff; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; min-height: 430px; }
.teacher-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 30px rgba(36, 26, 74, .12); }
.teacher-card:hover .teacher-img { transform: scale(1.05); }
.teacher-card .teacher-img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.teacher-card .tc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.teacher-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.teacher-role { margin-top: 7px; font-size: 14px; font-weight: 800; color: var(--brand-deep); }
.teacher-card p { margin: 12px 0 0; font-size: 14px; color: var(--body); line-height: 1.6; flex: 1; }
.teacher-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.teacher-badges span { border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 12.5px; font-weight: 800; padding: 7px 11px; }
.teacher-foot { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.teacher-foot p { margin: 0; max-width: 620px; font-size: 14.5px; line-height: 1.6; color: var(--body); font-weight: 700; }

/* ——— Контакти ——— */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.contact-card .cc-t { font-weight: 800; font-size: 15px; color: var(--ink); }
.contact-card .cc-d { font-size: 13px; color: var(--body); margin-top: 3px; }
.contact-card .cc-v { font-weight: 800; font-size: 14px; color: var(--brand-deep); white-space: nowrap; }

.form-card { background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: 36px; box-shadow: 0 14px 40px rgba(36, 26, 74, .07); }
.form-card h2 { font-size: 24px; }
.form-fields { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.form-fields label { font-size: 13px; font-weight: 800; color: var(--ink); display: block; margin-bottom: 8px; }
.form-fields input, .form-fields select {
  width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 18px; font-size: 15px; font-family: inherit; color: var(--ink); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-fields textarea { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px; font-size: 15px; font-family: inherit; color: var(--ink); outline: none; resize: vertical; transition: border-color .2s ease, box-shadow .2s ease; }
.form-fields input:focus, .form-fields select:focus, .form-fields textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 107, 243, .18); }
.field-error { font-size: 12px; color: #dc2626; margin-top: 5px; display: none; }
.form-error-banner { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 12px 16px; font-size: 14px; color: #dc2626; text-align: center; }
.form-error-banner .tg-fallback { display: block; margin-top: 8px; color: var(--purple); font-weight: 700; text-decoration: none; }
.form-honeypot { display: none; }
.form-note { margin: 0; font-size: 12px; color: var(--body); line-height: 1.5; text-align: center; }
.form-card .gbtn { margin-top: 6px; }
.form-card .gbtn:disabled { opacity: .6; pointer-events: none; }
.form-success { text-align: center; padding: 48px 12px; display: none; }
.form-success .fs-check {
  width: 64px; height: 64px; border-radius: 99px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 28px; font-weight: 800; margin: 0 auto;
}
.form-success h2 { font-size: 26px; margin-top: 24px; }
.form-success .sub { margin: 12px auto 0; max-width: 380px; }
.form-success .obtn { margin-top: 26px; }
.form-card.sent .form-success { display: block; }
.form-card.sent .form-main { display: none; }

/* ——— Інтеракції та поява ——— */
/* Поява при скролі (клас додає site.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hover решти карток — той самий підйом + тінь */
.testimonial, .result-card, .project-card, .plan-card, .stat-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial:hover, .result-card:hover, .project-card:hover, .stat-card:hover {
  transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 30px rgba(36, 26, 74, .12);
}
/* Тариф — навмисно виразніший (brand-тінь), бо це CTA-картка */
.plan-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 34px rgba(180, 107, 243, .16); }

/* Підсвітка посилань */
.nav-desktop a:hover { color: var(--brand-deep); border-bottom-color: var(--brand); }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #fff; }

/* Поява hero-заголовка при завантаженні */
.h1, .hero-top h1 { animation: hcFadeUp .6s ease both; }
@keyframes hcFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hcMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 404 */
.nf { padding: 120px var(--pad); text-align: center; }

/* ===== Адаптивність ===== */

@media (max-width: 1100px) {
  :root { --pad: 28px; }
}

@media (max-width: 1024px) {
  .stats-4 { grid-template-columns: 1fr 1fr; }
}

/* Планшет: мобільна навігація */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .hc-login { display: none; }
  .burger { display: flex; }
  .mobile-menu.open {
    display: flex; flex-direction: column;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px var(--pad) 20px;
    animation: hcMenuIn .25s ease;
  }
  .mobile-menu a.mlink { padding: 15px 2px; font-weight: 700; font-size: 16px; border-bottom: 1px solid #f1ecfa; color: var(--ink); }
  .mobile-menu a.mlink.active { color: var(--brand-deep); }
  .mmenu-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  .site-header .logo-link img { height: 30px; }
}

/* Планшет вузький */
@media (max-width: 900px) {
  :root { --sec: 64px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split--12-8, .split--11-9, .split--9-11, .split--10-11, .how-grid { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .teacher-showcase { grid-template-columns: 1fr; }
  .teacher-foot { align-items: flex-start; flex-direction: column; }
}

/* Великий телефон */
@media (max-width: 768px) {
  .banner-inner { flex-direction: column; align-items: flex-start; padding: 34px 28px; gap: 22px; }
  .banner-inner .h2 { font-size: 23px; }
}

/* Телефон */
@media (max-width: 640px) {
  :root { --pad: 18px; --sec: 52px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-4 { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; text-align: center; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { margin-inline: auto; }
  .footer .logo-link { justify-content: center; }
  .footer-col, .pay-icons, .pay-icons > div { align-items: center; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .price-row { grid-template-columns: 1fr 1fr; padding: 16px 18px; }
  .result-card { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 0 28px; }
  .promo { font-size: 12px; padding: 9px 14px; }
  .gallery .course-card { width: min(350px, 84vw); }
  .teacher-showcase {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .teacher-showcase::-webkit-scrollbar { display: none; }
  .teacher-showcase .teacher-card { flex: 0 0 min(330px, 86vw); scroll-snap-align: start; }
  .site-header .logo-link img, .footer .logo-link img { height: 26px; }
  .ph--tall { height: 240px !important; }
  .banner-inner { padding: 28px 22px; border-radius: 20px; }
}

/* Малий телефон */
@media (max-width: 460px) {
  .hc-cta-top { display: none; }
  .gallery .course-card { width: min(330px, 88vw); }
}
