:root {
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-primary-light: #DBEAFE;
    --color-accent: #F59E0B;
    --color-accent-hover: #D97706;
    --color-bg-main: #FFFFFF;
    --color-text-main: #0F172A;
    --color-text-secondary: #475569;
    --color-surface-light: #F8FAFC;
    --color-surface-dark: #0F172A;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    h5 {
        font-size: 1rem;
    }

    a,
    p,
    span {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== header ===== */
.js-mobile-menu-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

html {
    scroll-behavior: smooth;
}

/* ===== hero ===== */
#hero {
    overflow: hidden;
}

#hero .hyphens-auto {
    hyphens: auto;
}

/* ===== learning_directions ===== */
#directions {
    overflow: hidden;
    width: 100%;
}

.learning-directions-section {
    background-color: var(--color-surface-light, #F8FAFC);
    color: var(--color-text-main, #0F172A);
    hyphens: auto;
}

/* ===== how_it_works ===== */
#how-it-works {
    overflow: hidden;
}

#how-it-works .js-step-card {
    hyphens: auto;
}

/* ===== courses_showcase ===== */
#courses {
    overflow: hidden;
}

#courses img {
    width: 100%;
    object-fit: cover;
}

/* ===== benefits ===== */
#benefits {
    overflow: hidden;
}

#benefits .benefits-section {
    background-color: var(--color-surface-light, #F8FAFC);
}

#benefits h2,
#benefits h3 {
    hyphens: auto;
}

/* ===== application_form ===== */
#application-form input::placeholder,
#application-form textarea::placeholder {
    color: #94a3b8;
}

#application-form select {
    background-image: none;
}

/* ===== faq ===== */
#faq {
    hyphens: auto;
}

#faq .js-faq-item.active {
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

#faq .js-faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
    color: #2563EB;
}

/* ===== contacts_messengers ===== */
#contacts {
    overflow: hidden;
}

#contacts .js-messenger-btn {
    text-decoration: none;
}

/* ===== footer ===== */
#footer {
    background-color: var(--color-surface-dark, #0F172A);
    color: #E2E8F0;
}

#footer a {
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}