header {
    background-color: rgb(255, 255, 255);
    padding: 0px 0;
}

.menu-list a
{
    color: black;
    font-size: 22px;
    text-decoration: none;
    font-family: 'Comic Sans MS', cursive;

}


.menu-list a:hover
{
    color: #c9a959;
}

.menu-list 
{
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
    display: flex;
    
}

.sectionmain
{
    padding-top: 100px;
    padding-bottom: 80px;
    background-image: url('backimg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 550px;
}

.sectionmain p 
{
    color: #d4c4a8;
    font-size: 25px;
    font-family: montserrat, sans-serif;

    justify-content: center;   
    align-items: center;        
    text-align: center;
    padding-left: 300px;  
    padding-right: 300px;


}

.sectionmain .cherto
{
    color: #c9a959;
    font-size: 32px;
    font-family: roboto;
}


.sectionmain button
{
    background-color: #c9a959;
    font-size: 45px;
    font-family: 'Comic Sans MS', cursive;

    display: block;  
    margin-left: auto;  
    margin-right: auto; 
    text-align: center;

    position: absolute;
    left: 50%;           /* Ставим левый край на середину */
    transform: translateX(-50%); /* Сдвигаем на половину ширины кнопки влево */
    top: 550px;

    border: none;
    border-radius: 17px;
    color: #1e3a2f;
}


.sectionmain button::after {
    content: "➔";
    position: absolute;
    top: 1px;           
    right: 1px;        
    font-size: 20px;    
    transform: rotate(-45deg);  
    color: white;        
}


.zvezdi
{
    color: gold;
    font-size: 40px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 10px;
}


.infonas
{
    font-size: 40px;
    font-family: montserrat, sans-serif;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: 10px;
}


.sectionabout
{
    font-family: montserrat, sans-serif;
    font-size: 30px;
}


.spisak
{
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.sectionabout ul
{
    justify-content: center;
    text-align: center;
    align-items: center;
    font-family: 'Comic Sans MS', cursive;
    list-style: none;
    list-style-position: inside;

}

.classteach
{
    font-family: 'Comic Sans MS', cursive;
    text-align: left;        
    max-width: 800px;        
    margin-left: 0;          
    margin-right: auto;

    margin-bottom: 110px;
    

}


.nash
{
    margin-top: 100px;
}


.sectiongalary .cherto2
{
    color: #ff6600;
    font-size: 32px;
    font-family: roboto;
}


.sectiongalary p
{
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    font-size: 45px;
    font-family: montserrat, sans-serif;
}


.zhizn
{
    margin-bottom: 100px;
}


.sectiongalary img
{
    width: 510px;
    height: 510px;
    border-radius: 10px;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: contain;  
    background-color: #f0f0f0;
}


.sectiongalary img:hover {
    transform: scale(1.05);
}


.zvezdi2 
{

    color: gold;
    font-size: 40px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: 110px;
    margin-bottom: 0px;

}


.raspisan
{
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    font-size: 45px;
    font-family: montserrat, sans-serif;
    margin-top: 18px;
}


.tablica
{
     width: 95%;
    max-width: 1200px;
    margin: 30px auto;
    border-collapse: collapse;
    font-family: montserrat, sans-serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
}


.tablica th
{
    background-color: #c9a959;
    color: white;
    font-size: 20px;
    padding: 15px 10px;
    border: 1px solid #b69244;
}


.tablica th strong
{
    color: white;
    font-size: 22px;
}


.tablica td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    vertical-align: top;
    text-align: left;
}

.tablica tr:nth-child(even) {
    background-color: #f9f5f0;
}


footer
{
    margin-top: 100px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;

}




@media (max-width: 768px) {
    
    
    .menu-list {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .menu-list a {
        font-size: 16px;
    }
    

    .sectionmain {
        padding-top: 50px;
        padding-bottom: 50px;
        min-height: auto;
    }
    
    .sectionmain p {
        padding-left: 20px !important;
        padding-right: 20px !important;
        font-size: 18px !important;
    }
    
    .sectionmain button {
        position: relative;
        top: 0;
        margin-top: 30px;
        margin-bottom: 30px;
        font-size: 28px;
        padding: 10px 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .sectionmain button::after {
        font-size: 16px;
    }
    
    .sectionmain .cherto {
        font-size: 24px;
    }
    

    .zvezdi {
        font-size: 24px;
        margin-top: 40px;
    }
    
    .infonas {
        font-size: 28px;
    }
    

    .sectionabout ul {
        columns: 1;
        padding: 0 20px;
        font-size: 18px;
        text-align: left;
    }
    
    .sectionabout ul li {
        margin-bottom: 8px;
    }
    
    .classteach {
        max-width: 100%;
        margin-left: 20px;
        margin-right: 20px;
        font-size: 16px;
        margin-bottom: 50px;
    }
    
    .nash {
        margin-top: 50px;
        font-size: 24px;
        text-align: center;
    }
    
    .spisak {
        font-size: 24px;
    }
    
 
    .sectiongalary p {
        font-size: 28px;
    }
    
    .sectiongalary img {
        width: 100%;
        height: auto;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .zhizn {
        margin-bottom: 40px;
        font-size: 18px !important;
    }
    
    .zvezdi2 {
        font-size: 24px;
        margin-top: 60px;
    }
    

    .raspisan {
        font-size: 28px;
    }
    
    .tablica {
        width: 100%;
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tablica th {
        font-size: 14px;
        padding: 10px 5px;
    }
    
    .tablica th strong {
        font-size: 14px;
    }
    
    .tablica td {
        font-size: 12px;
        padding: 8px 4px;
    }
    
  
    footer {
        margin-top: 50px;
        flex-direction: column;
        padding: 20px;
    }
}


@media (max-width: 480px) {
    .menu-list a {
        font-size: 14px;
    }
    
    .sectionmain p {
        font-size: 16px !important;
    }
    
    .sectionmain button {
        font-size: 22px;
        padding: 8px 15px;
    }
    
    .infonas {
        font-size: 24px;
    }
    
    .sectionabout ul {
        font-size: 16px;
    }
    
    .classteach {
        font-size: 14px;
    }
    
    .tablica {
        font-size: 10px;
    }
}