@import "../../vendor/bootstrap/dist/css/bootstrap.min-z0zQt-h.css";

/* =================================
   SITE LAYOUT
   Header → Main → Footer
================================= */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

/* ===============================
   HEADER
================================ */

.header {
    width: 100%;
    background: #fafafa;
}

.header__container {
    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* fallback если вдруг нет Bootstrap */

.header__container:not(.container) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ===============================
   ЛОГО
================================ */

.header__logo {
    display: block;
    flex-shrink: 0;
}

.header__logo img {
    display: block;
    max-height: 120px;
    height: auto;
    width: auto;
}


/* ===============================
   ЗАГОЛОВОК
================================ */

.header__headline {
    flex: 1;
    text-align: center;
}

.headline {
    margin: 0;

    font-size: 24px;
    line-height: 1.3;
    color: #00743C;
}


/* ===============================
   СОЦСЕТИ
================================ */

.header__social {
    display: flex;
    align-items: center;
}

.header__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}


/* ===============================
   КОНТАКТЫ
================================ */

.header__contacts {
    flex-shrink: 0;
    text-align: right;
}

.phone-header {
    font-size: 22px;
    line-height: 1.4;
    color: #00743C;
}

.phone-header span {
    color: #A69500;
}

.phone-header-email {
    display: block;

    font-size: 16px;
    color: #00743C;
}


/* ===============================
   ADAPTIVE
================================ */

/* Планшеты */

@media (max-width: 991px) {

    .header__container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .header__headline {
        order: 3;
        width: 100%;
    }

    .header__contacts {
        order: 4;
        width: 100%;
        text-align: center;
    }

}


/* Мобильные */

@media (max-width: 767px) {

    .header__container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .header__logo img {
        max-height: 80px;
    }

    .headline {
        font-size: 18px;
    }

    .phone-header {
        font-size: 18px;
    }

}

/* ===============================
   FOOTER (dark / enterprise)
   FINAL VERSION
================================ */

.footer {
    background: #121212;
    color: #cfcfcf;
    margin-top: 60px;
    position: relative;
}

/* мягкий fade сверху */

.footer::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(0,0,0,0.08),
        rgba(0,0,0,0.18)
    );
}

/* зелёная линия сверху */

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #00743C;
}

/* контейнер */

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 20px 25px;
}

/* сетка */

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
}

/* колонка */

.footer__col {
    font-size: 14px;
}

/* логотип */

.footer__logo img {
    max-width: 180px;
    margin-bottom: 15px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
}

/* текст */

.footer__text {
    line-height: 1.6;
    color: #bfbfbf;
}

/* меню */

.footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__menu li {
    margin-bottom: 8px;
}

/* ссылки */

.footer__menu a {
    position: relative;
    display: inline-block;
    color: #cfcfcf;
    text-decoration: none;
    transition: color .2s ease;
}

.footer__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: #3fcf8e;
    transition: width .25s ease;
}

.footer__menu a:hover {
    color: #ffffff;
}

.footer__menu a:hover::after {
    width: 100%;
}

/* контакты */

.footer__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cfcfcf;
    margin-bottom: 8px;
    transition: color .2s ease;
}

.footer__contact:hover {
    color: #ffffff;
}

/* svg иконки */

.footer__icon {
    width: 16px;
    height: 16px;
    fill: #3fcf8e;
    flex-shrink: 0;
}

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

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 35px;
    padding-top: 18px;
    font-size: 13px;
}

.footer__bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* копирайт */

.footer__copyright {
    color: #999;
    text-align: center;
}

/* =================================
   ADAPTIVE
================================= */

@media (max-width: 992px) {

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

}

@media (max-width: 600px) {

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer__container {
        padding: 35px 18px 18px;
    }

    .footer__logo img {
        max-width: 150px;
    }

    .footer__copyright {
        font-size: 12px;
    }

}
