html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Gilroy', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@font-face {
    font-family: 'Gilroy';
    src: url('Gilroy-Bold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('gilroy-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('gilroy-thin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* ОСНОВНОЙ БЛОК (хедер + контент) */
.school-main {
    position: relative;
    flex: 1;
    isolation: isolate;
}

/* Узор */
.school-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('background_2.png') center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* HEADER */
.school-header {
    position: relative;
    background: rgba(15, 63, 57, 0.85);
    padding: 20px 40px;
    z-index: 2;
    border-bottom: 3px solid #008275;
}

.school-header__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.school-header img {
    height: 40px;
    width: auto;
}

/* ЛИНИИ */

.school-divider {
    height: 1px;
    background: rgba(0,0,0,0.1);
}

/* КОНТЕНТ */

.school-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px 80px;
    overflow: hidden;
}

.school-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* ТЕКСТ */

.school-title {
    font-size: 76px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.school-subtitle {
    font-size: 33px;
    font-weight: 300;
    color: #d7f3ec;
    margin-bottom: 50px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* БЕЛАЯ КАРТОЧКА */

.school-files-card-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.school-files-card {
    background: #D9D9D9;
    border-radius: 39px;
    padding: 8px 0;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto
}

.school-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    transition: background 0.2s ease;
}

.school-file-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.school-file-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.school-file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.school-file-title {
    font-size: 16px;
    font-weight: 400;
    color: #1a2a28;
    line-height: 1.4;
}

.school-file-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #03BE93;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 20px;
    transition: color 0.2s ease;
}

.school-file-download svg {
    display: block;
    flex-shrink: 0;
    margin-left: 4px;
}

.school-file-download:hover {
    color: #009e6e;
    text-decoration: underline;
}

.school-file-divider {
    height: 1px;
    background: #B7B7B7;
    margin: 0 32px;
}

/* ТЕКСТ */

.school-text {
    margin-top: 40px;
    color: #FFFFFF;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    font-weight: 300;   
}

/* КНОПКИ */

.school-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.school-btn {
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    width: 217px;
    text-align: center;
    box-sizing: border-box;
}

.school-btn.green {
    background: #03BE93;
    color: white;
    border: 2px solid #03BE93;
}

.school-btn.green:hover {
    background: transparent;
    color: #00c48c;
}

.school-btn.white {
    background: #D9D9D9;
    color: #000000;
    border: 2px solid #D9D9D9;
}

.school-btn.white:hover {
    background: transparent;
    color: #ffffff;
}

/* ===================================================== */
/*  FOOTER */
/* ===================================================== */

.school-footer {
    position: relative;
    background: url('bg-footer-min.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    padding: 60px 40px;
    z-index: 2;
    border-top: 3px solid #008275;
}

/* Главная сетка */

.school-footer__inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    /* две строки */
    grid-template-rows:
        auto
        auto;

    column-gap: 60px;
    row-gap: 40px;
}

/* Первая колонка — на всю высоту */

.school-footer__col:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;

    display: flex;
    flex-direction: column;
}

/* Вторая и третья — раскладываем содержимое */

.school-footer__col:nth-child(2),
.school-footer__col:nth-child(3) {
    display: contents;
}

/* Адрес */

.school-footer__col:nth-child(2)
.school-footer__item:first-child {
    grid-column: 2;
    grid-row: 1;
}

/* Телефон */

.school-footer__col:nth-child(2)
.school-footer__item:last-child {
    grid-column: 2;
    grid-row: 2;
}

/* Email */

.school-footer__col:nth-child(3)
.school-footer__item:first-child {
    grid-column: 3;
    grid-row: 1;
}

/* Сайт */

.school-footer__col:nth-child(3)
.school-footer__item:last-child {
    grid-column: 3;
    grid-row: 2;
}

/* Элементы */

.school-footer__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Иконки */

.school-footer__item svg {
    flex-shrink: 0;
    width: 20px;
    min-width: 20px;
}

.school-footer__item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.school-footer__item a:hover {
    color: #00c48c;
}

.school-footer__small {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 12px;
    line-height: 1.4;
    max-width: 250px;
}

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media (max-width: 768px) {

    .school-title {
        font-size: 36px;
        text-align: center;
    }
    
    .school-subtitle {
        font-size: 16px;
        text-align: center;
    }
    
    .school-content {
        padding: 40px 20px 60px;
    }
    
    .school-text {
        text-align: center;
    }
    
    .school-actions {
        justify-content: center;
        gap: 24px;
        flex-direction: column;
        align-items: center;
    }
    
    .school-btn {
        width: auto;
        min-width: 200px;
    }


    .school-footer__inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 40px;
        text-align: center;
    }


    .school-footer__col:nth-child(2),
    .school-footer__col:nth-child(3) {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .school-footer__col:nth-child(2)
    .school-footer__item:first-child,
    .school-footer__col:nth-child(2)
    .school-footer__item:last-child,
    .school-footer__col:nth-child(3)
    .school-footer__item:first-child,
    .school-footer__col:nth-child(3)
    .school-footer__item:last-child {

        grid-column: auto;
        grid-row: auto;
    }

    /* Центровка элементов */

    .school-footer__col {
        align-items: center;
    }

    .school-footer__item {
        justify-content: center;
    }

    .school-footer__item svg {
        margin-top: 0;
    }

    /* Файлы */

    .school-file-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .school-file-left {
        width: auto;
        flex: 1;
    }
    
    .school-file-download {
        font-size: 0;
        display: flex;
        margin-left: 12px;
        align-items: center;
    }
    
    .school-file-download svg {
       width: 20px;
       height: 20px;
       font-size: initial;
    }

    .school-file-divider {
        margin: 0 20px;
    }

}
