@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html {
    width: 100%;
    scroll-behavior: smooth;
    font-style: italic;
    font-family: "Inter", sans-serif;
}

:root {
    --bg-color: #e9e6e6;
    --text-color: #333333;
    --card-bg: #e9e6e6;
    --header-bg: #e9e6e6;
    --color-block: rgb(190, 190, 248);
    --color-backround: rgba(222, 222, 255, 1);
    --shadow: 0 3px 25px -5px rgba(150, 129, 255, 0.3);
    --accent-color: #4c37ec;
    --footer-bg: #dfdede;
    --input-bg: #e9e6e6;
    --input-border: #cccccc;
    --card-bg: #e9e6e6;
}

body.dark-theme {
    --bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --card-bg: #16213e;
    --header-bg: #1a1a2e;
    --color-block: rgba(108, 92, 231, 0.2);
    --color-backround: #0f3460;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --accent-color: #a29bfe;
    --footer-bg: #16213e;
    --input-bg: #2d2d44;
    --input-border: #444466;
    --card-bg: #16213e;
}

button {
    border-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

.achievement-card, .event-card, .contact-card {
    background-color: var(--card-bg) !important;
    color: var(--text-color);
}

.site-footer, .simple-footer {
    background-color: var(--footer-bg);
}

.theme-toggle {
    background: var(--color-block);
    color: var(--accent-color);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-web {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hello-school {
    margin: 50px auto;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.hello-school-inf {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 50%;
}

.web-hi {
    font-size: 36px;
    margin: 0;
    text-align: center;
}

.inf-hi {
    font-size: 18px;
    text-align: justify;
}

.logo-school {
    max-width: 50%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.inf-school {
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: justify;
    font-size: 18px;
}

.conteiner {
    max-width: 1000px;
    margin: 5rem auto;
    padding: 40px;
    border-top: var(--color-block) 5px solid;
    border-bottom: var(--color-block) 5px solid;
    box-shadow: var(--shadow);
    border-radius: 20px;
}

.conteiner > section {
    max-width: 100%;
    text-align: justify;
    font-size: 18px;
}

.news {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: flex;
    justify-content: center;
    
    gap: 40px;
}

.news section {
    max-width: 360px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    text-align: center;
    padding: 20px;
}

.news section:hover {
    transform: translateY(-10px);
}

.news img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 20px;
}

.news .sec {
    padding: 0 20px;
}

.news h3 {
    font-size: 24px;
    margin: 20px 0 10px;
}

.news p {
    font-size: 16px;
    text-align: justify;
}


/* Общие стили */

.achievements-hero, .contacts-hero, .events-hero {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.achievements-hero h1, .contacts-hero h1, .events-hero h1 {
    font-size: 42px;
    margin: 0;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
}

.lead {
    font-size: 1.2rem;
    margin-top: 15px;
    opacity: 0.9;
}


body.accessibility-mode {
    background-color: #000 !important;
    color: #fff !important;
}

body.accessibility-mode * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #ff0 !important;
}

body.accessibility-mode a,
body.accessibility-mode button,
body.accessibility-mode input,
body.accessibility-mode textarea,
body.accessibility-mode select {
    color: #ffff00 !important;
    background-color: #111 !important;
    border: 2px solid #ffff00 !important;
}

body.accessibility-mode h1,
body.accessibility-mode h2,
body.accessibility-mode h3 {
    color: #ffff00 !important;
    text-shadow: 0 0 8px #ffff00;
}

body.accessibility-mode img {
    filter: contrast(1.4) brightness(1.2) !important;
}

/* Увеличиваем размер шрифта */
body.accessibility-mode {
    font-size: 18px !important;
    line-height: 1.5 !important;
}

/* Медиа-запросы для responsivity */

@media (max-width: 1024px) {
    .hello-school { flex-direction: column; text-align: center; }
    .hello-school-inf, .logo-school { max-width: 90%; }
    .news-grid, .events-grid, .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .news {flex-wrap: wrap;}
}

@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px; gap: 15px; text-align: center; }
    .header-right { width: 100%; }
    .main-nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .user-profile-block { justify-content: center; margin-bottom: 10px; }
    .hello-school { flex-direction: column; text-align: center; }
    .web-hi { font-size: 28px !important; }
    .events-grid, .achievements-grid, .contacts-grid { grid-template-columns: 1fr !important; }
    .main-registretion { width: 95%; padding: 20px; }
    
    .footer-main { flex-direction: column; text-align: center; gap: 30px; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .main-nav { gap: 12px; font-size: 0.9rem; }
}