/* ─────────────────────────────────────────────────────────────────────────────
   Home (builder) — page-templates/home.php + template-parts/home/*.
   One stylesheet, no dependencies. Section order and content come from the
   "Home builder" flexible content field.
   ───────────────────────────────────────────────────────────────────────────── */

/* Local aliases of the design-system tokens (assets/css/sx-system.css). */
.hb {
    --hb-ink: var(--sx-ink);
    --hb-muted: var(--sx-muted);
    --hb-line: var(--sx-line);
    --hb-soft: var(--sx-soft);
    --hb-tint: var(--sx-tint);
    --hb-brand: var(--sx-brand);
    --hb-brand-dark: var(--sx-brand-dark);
    --hb-lime: var(--sx-lime);
    --hb-radius: 20px;
    --hb-ease: var(--sx-ease);

    display: block;
    color: var(--hb-ink);
    font-family: var(--sx-font-body);
    background: #fff;
}

.hb *, .hb *::before, .hb *::after { box-sizing: border-box; }
.hb img { max-width: 100%; height: auto; }

.hb-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hb-section { padding: 88px 0; }
.hb-section + .hb-section { border-top: 1px solid transparent; }

/* ── Type ─────────────────────────────────────────────────────────────────── */

.hb-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--hb-tint);
    color: var(--hb-brand);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hb .hb-h2 {
    margin: 0 0 14px;
    font-family: var(--title-font, 'Anton', sans-serif);
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 400;
    line-height: 1.08;
    color: var(--hb-ink);
    text-wrap: balance;
}

.hb .hb-h3 { margin: 0 0 10px; font-family: var(--title-font, 'Anton', sans-serif); font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: .01em; color: var(--hb-ink); }
.hb-intro { max-width: 680px; margin: 0; color: var(--hb-muted); font-size: 17.5px; line-height: 1.6; }
.hb-intro br { display: none; }
.hb-reason .hb-h3 { font-size: 23px; }

.hb-prose { color: var(--hb-muted); font-size: 16px; line-height: 1.65; }
.hb-prose p { margin: 0 0 10px; }
.hb-prose p:last-child { margin-bottom: 0; }
.hb-prose ul { margin: 0; padding-left: 20px; }
.hb-prose a { color: var(--hb-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hb-prose strong, .hb-prose b { color: var(--hb-ink); }

.hb-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.hb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hb-actions--center { justify-content: center; }

.hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: transform .2s var(--hb-ease), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.hb-btn::after { content: '→'; transition: transform .2s var(--hb-ease); }
.hb-btn:hover { transform: translateY(-2px); }
.hb-btn:hover::after { transform: translateX(3px); }
.hb-btn:focus-visible { outline: 3px solid var(--hb-lime); outline-offset: 3px; }

.hb-btn--primary { background: var(--hb-brand); color: #fff !important; box-shadow: 0 12px 26px -14px rgba(101, 88, 153, .9); }
.hb-btn--primary:hover { background: var(--hb-brand-dark); }
.hb-btn--dark { background: var(--hb-ink); color: #fff !important; }
.hb-btn--ghost { border-color: #d5d8e6; background: #fff; color: var(--hb-ink) !important; }
.hb-btn--ghost:hover { border-color: var(--hb-brand); color: var(--hb-brand) !important; }
.hb-btn--light { background: #fff; color: var(--hb-brand) !important; }
.hb-btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.hb-btn--outline-light:hover { border-color: #fff; }
.hb-btn--dark:hover { background: #000; }
.hb .hb-btn-main { height: 54px; padding: 0 15px 0 28px; font-size: 16px; font-weight: 700; }
.hb .hb-btn-main .sx-btn__badge { width: 26px; height: 26px; }
.hb-btn--soft { border-color: rgba(35, 28, 80, .08); background: #eeedf3; color: var(--hb-ink) !important; }
.hb-btn--soft:hover { background: #e5e3ee; }
.hb-btn--lime {background: var(--hb-lime); color: var(--hb-ink) !important; box-shadow: 0 14px 30px -14px rgba(203, 220, 44, .7); }
.hb-btn--lime:hover { background: #d8e84a; }
.hb-btn--glass { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hb-btn--glass:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .14); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hb-hero {
    --hb-frame: max(16px, calc((100vw - 1240px) / 2));
    position: relative;
    isolation: isolate;
    padding: clamp(64px, 8vw, 116px) 0 clamp(64px, 7vw, 104px);
    background: #f8f8fa;
    text-align: center;
}

/* Thin layout guides with nodes. */
.hb-hero__frame {
    position: absolute;
    inset: 0 var(--hb-frame);
    z-index: -1;
    border-inline: 1px solid rgba(35, 28, 80, .08);
    pointer-events: none;
}

.hb-hero__frame::before,
.hb-hero__frame::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    height: 7px;
    background:
        radial-gradient(circle, rgba(35, 28, 80, .22) 0 3px, transparent 3.5px) left center / 7px 7px no-repeat,
        radial-gradient(circle, rgba(35, 28, 80, .22) 0 3px, transparent 3.5px) right center / 7px 7px no-repeat;
}

.hb-hero__frame::before { top: 32px; }
.hb-hero__frame::after { bottom: 32px; }

.hb-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.hb-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--hb-brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hb-hero__eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--hb-lime); box-shadow: 0 0 0 4px rgba(203, 220, 44, .25); }

.hb .hb-hero__title {
    max-width: 1120px;
    margin: 0 0 24px;
    font-family: var(--title-font, 'Anton', sans-serif);
    font-size: clamp(40px, 5.2vw, 78px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: .005em;
    color: var(--hb-ink);
    text-wrap: balance;
}

.hb-hero__text { max-width: 640px; margin: 0; color: var(--hb-muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.hb-hero .hb-actions { margin-top: 36px; }

/* Exam countdown capsule (superexam_home_countdown()) */
.hb-exams {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 8px;
    border: 1px solid rgba(35, 28, 80, .07);
    border-radius: 999px;
    background: rgba(35, 28, 80, .025);
}

.hb-exams__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.hb-exam {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 6px 20px 6px 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(35, 28, 80, .05), 0 12px 24px -18px rgba(35, 28, 80, .4);
    text-align: left;
}

.hb-exam__days {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 50px;
    height: 50px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sx-brand-mid) 0%, var(--sx-brand-deep) 100%);
    color: #fff;
    font-family: var(--sx-font-title);
    font-size: 22px;
    line-height: 1;
}

.hb-exam.is-tbc .hb-exam__days { background: var(--hb-tint); color: var(--hb-muted); }
.hb-exam__meta { display: grid; gap: 2px; }
.hb-exam__title { color: var(--hb-brand); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.hb-exam__date { color: var(--hb-ink); font-size: 14.5px; font-weight: 600; line-height: 1.3; }

.hb-exams__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--hb-lime);
    color: var(--sx-brand-deep) !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .2s var(--hb-ease), background-color .2s ease;
}

.hb-exams__link:hover { background: #d8e84a; transform: translateY(-1px); }
.hb-exams__link span { transition: transform .2s var(--hb-ease); }
.hb-exams__link:hover span { transform: translateX(3px); }


/* Entrance: CSS only, transform/opacity, no layout shift. */
@media (prefers-reduced-motion: no-preference) {
    .hb-hero__inner > * { animation: hb-rise .8s var(--hb-ease) both; }
    .hb-hero__inner > :nth-child(2) { animation-delay: .08s; }
    .hb-hero__inner > :nth-child(3) { animation-delay: .16s; }
    .hb-hero__inner > :nth-child(4) { animation-delay: .24s; }
    .hb-hero__inner > :nth-child(5) { animation-delay: .32s; }
    .hb-hero-video__card { animation: hb-rise 1s .3s var(--hb-ease) both; }
}

@keyframes hb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Scroll reveal: home.js adds .hb-rv only to elements below the fold. */
.hb-rv { opacity: 0; transform: translate3d(0, 32px, 0); }
.hb-rv.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--hb-ease); }

/* Video card. */
.hb-hero-video { margin-top: clamp(48px, 6vw, 80px); }

.hb-hero-video__card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid rgba(35, 28, 80, .07);
    border-radius: 34px;
    background: #f1f0f6;
    transition: scale .15s linear;
}

.hb-video--hero { border-radius: 26px; box-shadow: none; }
.hb-video--hero .hb-video__play { background: linear-gradient(180deg, rgba(20, 16, 40, 0) 40%, rgba(20, 16, 40, .4) 100%); }
.hb-video--hero .hb-video__play span { width: 92px; height: 92px; background-size: 40px; }

/* Stat cards: large figure, accent bar, icon, description; staggered. */
.hb-statcards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
    margin: clamp(56px, 7vw, 96px) auto 0;
    padding-bottom: 40px;
    list-style: none;
    text-align: left;
}

.hb-statcard {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(35, 28, 80, .06);
    border-radius: 26px;
    background: rgba(35, 28, 80, .025);
    transition: transform .35s var(--hb-ease), translate .12s linear;
    will-change: translate;
}

.hb-statcard--1 { margin-top: 72px; }
.hb-statcard--3 { margin-top: 36px; }
.hb-statcard:hover { transform: translateY(-4px); }

.hb-statcard__inner {
    display: flex;
    flex-direction: column;
    gap: 44px;
    height: 100%;
    padding: 30px 30px 32px 38px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(35, 28, 80, .05), 0 24px 48px -36px rgba(35, 28, 80, .35);
}

.hb-statcard__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.hb-statcard__top::before {
    content: '';
    position: absolute;
    top: 4px;
    left: -38px;
    width: 3px;
    height: 60px;
    border-radius: 0 3px 3px 0;
    background: var(--hb-accent, var(--hb-brand));
}

.hb-statcard--2 { --hb-accent: #9cab12; }
.hb-statcard--3 { --hb-accent: #3d3272; }

.hb-statcard__figure { font-family: var(--title-font, 'Anton', sans-serif); font-size: clamp(54px, 5vw, 72px); line-height: 1; letter-spacing: .01em; color: var(--hb-ink); }
.hb .hb-statcard__icon { width: 46px; height: 46px; flex: 0 0 auto; color: var(--hb-accent, var(--hb-brand)); stroke-width: 1.5; }
.hb-statcard__desc { margin: 0; color: var(--hb-muted); font-size: 16.5px; line-height: 1.55; }

.hb-hero__quote {
    max-width: 760px;
    margin: 48px auto 0;
    color: var(--hb-ink);
    font-size: 17px;
    font-style: italic;
    line-height: 1.65;
    text-align: center;
}

.hb-hero__quote::before { content: '“'; display: block; height: 44px; color: var(--hb-brand); font-family: Georgia, serif; font-size: 72px; font-style: normal; line-height: 1; }
.hb-hero__quote p { margin: 0 0 10px; }
.hb-hero__quote p:last-child { margin-bottom: 0; }
.hb-hero__quote strong, .hb-hero__quote b { font-size: 15px; font-style: normal; }

/* ── Link cards ───────────────────────────────────────────────────────────── */

.hb-cards--routes { background: #fff; }
.hb-cards--tools { background: var(--hb-soft); }

.hb-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.hb-cards--tools .hb-cards__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hb-cards__grid > li { margin: 0; }

.hb-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 22px;
    border: 1px solid var(--hb-line);
    border-radius: 18px;
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    transition: transform .25s var(--hb-ease), box-shadow .25s ease, border-color .25s ease;
}

.hb-card:hover { transform: translateY(-3px); border-color: rgba(101, 88, 153, .45); box-shadow: 0 18px 40px -24px rgba(35, 28, 80, .45); }

.hb-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--hb-tint);
    color: var(--hb-brand);
}

.hb-card__icon svg { width: 22px; height: 22px; }
.hb-card__body { display: grid; gap: 5px; flex: 1 1 auto; min-width: 0; }
.hb-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--hb-ink); }
.hb-card__text { font-size: 14.5px; line-height: 1.5; color: var(--hb-muted); }
.hb-card__arrow { align-self: center; color: var(--hb-brand); font-size: 18px; transition: transform .25s var(--hb-ease); }
.hb-card:hover .hb-card__arrow { transform: translateX(4px); }

.hb-cards--tools .hb-card { padding: 16px; gap: 12px; }
.hb-cards--tools .hb-card__icon { width: 38px; height: 38px; border-radius: 11px; background: #fff; border: 1px solid var(--hb-line); }
.hb-cards--tools .hb-card__title { font-size: 15.5px; }
.hb-cards--tools .hb-card__text { font-size: 13.5px; }
.hb-cards--tools .hb-card__arrow { display: none; }

/* ── Offers ───────────────────────────────────────────────────────────────── */

.hb-offers--primary { background: var(--hb-soft); }

.hb-price {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--hb-lime);
    color: var(--hb-ink);
    font-family: var(--title-font, 'Anton', sans-serif);
    font-size: 22px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.hb-offers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.hb-offer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    background: #fff;
    box-shadow: 0 20px 50px -38px rgba(35, 28, 80, .5);
}

.hb-offers--primary .hb-offer { border-top: 4px solid var(--hb-brand); }
.hb-offer__block + .hb-offer__block { padding-top: 18px; border-top: 1px dashed var(--hb-line); }
.hb-offer__foot { margin-top: auto; padding-top: 6px; }
.hb-offer__foot .hb-btn { width: 100%; }

.hb-tag {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hb-tint);
    color: var(--hb-brand);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hb-note { max-width: 820px; margin: 28px auto 0; text-align: center; }

/* ── Steps + video ────────────────────────────────────────────────────────── */

.hb-steps__grid.has-video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hb-steps__list { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: none; }
.hb-step { display: flex; align-items: flex-start; gap: 18px; margin: 0; }

.hb-step__num {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hb-brand);
    color: #fff;
    font-family: var(--title-font, 'Anton', sans-serif);
    font-size: 20px;
}

.hb-step__text { margin: 9px 0 0; font-size: 17px; line-height: 1.55; color: var(--hb-ink); }

/* Without a video the steps become a row of cards. */
.hb-steps__grid:not(.has-video) .hb-steps__list { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hb-steps__grid:not(.has-video) .hb-step { flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--hb-line); border-radius: 18px; background: #fff; }
.hb-steps__grid:not(.has-video) .hb-step__text { margin: 0; }

.hb-video {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #111;
    aspect-ratio: 16 / 9;
    box-shadow: 0 36px 70px -40px rgba(35, 28, 80, .6);
    cursor: pointer;
}

.hb-video__poster { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--hb-ease); }
.hb-video:hover .hb-video__poster { transform: scale(1.03); }
.hb-video picture { display: contents; }

.hb-video__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(20, 16, 40, .18);
    cursor: pointer;
}

.hb-video__play span {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    /* rounded-corner play triangle */
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232f2753'%3E%3Cpath d='M8.6 6.9v10.2c0 1 1.1 1.6 1.9 1l7.4-5.1c.7-.5.7-1.5 0-2L10.5 5.9c-.8-.6-1.9 0-1.9 1z'/%3E%3C/svg%3E") 55% center / 32px no-repeat;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .28), 0 14px 30px rgba(0, 0, 0, .25);
    transition: transform .25s var(--hb-ease), box-shadow .25s ease;
}

.hb-video:hover .hb-video__play span { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(203, 220, 44, .45), 0 14px 30px rgba(0, 0, 0, .25); }
.hb-video__play:focus-visible { outline: 3px solid var(--hb-lime); outline-offset: -3px; }
.hb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Why ──────────────────────────────────────────────────────────────────── */

.hb-why { background: var(--hb-soft); }
.hb-why__grid { margin-top: 40px; }
.hb-why__grid.has-table { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.hb-why__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.hb-reason {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 22px 24px;
    border: 1px solid var(--hb-line);
    border-radius: 18px;
    background: #fff;
}

.hb-reason__num { flex: 0 0 auto; color: var(--hb-brand); font-family: var(--title-font, 'Anton', sans-serif); font-size: 26px; line-height: 1; }

.hb-compare {
    position: sticky;
    top: calc(var(--sx-bar-h, 74px) + 24px);
    padding: 28px;
    border-radius: var(--hb-radius);
    background: var(--hb-ink);
    color: #fff;
}

.hb .hb-compare__title { margin: 0 0 4px; font-family: var(--title-font, 'Anton', sans-serif); font-size: 28px; font-weight: 400; color: #fff !important; }
.hb-compare__sub { margin: 0 0 18px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.hb-compare__table { overflow-x: auto; }
.hb-compare__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hb-compare__table td { padding: 11px 6px; border-bottom: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); vertical-align: middle; }
.hb-compare__table td:not(:first-child) { width: 72px; text-align: center; color: var(--hb-lime); font-size: 18px; font-weight: 700; }
.hb-compare__table b, .hb-compare__table strong { color: #fff; font-weight: 600; }
.hb-compare__table tr:last-child td { border-bottom: 0; }

/* ── Testimonials ─────────────────────────────────────────────────────────── */

.hb-testi { overflow: hidden; }
.hb-testi__nav { display: flex; gap: 8px; }

.hb-round {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--hb-line);
    border-radius: 50%;
    background: #fff;
    color: var(--hb-ink);
    font-size: 18px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.hb-round:hover { border-color: var(--hb-brand); color: var(--hb-brand); }

.hb-testi__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 380px);
    gap: 18px;
    margin: 0;
    padding: 4px max(24px, calc((100vw - 1240px) / 2 + 24px)) 18px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(24px, calc((100vw - 1240px) / 2 + 24px));
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.hb-testi__track::-webkit-scrollbar { display: none; }

/* Mouse drag (home.js): snapping off while dragging, no text selection. */
.hb-testi__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.hb-testi__track.is-dragging a { pointer-events: none; }
.hb-testi__track img { -webkit-user-drag: none; user-drag: none; }

.hb-quote {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 26px;
    border: 1px solid var(--hb-line);
    border-radius: 20px;
    background: #fff;
    scroll-snap-align: start;
}

.hb .hb-quote__heading { margin: 0; font-family: var(--title-font, 'Anton', sans-serif); font-size: 21px; font-weight: 400; line-height: 1.2; letter-spacing: .01em; color: var(--hb-ink); }
.hb-quote__text { color: var(--hb-muted); font-size: 15px; line-height: 1.6; }
.hb-quote__text p { margin: 0 0 8px; }
.hb-quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hb-line); }
.hb-quote__img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hb-quote__name { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--hb-ink); }
.hb-quote__links { display: flex; gap: 8px; }
.hb-quote__links a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hb-soft); color: var(--hb-brand) !important; transition: background-color .2s ease; }
.hb-quote__links a:hover { background: var(--hb-tint); }

/* ── CTA band ─────────────────────────────────────────────────────────────── */

.hb-cta { padding: 64px 0; }
.hb-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hb-cta .hb-actions { margin-top: 0; flex: 0 0 auto; }

.hb-cta--brand .hb-cta__inner {
    padding: 48px;
    border-radius: 28px;
    background: radial-gradient(120% 140% at 100% 0%, #7d6fbd 0%, var(--hb-brand) 45%, #463b74 100%);
    color: #fff;
}

.hb-cta--brand .hb-h2 { color: #fff !important; }
.hb-cta--brand .hb-intro { color: rgba(255, 255, 255, .82); }
.hb-cta--light .hb-cta__inner { padding: 48px; border: 1px solid var(--hb-line); border-radius: 28px; background: var(--hb-soft); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.hb-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.hb-faq__head { position: sticky; top: calc(var(--sx-bar-h, 74px) + 24px); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .hb-cards--tools .hb-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .hb-section { padding: 64px 0; }
    .hb-steps__grid.has-video, .hb-why__grid.has-table, .hb-faq__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hb-statcards { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 16px; }
    .hb-statcard--1, .hb-statcard--3 { margin-top: 0; }
    .hb-statcard__inner { gap: 24px; }
    .hb-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb-offers__grid { grid-template-columns: minmax(0, 1fr); }
    .hb-compare, .hb-faq__head { position: static; }
    .hb-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .hb-exams { display: flex; flex-direction: column; align-items: stretch; width: 100%; border-radius: 24px; }
    .hb-exams__list { flex-direction: column; }
    .hb-exams__link { justify-content: center; }
    .hb-wrap { padding: 0 16px; }
    .hb-hero { padding-top: 48px; }
    .hb-hero__frame { display: none; }
    .hb-hero-video__card { padding: 6px; border-radius: 22px; }
    .hb-video--hero { border-radius: 17px; }
    .hb-video--hero .hb-video__play span { width: 68px; height: 68px; background-size: 30px; }
    .hb-statcard { padding: 8px; border-radius: 22px; }
    .hb-statcard__inner { padding: 24px 22px 24px 30px; }
    .hb-statcard__top::before { left: -30px; height: 48px; }
    .hb-hero__quote { margin-top: 32px; font-size: 16px; }
    .hb-section { padding: 52px 0; }
    .hb-cards__grid, .hb-cards--tools .hb-cards__grid { grid-template-columns: minmax(0, 1fr); }
    .hb-head-row { flex-direction: column; align-items: flex-start; }
    .hb-testi__nav { display: none; }
    .hb-testi__track { grid-auto-columns: 86%; padding-inline: 16px; scroll-padding-inline: 16px; }
    .hb-offer, .hb-reason, .hb-compare { padding: 22px; }
    .hb-cta--brand .hb-cta__inner, .hb-cta--light .hb-cta__inner { padding: 30px 22px; }
    .hb-actions .hb-btn, .hb-actions .hb-btn-main { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hb * { transition: none !important; }
}

/* Offer / why buttons: long labels wrap inside the card instead of overflowing */
.hb-offer__foot .hb-btn-main, .hb-why .hb-btn-main { max-width: 100%; height: auto; min-height: 54px; padding-top: 10px; padding-bottom: 10px; text-align: left; white-space: normal; }
.hb-offer__foot .hb-btn-main { width: 100%; justify-content: space-between; }
