/* =========================================================
   ABOUT PAGE
========================================================= */

.about-page {
    --about-section-gap: 88px;
    --about-section-gap-tablet: 72px;
    --about-section-gap-mobile: 58px;
    --about-title-gap: 32px;
    --about-title-gap-mobile: 24px;
    --about-border-color: rgba(44, 44, 44, 0.08);
    --about-muted-text: rgba(44, 44, 44, 0.62);
    --about-soft-bg: rgba(246, 245, 241, 0.72);

    padding: 16px 0 0;
    color: var(--color-text);
}

.about-page img {
    display: block;
    max-width: 100%;
}

.about-page a {
    text-decoration: none;
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.about-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: rgba(44, 44, 44, 0.46);
    font-size: 12px;
    line-height: 1.4;
}

.about-breadcrumbs a {
    color: inherit;
    transition: color 0.2s ease;
}

.about-breadcrumbs a:hover {
    color: var(--color-accent);
}


/* =========================================================
   SHARED SECTION TITLE
========================================================= */

.about-section-title {
    margin: 0 0 var(--about-title-gap);
    color: var(--color-accent);
    font-size: clamp(42px, 5.2vw, 68px);
    line-height: 0.98;
    font-weight: 250;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}


/* =========================================================
   ABOUT HERO
========================================================= */

.about-hero__frame {
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--color-accent);
}

.about-hero__container {
    display: grid;
    min-height: 510px;
    grid-template-columns: minmax(0, 1fr) 510px;
    align-items: stretch;
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.about-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 42px 0;
    color: #ffffff;
}

.about-hero__title {
    max-width: 570px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 5.4vw, 72px);
    line-height: 0.97;
    font-weight: 250;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.about-hero__text {
    max-width: 460px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.about-hero__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.about-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero__image--mono {
    position: relative;
    z-index: 1;
    filter: grayscale(1);
}

.about-hero__image--color {
    position: absolute;
    z-index: 2;
    inset: 0;
    filter: grayscale(0);

    -webkit-clip-path: polygon(-12% -12%, -12% -12%, -12% -12%);
    clip-path: polygon(-12% -12%, -12% -12%, -12% -12%);

    transition:
        -webkit-clip-path 1.65s linear,
        clip-path 1.65s linear;

    will-change: clip-path;
}

/*
 * М'яка світла діагональна лінія під час проявлення.
 */
.about-hero__media::after {
    position: absolute;
    z-index: 3;
    inset: -45%;
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            transparent 43%,
            rgba(255, 255, 255, 0.20) 49%,
            rgba(255, 255, 255, 0.32) 50%,
            rgba(255, 255, 255, 0.20) 51%,
            transparent 57%
        );
    transform: translate(-42%, -42%);
    content: "";
}

@media (hover: hover) and (pointer: fine) {
    .about-hero__media:hover .about-hero__image--color {
        -webkit-clip-path: polygon(-12% -12%, 212% -12%, -12% 212%);
        clip-path: polygon(-12% -12%, 212% -12%, -12% 212%);
    }

    .about-hero__media:hover::after {
        animation: aboutHeroColorSweep 1.65s linear forwards;
    }
}

@keyframes aboutHeroColorSweep {
    0% {
        opacity: 0;
        transform: translate(-42%, -42%);
    }

    12% {
        opacity: 1;
    }

    82% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(42%, 42%);
    }
}

.about-hero__image--color {
    display: block;
}

.about-hero__media.is-color-revealed .about-hero__image--color {
    -webkit-clip-path: polygon(-12% -12%, 212% -12%, -12% 212%);
    clip-path: polygon(-12% -12%, 212% -12%, -12% 212%);
}

.about-hero__media.is-color-revealed::after {
    animation: aboutHeroColorSweep 1.65s linear forwards;
}

@media (prefers-reduced-motion: reduce) {
    .about-hero__image--color {
        transition: none;
    }

    .about-hero__media::after {
        display: none;
    }
    
    .about-hero__media.is-color-revealed .about-hero__image--color {
    -webkit-clip-path: polygon(-12% -12%, 212% -12%, -12% 212%);
    clip-path: polygon(-12% -12%, 212% -12%, -12% 212%);
}

.about-hero__media.is-color-revealed::after {
    animation: none;
}

}


/* =========================================================
   SECTIONS SPACING
========================================================= */

.about-intro,
.about-why,
.about-stats,
.about-teachers,
.about-testimonials {
    padding-top: var(--about-section-gap);
}


/* =========================================================
   ABOUT INTRO
========================================================= */

.about-intro__content {
	margin: 0 auto;
    padding: 44px 56px;
    border: 1px solid var(--about-border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
    background: var(--about-soft-bg);
    font-size: 16px;
    line-height: 154%;
    font-weight: 400;
    letter-spacing: -0.8%;
    text-align: center;
}

.about-intro__content > *:first-child {
    margin-top: 0;
}

.about-intro__content > *:last-child {
    margin-bottom: 0;
}

.about-intro__content p {
    margin: 0 0 22px;
    font: inherit;
}

.about-intro__content strong {
    color: var(--color-accent);
    font-weight: 500;
}

.about-intro__content h2,
.about-intro__content h3 {
    margin: 42px 0 18px;
    color: var(--color-accent);
    line-height: 1.05;
    font-weight: 300;
}

.about-intro__content h2 {
    font-size: clamp(32px, 3.4vw, 46px);
}

.about-intro__content h3 {
    font-size: clamp(24px, 2.2vw, 30px);
}

.about-intro__content ul,
.about-intro__content ol {
    max-width: 720px;
    margin: 26px auto;
    padding-left: 22px;
    color: rgba(44, 44, 44, 0.72);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-align: left;
}

.about-intro__content li + li {
    margin-top: 9px;
}


/* =========================================================
   WHY CHOOSE US
========================================================= */

.about-why__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--about-border-color);
    border-radius: var(--border-radius);
    background: #ffffff;
}

.about-why__item {
    min-height: 210px;
    padding: 26px 24px 28px;
    border-right: 1px solid var(--about-border-color);
    border-bottom: 1px solid var(--about-border-color);
    background: rgba(255, 255, 255, 0.72);
}

.about-why__item:nth-child(3n) {
    border-right: 0;
}

.about-why__item:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.about-why__icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-why__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-why__title {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.about-why__text {
    margin: 0;
    color: var(--about-muted-text);
    font-size: 15px;
    line-height: 1.52;
    letter-spacing: -0.01em;
}


/* =========================================================
   ABOUT STATS
========================================================= */

.about-stats .about-section-title {
    margin-bottom: 20px;
}

.about-stats__lead {
    max-width: 620px;
    margin: 0 0 var(--about-title-gap);
    color: var(--about-muted-text);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.about-stats__visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--color-text);
    isolation: isolate;
}

.about-stats__visual::before {
    position: absolute;
    z-index: 3;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(
            110deg,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, 0.16) 48%,
            rgba(255, 255, 255, 0.26) 50%,
            rgba(255, 255, 255, 0.12) 52%,
            transparent 64%,
            transparent 100%
        );
    transform: translateX(-120%);
    content: "";
}

.about-stats__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(1);
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
}

.about-stats__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(20, 20, 20, 0.62) 0%,
            rgba(20, 20, 20, 0.34) 100%
        );
}

.about-stats__grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 360px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.about-stats__item {
    position: relative;
    padding: 38px 28px;
    color: #ffffff;
    text-align: center;
}

.about-stats__item + .about-stats__item::before {
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
    content: "";
    transform-origin: center;
}

.about-stats__value {
    color: #ffffff;
    font-size: clamp(52px, 5.4vw, 68px);
    line-height: 0.95;
    font-weight: 250;
    letter-spacing: -0.045em;
}

.about-stats__number,
.about-stats__suffix {
    color: inherit;
    font: inherit;
}

.about-stats__label {
    max-width: 220px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}


/* =========================================================
   ABOUT STATS — PREMIUM GRID ANIMATION
========================================================= */

.about-stats__grid {
    overflow: hidden;
}

.about-stats__item {
    perspective: 900px;
}

.about-stats__value {
    transform-origin: 50% 100%;
}

.about-stats.is-ready .about-stats__value {
    opacity: 0;
    filter: blur(10px);
    clip-path: inset(100% 0 0 0);
    transform:
        translate3d(0, 42px, 0)
        rotateX(24deg)
        scale(0.96);
}

.about-stats.is-ready .about-stats__label {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translate3d(0, 18px, 0);
}

.about-stats.is-ready .about-stats__item + .about-stats__item::before {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: 50% 50%;
}

.about-stats.is-visible .about-stats__value {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0 0 0 0);
    transform:
        translate3d(0, 0, 0)
        rotateX(0)
        scale(1);
    transition:
        opacity 0.72s ease,
        filter 0.95s ease,
        clip-path 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-stats.is-visible .about-stats__label {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.72s ease,
        clip-path 0.82s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.82s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-stats.is-visible .about-stats__item + .about-stats__item::before {
    opacity: 1;
    transform: scaleY(1);
    transition:
        opacity 0.55s ease,
        transform 0.82s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1 item */
.about-stats.is-visible .about-stats__item:nth-child(1) .about-stats__value {
    transition-delay: 0.22s;
}

.about-stats.is-visible .about-stats__item:nth-child(1) .about-stats__label {
    transition-delay: 0.42s;
}

/* 2 item */
.about-stats.is-visible .about-stats__item:nth-child(2)::before {
    transition-delay: 0.12s;
}

.about-stats.is-visible .about-stats__item:nth-child(2) .about-stats__value {
    transition-delay: 0.36s;
}

.about-stats.is-visible .about-stats__item:nth-child(2) .about-stats__label {
    transition-delay: 0.56s;
}

/* 3 item */
.about-stats.is-visible .about-stats__item:nth-child(3)::before {
    transition-delay: 0.22s;
}

.about-stats.is-visible .about-stats__item:nth-child(3) .about-stats__value {
    transition-delay: 0.50s;
}

.about-stats.is-visible .about-stats__item:nth-child(3) .about-stats__label {
    transition-delay: 0.70s;
}

@media (prefers-reduced-motion: reduce) {
    .about-stats.is-ready .about-stats__value,
    .about-stats.is-ready .about-stats__label,
    .about-stats.is-ready .about-stats__item + .about-stats__item::before {
        opacity: 1;
        filter: none;
        clip-path: none;
        transform: none;
        transition: none;
    }
}


/* =========================================================
   TEACHERS
========================================================= */

.about-teachers__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 42px;
    margin-bottom: var(--about-title-gap);
}

.about-teachers__head .about-section-title {
    margin-bottom: 0;
}

.about-teachers__description {
    margin: 0;
    color: var(--about-muted-text);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

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

.about-teachers__card {
    min-width: 0;
}

.about-teachers__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 388 / 440;
    border-radius: var(--border-radius);
    background: rgba(44, 44, 44, 0.05);
}

.about-teachers__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.about-teachers__image-link:hover .about-teachers__image {
    transform: scale(1.025);
}

.about-teachers__content {
    padding-top: 16px;
}

.about-teachers__name {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.about-teachers__name a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.about-teachers__name a:hover {
    color: var(--color-accent);
}

.about-teachers__position {
    display: block;
    overflow: visible;
    margin: 7px 0 0;
    color: rgba(44, 44, 44, 0.72);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
}


/* =========================================================
   ABOUT TESTIMONIALS
========================================================= */

.about-testimonials {
    margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE — SMALL DESKTOP
========================================================= */

@media (max-width: 1240px) {
    .about-hero__container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(420px, 48%);
    }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 991px) {
    .about-hero__container {
        min-height: 480px;
        grid-template-columns: minmax(0, 1fr) 44%;
        gap: 22px;
    }

    .about-hero__content {
        padding: 34px 0;
    }

    .about-hero__text {
        font-size: 15px;
    }

    .about-intro,
    .about-why,
    .about-stats,
    .about-teachers,
    .about-testimonials {
        padding-top: var(--about-section-gap-tablet);
    }

    .about-intro__content {
        padding: 38px 36px;
    }

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

    .about-why__item,
    .about-why__item:nth-child(3n),
    .about-why__item:nth-last-child(-n + 3) {
        border-right: 1px solid var(--about-border-color);
        border-bottom: 1px solid var(--about-border-color);
    }

    .about-why__item:nth-child(2n) {
        border-right: 0;
    }

    .about-why__item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .about-stats__visual {
        min-height: 340px;
    }

    .about-stats__grid {
        min-height: 340px;
    }

    .about-teachers__head {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }

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


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 767px) {
    .about-page {
        padding-top: 14px;
    }

    .about-breadcrumbs {
        margin-bottom: 16px;
    }

    .about-hero__frame {
        border-radius: 16px;
    }

    .about-hero__container {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 18px;
        padding-top: 18px;
        padding-bottom: 42px;
    }

    .about-hero__content {
        padding: 24px 0 0;
    }

    .about-hero__title {
        font-size: 40px;
        line-height: 0.98;
    }

    .about-hero__text {
        max-width: none;
        margin-top: 16px;
        font-size: 14px;
    }

    .about-hero__media {
        min-height: 320px;
    }

    .about-intro,
    .about-why,
    .about-stats,
    .about-teachers,
    .about-testimonials {
        padding-top: var(--about-section-gap-mobile);
    }

    .about-section-title {
        margin-bottom: var(--about-title-gap-mobile);
        font-size: 38px;
        line-height: 1;
    }

    .about-intro__content {
		padding: 30px 22px;
        line-height: 154%;
        text-align: left;
        letter-spacing: -0.8%;
    }

    .about-intro__content p {
        margin-bottom: 18px;
    }

    .about-intro__content h2 {
        font-size: 34px;
    }

    .about-intro__content h3 {
        font-size: 24px;
    }

    .about-intro__content ul,
    .about-intro__content ol {
        margin: 22px 0;
        font-size: 15px;
    }

    .about-why__grid {
        grid-template-columns: 1fr;
    }

    .about-why__item,
    .about-why__item:nth-child(2n),
    .about-why__item:nth-child(3n),
    .about-why__item:nth-last-child(-n + 2),
    .about-why__item:nth-last-child(-n + 3) {
        min-height: 0;
        padding: 22px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--about-border-color);
    }

    .about-why__item:last-child {
        border-bottom: 0;
    }

    .about-why__icon {
        width: 34px;
        height: 34px;
        margin-bottom: 16px;
    }

    .about-stats .about-section-title {
        margin-bottom: 16px;
    }

    .about-stats__lead {
        margin-bottom: var(--about-title-gap-mobile);
        font-size: 14px;
    }

    .about-stats__visual {
        min-height: 520px;
    }

    .about-stats__grid {
        min-height: 520px;
        grid-template-columns: 1fr;
        padding: 18px 0;
    }

    .about-stats__item {
        padding: 24px 18px;
    }

    .about-stats__item + .about-stats__item::before {
        top: 0;
        right: 16%;
        bottom: auto;
        left: 16%;
        width: auto;
        height: 1px;
    }

    .about-stats__value {
        font-size: 52px;
    }

    .about-teachers__head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
        margin-bottom: var(--about-title-gap-mobile);
    }

    .about-teachers__description {
        font-size: 14px;
    }

    .about-teachers__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-teachers__image-link {
        aspect-ratio: 4 / 4.6;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .about-hero__title,
    .about-section-title {
        font-size: 34px;
    }

    .about-hero__media {
        min-height: 250px;
    }

    .about-intro__content {
        padding: 26px 18px;
        font-size: 16px;
    }

    .about-why__text,
    .about-teachers__description {
        font-size: 14px;
    }

    .about-stats__value {
        font-size: 48px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .about-teachers__image,
    .about-teachers__name a {
        transition: none;
    }
}