@import url('https://fonts.googleapis.com');

:root {
    --hover-orange: #e67e22;
    --pale-orange: #fdf2e9;
    --black: #000000;
    --white: #ffffff;
    --gray-bg: #f5f5f5;
    --text-muted: #444444;
    --placeholder-bg: #eeeeee;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--black); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }


.header { padding: 25px 0; background: var(--white); border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo-static { font-weight: 700; letter-spacing: 2px; font-size: 14px; color: var(--black); cursor: default; }
.logo-link { font-weight: 700; letter-spacing: 2px; font-size: 14px; text-decoration: none; color: var(--black); transition: all 0.3s ease; display: inline-flex; align-items: center; }
.logo-link:hover { color: var(--hover-orange); }
.back-arrow { margin-right: 10px; font-size: 18px; transition: transform 0.3s ease; }
.logo-link:hover .back-arrow { transform: translateX(-5px); }


.section-padding { padding: 80px 0; }
.bg-gray { background: var(--gray-bg); }
.pre-title { font-size: 18px; color: var(--text-muted); margin-bottom: 10px; }
.orange-line { display: block; width: 100px; height: 6px; background-color: var(--hover-orange); margin-top: 50px; }


.article-block {
    max-width: 1160px;
    margin: 0;
}

.article-block p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.article-img-wrap {
    margin-bottom: 30px;
    background: var(--placeholder-bg);
    border-radius: 4px;
}

.article-img-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.img-caption {
    display: block;
    padding: 15px;
    font-size: 13px;
    color: #888;
    background: #fff;
    border-top: 1px solid #eee;
}

.float-right {
    float: right;
    width: 45%;
    margin-left: 40px;
}

.float-left {
    float: left;
    width: 45%;
    margin-right: 40px;
}

.full-width {
    width: 100%;
    clear: both;
}

.article-block::after {
    content: "";
    display: table;
    clear: both;
}


.hero { padding: 100px 0 60px; }
.main-title { font-size: 52px; font-weight: 700; line-height: 1.1; max-width: 900px; }
.main-title span { display: block; font-size: 26px; font-weight: 400; margin-top: 25px; color: var(--text-muted); }
.nav-section { padding-bottom: 100px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tilda-btn { display: flex; flex-direction: column; justify-content: space-between; background-color: var(--pale-orange); color: var(--black); padding: 40px 30px; min-height: 220px; text-decoration: none; transition: 0.4s; }
.tilda-btn:hover { background-color: var(--hover-orange); color: var(--white); transform: translateY(-5px); }
.btn-label { font-size: 22px; font-weight: 700; text-transform: uppercase; }
.btn-arrow { font-size: 30px; align-self: flex-end; }
.section-title { font-size: 32px; margin-bottom: 40px; font-weight: 700; }
.schedule-card { font-size: 20px; line-height: 1.8; }


.leader-row { display: flex; gap: 60px; align-items: center; }
.leader-photo { flex: 0 0 350px; height: 450px; }
.leader-text { font-size: 18px; font-style: italic; margin: 30px 0; color: var(--text-muted); border-left: 3px solid var(--pale-orange); padding-left: 20px; }
.flex-list { display: flex; flex-wrap: wrap; gap: 30px; }
.person-card { flex: 1 1 calc(33.333% - 30px); min-width: 280px; background: var(--white); display: flex; flex-direction: column; }
.person-img { height: 320px; width: 100%; }
.img-placeholder { background: var(--placeholder-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }


.footer { padding: 100px 0 40px; background-color: var(--white); border-top: 1px solid #eeeeee; }
.footer-main { margin-bottom: 80px; }
.footer-title { font-size: 48px; font-weight: 700; }
.footer-line { margin-top: 30px; margin-bottom: 50px; }
.footer-contacts { display: flex; gap: 60px; flex-wrap: wrap; }
.contact-label { display: block; font-size: 13px; color: #999; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; }
.contact-item p, .contact-item a { font-size: 22px; font-weight: 700; color: var(--black); text-decoration: none; }
.contact-item a:hover { color: var(--hover-orange); }
.footer-school-mention { padding-top: 30px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.school-brief { display: flex; align-items: center; gap: 10px; }
.school-mini-logo { height: 30px; filter: grayscale(1); opacity: 0.6; }
.copyright { font-size: 14px; color: #999; }


.exposition-main { display: flex; gap: 40px; margin-bottom: 60px; align-items: flex-start; }
.expo-slider { flex: 0 0 60%; position: relative; height: 400px; background: var(--placeholder-bg); overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.slider-track { width: 100%; height: 100%; }
.slide { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.slide.active { opacity: 1; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: white; border: none; padding: 15px; cursor: pointer; transition: 0.3s; z-index: 10; }
.slider-btn:hover { background: var(--hover-orange); }
.prev { left: 0; }
.next { right: 0; }

.expo-intro { flex: 1; }
.expo-intro h3 { font-size: 24px; margin-bottom: 20px; }

.exhibits-list { border-top: 1px solid #eee; padding-top: 40px; }
.exhibit-item { display: flex; gap: 30px; margin-bottom: 30px; background: #fff; padding: 20px; border-bottom: 1px solid #f9f9f9; }
.exhibit-img { flex: 0 0 200px; height: 150px; }
.exhibit-info h4 { font-size: 20px; margin-bottom: 10px; color: var(--black); }


.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.modal-content { max-width: 90%; max-height: 90%; object-fit: contain; }
.modal-close { position: absolute; top: 20px; right: 40px; color: white; font-size: 40px; cursor: pointer; }


@media (max-width: 900px) {
    .section-padding { padding: 40px 0; }
    
    .main-title { font-size: 32px; }
    .main-title span { font-size: 18px; }
    
    .menu-grid { grid-template-columns: 1fr; gap: 15px; }
    .tilda-btn { min-height: 160px; padding: 25px; }
    .btn-label { font-size: 18px; }
    
    .leader-row { flex-direction: column; gap: 30px; }
    .leader-photo { flex: 0 0 auto; width: 100%; height: 350px; }
    
    .flex-list { flex-direction: column; }
    .person-card { width: 100%; }
    
    .float-left, .float-right { float: none; width: 100%; margin: 0 0 20px 0; }
    
    .exposition-main { flex-direction: column; }
    .expo-slider { flex: 0 0 auto; width: 100%; height: 300px; }
    
    .exhibit-item { flex-direction: column; }
    .exhibit-img { flex: 0 0 auto; width: 100%; height: 200px; }
    
    .footer-title { font-size: 32px; }
    .footer-contacts { gap: 30px; }
    .footer-school-mention { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
    .main-title { font-size: 26px; }
    .section-title { font-size: 24px; }
    .pre-title { font-size: 14px; }
    
    .contact-item p, .contact-item a { font-size: 18px; }
    
    .orange-line { margin-top: 25px; }
    
    .article-block p { font-size: 16px; }
}

.awards-row {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.award-icon {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--placeholder-bg);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.award-icon:hover {
    transform: scale(1.1);
}

.red-banner {  background-image: url('../images/red_banner.png');  }
.suvorov {  background-image: url('../images/suvorov.png');  }
.khmelnitsky {  background-image: url('../images/khmelnitsky.png');  }

.exposition-main.wrap-it {
    display: block;
}

.img-left-flow {
    float: left;
    width: 60%;
    margin-right: 40px;
    clear: left; 
}

.expo-slider.img-left-flow {
    margin-top: 16px; /* Тот самый сдвиг на 16px вниз */
    margin-bottom: 10px; /* Отступ до надписи */
}

.hint-text-under {
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
}

.exposition-main.wrap-it::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 900px) {
    .img-left-flow {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-top: 0;
    }
}
