:root {
    --color-ink: #1f2428;
    --color-muted: #60717a;
    --color-paper: #f7fbfc;
    --color-surface: #ffffff;
    --color-line: #d7e8ec;
    --color-cyan: #1aa0b6;
    --color-cyan-dark: #08758a;
    --color-cyan-soft: #edf7f8;
    --color-accent: #e6f3f5;
    --color-warm: #edf7f8;
    --color-coral: #1aa0b6;
    --shadow-soft: 0 18px 42px rgba(16, 63, 72, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    color: var(--color-ink);
    background: #ffffff;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(0, 168, 189, 0.45);
    outline-offset: 3px;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--color-cyan-dark);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header--compact {
    box-shadow: 0 10px 30px rgba(20, 41, 48, 0.08);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    transition: min-height 0.2s ease, gap 0.2s ease;
}

.site-header--compact .site-header__inner {
    min-height: 58px;
    gap: 16px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    text-decoration: none;
}

.site-header--compact .site-logo {
    min-width: 220px;
}

.site-logo__image {
    width: auto;
    height: 58px;
    max-width: 102px;
    object-fit: contain;
    flex: 0 0 auto;
    transition: height 0.2s ease, max-width 0.2s ease;
}

.site-header--compact .site-logo__image {
    height: 44px;
    max-width: 78px;
}

.site-logo__text {
    display: grid;
    gap: 1px;
}

.site-logo__text strong {
    font-size: 18px;
    line-height: 1.05;
}

.site-logo__text small {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.25;
}

.site-header--compact .site-logo__text small {
    display: none;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    font-size: 14px;
    white-space: nowrap;
}

.site-nav a {
    color: var(--color-muted);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-cyan-dark);
}

.site-main {
    overflow-x: clip;
    overflow-y: visible;
}

.section {
    padding: 66px 0;
}

.section__header {
    max-width: 760px;
    margin-bottom: 30px;
}

.section__header--compact {
    max-width: 520px;
}

.section__header h2,
.split h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
}

.section__header p,
.split p,
.final-cta p {
    color: var(--color-muted);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--color-cyan-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--primary {
    color: #ffffff;
    background: var(--color-cyan);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: var(--color-cyan-dark);
}

.button--ghost {
    color: var(--color-cyan-dark);
    border-color: rgba(0, 168, 189, 0.28);
    background: rgba(255, 255, 255, 0.76);
}

.button--light {
    color: var(--color-cyan-dark);
    background: #ffffff;
}

.text-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 18px;
    color: var(--color-cyan-dark);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

.hero {
    padding: 54px 0 70px;
    background:
        radial-gradient(circle at 82% 16%, rgba(0, 168, 189, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, var(--color-paper) 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: 48px;
}

.hero h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(32px, 4.2vw, 50px);
    line-height: 1.08;
}

.hero__lead {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--color-muted);
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.hero__facts li {
    padding: 8px 12px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 700;
}

.hero-mosaic {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 14px;
    align-items: stretch;
}

.hero-mosaic__item {
    margin: 0;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.hero-mosaic__item img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.hero-mosaic__item--large {
    grid-row: span 2;
}

.hero-mosaic__item--large img {
    min-height: 520px;
}

.cards,
.formats,
.teachers,
.events,
.reviews,
.news-grid {
    display: grid;
    gap: 20px;
}

.cards--directions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.format-card,
.teacher-card,
.event-card,
.news-card,
.reviews blockquote {
    margin: 0;
    padding: 26px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
}

.card,
.format-card,
.event-card,
.news-card {
    display: grid;
    align-content: start;
}

.card h3,
.format-card h3,
.teacher-card h3,
.event-card h3,
.news-card h3,
.trust h3 {
    margin: 12px 0 10px;
    font-size: 20px;
    line-height: 1.2;
}

.card p,
.format-card p,
.teacher-card p,
.event-card p,
.news-card p,
.trust p,
.reviews p {
    margin: 0;
    color: var(--color-muted);
}

.card__tag,
.news-card__tag,
.format-card__number {
    display: inline-flex;
    color: var(--color-cyan-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.section--accent,
.section--featured-programs {
    background: var(--color-cyan-soft);
}

.section--formats {
    background: var(--color-paper);
}

.section--soft {
    background: var(--color-warm);
}

.formats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.format-card {
    min-height: 246px;
}

.split,
.final-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: 44px;
}

.visual-card {
    margin: 0;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.visual-card img {
    width: 100%;
    min-height: 410px;
    object-fit: cover;
}

.ab-featured-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.ab-featured-program {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(26, 160, 182, 0.3);
    border-top: 5px solid var(--color-cyan);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 247, 248, 0.9)),
        var(--color-surface);
    box-shadow: 0 18px 44px rgba(16, 63, 72, 0.12);
}

.ab-featured-programs--single .ab-featured-program {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: stretch;
}

.ab-featured-program__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
}

.ab-featured-program__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ab-featured-program__title {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.12;
}

.ab-featured-program__title a {
    color: var(--color-ink);
    text-decoration: none;
}

.ab-featured-program__title a:hover,
.ab-featured-program__title a:focus-visible {
    color: var(--color-cyan-dark);
}

.ab-featured-program__text {
    margin: 0;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.5;
}

.ab-featured-program__meta {
    display: grid;
    gap: 4px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.35;
}

.ab-featured-program__meta strong {
    color: var(--color-ink);
    font-size: 18px;
}

.ab-featured-program__media {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    background: var(--color-cyan-soft);
    text-decoration: none;
}

.ab-featured-program__media img,
.ab-featured-program__media span {
    width: 100%;
    height: 100%;
    min-height: 260px;
}

.ab-featured-program__media img {
    object-fit: cover;
    object-position: center center;
}

.ab-featured-program__media span {
    display: grid;
    place-items: center;
    color: var(--color-cyan-dark);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(237, 247, 248, 0.94)),
        radial-gradient(circle at 82% 18%, rgba(26, 160, 182, 0.18), transparent 28%),
        var(--color-cyan-soft);
    font-size: 22px;
    font-weight: 800;
}

.trust {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
}

.trust__list {
    display: grid;
    gap: 22px;
}

.trust__list article {
    padding-left: 20px;
    border-left: 4px solid var(--color-cyan);
}

.section--numbers {
    padding: 42px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-cyan-dark), var(--color-cyan));
}

.numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.number {
    display: grid;
    gap: 4px;
}

.number strong {
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1;
}

.number span {
    color: rgba(255, 255, 255, 0.86);
}

.ab-student-gallery__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 18px;
}

.ab-student-work-card {
    flex: 0 1 270px;
    margin: 0;
}

.ab-student-work-card__media {
    aspect-ratio: 4 / 5;
    background: var(--color-soft);
}

.ab-student-work-card__image {
    object-fit: contain;
    object-position: center center;
}

.ab-student-work-card__body {
    padding: 18px;
}

.teachers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-card {
    display: grid;
    gap: 16px;
}

.teacher-card__photo {
    margin: -1px -1px 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.teacher-card__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.teacher-card h3 {
    margin-bottom: 0;
}

.reviews {
    display: flex;
    gap: 18px;
    margin-right: calc((100vw - min(1180px, calc(100vw - 40px))) / -2);
    overflow-x: auto;
    padding: 4px 0 12px;
    scroll-padding-left: 0;
    scroll-snap-type: x proximity;
}

.review-card {
    display: grid;
    flex: 0 0 min(420px, 82vw);
    gap: 18px;
    scroll-snap-align: start;
}

.reviews cite {
    color: var(--color-cyan-dark);
    font-style: normal;
    font-weight: 700;
}

.news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    min-height: 230px;
}

.events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.final-cta {
    color: var(--color-ink);
    background:
        linear-gradient(90deg, rgba(0, 168, 189, 0.14), transparent 55%),
        var(--color-cyan-soft);
}

.final-cta p,
.final-cta .eyebrow {
    color: var(--color-muted);
}

.form-placeholders,
.cta-actions {
    display: grid;
    gap: 16px;
}

.cta-actions {
    align-content: center;
}

.todo-box {
    padding: 22px;
    border: 1px dashed rgba(0, 168, 189, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    font-weight: 700;
}

.site-footer {
    padding: 34px 0;
    color: var(--color-ink);
    background: #f5fbfc;
    border-top: 1px solid var(--color-line);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.site-footer__logo {
    width: auto;
    height: 86px;
    max-width: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.site-footer p {
    margin: 6px 0 0;
    color: var(--color-muted);
}

.site-footer__label {
    color: var(--color-cyan-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1120px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
        padding: 12px 0;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .site-logo__text small {
        display: none;
    }

    .hero__grid,
    .ab-featured-programs--single .ab-featured-program,
    .split,
    .final-cta__grid,
    .trust {
        grid-template-columns: 1fr;
    }

    .hero__grid {
        gap: 30px;
    }

    .hero-mosaic__item--large img {
        min-height: 420px;
    }

    .cards--directions,
    .formats,
    .teachers,
    .numbers,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
        min-height: 0;
        padding: 10px 0;
    }

    .site-header--compact .site-header__inner {
        min-height: 0;
        padding: 7px 0;
    }

    .site-logo {
        min-width: 0;
        gap: 9px;
    }

    .site-logo__image {
        height: 48px;
        max-width: 84px;
    }

    .site-header--compact .site-logo__image {
        height: 38px;
        max-width: 66px;
    }

    .site-logo__text strong {
        font-size: 16px;
    }

    .site-logo__text small {
        display: none;
    }

    .site-header__cta {
        min-height: 44px;
        padding: 10px 14px;
    }

    .site-nav {
        gap: 14px;
        font-size: 13px;
    }

    .section {
        padding: 52px 0;
    }

    .hero {
        padding-top: 42px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero__lead,
    .section__header p,
    .split p,
    .final-cta p {
        font-size: 16px;
    }

    .hero__actions,
    .hero__actions .button {
        width: 100%;
    }

    .hero-mosaic {
        grid-template-columns: 1fr;
    }

    .hero-mosaic__item--large {
        grid-row: auto;
    }

    .hero-mosaic__item img,
    .hero-mosaic__item--large img,
    .visual-card img {
        min-height: 240px;
    }

    .ab-featured-programs {
        grid-template-columns: 1fr;
    }

    .ab-featured-program__content {
        padding: 22px;
    }

    .ab-featured-program__media,
    .ab-featured-program__media img,
    .ab-featured-program__media span {
        min-height: 240px;
    }

    .cards--directions,
    .formats,
    .teachers,
    .numbers,
    .reviews,
    .events,
    .news-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .card,
    .format-card,
    .teacher-card,
    .event-card,
    .news-card,
    .reviews blockquote {
        padding: 22px;
    }
    .site-footer__grid .button {
        width: 100%;
    }
}

/* Approved 2026 header and footer layout */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header--compact {
    box-shadow: 0 10px 30px rgba(16, 63, 72, 0.08);
}

.site-header__inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    transition: min-height 0.2s ease, gap 0.2s ease;
}

.site-header--compact .site-header__inner {
    min-height: 60px;
    gap: 18px;
}

.site-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-ink);
    text-decoration: none;
}

.site-logo__image {
    width: auto;
    height: 48px;
    max-width: none;
    flex: 0 0 auto;
    object-fit: contain;
    filter: none;
    transition: height 0.2s ease;
}

.site-header--compact .site-logo__image {
    height: 40px;
    max-width: none;
}

.site-logo__slogan {
    max-width: 190px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.2;
}

.site-header--compact .site-logo__slogan {
    font-size: 12px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    color: var(--color-ink);
    font-size: 14px;
    white-space: normal;
}

.site-nav a {
    color: var(--color-ink);
    font-weight: 650;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-cyan);
}

.site-header__cta {
    white-space: nowrap;
}

.site-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    color: var(--color-ink);
    background: var(--color-surface);
    cursor: pointer;
}

.site-header__toggle span,
.site-header__toggle span::before,
.site-header__toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header__toggle span {
    position: relative;
}

.site-header__toggle span::before,
.site-header__toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-header__toggle span::before {
    transform: translateY(-7px);
}

.site-header__toggle span::after {
    transform: translateY(7px);
}

.site-header.is-menu-open .site-header__toggle span {
    background: transparent;
}

.site-header.is-menu-open .site-header__toggle span::before {
    transform: rotate(45deg);
}

.site-header.is-menu-open .site-header__toggle span::after {
    transform: rotate(-45deg);
}

.site-header__mobile {
    display: grid;
    gap: 14px;
    padding: 0 0 16px;
}

.site-header__mobile[hidden] {
    display: none;
}

.site-header__mobile-nav {
    display: grid;
    gap: 4px;
}

.site-header__mobile-nav a {
    min-width: 0;
    border-radius: 8px;
    padding: 10px 0;
    color: var(--color-ink);
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

.site-header__mobile-cta {
    justify-self: stretch;
    max-width: 100%;
    text-align: center;
}

.button--primary {
    color: #ffffff;
    background: var(--color-cyan);
    border-color: var(--color-cyan);
}

.button--primary:hover,
.button--primary:focus-visible {
    color: #ffffff;
    background: var(--color-cyan-dark);
    border-color: var(--color-cyan-dark);
}

.section--soft,
.section--formats {
    background: var(--color-cyan-soft);
}

.site-footer {
    width: 100%;
    padding: 28px 0 16px;
    color: var(--color-ink);
    background: var(--color-cyan-soft);
    border-top: 3px solid var(--color-cyan);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1.4fr;
    gap: 22px;
    align-items: start;
}

.site-footer__logo {
    width: auto;
    height: 54px;
    max-width: none;
    display: block;
    margin: 0 0 10px;
    object-fit: contain;
    filter: none;
}

.site-footer__title,
.site-footer__label {
    display: block;
    margin-bottom: 9px;
    color: var(--color-cyan-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-footer__slogan,
.site-footer__text,
.site-footer__address,
.site-footer p {
    margin: 0 0 7px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.25;
}

.site-footer__slogan {
    color: var(--color-ink);
    font-weight: 750;
}

.site-footer__address {
    display: flex;
    gap: 7px;
    align-items: flex-start;
}

.site-footer__socials {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.site-footer__socials a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    color: var(--color-cyan-dark);
    background: var(--color-surface);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

.site-footer__list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list li {
    min-height: 20px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
}

.site-footer__list a {
    color: var(--color-ink);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible,
.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
    color: var(--color-cyan);
}

.site-footer__list--contacts span {
    width: 15px;
    flex: 0 0 15px;
    color: var(--color-cyan-dark);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

.site-footer__cta {
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 10px;
    padding-left: 22px;
    border-left: 1px solid var(--color-line);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    margin-top: 20px;
    padding-top: 13px;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.25;
}

.site-footer__bottom a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer__heart {
    color: var(--color-cyan);
}


@media (max-width: 768px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        padding: 10px 0;
    }

    .site-header--compact .site-header__inner {
        min-height: 0;
        padding: 7px 0;
    }

    .site-logo {
        min-width: 0;
    }

    .site-logo__image {
        height: 42px;
    }

    .site-header--compact .site-logo__image {
        height: 36px;
    }

    .site-logo__slogan {
        max-width: 150px;
        font-size: 11px;
        line-height: 1.15;
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .site-header__toggle {
        display: inline-flex;
    }
}

@media (max-width: 380px) {
    .site-logo__slogan {
        display: none;
    }
}
@media (max-width: 1180px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
        padding: 12px 0;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        white-space: nowrap;
    }

    .site-logo__slogan {
        max-width: 170px;
        font-size: 12px;
    }

    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .site-footer__cta {
        border-left: 0;
        border-top: 1px solid var(--color-line);
        padding: 16px 0 0;
    }
}

@media (max-width: 700px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
        min-height: 0;
        padding: 10px 0;
    }

    .site-header--compact .site-header__inner {
        min-height: 0;
        padding: 7px 0;
    }

    .site-logo__image {
        height: 42px;
    }

    .site-header--compact .site-logo__image {
        height: 36px;
    }

    .site-logo__slogan {
        max-width: 132px;
        font-size: 11px;
        line-height: 1.15;
    }

    .site-header__cta {
        min-height: 42px;
        padding: 9px 12px;
    }

    .site-nav {
        gap: 14px;
        font-size: 13px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__cta {
        border-left: 0;
        border-top: 1px solid var(--color-line);
        padding: 16px 0 0;
    }

    .site-footer__grid .button {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        padding: 10px 0;
    }

    .site-header--compact .site-header__inner {
        min-height: 0;
        padding: 7px 0;
    }

    .site-logo {
        min-width: 0;
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .site-header__toggle {
        display: inline-flex;
    }
}
/* Program listing cards */
.abrys-page--list .abrys-section,
.ab-list-section {
    padding: 58px 0 68px;
}

.abrys-page--list h1,
.ab-list-section h1 {
    margin: 0 0 28px;
    font-size: clamp(34px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: 0;
}

.ab-list-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.ab-grid {
    display: grid;
    gap: 20px;
}

.ab-grid--programs,
.ab-grid--teachers,
.ab-grid--news {
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    align-items: stretch;
    justify-content: start;
}

.ab-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgba(16, 63, 72, 0.08);
}

.ab-card--featured {
    border-color: rgba(26, 160, 182, 0.42);
    border-top: 4px solid var(--color-cyan);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 248, 0.72)),
        var(--color-surface);
    box-shadow: 0 14px 34px rgba(16, 63, 72, 0.12);
}

.ab-card--program,
.ab-card--teacher,
.ab-card--news {
    height: 100%;
}

.ab-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-cyan-soft);
    text-decoration: none;
}

.ab-card--program .ab-card__media {
    aspect-ratio: 16 / 10;
}

.ab-card--news .ab-card__media {
    aspect-ratio: 16 / 9;
}

.ab-card--teacher .ab-card__media {
    aspect-ratio: 4 / 5;
}

.ab-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ab-card--program .ab-card__image,
.ab-card--news .ab-card__image {
    object-position: center center;
}

.ab-card--teacher .ab-card__image {
    object-position: center top;
}

.ab-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--color-cyan-dark);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(237, 247, 248, 0.94)),
        radial-gradient(circle at 82% 18%, rgba(26, 160, 182, 0.18), transparent 28%),
        var(--color-cyan-soft);
    font-size: 18px;
    font-weight: 800;
}

.ab-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.ab-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ab-tag {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-ink);
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.18;
}

.ab-tag--primary {
    color: var(--color-cyan-dark);
    background: var(--color-accent);
}

.ab-tag--muted {
    color: var(--color-muted);
    background: var(--color-paper);
}

.ab-tag--success {
    color: #2f8f6b;
    background: #eef8f4;
    border-color: #c9e7dc;
}

.ab-tag--important {
    color: #ffffff;
    background: var(--color-cyan-dark);
    border-color: var(--color-cyan-dark);
}

.ab-card__title {
    margin: 0;
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.18;
}

.ab-card__title a {
    color: var(--color-ink);
    text-decoration: none;
}

.ab-card__title a:hover,
.ab-card__title a:focus-visible {
    color: var(--color-cyan-dark);
}

.ab-card__text,
.ab-card__note {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.48;
}

.ab-card__note {
    color: var(--color-cyan-dark);
    font-weight: 650;
}

.ab-card__price {
    display: grid;
    gap: 3px;
    margin-top: auto;
    padding-top: 2px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.25;
}

.ab-card__price strong {
    color: var(--color-ink);
    font-size: 18px;
    line-height: 1.2;
}

.ab-card__old-price {
    text-decoration: line-through;
}

.ab-card__actions {
    margin-top: auto;
}

.ab-card--program .ab-card__price + .ab-card__actions {
    margin-top: 0;
}

.ab-card--program .ab-card__title,
.ab-card--teacher .ab-card__title,
.ab-card--news .ab-card__title,
.ab-card--program .ab-card__text,
.ab-card--teacher .ab-card__text,
.ab-card--news .ab-card__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.ab-card--program .ab-card__title,
.ab-card--teacher .ab-card__title,
.ab-card--news .ab-card__title {
    -webkit-line-clamp: 3;
}

.ab-card--program .ab-card__text,
.ab-card--teacher .ab-card__text,
.ab-card--news .ab-card__text {
    -webkit-line-clamp: 3;
}

.ab-btn {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    padding: 10px 16px;
    border: 1px solid var(--color-cyan);
    border-radius: 6px;
    color: var(--color-cyan-dark);
    background: var(--color-surface);
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ab-btn:hover,
.ab-btn:focus-visible {
    color: #ffffff;
    background: var(--color-cyan-dark);
    border-color: var(--color-cyan-dark);
}

.ab-empty {
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    color: var(--color-muted);
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgba(16, 63, 72, 0.06);
    font-size: 16px;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .ab-grid--programs,
    .ab-grid--teachers,
    .ab-grid--news {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 620px) {
    .abrys-page--list .abrys-section,
    .ab-list-section {
        padding: 42px 0 54px;
    }

    .abrys-page--list h1,
    .ab-list-section h1 {
        font-size: 31px;
    }

    .ab-grid--programs,
    .ab-grid--teachers,
    .ab-grid--news {
        grid-template-columns: 1fr;
    }

    .ab-card__body {
        padding: 16px;
    }
}


.ab-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ab-news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -10px 0 26px;
}

.ab-news-filter__item {
    text-decoration: none;
}

.ab-news-filter__item:hover,
.ab-news-filter__item:focus-visible,
.ab-news-filter__item.is-active {
    color: #ffffff;
    background: var(--color-cyan-dark);
    border-color: var(--color-cyan-dark);
}

.ab-card__play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(16, 63, 72, 0.78);
    box-shadow: 0 8px 22px rgba(16, 63, 72, 0.24);
}

.ab-card__play::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 13px solid #ffffff;
}
/* Program detail pages */
.ab-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ab-section {
    padding: 64px 0;
}

.ab-section--soft {
    background: var(--color-cyan-soft);
}

.ab-section__head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.ab-section__title {
    margin: 0;
    font-size: clamp(25px, 2.2vw, 32px);
    line-height: 1.15;
}

.ab-program-hero {
    padding: 54px 0 64px;
    background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-surface) 100%);
}

.ab-program-hero__grid,
.ab-teacher-hero,
.ab-news-hero {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 38px;
    align-items: center;
}

.ab-teacher-hero__content,
.ab-news-hero__content {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.ab-teacher-hero h1,
.ab-news-hero h1 {
    margin: 0;
    font-size: clamp(34px, 3vw, 42px);
    line-height: 1.1;
}

.ab-teacher-hero__media,
.ab-news-hero__media {
    aspect-ratio: 4 / 3;
}

.ab-program-hero__content {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.ab-program-hero h1 {
    margin: 0;
    font-size: clamp(34px, 3vw, 42px);
    line-height: 1.1;
}

.ab-program-hero__lead {
    max-width: 660px;
    margin: 0;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.55;
}

.ab-program-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.ab-btn--primary {
    color: #ffffff;
    background: var(--color-cyan);
    border-color: var(--color-cyan);
}

.ab-btn--primary:hover,
.ab-btn--primary:focus-visible {
    color: #ffffff;
    background: var(--color-cyan-dark);
    border-color: var(--color-cyan-dark);
}

.ab-program-hero__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-cyan-soft);
    box-shadow: 0 16px 44px rgba(16, 63, 72, 0.1);
}

.ab-program-hero__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ab-teacher-detail .ab-teacher-hero__media {
    width: min(100%, 420px);
    aspect-ratio: 3 / 4;
    justify-self: end;
}

.ab-teacher-detail .ab-teacher-hero__image {
    object-fit: contain;
    object-position: center top;
}

.ab-program-layout {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
    gap: 24px;
    align-items: start;
}

.ab-program-facts {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: visible;
}

.ab-program-facts .ab-section__title {
    margin: 0;
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.18;
}

.ab-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.ab-facts__item {
    display: grid;
    gap: 5px;
    padding: 12px 0 0;
    border-top: 1px solid var(--color-line);
}

.ab-facts__item:first-child {
    padding-top: 0;
    border-top: 0;
}

.ab-facts dt {
    color: var(--color-cyan-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ab-facts dd {
    margin: 0;
    color: var(--color-ink);
    font-size: 15px;
    line-height: 1.42;
}

.ab-program-main,
.ab-registration-section {
    min-width: 0;
    scroll-margin-top: 112px;
}

.ab-program-audience-slots {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.ab-content-card {
    padding: 24px;
}

.ab-content {
    color: var(--color-ink);
    font-size: 17px;
    line-height: 1.62;
}

.ab-content > *:first-child {
    margin-top: 0;
}

.ab-content > *:last-child {
    margin-bottom: 0;
}

.ab-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ab-card--related .ab-card__media--compact {
    aspect-ratio: 4 / 3;
}

.ab-card--faq,
.ab-faq-item {
    padding: 20px;
}

.ab-card--faq .ab-card__body,
.ab-faq-item .ab-card__body {
    padding: 0;
}

.ab-faq-list {
    display: grid;
    gap: 14px;
}

.ab-faq-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.ab-faq-item p {
    margin: 0;
    color: var(--color-muted);
}

.ab-registration-section {
    background: var(--color-surface);
}

.ab-registration-card {
    padding: 24px;
    overflow: visible;
}

.ab-registration-tabs {
    display: grid;
    gap: 18px;
}

.ab-registration-tabs__list {
    display: inline-flex;
    width: fit-content;
    padding: 4px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
}

.ab-registration-tabs__button {
    min-height: 40px;
    padding: 9px 15px;
    border: 0;
    border-radius: 6px;
    color: var(--color-muted);
    background: transparent;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.ab-registration-tabs__button.is-active,
.ab-registration-tabs__button[aria-selected="true"] {
    color: #ffffff;
    background: var(--color-cyan);
}

.ab-registration-tabs__panel[hidden] {
    display: none;
}

.ab-registration-tabs__panel {
    min-width: 0;
    overflow: visible;
}

.ab-registration-form {
    min-width: 0;
    overflow: visible;
}

.abrys-form-placeholder {
    padding: 18px;
    border: 1px dashed rgba(26, 160, 182, 0.46);
    border-radius: 8px;
    color: var(--color-muted);
    background: var(--color-paper);
    font-weight: 700;
}

@media (max-width: 980px) {
    .ab-program-hero__grid,
    .ab-teacher-hero,
    .ab-news-hero,
    .ab-program-layout,
    .ab-faq-layout,
    .ab-faq-detail-layout {
        grid-template-columns: 1fr;
    }

    .ab-program-facts {
        position: static;
    }

    .ab-faq-sidebar {
        position: static;
    }

    .ab-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-teacher-detail .ab-teacher-hero__media {
        justify-self: center;
    }
}

@media (max-width: 620px) {
    .ab-container {
        width: min(100% - 28px, 1180px);
    }

    .ab-section {
        padding: 48px 0;
    }

    .ab-faq-search {
        grid-template-columns: 1fr;
    }

    .ab-faq-answer {
        padding: 20px;
    }

    .ab-program-hero {
        padding: 42px 0 50px;
    }

    .ab-program-hero h1 {
        font-size: 31px;
    }

    .ab-program-hero__lead {
        font-size: 16px;
    }

    .ab-program-hero__media {
        aspect-ratio: 4 / 3;
    }

    .ab-program-hero__actions,
    .ab-program-hero__actions .ab-btn,
    .ab-registration-tabs__list,
    .ab-registration-tabs__button {
        width: 100%;
    }

    .ab-registration-tabs__list {
        display: grid;
    }

    .ab-grid--related {
        grid-template-columns: 1fr;
    }

    .ab-content-card,
    .ab-registration-card {
        padding: 18px;
    }
}

.ab-news-detail__layout {
    display: grid;
    min-width: 0;
    gap: 26px;
}

.ab-news-detail__figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-cyan-soft);
    box-shadow: 0 16px 44px rgba(16, 63, 72, 0.1);
}

.ab-news-detail__image {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.ab-media {
    min-width: 0;
    --ab-media-max-height: min(70svh, 70dvh);
    display: grid;
    justify-self: center;
    gap: 10px;
    width: 100%;
    max-width: min(100%, 900px);
    margin: 0;
}

.ab-media__frame {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #0f2428;
    box-shadow: 0 16px 44px rgba(16, 63, 72, 0.1);
}

.ab-media__frame video,
.ab-media__frame iframe {
    display: block;
    max-width: 100%;
    border: 0;
}

.ab-media--local {
    width: fit-content;
    max-width: 100%;
}

.ab-media--local .ab-media__frame {
    display: flex;
    width: fit-content;
    max-width: 100%;
    max-height: var(--ab-media-max-height);
    align-items: center;
    justify-content: center;
    aspect-ratio: auto;
}

.ab-media--local .ab-media__frame video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--ab-media-max-height);
    object-fit: contain;
}

.ab-media--local.is-landscape {
    width: min(66vw, 960px, 100%);
}

.ab-media--local.is-landscape .ab-media__frame {
    width: 100%;
    max-width: 100%;
}

.ab-media--local.is-landscape .ab-media__frame video {
    width: 100%;
}

.ab-media--local.is-portrait,
.ab-media--local.is-square {
    width: min(100%, calc(var(--ab-media-max-height) * var(--ab-video-ratio, 0.75)));
}

.ab-media--external {
    width: 100%;
}

.ab-media--external .ab-media__frame {
    max-height: min(66svh, 66dvh);
}

.ab-media--external .ab-media__frame iframe {
    width: 100%;
    height: 100%;
}

.ab-media--ratio-16-9 {
    max-width: min(66vw, 900px, 100%);
}

.ab-media--ratio-4-3 {
    max-width: min(66vw, 760px, 100%);
}

.ab-media--ratio-1-1 {
    max-width: min(520px, 66svh, 66dvh, 100%);
}

.ab-media--ratio-4-5 {
    max-width: min(420px, calc(66svh * 0.8), calc(66dvh * 0.8), 100%);
}

.ab-media--ratio-9-16 {
    max-width: min(320px, calc(66svh * 0.5625), calc(66dvh * 0.5625), 100%);
}

.ab-media--ratio-16-9 .ab-media__frame {
    aspect-ratio: 16 / 9;
}

.ab-media--ratio-4-3 .ab-media__frame {
    aspect-ratio: 4 / 3;
}

.ab-media--ratio-1-1 .ab-media__frame {
    aspect-ratio: 1 / 1;
}

.ab-media--ratio-4-5 .ab-media__frame {
    aspect-ratio: 4 / 5;
}

.ab-media--ratio-9-16 .ab-media__frame {
    aspect-ratio: 9 / 16;
}

.ab-media--local.ab-media--ratio-16-9 .ab-media__frame,
.ab-media--local.ab-media--ratio-4-3 .ab-media__frame,
.ab-media--local.ab-media--ratio-1-1 .ab-media__frame,
.ab-media--local.ab-media--ratio-4-5 .ab-media__frame,
.ab-media--local.ab-media--ratio-9-16 .ab-media__frame {
    aspect-ratio: auto;
}

.ab-media__caption {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 620px) {
    .ab-media {
    min-width: 0;
        --ab-media-max-height: min(78svh, 78dvh);
        max-width: 100%;
    }

    .ab-media--local,
    .ab-media--local.is-landscape,
    .ab-media--local.is-portrait,
    .ab-media--local.is-square,
    .ab-media--external {
        width: min(100%, calc(var(--ab-media-max-height) * var(--ab-video-ratio, 1.7778)));
        max-width: 100%;
    }

    .ab-media--ratio-16-9,
    .ab-media--ratio-4-3,
    .ab-media--ratio-1-1,
    .ab-media--ratio-4-5,
    .ab-media--ratio-9-16 {
        max-width: 100%;
    }
}
.ab-news-gallery,
.ab-news-related {
    display: grid;
    gap: 18px;
}

.ab-news-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.ab-news-gallery__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-cyan-soft);
}

.ab-news-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.18s ease;
}

.ab-news-gallery__item:hover img,
.ab-news-gallery__item:focus-visible img {
    transform: scale(1.03);
}

.ab-news-detail__back {
    display: flex;
}

.ab-lightbox-open {
    overflow: hidden;
}

.ab-lightbox[hidden] {
    display: none;
}

.ab-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 30, 34, 0.82);
}

.ab-lightbox__dialog {
    position: relative;
    display: grid;
    width: min(100%, 1120px);
    max-height: min(90vh, 820px);
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 12px;
    align-items: center;
}

.ab-lightbox__figure {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.ab-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    border-radius: 8px;
    background: var(--color-surface);
    object-fit: contain;
}

.ab-lightbox__caption {
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}

.ab-lightbox__close,
.ab-lightbox__nav {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(16, 63, 72, 0.72);
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ab-lightbox__close:hover,
.ab-lightbox__close:focus-visible,
.ab-lightbox__nav:hover,
.ab-lightbox__nav:focus-visible {
    background: var(--color-cyan-dark);
}

.ab-lightbox__close {
    position: absolute;
    top: -58px;
    right: 0;
}

.ab-lightbox__nav:disabled {
    opacity: 0.42;
    cursor: default;
}

@media (max-width: 620px) {
    .ab-news-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-lightbox {
        padding: 16px;
    }

    .ab-lightbox__dialog {
        grid-template-columns: 1fr 1fr;
    }

    .ab-lightbox__figure {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .ab-lightbox__nav {
        grid-row: 2;
        justify-self: center;
    }

    .ab-lightbox__close {
        top: 8px;
        right: 8px;
    }
}
.section__link {
    margin-top: 14px;
}

.ab-rail {
    position: relative;
    min-width: 0;
}

.ab-rail__viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 16px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.ab-rail__viewport::-webkit-scrollbar {
    display: none;
}

.ab-rail .ab-rail__track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: max-content;
    grid-template-columns: none;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
}

.ab-rail.has-no-overflow .ab-rail__track,
.ab-rail.is-centered .ab-rail__track {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
}

.ab-rail.has-overflow .ab-rail__track {
    width: max-content;
    min-width: max-content;
    justify-content: flex-start;
}

.ab-rail .ab-rail__track > * {
    scroll-snap-align: start;
}

.ab-rail .ab-card--teacher {
    flex: 0 0 min(320px, 82vw);
}

.ab-rail .ab-student-work-card {
    flex: 0 0 min(270px, 74vw);
}

.ab-rail .abrys-review-card,
.ab-rail .abrys-faq-item {
    flex: 0 0 min(420px, 84vw);
}

.abrys-card-grid--reviews,
.abrys-faq-list {
    display: grid;
    gap: 20px;
}

.abrys-card,
.abrys-faq-item {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
}

.abrys-review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.abrys-review-card h2,
.abrys-faq-item h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.abrys-review-card h2 a,
.abrys-faq-item h2 a {
    color: var(--color-ink);
    text-decoration: none;
}

.abrys-review-card h2 a:hover,
.abrys-review-card h2 a:focus-visible,
.abrys-faq-item h2 a:hover,
.abrys-faq-item h2 a:focus-visible {
    color: var(--color-cyan-dark);
}

.abrys-review-card blockquote,
.abrys-faq-item p {
    margin: 0;
    color: var(--color-muted);
}

.abrys-review-card p {
    margin: auto 0 0;
    color: var(--color-cyan-dark);
    font-weight: 700;
}

.ab-faq-page .ab-section__title {
    max-width: 880px;
}

.ab-faq-hero {
    background: var(--color-paper);
}

.ab-faq-hero__lead {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 18px;
}

.ab-faq-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 20px;
    color: var(--color-muted);
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ab-faq-breadcrumbs a {
    color: var(--color-cyan-dark);
    text-decoration: none;
}

.ab-faq-breadcrumbs a:hover,
.ab-faq-breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.ab-faq-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    max-width: 760px;
    margin-top: 26px;
}

.ab-faq-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    color: var(--color-ink);
    background: var(--color-surface);
    font: inherit;
}

.ab-faq-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ab-faq-layout > *,
.ab-faq-detail-layout > *,
.ab-faq-results,
.ab-faq-question-list,
.ab-faq-question-card,
.ab-faq-answer,
.ab-faq-detail-aside,
.ab-faq-aside-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.ab-faq-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
}

.ab-faq-mobile-sections {
    display: none;
}

.ab-faq-sidebar h2,
.ab-faq-aside-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.ab-faq-sections {
    display: grid;
    gap: 8px;
}

.ab-faq-sections a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    color: var(--color-ink);
    background: var(--color-surface);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ab-faq-sections a:hover,
.ab-faq-sections a:focus-visible,
.ab-faq-sections a.is-active {
    border-color: rgba(26, 160, 182, 0.44);
    background: var(--color-cyan-soft);
}

.ab-faq-sections small {
    flex: 0 0 auto;
    color: var(--color-muted);
    font-weight: 700;
}

.ab-faq-sections__link--depth-1 {
    padding-left: 28px;
}

.ab-faq-sections__link--depth-2 {
    padding-left: 42px;
}

.ab-faq-results {
    min-width: 0;
}

.ab-faq-results__summary {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-weight: 700;
}

.ab-faq-question-list {
    display: grid;
    gap: 16px;
}

.ab-faq-question-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ab-faq-question-card__title a {
    color: var(--color-ink);
    text-decoration: none;
}

.ab-faq-question-card__title a:hover,
.ab-faq-question-card__title a:focus-visible {
    color: var(--color-cyan-dark);
}

.ab-faq-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 360px);
    gap: 32px;
    align-items: start;
}

.ab-faq-answer,
.ab-faq-aside-card {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgba(16, 63, 72, 0.08);
}

.ab-faq-answer {
    padding: 28px;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ab-faq-back {
    width: fit-content;
    max-width: 100%;
    margin-top: 24px;
    white-space: normal;
    text-align: center;
}

.ab-faq-detail-aside {
    display: grid;
    gap: 16px;
}

.ab-faq-aside-card {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.ab-faq-aside-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.ab-faq-aside-card a {
    color: var(--color-cyan-dark);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ab-faq-aside-card a:hover,
.ab-faq-aside-card a:focus-visible {
    text-decoration: underline;
}

.ab-faq-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
}

.ab-faq-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ab-faq-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    color: var(--color-ink);
    background: var(--color-surface);
    font-weight: 700;
    text-decoration: none;
}

.ab-faq-pagination__item:hover,
.ab-faq-pagination__item:focus-visible,
.ab-faq-pagination__item.is-current {
    border-color: var(--color-cyan);
    color: #ffffff;
    background: var(--color-cyan);
}

.ab-faq-pagination__item.is-disabled {
    color: var(--color-muted);
    background: var(--color-paper);
    cursor: default;
    opacity: 0.62;
}

@media (max-width: 900px) {
    .ab-faq-layout,
    .ab-faq-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        width: min(100% - 28px, 1180px);
    }

    .ab-faq-sidebar {
        display: none;
    }

    .ab-faq-mobile-sections {
        display: block;
        width: 100%;
        max-width: 100%;
        border: 1px solid var(--color-line);
        border-radius: 8px;
        background: var(--color-surface);
    }

    .ab-faq-mobile-sections summary {
        min-height: 48px;
        padding: 12px 14px;
        color: var(--color-ink);
        font-weight: 800;
        cursor: pointer;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .ab-faq-sections--mobile {
        padding: 0 12px 12px;
    }

    .ab-faq-question-list,
    .ab-faq-question-card {
        width: 100%;
    }

    .ab-faq-detail-aside {
        width: 100%;
    }
}

@media (max-width: 479px) {
    .ab-faq-search {
        grid-template-columns: minmax(0, 1fr);
    }

    .ab-faq-search .button,
    .ab-faq-back {
        width: 100%;
    }

    .ab-faq-question-card .ab-card__body {
        padding: 16px;
    }
}

.ab-rail__navigation[hidden] {
    display: none;
}

.ab-rail__button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(8, 117, 138, 0.24);
    border-radius: 999px;
    color: var(--color-cyan-dark);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(16, 63, 72, 0.14);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
}

.ab-rail__button--prev {
    left: -18px;
}

.ab-rail__button--next {
    right: -18px;
}

.ab-rail__button:disabled {
    cursor: default;
    opacity: 0.36;
}

@media (max-width: 700px) {
    .ab-rail__button {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .ab-rail__button--prev {
        left: 2px;
    }

    .ab-rail__button--next {
        right: 2px;
    }

    .ab-rail .ab-rail__track {
        gap: 14px;
    }
}


.site-nav a.is-active,
.site-header__mobile-nav a.is-active {
    color: var(--color-cyan-dark);
}

.site-nav a.is-active {
    box-shadow: inset 0 -2px 0 var(--color-cyan-dark);
}
.ab-gallery__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.ab-gallery__lead {
    max-width: 780px;
    margin: 0;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.5;
}

.ab-gallery__filters {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
}

.ab-gallery__toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(190px, 250px) auto auto auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgba(16, 63, 72, 0.06);
}

.ab-gallery__filter-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 16px;
    border: 1px solid rgba(8, 117, 138, 0.18);
    border-radius: 8px;
    background: var(--color-soft);
}

.ab-gallery__filter-panel[hidden] {
    display: none;
}

.ab-gallery__field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.ab-gallery__field input,
.ab-gallery__field select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    color: var(--color-ink);
    background: #fff;
    font: inherit;
    font-weight: 500;
}

.ab-gallery__filter-toggle,
.ab-gallery__reset {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid rgba(8, 117, 138, 0.28);
    border-radius: 6px;
    color: var(--color-cyan-dark);
    background: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.ab-gallery__filter-toggle[aria-expanded="true"] {
    color: #fff;
    background: var(--color-cyan-dark);
}

.ab-gallery__submit {
    min-height: 42px;
    white-space: nowrap;
}

.ab-gallery__count {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ab-gallery__notice,
.ab-gallery__empty {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    color: var(--color-muted);
    background: var(--color-soft);
}

.ab-gallery__pager {
    margin-top: 28px;
}

.ab-student-gallery__grid--interactive {
    align-items: start;
}

.ab-student-gallery__grid--interactive .ab-student-work-card {
    flex-basis: 286px;
}

.ab-student-work-card--visual {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: var(--color-soft);
}

.ab-student-work-card__link,
.ab-student-work-card__media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ab-student-work-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--color-soft);
}

.ab-student-work-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--color-muted);
    background: var(--color-soft);
    font-weight: 800;
}

.ab-student-work-card__overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 44px 14px 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(6, 23, 28, 0), rgba(6, 23, 28, 0.82));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ab-student-work-card__link:hover .ab-student-work-card__overlay,
.ab-student-work-card__link:focus-visible .ab-student-work-card__overlay,
.ab-student-work-card__link:focus .ab-student-work-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.ab-student-work-card__link:focus-visible {
    outline: 3px solid rgba(8, 117, 138, 0.34);
    outline-offset: 3px;
}

.ab-student-work-card__title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.ab-student-work-card__meta {
    font-size: 13px;
    line-height: 1.3;
    opacity: 0.88;
}

.ab-gallery-lightbox-open {
    overflow: hidden;
}

.ab-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    color: #fff;
    background: #071216;
}

.ab-gallery-lightbox.is-open {
    display: block;
}

.ab-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: #071216;
}

.ab-gallery-lightbox__shell {
    position: relative;
    z-index: 1;
    display: grid;
    height: 100vh;
    grid-template-columns: 68px minmax(0, 1fr) 340px;
    grid-template-rows: 64px minmax(0, 1fr) auto;
    grid-template-areas:
        "top top top"
        "prev stage info"
        "bottom bottom info";
    overflow: hidden;
}

.ab-gallery-lightbox.has-info-collapsed .ab-gallery-lightbox__shell {
    grid-template-columns: 68px minmax(0, 1fr) 0;
}

.ab-gallery-lightbox__topbar {
    z-index: 3;
    display: flex;
    grid-area: top;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(7, 18, 22, 0.96), rgba(7, 18, 22, 0));
}

.ab-gallery-lightbox__spacer {
    flex: 1 1 auto;
}

.ab-gallery-lightbox__icon,
.ab-gallery-lightbox__nav {
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.ab-gallery-lightbox__icon {
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 1;
}

.ab-gallery-lightbox__icon:hover,
.ab-gallery-lightbox__icon:focus-visible,
.ab-gallery-lightbox__nav:hover,
.ab-gallery-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.ab-gallery-lightbox__stage {
    display: grid;
    grid-area: stage;
    min-width: 0;
    min-height: 0;
    place-items: center;
    padding: 10px 0 18px;
}

.ab-gallery-lightbox__media {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.ab-gallery-lightbox__media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ab-gallery-lightbox__placeholder {
    padding: 40px;
    color: rgba(255, 255, 255, 0.72);
}

.ab-gallery-lightbox__nav {
    align-self: center;
    width: 46px;
    height: 46px;
    margin: 0 11px;
    font-size: 34px;
    line-height: 1;
}

.ab-gallery-lightbox__nav--prev {
    grid-area: prev;
}

.ab-gallery-lightbox__nav--next {
    grid-area: stage;
    justify-self: end;
}

.ab-gallery-lightbox__nav:disabled {
    cursor: default;
    opacity: 0.28;
}

.ab-gallery-lightbox__info {
    grid-area: info;
    min-width: 0;
    overflow: auto;
    padding: 82px 24px 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.ab-gallery-lightbox__info[hidden] {
    display: none;
}

.ab-gallery-lightbox__info h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.18;
}

.ab-gallery-lightbox__info p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.72);
}

.ab-gallery-lightbox__info dl {
    display: grid;
    gap: 18px;
    margin: 0;
}

.ab-gallery-lightbox__info dt {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ab-gallery-lightbox__info dd {
    margin: 0;
    line-height: 1.45;
}

.ab-gallery-lightbox__bottom {
    display: flex;
    grid-area: bottom;
    min-height: 70px;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(0deg, rgba(7, 18, 22, 0.96), rgba(7, 18, 22, 0));
}

.ab-gallery-lightbox__bottom div {
    display: grid;
    gap: 3px;
}

.ab-gallery-lightbox__bottom span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.ab-gallery-lightbox__status {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--color-ink);
    background: #fff;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
    }

    .ab-gallery__submit,
    .ab-gallery__count {
        grid-column: auto;
    }

    .ab-gallery__filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-gallery__filter-actions {
        grid-column: 1 / -1;
    }

    .ab-gallery-lightbox__shell {
        grid-template-columns: 56px minmax(0, 1fr) 300px;
    }
}

@media (max-width: 700px) {

.site-nav a.is-active,
.site-header__mobile-nav a.is-active {
    color: var(--color-cyan-dark);
}

.site-nav a.is-active {
    box-shadow: inset 0 -2px 0 var(--color-cyan-dark);
}
.ab-gallery__header {
        display: grid;
    }

    .ab-gallery__toolbar,
    .ab-gallery__filter-panel {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .ab-gallery__filter-toggle,
    .ab-gallery__submit,
    .ab-gallery__reset {
        width: 100%;
    }

    .ab-gallery__count {
        white-space: normal;
    }

    .ab-student-gallery__grid--interactive .ab-student-work-card {
        flex-basis: min(100%, 320px);
    }

    .ab-student-work-card__overlay {
        opacity: 1;
        transform: none;
    }

    .ab-gallery-lightbox__shell {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        grid-template-rows: 56px minmax(0, 1fr) auto auto;
        grid-template-areas:
            "top top top"
            "prev stage next"
            "bottom bottom bottom"
            "info info info";
    }

    .ab-gallery-lightbox__topbar {
        padding: 7px 10px;
    }

    .ab-gallery-lightbox__icon {
        width: 40px;
        height: 40px;
    }

    .ab-gallery-lightbox__stage {
        padding: 0;
    }

    .ab-gallery-lightbox__nav {
        width: 38px;
        height: 38px;
        margin: 0 5px;
        font-size: 28px;
    }

    .ab-gallery-lightbox__nav--next {
        grid-area: next;
        justify-self: auto;
    }

    .ab-gallery-lightbox__info {
        max-height: 38vh;
        padding: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
        border-radius: 18px 18px 0 0;
    }

    .ab-gallery-lightbox__info h2 {
        font-size: 20px;
    }

    .ab-gallery-lightbox__bottom {
        min-height: 60px;
        padding: 10px 12px;
    }
}

/* Gallery refinement: public controls and responsive viewer */
.ab-gallery__toolbar {
    grid-template-columns: minmax(280px, 1fr) clamp(160px, 18vw, 220px) auto auto;
    align-items: end;
}

.ab-gallery__field--search {
    min-width: 0;
}

.ab-gallery__search-control {
    position: relative;
    display: block;
    min-width: 0;
}

.ab-gallery__search-control input {
    padding-right: 46px;
}

.ab-gallery__search-submit {
    position: absolute;
    top: 50%;
    right: 5px;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--color-cyan-dark);
    font: inherit;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.ab-gallery__filter-head {
    display: none;
}

.ab-gallery__filter-backdrop[hidden] {
    display: none;
}

.ab-gallery__apply {
    min-height: 42px;
}

.ab-gallery-lightbox__icon svg {
    display: block;
}

.ab-gallery-lightbox__nav[aria-disabled="true"] {
    pointer-events: none;
}

.ab-gallery-lightbox__handle {
    display: none;
}

@media (max-width: 1120px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(220px, 1fr) clamp(160px, 24vw, 220px) auto auto;
    }
}

@media (max-width: 768px) {
    html.ab-gallery-filter-open {
        overflow: hidden;
    }

    .ab-gallery__toolbar {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
    }

    .ab-gallery__field--search {
        grid-column: 1 / -1;
    }

    .ab-gallery__field--sort {
        grid-column: 1 / 2;
        min-width: 0;
    }

    .ab-gallery__filter-toggle {
        grid-column: 2 / 3;
        width: auto;
        white-space: nowrap;
    }

    .ab-gallery__count {
        grid-column: 3 / 4;
        align-self: center;
        justify-self: end;
        font-size: 13px;
        white-space: nowrap;
    }

    .ab-gallery__filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(7, 18, 22, 0.44);
    }

    .ab-gallery__filter-panel {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: grid;
        max-height: min(80dvh, 620px);
        grid-template-columns: 1fr;
        overflow: auto;
        padding: 16px 16px max(16px, env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 42px rgba(7, 18, 22, 0.22);
    }

    .ab-gallery__filter-panel[hidden] {
        display: none;
    }

    .ab-gallery__filter-head {
        position: sticky;
        top: -16px;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: -16px -16px 2px;
        padding: 14px 16px;
        background: var(--color-soft);
    }

    .ab-gallery__filter-close {
        display: inline-grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border: 1px solid var(--color-line);
        border-radius: 999px;
        color: var(--color-ink);
        background: #fff;
        font-size: 22px;
        line-height: 1;
    }

    .ab-gallery__filter-actions {
        position: sticky;
        bottom: calc(-1 * max(16px, env(safe-area-inset-bottom)));
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 2px -16px calc(-1 * max(16px, env(safe-area-inset-bottom)));
        padding: 12px 16px max(16px, env(safe-area-inset-bottom));
        background: var(--color-soft);
    }

    .ab-gallery__reset,
    .ab-gallery__apply {
        width: 100%;
    }

    .ab-gallery-lightbox__shell {
        position: relative;
        display: block;
        height: 100dvh;
        overflow: hidden;
    }

    .ab-gallery-lightbox__topbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
    }

    .ab-gallery-lightbox__stage {
        position: fixed;
        inset: 0;
        display: grid;
        padding: 60px 0 72px;
        place-items: center;
    }

    .ab-gallery-lightbox__media {
        width: 100%;
        height: 100%;
    }

    .ab-gallery-lightbox__nav {
        position: fixed;
        top: 50%;
        z-index: 4;
        transform: translateY(-50%);
    }

    .ab-gallery-lightbox__nav--prev {
        left: 6px;
    }

    .ab-gallery-lightbox__nav--next {
        right: 6px;
    }

    .ab-gallery-lightbox__bottom {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 3;
        transition: opacity 0.16s ease, transform 0.16s ease;
    }

    .ab-gallery-lightbox:not(.is-mobile-info-closed) .ab-gallery-lightbox__bottom {
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
    }

    .ab-gallery-lightbox__info {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 5;
        display: block;
        max-height: none;
        height: 72dvh;
        overflow: auto;
        padding: 34px 18px max(18px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 18px 18px 0 0;
        background: rgba(18, 31, 36, 0.96);
        transform: translateY(100%);
        transition: transform 0.2s ease;
    }

    .ab-gallery-lightbox__info[hidden] {
        display: block;
    }

    .ab-gallery-lightbox__handle {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        display: grid;
        height: 30px;
        place-items: center;
        border: 0;
        background: transparent;
        cursor: grab;
    }

    .ab-gallery-lightbox__handle::before {
        display: block;
        width: 48px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.42);
        content: "";
    }

    .ab-gallery-lightbox.is-mobile-info-half .ab-gallery-lightbox__info {
        transform: translateY(46%);
    }

    .ab-gallery-lightbox.is-mobile-info-full .ab-gallery-lightbox__info {
        transform: translateY(0);
    }

    .ab-gallery-lightbox__status {
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        left: 12px;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ab-gallery__count {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
/* Gallery compact controls and viewer fix */
.ab-gallery__filters {
    gap: 10px;
}

.ab-gallery__toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 210px) auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
}

.ab-gallery__control-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ab-gallery__field {
    gap: 0;
}

.ab-gallery__field input,
.ab-gallery__field select,
.ab-gallery__filter-toggle,
.ab-gallery__reset,
.ab-gallery__apply {
    min-height: 40px;
    height: 40px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.ab-gallery__search-submit {
    width: 32px;
    height: 32px;
}

.ab-gallery__search-submit svg {
    display: block;
}

.ab-gallery__filter-panel {
    gap: 10px;
    padding: 12px;
}

.ab-gallery-lightbox {
    background: transparent;
}

.ab-gallery-lightbox__backdrop {
    background: rgba(3, 16, 20, 0.9);
    backdrop-filter: blur(2px);
}

.ab-gallery-lightbox__shell {
    grid-template-columns: 68px minmax(0, 1fr) 0;
    transition: grid-template-columns 0.2s ease;
}

.ab-gallery-lightbox.is-info-open .ab-gallery-lightbox__shell {
    grid-template-columns: 68px minmax(0, 1fr) clamp(340px, 28vw, 390px);
}

.ab-gallery-lightbox__info {
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    background: rgba(18, 31, 36, 0.96);
}

.ab-gallery-lightbox.is-info-open .ab-gallery-lightbox__info {
    pointer-events: auto;
    transform: translateX(0);
}

.ab-gallery-lightbox__info[hidden] {
    display: block;
}

.ab-gallery-lightbox.is-info-open .ab-gallery-lightbox__bottom {
    opacity: 0;
    pointer-events: none;
}

.ab-gallery-lightbox__info a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.42);
    text-underline-offset: 3px;
}

.ab-gallery-lightbox__review {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--color-ink) !important;
    background: #fff;
    font-weight: 800;
    text-decoration: none;
}

.ab-gallery-lightbox__review[hidden] {
    display: none;
}

.ab-gallery-lightbox__stage {
    overflow: hidden;
}

.ab-gallery-lightbox__media img {
    object-position: center center;
}

@media (max-width: 768px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(96px, auto) auto;
        padding: 8px;
        gap: 8px;
    }

    .ab-gallery__field--search {
        grid-column: 1 / -1;
    }

    .ab-gallery__field--sort {
        grid-column: 1 / 2;
    }

    .ab-gallery__filter-toggle {
        grid-column: 2 / 3;
    }

    .ab-gallery__count {
        grid-column: 3 / 4;
        max-width: 78px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }

    .ab-gallery__filter-panel {
        max-height: min(85dvh, 720px);
        background: var(--color-soft);
    }

    .ab-gallery__filter-panel .ab-gallery__field {
        gap: 6px;
    }

    .ab-gallery-lightbox__stage {
        padding: 58px 0 66px;
    }

    .ab-gallery-lightbox__info {
        height: 90dvh;
        pointer-events: none;
        transform: translateY(100%);
        background: rgba(18, 31, 36, 0.98);
    }

    .ab-gallery-lightbox.is-mobile-info-half .ab-gallery-lightbox__info {
        pointer-events: auto;
        transform: translateY(45dvh);
    }

    .ab-gallery-lightbox.is-mobile-info-full .ab-gallery-lightbox__info {
        pointer-events: auto;
        transform: translateY(0);
    }

    .ab-gallery-lightbox.is-mobile-info-closed .ab-gallery-lightbox__info {
        pointer-events: none;
        transform: translateY(100%);
    }

    .ab-gallery-lightbox.is-info-open .ab-gallery-lightbox__bottom {
        opacity: 0;
    }

    .ab-gallery-lightbox.is-mobile-info-closed .ab-gallery-lightbox__bottom {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .ab-gallery-lightbox.is-mobile-info-half .ab-gallery-lightbox__stage {
        padding-bottom: 45dvh;
    }

    .ab-gallery-lightbox.is-mobile-info-full .ab-gallery-lightbox__stage {
        padding-bottom: 90dvh;
    }
}

@media (max-width: 360px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .ab-gallery__count {
        grid-column: 3 / 4;
        justify-self: end;
        max-width: 62px;
    }
}

/* Gallery lazy loading, pagination and viewer geometry */

.ab-gallery__load-more,
.ab-gallery__all-loaded {
    display: grid;
    place-items: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.ab-gallery__load-button {
    min-width: 172px;
}

.ab-gallery__load-status:empty {
    display: none;
}

.ab-gallery__load-sentinel {
    display: block;
    width: 100%;
    height: 1px;
}

.ab-gallery-lightbox,
.ab-gallery-lightbox__shell {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.ab-gallery-lightbox__backdrop {
    background: rgba(3, 16, 20, 0.82);
    backdrop-filter: blur(1.5px);
}

.ab-gallery-lightbox__shell {
    grid-template-rows: 64px minmax(0, 1fr) minmax(58px, auto);
}

.ab-gallery-lightbox__stage {
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding: 68px 18px 78px;
}

.ab-gallery-lightbox__media {
    width: 100%;
    height: calc(100dvh - 282px);
    max-height: calc(100dvh - 282px);
    min-width: 0;
    min-height: 0;
}

.ab-gallery-lightbox__media img {
    display: block;
    width: 100% !important;
    height: calc(100dvh - 282px) !important;
    max-width: 100%;
    max-height: calc(100dvh - 282px) !important;
    object-fit: contain;
}

.ab-gallery-lightbox__bottom {
    max-height: 72px;
    overflow: hidden;
}

@media (max-width: 980px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(128px, 170px) auto auto;
    }
}

@media (max-width: 768px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(82px, 104px) minmax(84px, auto);
    }

    .ab-gallery__filter-toggle {
        grid-column: 3 / 4;
    }

    .ab-gallery__count {
        grid-column: 1 / -1;
        max-width: none;
        justify-self: start;
    }

    .ab-gallery__filter-backdrop {
        background: rgba(7, 18, 22, 0.42);
    }

    .ab-gallery__filter-panel {
        box-sizing: border-box;
        width: min(100vw - 24px, 420px);
        max-width: calc(100vw - 24px);
        max-height: min(82dvh, 680px);
        overflow-x: hidden;
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 24px 56px rgba(6, 34, 41, 0.24);
    }

    .ab-gallery__filter-panel *,
    .ab-gallery__filter-panel *::before,
    .ab-gallery__filter-panel *::after {
        box-sizing: border-box;
        max-width: 100%;
    }

    .ab-gallery__filter-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ab-gallery__reset,
    .ab-gallery__apply {
        width: 100%;
        min-width: 0;
        white-space: nowrap;
    }

    .ab-gallery-lightbox__shell {
        grid-template-rows: 54px minmax(0, 1fr) minmax(58px, auto);
    }

    .ab-gallery-lightbox__stage {
        padding: 58px 0 68px;
    }

    .ab-gallery-lightbox__media {
        height: calc(100dvh - 126px);
        max-height: calc(100dvh - 126px);
    }

    .ab-gallery-lightbox__media img {
        width: 100% !important;
        height: calc(100dvh - 126px) !important;
        max-width: 100vw;
        max-height: calc(100dvh - 126px) !important;
    }
}

@media (max-width: 360px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(76px, 92px) minmax(78px, auto);
    }

    .ab-gallery__filter-toggle,
    .ab-gallery__field input,
    .ab-gallery__field select,
    .ab-gallery__reset,
    .ab-gallery__apply {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 13px;
    }
}
/* Gallery native pagination and maximized viewer image */
.ab-gallery__pagination {
    display: grid;
    gap: 16px;
    justify-items: center;
    margin-top: 30px;
}

.ab-gallery__pager {
    width: 100%;
    margin-top: 0;
}

.ab-gallery-pagination,
.ab-gallery-pagination__pages,
.ab-gallery__page-size-label {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.ab-gallery-pagination {
    width: 100%;
}

.ab-gallery-pagination__item {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid rgba(8, 117, 138, 0.22);
    border-radius: 6px;
    color: var(--color-cyan-dark);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
}

.ab-gallery-pagination__item:hover,
.ab-gallery-pagination__item:focus-visible,
.ab-gallery-pagination__item.is-current {
    color: #fff;
    background: var(--color-cyan-dark);
}

.ab-gallery-pagination__item.is-disabled {
    color: var(--color-muted);
    background: var(--color-soft);
    opacity: 0.58;
}

.ab-gallery__page-size {
    margin: 0;
}

.ab-gallery__page-size-label {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 800;
}

.ab-gallery__page-size-select {
    min-height: 40px;
    padding: 7px 32px 7px 11px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    color: var(--color-ink);
    background: #fff;
    font: inherit;
    font-weight: 700;
}

.ab-gallery__pagination .ab-gallery__load-more,
.ab-gallery__pagination .ab-gallery__all-loaded {
    margin-top: 0;
}

.ab-gallery-lightbox__shell {
    grid-template-rows: 56px minmax(0, 1fr) minmax(52px, auto);
}

.ab-gallery-lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px 12px;
}

.ab-gallery-lightbox__media {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: none;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
}

.ab-gallery-lightbox__media img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 80px);
    object-fit: contain;
    object-position: center center;
}

.ab-gallery-lightbox__bottom {
    min-height: 52px;
    max-height: 58px;
    padding: 8px 16px 10px;
}

@media (max-width: 768px) {
    .ab-gallery__toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(82px, 104px) minmax(84px, auto);
    }

    .ab-gallery__count {
        grid-column: 1 / -1;
        max-width: none;
        justify-self: start;
    }

    .ab-gallery-pagination__item {
        min-width: 36px;
        min-height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .ab-gallery__page-size-label {
        width: 100%;
    }

    .ab-gallery__page-size-select {
        flex: 1 1 150px;
        min-width: 0;
    }

    .ab-gallery-lightbox__shell {
        grid-template-rows: 52px minmax(0, 1fr) minmax(56px, auto);
    }

    .ab-gallery-lightbox__stage {
        padding: 6px 6px 8px;
    }

    .ab-gallery-lightbox__media {
        height: 100%;
        max-height: none;
    }

    .ab-gallery-lightbox__media img {
        width: auto !important;
        height: auto !important;
        max-width: calc(100vw - 12px);
        max-height: calc(100dvh - 116px);
    }

    .ab-gallery-lightbox.is-mobile-info-half .ab-gallery-lightbox__stage {
        padding-bottom: calc(45dvh + 8px);
    }

    .ab-gallery-lightbox.is-mobile-info-full .ab-gallery-lightbox__stage {
        padding-bottom: calc(90dvh + 8px);
    }
}

@media (max-width: 360px) {
    .ab-gallery-pagination,
    .ab-gallery-pagination__pages,
    .ab-gallery__page-size-label {
        gap: 6px;
    }
}
