.home-hero {
    min-height: clamp(580px,76vh,760px);
    margin-top: var(--rd-header-height);
    display: grid;
    align-items: center;
    position: relative;
    isolation: isolate;
    color: #fff;
    background: #071426;
}

.home-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg,rgba(5,15,30,.94) 0%,rgba(5,15,30,.72) 52%,rgba(5,15,30,.34)),var(--home-hero-image) center/cover;
}

.home-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 75% 30%,color-mix(in srgb,var(--rd-primary) 35%,transparent),transparent 35%);
}

.home-hero__content {
    padding-top: 72px;
    padding-bottom: 72px;
}

.home-kicker,.home-heading>span,.home-reseller span,.testimonials-hero span,.testimonials-cta span {
    display: inline-flex;
    color: #9fc4ff;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 820px;
    margin: 15px 0;
    font-size: clamp(2.65rem,6vw,5.25rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.home-hero p {
    max-width: 690px;
    font-size: clamp(1.05rem,2vw,1.3rem);
    line-height: 1.65;
    color: rgba(255,255,255,.83);
}

.home-hero small {
    display: block;
    margin-top: 24px;
    color: rgba(255,255,255,.64);
}

.home-hero__actions {
    margin-top: 28px;
}

.home-section {
    padding: clamp(70px,8vw,110px) 0;
    background: var(--rd-bg);
    color: var(--rd-text);
}

.home-section--soft {
    background: var(--rd-surface-2);
}

.home-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.home-heading>span {
    color: var(--rd-primary);
}

.home-heading h2 {
    font-size: clamp(2rem,4vw,3.2rem);
    margin: 10px 0 12px;
}

.home-heading p {
    color: var(--rd-muted);
    font-size: 1.02rem;
}

.home-feature-card,.home-product-card,.home-testimonial {
    overflow: hidden;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-card-radius);
    background: var(--rd-surface);
    color: var(--rd-text);
    box-shadow: var(--rd-shadow-soft);
    transition: .22s ease;
}

.home-feature-card:hover,.home-product-card:hover,.home-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--rd-shadow);
}

.home-feature-card {
    padding: 28px;
}

.home-feature-card>img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    margin-bottom: 22px;
    background: #071426;
}

.home-feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: color-mix(in srgb,var(--rd-primary) 13%,var(--rd-surface));
    color: var(--rd-primary);
    font-size: 1.45rem;
    margin-bottom: 25px;
}

.home-feature-card h3,.home-product-card h3 {
    font-size: 1.15rem;
}

.home-feature-card p,.home-product-card p {
    color: var(--rd-muted);
    line-height: 1.65;
}

.home-product-tabs {
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.home-product-tabs button {
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    background: var(--rd-surface);
    color: var(--rd-muted);
    padding: 9px 14px;
    font-size: .82rem;
    font-weight: 800;
}

.home-product-tabs button.active {
    background: var(--rd-primary);
    border-color: var(--rd-primary);
    color: #fff;
}

.home-product-tabs button span {
    opacity: .72;
    margin-left: 5px;
}

.home-product-media {
    height: 175px;
    display: grid;
    place-items: center;
    background: var(--rd-surface-2);
    color: var(--rd-primary);
    font-size: 2.5rem;
    border-bottom: 1px solid var(--rd-border);
}

.home-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.home-product-body {
    padding: 23px;
}

.home-product-body>span {
    color: var(--rd-primary);
    font-size: .68rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-product-body>div {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.home-testimonial iframe {
    border: 0;
}

.home-testimonial__image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--rd-surface-2);
}

.home-testimonial__body {
    padding: 25px;
}

.home-quote {
    font-size: 2rem;
    color: var(--rd-primary);
    height: 30px;
}

.home-testimonial blockquote {
    min-height: 76px;
    color: var(--rd-text);
    line-height: 1.65;
    margin: 8px 0 22px;
}

.home-testimonial footer {
    display: flex;
    gap: 11px;
    align-items: center;
}

.home-avatar {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,var(--rd-primary),var(--rd-primary-2));
    color: #fff;
    font-weight: 900;
}

.home-testimonial footer>div:last-child {
    display: grid;
    min-width: 0;
}

.home-testimonial footer strong {
    font-size: .79rem;
}

.home-testimonial footer span {
    color: var(--rd-primary);
    font-size: .72rem;
    font-weight: 850;
}

.home-testimonial footer small {
    color: var(--rd-muted);
    font-size: .64rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-reseller {
    min-height: 510px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(5,15,30,.79),rgba(5,15,30,.88)),var(--home-cta-image) center/cover;
}

.home-reseller .container {
    max-width: 820px;
}

.home-reseller h2 {
    font-size: clamp(2.2rem,5vw,4rem);
    margin: 12px 0;
}

.home-reseller p {
    font-size: 1.15rem;
    color: rgba(255,255,255,.82);
}

.home-reseller small {
    display: block;
    color: rgba(255,255,255,.65);
    margin: 18px 0 28px;
}

.home-empty {
    padding: 40px;
    border: 1px dashed var(--rd-border);
    border-radius: 20px;
    text-align: center;
    color: var(--rd-muted);
}

.testimonials-hero {
    margin-top: var(--rd-header-height);
    padding: clamp(90px,11vw,150px) 0 80px;
    color: #fff;
    background: radial-gradient(circle at 80% 10%,rgba(124,58,237,.42),transparent 38%),linear-gradient(135deg,#08182f,#0e3f73);
}

.testimonials-hero h1 {
    font-size: clamp(2.8rem,6vw,5rem);
    max-width: 850px;
    margin: 14px 0;
}

.testimonials-hero p {
    max-width: 670px;
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
}

.testimonials-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.testimonials-proof strong {
    font-size: 2.3rem;
}

.testimonials-proof span {
    max-width: 230px;
    color: rgba(255,255,255,.7);
    font-size: .78rem;
}

.testimonials-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 38px;
}

.testimonials-toolbar h2 {
    margin: 0;
}

.testimonials-toolbar p {
    margin: 6px 0 0;
    color: var(--rd-muted);
}

.testimonials-cta {
    padding: 70px 0;
    color: #fff;
    background: linear-gradient(135deg,var(--rd-primary-2),var(--rd-primary));
}

.testimonials-cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.testimonials-cta h2 {
    margin: 8px 0;
}

.testimonials-cta p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

@media(max-width:768px) {
    .home-hero {
        text-align: center;
    }

    .home-hero__content {
        padding-inline: 22px;
    }

    .testimonials-toolbar,.testimonials-cta .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-product-body>div {
        flex-wrap: wrap;
    }

}

/* Keep product artwork in a dedicated region, never behind card copy. */
.home-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    isolation: isolate;
}

.home-product-media {
    position: relative;
    flex: 0 0 210px;
    height: 210px;
    overflow: hidden;
    padding: 20px;
    background: color-mix(in srgb,var(--rd-surface-2) 88%,var(--rd-primary) 12%);
}

.home-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 0;
    border-radius: 18px;
}

.home-product-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
    background: var(--rd-surface);
    color: var(--rd-text);
    border-top: 1px solid var(--rd-border);
}

.home-product-body h3 {
    margin: 7px 0 9px;
    color: var(--rd-text);
    line-height: 1.3;
}

.home-product-body p {
    display: -webkit-box;
    min-height: 4.9em;
    margin: 0;
    overflow: hidden;
    color: var(--rd-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-product-body>div {
    margin-top: auto;
    padding-top: 20px;
}

/* Isolated identity panel avoids global footer styling and preserves contrast. */
.home-testimonial {
    display: flex;
    flex-direction: column;
}

.home-testimonial__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.home-testimonial blockquote {
    flex: 1;
}

.home-testimonial-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding: 15px;
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    background: var(--rd-surface-2);
    color: var(--rd-text);
}

.home-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1rem;
    box-shadow: 0 8px 18px color-mix(in srgb,var(--rd-primary) 24%,transparent);
}

.home-testimonial-person__details {
    min-width: 0;
    flex: 1;
}

.home-testimonial-person__headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-testimonial-person__headline strong {
    min-width: 0;
    color: var(--rd-text);
    font-size: .88rem;
    line-height: 1.35;
}

.home-score {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb,var(--rd-primary) 13%,var(--rd-surface));
    color: var(--rd-primary);
    font-size: .7rem;
    font-weight: 850;
    white-space: nowrap;
}

.home-score i {
    font-size: .66rem;
}

.home-testimonial-person small {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 6px;
    color: var(--rd-muted);
    font-size: .69rem;
    line-height: 1.45;
}

.home-testimonial-person small i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--rd-primary);
}

.home-testimonial-person small span {
    min-width: 0;
}

.home-testimonial-tag {
    color: var(--rd-text);
    font-size: inherit;
    font-weight: 850;
}

.home-achievement {
    color: var(--rd-muted);
}

/* Standalone product catalogue uses the same design tokens. */
.catalog-section {
    padding: clamp(60px,7vw,92px) 0;
    background: var(--rd-bg);
    color: var(--rd-text);
}

.catalog-section .nav-tabs {
    gap: 8px;
    border: 0;
}

.catalog-section .nav-link {
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    background: var(--rd-surface);
    color: var(--rd-muted);
    font-size: .82rem;
    font-weight: 750;
}

.catalog-section .nav-link.active {
    border-color: var(--rd-primary);
    background: var(--rd-primary);
    color: #fff;
}

.catalog-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-card-radius);
    background: var(--rd-surface);
    color: var(--rd-text);
    box-shadow: var(--rd-shadow-soft);
    transition: transform .2s ease,box-shadow .2s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rd-shadow);
}

.catalog-card--clickable {
    cursor: pointer;
}

.catalog-card--clickable:focus-visible {
    outline: 3px solid color-mix(in srgb,var(--rd-primary) 45%,transparent);
    outline-offset: 4px;
}

.catalog-card__banner {
    height: 180px;
    overflow: hidden;
    background: var(--rd-surface-2);
}

.catalog-card__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card__banner--empty {
    display: grid;
    place-items: center;
    color: var(--rd-primary);
    font-size: 3rem;
}

.catalog-card__logo {
    position: relative;
    z-index: 1;
    height: 52px;
    margin-top: -50px;
    text-align: center;
}

.catalog-card__logo>img,.catalog-card__logo-placeholder {
    width: 100px;
    height: 100px;
    padding: 9px;
    border: 4px solid var(--rd-surface);
    border-radius: 28px;
    background: #fff;
    object-fit: contain;
    box-shadow: var(--rd-shadow-soft);
}

.catalog-card__logo-placeholder {
    display: inline-grid;
    place-items: center;
    color: var(--rd-primary);
    font-size: 2rem;
}

.catalog-card__body {
    flex: 1;
    padding: 58px 24px 20px;
    text-align: center;
}

.catalog-card__category {
    color: var(--rd-primary);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.catalog-card__body h3 {
    margin: 7px 0 10px;
    color: var(--rd-text);
    font-size: 1.08rem;
}

.catalog-card__body p {
    margin: 0;
    color: var(--rd-muted);
    font-size: .82rem;
    line-height: 1.65;
}

.catalog-card__actions {
    display: flex;
    gap: 9px;
    padding: 0 24px 24px;
    background: var(--rd-surface);
}

@media(max-width:575px) {
    .home-product-media {
        flex-basis: 190px;
        height: 190px;
    }

    .home-testimonial-person__headline {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-school-address {
        display: none;
    }

    .catalog-card__actions {
        flex-direction: column;
    }

}

/* Privacy policy */
.privacy-hero {
    margin-top: var(--rd-header-height);
    padding: clamp(72px,9vw,118px) 0 64px;
    color: #fff;
    background: radial-gradient(circle at 82% 12%,rgba(129,140,248,.42),transparent 34%),linear-gradient(135deg,#111c55,#3F51B5);
}

.privacy-hero .container {
    max-width: 1120px;
}

.privacy-eyebrow {
    display: inline-flex;
    margin-bottom: 13px;
    color: #c7d2fe;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.privacy-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.7rem,6vw,4.8rem);
    letter-spacing: -.055em;
}

.privacy-hero p {
    max-width: 760px;
    margin: 18px 0 24px;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem,2vw,1.16rem);
    line-height: 1.7;
}

.privacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: rgba(255,255,255,.74);
    font-size: .8rem;
}

.privacy-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.privacy-page {
    padding: clamp(54px,7vw,92px) 0;
    background: var(--rd-bg);
    color: var(--rd-text);
}

.privacy-page .container {
    max-width: 1120px;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 230px minmax(0,1fr);
    gap: clamp(34px,6vw,78px);
    align-items: start;
}

.privacy-nav {
    position: sticky;
    top: calc(var(--rd-header-height) + 22px);
    display: grid;
    padding: 18px;
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    background: var(--rd-surface);
    box-shadow: var(--rd-shadow-soft);
}

.privacy-nav strong {
    margin: 0 10px 9px;
    color: var(--rd-text);
    font-size: .78rem;
}

.privacy-nav a {
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--rd-muted);
    font-size: .76rem;
    font-weight: 650;
    text-decoration: none;
}

.privacy-nav a:hover,.privacy-nav a:focus-visible {
    color: var(--rd-primary);
    background: color-mix(in srgb,var(--rd-primary) 9%,var(--rd-surface));
}

.privacy-content {
    min-width: 0;
}

.privacy-content section {
    padding: 0 0 45px;
    margin: 0 0 45px;
    border-bottom: 1px solid var(--rd-border);
    scroll-margin-top: calc(var(--rd-header-height) + 24px);
}

.privacy-content section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.privacy-section-number {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--rd-primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.privacy-content h2 {
    margin: 0 0 20px;
    color: var(--rd-text);
    font-size: clamp(1.55rem,3vw,2.15rem);
}

.privacy-content h3 {
    margin: 27px 0 8px;
    color: var(--rd-text);
    font-size: 1rem;
}

.privacy-content p,.privacy-content li {
    color: var(--rd-muted);
    font-size: .92rem;
    line-height: 1.82;
}

.privacy-content p {
    margin: 0 0 15px;
}

.privacy-content ul {
    display: grid;
    gap: 7px;
    margin: 8px 0 18px;
    padding-left: 22px;
}

.privacy-principle {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid color-mix(in srgb,var(--rd-primary) 25%,var(--rd-border));
    border-radius: 17px;
    background: color-mix(in srgb,var(--rd-primary) 7%,var(--rd-surface));
}

.privacy-principle>i {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--rd-primary);
    color: #fff;
    font-size: 1.1rem;
}

.privacy-principle div {
    display: grid;
    gap: 4px;
}

.privacy-principle strong {
    color: var(--rd-text);
    font-size: .86rem;
}

.privacy-principle span {
    color: var(--rd-muted);
    font-size: .8rem;
    line-height: 1.65;
}

.privacy-contact-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin-top: 22px;
}

.privacy-contact-grid a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--rd-border);
    border-radius: 15px;
    background: var(--rd-surface);
    color: var(--rd-text);
    text-decoration: none;
    transition: .18s ease;
}

.privacy-contact-grid a:hover {
    border-color: var(--rd-primary);
    transform: translateY(-2px);
}

.privacy-contact-grid i {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb,var(--rd-primary) 12%,var(--rd-surface));
    color: var(--rd-primary);
}

.privacy-contact-grid span {
    display: grid;
    font-size: .78rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.privacy-contact-grid small {
    color: var(--rd-muted);
    font-size: .65rem;
    font-weight: 650;
}

@media(max-width:800px) {
    .privacy-layout {
        grid-template-columns: 1fr;
    }

    .privacy-nav {
        position: static;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .privacy-nav strong {
        grid-column: 1/-1;
    }

    .privacy-contact-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width:480px) {
    .privacy-nav {
        grid-template-columns: 1fr;
    }

    .privacy-principle {
        flex-direction: column;
    }

}
