:root {
    --primary-color: #44A2A8;
    /* Soft Teal */
    --secondary-color: #202E62;
    /* Delft Blue */
    --bg-light: #ffffff;
    --bg-soft: #f4f9f9;
    --text-main: #2d3436;
    --text-light: #ffffff;
    --card-shadow: 0 10px 30px rgba(32, 46, 98, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background:
        url('../../assets/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    scroll-behavior: smooth;
}

/* Glassmorphism effect / Эффект стекла */
.glass-effect {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-effect-dark {
    background: rgba(32, 46, 98, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(8px);
}

/* Правила форматирования пользователя */
h1,
h2,
h3,
b,
strong,
.bold-text {
    font-weight: 700;
}

i,
em {
    font-style: italic;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Хедер --- */
header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Текстовый брендинг вместо логотипа */
.brand-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.brand-text span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- Герой-секция --- */
.hero {
    padding: 120px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: #5b6271;
    max-width: 700px;
    margin: 0 auto 45px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button.large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.cta-button.outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 13px 38px;
}

.cta-button.outline:hover {
    background: var(--secondary-color);
    color: var(--text-light);
}

/* --- Направления --- */
.section-title {
    text-align: center;
    margin: 100px 0 60px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 100px;
}

.program-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.program-card p {
    margin-bottom: 15px;
}

.program-details {
    font-size: 0.9rem;
    color: #5b6271;
    margin-bottom: 20px;
}

.program-details p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.program-details b {
    color: var(--secondary-color);
}

.program-meta {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid #edf2f2;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.meta-label {
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- Особенности --- */
.features {
    background: var(--secondary-color);
    padding: 100px 0;
    color: var(--text-light);
}

.features-title {
    margin-bottom: 60px;
    text-align: center;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Контакты --- */
.contact-section {
    padding: 100px 0;
    background: var(--bg-soft);
}

.contact-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-form {
    flex: 1;
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--secondary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #eef2f2;
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* --- Футер --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 768px) {

    .nav-links,
    .cta-header {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-flex {
        flex-direction: column;
    }
}