/* Fonts */
@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-RegularItalic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-LightItalic.otf") format("opentype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-MediumItalic.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-SemiboldItalic.otf") format("opentype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-BoldItalic.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-Heavy.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../assets/fonts/sf-pro-text/SF-Pro-Text-HeavyItalic.otf") format("opentype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Variable */
:root {
    --green-500: #11944F;
    --black-500: #010402;
    --black-200: #737373;
    --black-100: #C7C9CB;
    --black-75: #D9D9D9;
    --black-50: #EDF0F3;
    --deep-blue-700: #010714;
    --deep-blue-200: #D7D7D7;
    --deep-blue-100: #F5F5F5;
    --greyscale-400: #CBD5E0;
}


/* Common styles */
* {
    box-sizing: border-box;
    font-family: "SF Pro Text";
}

html {
    font-size: 16px;
}

/* Text */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
}


p {
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: white;
}

button {
    cursor: pointer;
}

/* Scrollbar */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
}

/* Scroll-driven animations for student cards */
@media (max-width: 768px) {

    /* Default: all cards pushed to bottom */
    .student-card-scroll {
        transform: translateY(3rem);
    }

    /* When scroll-driven animations are supported, animate based on viewport position */
    @supports (animation-timeline: view()) {
        .student-card-scroll {
            animation: card-vertical-align linear both;
            animation-timeline: view(inline);
            /* Animation range for smooth transitions */
            animation-range: cover 20% cover 80%;
        }

        @keyframes card-vertical-align {

            /* Start at bottom */
            0% {
                transform: translateY(3rem);
            }

            /* Gradually move up */
            20% {
                transform: translateY(2.25rem);
            }

            /* Continue moving up */
            40% {
                transform: translateY(0);
            }

            /* Stay at top only when centered */
            50% {
                transform: translateY(0);
            }

            /* Start moving down */
            60% {
                transform: translateY(0);
            }

            /* Continue moving down */
            80% {
                transform: translateY(2.25rem);
            }

            /* Back to bottom */
            100% {
                transform: translateY(3rem);
            }
        }
    }
}
/* Hero background slideshow (CSS-only cross-fade, no JS dependency) */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 80% center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .hero-slide {
        background-position: center;
    }
}

/* Only the top image animates; the one underneath is always painted, so the
   cross-fade never shows a gap. */
.hero-slide-2 {
    opacity: 0;
    animation: hero-crossfade 16s ease-in-out infinite;
}

@keyframes hero-crossfade {
    0%, 43.75% { opacity: 0; }
    50%, 93.75% { opacity: 1; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide-2 { animation: none; }
}

/* Branch picker: selected card is green, the rest are grey */
.branch-card {
    background: var(--black-50);
    color: var(--black-500);
    text-align: left;
}

.branch-card svg path {
    fill: currentColor;
}

.branch-card[aria-pressed="true"] {
    background: var(--green-500);
    color: #FFFFFF;
}

/* Bitrix24 CRM form embed: only the typeface is aligned with the site here.
   Colours, fields and texts stay under Bitrix's form settings so they can be
   changed there without touching this file. */
.b24-form,
.b24-form input,
.b24-form textarea,
.b24-form button {
    font-family: "SF Pro Text", system-ui, -apple-system, sans-serif !important;
}
