/* Базовые настройки и переменные */
:root {
    --bg-color: #FFFFFF; /* Чистый белый фон */
    --bg-light: #F7F9FC; /* Очень светлый серо-голубой для блоков */
    --text-color: #4A4A4A; /* Мягкий темно-серый текст */
    --heading-color: #2D3748; /* Темный цвет для заголовков */
    --primary-color: #4299E1; /* Спокойный синий (образовательная тематика) */
    --primary-hover: #3182CE;
    --secondary-color: #F6AD55; /* Теплый оранжевый акцент */
    --secondary-hover: #DD6B20;
    --white: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 600;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 40px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Шапка (Header) */
.header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.logo-desc {
    font-size: 0.85rem;
    color: #718096;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Главный экран (Hero) */
.hero {
    padding: 70px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: #4A5568;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    max-height: 600px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: block;
    margin: 0 auto;
}

/* Обо мне */
.about-section {
    padding: 80px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 3;
}

.qualifications-list {
    list-style: none;
    margin-top: 20px;
}

.qualifications-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.qualifications-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.about-stats {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.9rem;
    color: #718096;
}

/* Достижения */
.achievements-section {
    padding: 80px 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.achievement-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.achievement-card p {
    font-size: 0.95rem;
}

/* Галерея */
.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Материалы */
.materials-section {
    padding: 80px 0;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.material-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: box-shadow 0.3s ease;
}

.material-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.material-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.material-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.material-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.material-link:hover {
    text-decoration: underline;
}

/* Контакты */
.contacts-section {
    padding: 80px 0;
}

.contacts-container {
    display: flex;
    gap: 60px;
}

.contacts-info {
    flex: 1;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #E2E8F0;
}

.contacts-form-wrapper {
    flex: 1;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #CBD5E0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Подвал */
.footer {
    background: var(--heading-color);
    color: #A0AEC0;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-container, .about-container, .contacts-container {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
    }
    
    .gallery-grid, .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }
    
    .nav-list {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        z-index: 99;
    }

    .nav-list.active {
        display: flex;
    }

    .burger-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .burger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .gallery-grid, .materials-grid, .about-stats, .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

/* Модальное окно галереи (Lightbox) */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

/* Бургер-кнопка для мобильного меню */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.burger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--heading-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}
