/* Variables & Reset */
:root {
    --primary-blue: #4A61A8;
    --primary-dark: #3B4D8F;
    --accent-gold: #F2C94C;
    --text-main: #333333;
    --text-light: #555555;
    --white: #ffffff;
    --bg-light: #F9FAFC;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

/* Обновил селектор: теперь logo-text вместо logo */
h1, h2, h3, .logo-text {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 0.9rem;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #222;
    font-size: 1.1rem;
    margin-top: 20px;
}

.arrow { margin-left: 10px; font-size: 1.2em; }

/* Header START - ИЗМЕНЕНИЯ ЗДЕСЬ */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* Немного уменьшил padding */
}

/* Новый контейнер для лого и текста */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Расстояние между картинкой и текстом */
}

/* Стили для картинки логотипа */
.header-logo {
    height: 40px; /* Высота логотипа, можно подстроить */
    width: auto;
}

/* Стили для текста рядом с логотипом (вместо старого .logo) */
.logo-text {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.header-nav nav a {
    margin-left: 20px;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav nav a:hover { color: var(--primary-blue); }
/* Header END */


/* Hero Section */
.hero-section {
    padding: 60px 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(74, 97, 168, 0.2);
}

.hero-content .tag {
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Mission Section */
.mission-section {
    padding: 80px 20px;
    text-align: center;
}

.mission-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.mission-text {
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.feature-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--text-main);
}

/* Requirements Section */
.requirements-section {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.requirements-section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.req-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.req-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 4px;
}

.req-footer {
    margin-top: 40px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Course Info */
.course-info {
    padding: 80px 20px;
}

.course-info h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.course-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--primary-blue);
}

.stat-icon {
    width: 28px;
    height: 28px;
}

/* Team Section */
.team-section {
    padding: 80px 20px;
}

.team-section h2 {
    margin-bottom: 50px;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
}

.photo-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-frame img[src="img/anna.PNG"] {
    object-position: center 20%;
    object-fit: cover;
}

.placeholder-frame {
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.team-card h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 20px 40px;
    text-align: center;
    /* Если у вас есть фоновый паттерн для футера, раскомментируйте и проверьте путь */
    /* background-image: url('img/background-pattern.png'); */
    background-size: cover;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.event-info {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.online-badge {
    font-weight: 700;
    margin-right: 10px;
}

.footer-description {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contacts {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    font-size: 0.9rem;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contacts p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.contacts a {
    color: var(--white);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.contacts a:hover {
    opacity: 0.8;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.phone-link:hover {
    opacity: 0.8;
}

.telegram-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Обновление для мобильной шапки с лого */
    .header-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }

    .header-nav nav { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
    .header-nav nav a { margin: 0; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content .btn { width: 100%; }

    .features-grid, .team-grid, .requirements-grid {
        grid-template-columns: 1fr;
    }

    .course-content-wrapper {
        grid-template-columns: 1fr;
    }

    .photo-frame { width: 140px; height: 140px; }
}