/*
 * footer-main.css
 * Основной футер сайта deniti-perm.ru (блоки .footer и .footerdev)
 * для лендингов (макеты 7-8, 12-23).
 *
 * Разметка:
 *   <footer class="footer--extended">          <- единственный <footer> на странице (футер лендинга)
 *       ...содержимое футера лендинга...
 *       <div class="footer-main">
 *           <div class="footer">...</div>        <- бывший <footer class="footer"> с главной
 *           <section class="footerdev">...</section>
 *       </div>
 *   </footer>
 *
 * Все правила изолированы префиксом .footer-main, чтобы:
 *  - не затронуть остальные элементы лендинга;
 *  - перебить базовые стили лендинга (Bootstrap 5, шрифт Inter, section { margin-bottom }, цвета ссылок).
 *
 * Источник стилей: https://deniti-perm.ru/ (style.css + inline-стили блока .footerdev).
 */


/* ========================================================================
   1. Шрифт Open Sans (на лендингах не подключен)
   ======================================================================== */

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    src: url("/assets/fonts/opensans-light-webfont.woff2") format("woff2"), url("/assets/fonts/opensans-light-webfont.woff") format("woff");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    src: url("/assets/fonts/opensans-regular-webfont.woff2") format("woff2"), url("/assets/fonts/opensans-regular-webfont.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    src: url("/assets/fonts/opensans-bold-webfont.woff2") format("woff2"), url("/assets/fonts/opensans-bold-webfont.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}


/* ========================================================================
   2. Встраивание в футер лендинга
   Нижний отступ футера лендинга переносим в верхний отступ .footer-main,
   чтобы основной футер прилегал к низу страницы на всю ширину.
   ======================================================================== */

footer.footer--extended {
    padding-bottom: 0;
}

footer.footer--extended > .footer-main {
    margin-top: 60px;
}

@media (max-width: 1023px) {
    footer.footer--extended > .footer-main {
        margin-top: 48px;
    }
}

@media (max-width: 767px) {
    footer.footer--extended > .footer-main {
        margin-top: 32px;
    }
}

/* макет 8: у футера нет собственных отступов (они у .footer_top) */
.common_landing_page footer.footer--extended > .footer-main {
    margin-top: 0;
}


/* ========================================================================
   3. Базовые стили (как на основном сайте)
   ======================================================================== */

.footer-main {
    display: block;
    width: 100%;
    text-align: left;
    font-family: "Open Sans", "Proxima Nova Regular", Helvetica, sans-serif, serif, -apple-system;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    color: #41484E;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-main,
.footer-main *,
.footer-main *:before,
.footer-main *:after {
    box-sizing: border-box;
}

.footer-main div,
.footer-main span,
.footer-main p,
.footer-main a,
.footer-main ul,
.footer-main li,
.footer-main img,
.footer-main strong,
.footer-main iframe,
.footer-main section {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

.footer-main section {
    display: block;
}

.footer-main ul,
.footer-main ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-main a {
    text-decoration: underline;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
}

.footer-main a:hover,
.footer-main a:focus,
.footer-main a:active {
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

.footer-main img {
    pointer-events: none;
    vertical-align: top;
}


/* ========================================================================
   4. Сетка (Bootstrap 4 grid основного сайта, gutter 30px)
   На лендингах подключен Bootstrap 5 с другими отступами и .row > * правилами.
   ======================================================================== */

.footer-main .container {
    width: 100%;
    max-width: none;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .footer-main .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .footer-main .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .footer-main .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .footer-main .container {
        max-width: 1170px;
    }
}

.footer-main .row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    margin-right: -15px;
    margin-left: -15px;
}

.footer-main .row > * {
    flex-shrink: 1;
    width: auto;
    max-width: none;
    margin-top: 0;
    padding-right: 0;
    padding-left: 0;
}

.footer-main .col-6,
.footer-main .col-12,
.footer-main .col-md-4,
.footer-main .col-md-12,
.footer-main .col-lg-3,
.footer-main .col-lg-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.footer-main .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.footer-main .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .footer-main .col-md-4 {
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }

    .footer-main .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .footer-main .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .footer-main .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-main .d-lg-none {
        display: none !important;
    }
}

/* на основном сайте утилиты отступов Bootstrap не подключены — нейтрализуем BS5 */
.footer-main .mt-3,
.footer-main .mt-lg-0 {
    margin-top: 0 !important;
}


/* ========================================================================
   5. Стили блоков .footer и .footerdev (перенесены с основного сайта
      в исходном порядке каскада)
   ======================================================================== */

.footer-main .footer {
    background-color: #666;
    color: #f5f5f5;
    padding: 40px 0;
}

@media only screen and (max-width: 575px) {
    .footer-main .footer_reverse-col {
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
    }
}
.footer-main .footer__developer {
    font-size: 16.5px;
    line-height: 22px;
    font-family: "Open Sans","Proxima Nova Regular",Helvetica,sans-serif,serif,-apple-system;
}

@media only screen and (max-width: 1023px) {
    .footer-main .footer__developer {
        font-size: 14px;
        line-height: 23px;
    }
}
.footer-main .footer__developer a {
    color: #7DBA32;
}

.footer-main .footer__developer a:hover {
    color: #7DBA32;
    text-decoration: underline;
}

.footer-main .footer__license {
    margin-bottom: 24px;
    font-size: 16.5px;
    line-height: 22px;
}

.footer-main .footer__license p {
    font-family: "Open Sans","Proxima Nova Regular",Helvetica,sans-serif,serif,-apple-system;
}

@media only screen and (max-width: 1023px) {
    .footer-main .footer__license {
        font-size: 14px;
        line-height: 23px;
    }
}
.footer-main .footer__proticopokaz {
    font-weight: 300;
    font-size: 18px;
    line-height: 25px;
    text-transform: uppercase;
    max-width: 250px;
}

.footer-main .footer__proticopokaz p {
    font-family: "Open Sans","Proxima Nova Regular",Helvetica,sans-serif,serif,-apple-system;
}

@media only screen and (max-width: 767px) {
    .footer-main .footer__proticopokaz {
        padding: 28px 0;
    }
}
@media only screen and (max-width: 1023px) {
    .footer-main .footer__proticopokaz {
        max-width: 100%;
        font-size: 14px;
        line-height: 23px;
    }
}
@media only screen and (max-width: 575px) {
    .footer-main .footer__proticopokaz {
        padding: 0 0 18px;
    }
}
.footer-main .footer__cookie-mess {
    font-size: 12px;
    line-height: 20px;
}

.footer-main .footer__cookie-mess p {
    font-family: "Open Sans","Proxima Nova Regular",Helvetica,sans-serif,serif,-apple-system;
    color: #fff;
}

@media only screen and (max-width: 1023px) {
    .footer-main .footer__cookie-mess {
        padding-top: 20px;
        font-size: 14px;
        line-height: 23px;
    }
}
.footer-main .footer__cookie-mess a {
    color: #f5f5f5;
    text-decoration: underline;
}

.footer-main .footer__cookie-mess a:hover {
    color: #f5f5f5;
    text-decoration: none;
}

.footer-main .footer__social .social {
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-bottom: 20px;
}

@media only screen and (max-width: 1023px) {
    .footer-main .footer__social .social {
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
}
.footer-main .footer-menu {
    font-size: 16.5px;
    line-height: 26px;
}

.footer-main .footer-menu__list {
    font-size: 16.5px;
    height: 100%;
}

@media only screen and (max-width: 1023px) {
    .footer-main .footer {
        padding-top: 16px;
    }
    .footer-main .footer-menu__list {
        margin: 0 -8px 42px;
        text-align: center;
    }
}
@media only screen and (max-width: 575px) {
    .footer-main .footer-menu__list {
        margin-bottom: 48px;
    }
}
.footer-main .social {
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
}

.footer-main .social a {
    background-color: #7DBA32;
    border-radius: 5px;
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    width: 48px;
}

.footer-main .social a:not(:first-child) {
    margin-left: 20px;
}

.footer-main .social a:hover {
    background-color: #98DF40;
}

.footer-main .social .vk img {
    width: 27px;
}

.footer-main .new_style_box_3 {
    display: none;
}

.footer-main .footer__developer a,
.footer-main .footer__cookie-mess a {
    color: #7dba32;
    text-decoration: none;
}

.footer-main .footer__cookie-mess a {
    color: #fff;
    text-decoration: underline;
}

.footer-main .footer__cookie-mess a:hover {
    color: #fff;
    text-decoration: none;
}

@media only screen and (max-width: 767px) {
    .footer-main .footer__cookie-mess {
        padding: 12px 17px 0;
    }
    .footer-main .footer__cookie-mess p {
        color: #fff;
        font-size: 12px;
        line-height: 20px;
    }
    .footer-main .footer__license {
        margin: 0;
    }
    .footer-main .footer__license p,
    .footer-main .footer__proticopokaz p,
    .footer-main .footer__developer p {
        text-align: center;
        color: #f5f5f5;
    }
    .footer-main .footer__social .social {
        justify-content: center;
        margin-bottom: 40px;
    }
    .footer-main .new_style_box_1 {
        order: 3;
    }
    .footer-main .new_style_box_2 {
        order: 1;
    }
    .footer-main .new_style_box_3 {
        display: block;
        order: 2;
    }
    .footer-main .new_style_box_4 {
        display: none;
    }
    .footer-main .footer__cookie-mess a {
        color: #fff;
        text-decoration: underline;
    }
}
@media only screen and (max-width: 374px) {
    .footer-main .footer__cookie-mess {
        padding: 12px 0 0;
    }
}
.footer-main .new_footer_subheader {
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.footer-main ul.footer-menu__list li a {
    color: #fff;
}

.footer-main ul.footer-menu__list li span {
    color: #ccc;
}

.footer-main .footer__proticopokaz {
    margin-bottom: 24px;
    max-width: none;
}

.footer-main .footer__right.new_style_box_2 {
    margin-top: 32px;
}

.footer-main .footer__social .social {
    -ms-flex-pack: start;
    justify-content: flex-start;
}

@media only screen and (max-width: 1023px) {
    .footer-main .footer {
        padding-top: 32px;
        padding-bottom: 12px;
    }
    .footer-main ul.footer-menu__list {
        font-size: 16px;
        line-height: 26px;
    }
    .footer-main .footer-menu__list {
        margin: 0 0 32px;
        text-align: left;
    }
    .footer-main .footer__proticopokaz {
        margin-bottom: 0;
    }
    .footer-main .footer__right.new_style_box_2 {
        margin-top: 32px;
    }
}
@media only screen and (max-width: 767px) {
    .footer-main .new_footer_subheader {
        font-size: 14px;
        line-height: 23px;
        margin-bottom: 8px;
    }
    .footer-main ul.footer-menu__list {
        font-size: 14px;
        line-height: 23px;
    }
    .footer-main ul.footer-menu__list li {
        margin-bottom: 8px;
    }
    .footer-main .footer__cookie-mess {
        padding: 12px 0 0;
    }
    .footer-main .footer {
        padding-bottom: 0;
    }
    .footer-main .footer__social .social {
        margin-bottom: 32px;
    }
    .footer-main .new_style_box_3 {
        margin-top: 16px;
    }
}
.footer-main .footerdev__text {
    display: block;
}

.footer-main .fs_wrapper_class {
    width: 100%;
}

.footer-main .footer__social {
    display: flex;
    gap: 32px;
}

.footer-main .footer__social .social {
    margin: 0;
}

@media only screen and (max-width: 1023px) {
    .footer-main .footer__social {
        padding-right: 15px;
        padding-left: 15px;
        margin-bottom: 24px;
    }
}
@media only screen and (max-width: 767px) {
    .footer-main .footer__social {
        gap: 24px;
    }
}
.footer-main .widgets_area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0;
}

.footer-main .footer-menu__list {
    height: auto;
}

.footer-main .footerdev {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 200px;
    background: #333333;
    padding: 0 15px;
}

.footer-main .footerdev__text {
    font-size: 16px !important;
    line-height: 26px !important;
    text-align: center !important;
    letter-spacing: -0.03em !important;
    color: #E9EBED !important;
    text-decoration: none !important;
}

@media (max-width: 540px) {
    .footer-main .footerdev__text {
        font-size: 14px;
    }
}
