/* МОДУЛЬ: базовые стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4caf50;
    --accent-color: #ff9800;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* МОДУЛЬ: панель для слабовидящих */
.accessibility-panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
}

.accessibility-toggle {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50% 0 0 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.accessibility-toggle:hover {
    background-color: #1a3d7a;
}

.accessibility-options {
    background-color: white;
    border-radius: 10px 0 0 10px;
    box-shadow: var(--shadow);
    padding: 15px;
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    max-width: 250px;
}

.accessibility-panel.active .accessibility-options {
    display: flex;
}

.accessibility-btn {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.accessibility-btn:hover {
    background-color: #e9e9e9;
}

.accessibility-btn i {
    width: 20px;
    text-align: center;
}

/* Высокая контрастность */
body.high-contrast {
    background-color: #000;
    color: #fff;
}

body.high-contrast .header,
body.high-contrast .footer {
    background-color: #000;
    color: #fff;
    border-bottom: 2px solid #fff;
}

body.high-contrast .nav-link,
body.high-contrast .footer a {
    color: #fff;
}

body.high-contrast .service-card,
body.high-contrast .benefit {
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
}

/* Черно-белый режим */
body.grayscale {
    filter: grayscale(100%);
}

/* Увеличенный шрифт */
body.large-font {
    font-size: 1.2rem;
}

body.large-font h1 { font-size: 2.5rem; }
body.large-font h2 { font-size: 2rem; }
body.large-font h3 { font-size: 1.75rem; }

/* Уменьшенный шрифт */
body.small-font {
    font-size: 0.9rem;
}

body.small-font h1 { font-size: 1.8rem; }
body.small-font h2 { font-size: 1.5rem; }
body.small-font h3 { font-size: 1.3rem; }

/* МОДУЛЬ: шапка сайта */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* МОДУЛЬ: герой/приветственная секция */
.hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1a3d7a;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* МОДУЛЬ: фото-секция */
.photo-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.photo-container {
    text-align: center;
    
    
}

.placeholder-image {
    background-color: #e0e0e0;
    border-radius: 10px;
    padding: 60px 20px;
    margin-top: 20px;
    color: var(--text-light);
}

.placeholder-image p {
    margin-bottom: 10px;
}

/* МОДУЛЬ: секция услуг */
.services {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-text {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-age {
    color: var(--accent-color);
    font-weight: 600;
}

/* МОДУЛЬ: цели и ценности */
.mission-values {
    padding: 80px 0;
    background-color: #f0f7ff;
}

.mission-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.values-list {
    list-style: none;
}

.values-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.values-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* МОДУЛЬ: игровой подход */
.game-approach {
    padding: 80px 0;
    background-color: var(--light-color);
}

.game-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.benefit i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.benefit h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.benefit p {
    color: var(--text-light);
}

/* МОДУЛЬ: подвал сайта */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-nav-list,
.footer-contact-list {
    list-style: none;
}

.footer-nav-list li,
.footer-contact-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav-list a:hover {
    color: #bbdefb;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* МОДУЛЬ: адаптивный дизайн */
@media (max-width: 992px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 99;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .mission-values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .game-benefits {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* МОДУЛЬ: обновленные стили для навигации */

/* Активное состояние ссылок в навигации */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Адаптивные стили для навигации на маленьких экранах */
@media (max-width: 768px) {
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: rgba(44, 90, 160, 0.1);
        padding: 10px 20px;
        border-radius: 5px;
    }
}

/* МОДУЛЬ: общие стили для всех страниц */

/* Активное состояние ссылок в навигации */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Адаптивные стили для навигации на маленьких экранах */
@media (max-width: 768px) {
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: rgba(44, 90, 160, 0.1);
        padding: 10px 20px;
        border-radius: 5px;
    }
}
 .main-photo {
 
    width: 70vw;                    /* 70% от ширины окна просмотра */
    max-width: 700px;               /* Максимум 800px на ПК */
    min-width: 300px;               /* Минимум 300px на телефоне */
    height: auto;                   /* Автоматическая высота */
    margin: 0 auto;                 /* Центрирование */
    display: block;
    border-radius: 10px;
 }

/* Простое пользовательское соглашение */
.simple-agreement {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.agreement-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.agreement-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: white;
}

/* Модальное окно соглашения */
.agreement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.agreement-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-body h5 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 1rem;
}

.modal-body p {
    margin-bottom: 10px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 5px;
    list-style-type: disc;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        font-size: 0.85rem;
        max-height: 70vh;
        padding: 15px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .agreement-text {
        font-size: 0.75rem;
    }
    
    .modal-body {
        font-size: 0.8rem;
        padding: 12px;
    }
}
 