/*
 * Шапка и подвал: визуальные улучшения поверх старого дизайна.
 * Цвета и шрифты прежние: тёмный #252525 / #111, жёлтый #f1c444.
 */

/* ================================================================ ПОДВАЛ */

/* 1. Логотип: убрали белую плашку — белый логотип стоит прямо на тёмном фоне */
#footer .logo_footer {
    background: none !important;
    padding: 0 !important;
    margin-bottom: 22px;
}
#footer .logo_footer img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* 3. Четыре ровные колонки: Контакты | Аренда | Продажа | Полезная информация */
#footer .footer-main {
    padding-top: 56px;
    padding-bottom: 40px;
}
#footer .footer-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) 3fr;
    gap: 48px;
    align-items: start;
}
#footer .footer-links-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr;
    gap: 36px;
}
@media (max-width: 1199px) {
    #footer .footer-layout { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 991px) {
    #footer .footer-links-wrap { grid-template-columns: 1fr 1fr; }
}

/* 8. Типографика: заголовки скромнее, ссылки крупнее и с воздухом */
#footer .footer-col .h3 {
    font-size: 18px !important;
    line-height: 1.3;
    font-weight: 700;
    color: #f1c444;
    margin: 0 0 18px;
    letter-spacing: 0.2px;
}
#footer .footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
#footer .footer-menu li {
    margin: 0 0 11px !important;
    line-height: 1.35 !important;
}
#footer .footer-menu a {
    font-size: 14.5px !important;
    color: #c9c9c9 !important;
    text-decoration: none;
    transition: color .15s;
}
#footer .footer-menu a:hover {
    color: #f1c444 !important;
}
#footer .footer_contacts .address {
    font-size: 14.5px !important;
    line-height: 1.5;
    margin-bottom: 16px;
}
#footer .footer_contacts .address a {
    color: #e8e8e8;
}
#footer .footer_contacts .address a:hover {
    color: #f1c444;
}
#footer .footer-socials a {
    transition: background .15s, color .15s;
}
#footer .footer-socials a:hover {
    background: #f1c444;
    color: #111;
}

/* 10. Нижняя полоса: разделитель, мелкий текст, ссылки в одну строку */
#footer .footer-bottom-custom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 18px 0 22px !important;
}
#footer .footer-bottom-custom__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 24px;
}
#footer .footer-copyright {
    font-size: 13px !important;
    color: #8c8c8c !important;
}
#footer .footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}
#footer .footer-policy-links a {
    font-size: 13px !important;
    color: #a8a8a8 !important;
    text-decoration: none;
}
#footer .footer-policy-links a:hover {
    color: #f1c444 !important;
}

/* 9. На телефоне разделы подвала раскрываются по нажатию (класс ставит assets/site.js) */
@media (max-width: 767px) {
    #footer .footer-main { padding-top: 36px; padding-bottom: 16px; }
    #footer .footer-links-wrap { grid-template-columns: 1fr; gap: 0; }
    #footer .footer-col.tdm-acc {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    #footer .footer-col.tdm-acc:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    #footer .footer-col.tdm-acc .h3 {
        margin: 0 !important;
        padding: 15px 34px 15px 0;
        position: relative;
        cursor: pointer;
        font-size: 17px !important;
        user-select: none;
    }
    #footer .footer-col.tdm-acc .h3::after {
        content: "";
        position: absolute;
        right: 6px;
        top: 50%;
        width: 9px;
        height: 9px;
        margin-top: -7px;
        border-right: 2px solid #f1c444;
        border-bottom: 2px solid #f1c444;
        transform: rotate(45deg);
        transition: transform .2s, margin-top .2s;
    }
    #footer .footer-col.tdm-acc.is-open .h3::after {
        transform: rotate(-135deg);
        margin-top: -2px;
    }
    #footer .footer-col.tdm-acc .footer-menu {
        display: none;
        padding-bottom: 12px;
    }
    #footer .footer-col.tdm-acc.is-open .footer-menu {
        display: block;
    }
    #footer .footer-bottom-custom__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================================================ ШАПКА (компьютер) */

@media (min-width: 1201px) {
    /* 6. Подпись под логотипом: отдельной строкой, читаемая */
    #header .header-inner .descriptor1 {
        position: static !important;
        display: block;
        margin-top: 3px;
        font-size: 11px !important;
        line-height: 1.2;
        color: #7a7a7a !important;
        white-space: nowrap;
        letter-spacing: 0.2px;
    }

    /* 4. Жёлтые кнопки — ровным рядом под меню, начиная от его левого края */
    #header .boot {
        justify-content: flex-start !important;
        padding-left: 225px !important;
        padding-right: 0 !important;
        gap: 18px;
    }
    #header .boot .callback-button-list0,
    #header .boot .callback-button-list1,
    #header .boot .callback-button-list2 {
        margin: 0 !important;
        padding: 7px 18px !important;
    }
    /* одинаковый размер текста кнопок на любой ширине (на экранах шире 1440px старые стили делали его 14px с разрядкой,
       и кнопки въезжали в «Заказать звонок») */
    #header .boot #callback-button,
    #header .boot #callback-button2,
    #header .boot #callback-button-sale {
        font-size: 12px !important;
        letter-spacing: 0.5px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
    }
    /* справа место под «Заказать звонок» */
    #header .boot {
        padding-right: 200px !important;
        flex-wrap: nowrap;
    }

    /* 5. «Заказать звонок» — кнопка в стиле остальных, справа на уровне жёлтых кнопок */
    #header .header-inner .call {
        top: 84px !important;
    }
    #header .header-inner .call a {
        display: inline-block;
        background: #252525;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        line-height: 1;
        padding: 11px 18px;
        border-radius: 3px;
        text-decoration: none;
        transition: background .15s, color .15s;
    }
    #header .header-inner .call a:hover {
        background: #f1c444;
        color: #252525 !important;
    }

    /* 7. Шапка, закреплённая при прокрутке: компактная белая полоса (класс ставит assets/site.js) */
    body.tdm-sticky #header .header-inner {
        position: fixed !important;
        top: 0;
        left: 0 !important;
        right: 0;
        transform: none !important;
        height: 62px !important;
        padding-top: 10px !important;
        background: #fff;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
        z-index: 1500;
        animation: tdmSlideDown .25s ease-out;
    }
    body.tdm-sticky #header .boot,
    body.tdm-sticky #header .header-inner .call,
    body.tdm-sticky #header .header-inner .descriptor1,
    body.tdm-sticky #header .header-inner .telbig a[href^="mailto:"],
    body.tdm-sticky #header .header-inner .telbig > div:nth-child(2),
    body.tdm-sticky #header .header-inner .tel .telbig-socials {
        display: none !important;
    }
    body.tdm-sticky #header .header-inner .tel {
        top: 4px;
    }
    /* меню по центру полосы, на одной линии с логотипом */
    body.tdm-sticky #header .header-inner .navigation {
        top: -8px !important;
    }
    body.tdm-sticky #header .header-inner .telbig a[href^="tel:"] {
        font-size: 20px;
    }
    body.tdm-sticky #header .header-inner .logo img {
        height: 40px !important;
        width: auto;
        margin-top: 4px;
    }
    /* старый механизм закрепления (script.js, класс .fixed) не должен мешать */
    #header.fixed .header-inner {
        left: auto;
        transform: none;
    }
}
/* Планшеты (768–1200px): телефоны в шапке скрыты, а «Заказать звонок» растягивался строкой поверх кнопок и крошек.
   Ставим его кнопкой в правый верхний угол. */
@media (min-width: 768px) and (max-width: 1200px) {
    #header .header-inner > .container {
        position: relative;
    }
    #header .header-inner .call {
        position: absolute !important;
        top: 8px !important;
        right: 15px !important;
        width: auto !important;
        z-index: 210;
    }
    #header .header-inner .call a {
        display: inline-block;
        background: #252525;
        color: #fff !important;
        font-size: 11px !important;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        line-height: 1;
        padding: 10px 14px;
        border-radius: 3px;
        text-decoration: none;
    }
}

/* Подпись под логотипом и значки мессенджеров на планшетах — как на компьютере */
@media (min-width: 768px) and (max-width: 1200px) {
    #header .header-inner .descriptor1 {
        position: static !important;
        display: block;
        margin-top: 3px;
        font-size: 11px !important;
        line-height: 1.2;
        color: #7a7a7a !important;
        white-space: nowrap;
    }
}
#header .telbig-socials-link {
    color: #252525 !important;
}
#header .telbig-socials-link:hover {
    color: #f1c444 !important;
}

/* Декоративные выступы (скошенные кнопки форм у правого края) не должны давать горизонтальную прокрутку */
html, body {
    overflow-x: hidden;
}

/* Карточки каталога: лента фото в слайдере шире карточки и давала горизонтальную прокрутку страницы */
.product-card-modern__media,
.product-card-modern__slider {
    overflow: hidden;
    max-width: 100%;
}

@keyframes tdmSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ================================================================ ШАПКА (телефон) */

/* 2. Мобильная шапка закреплена сверху — даём ей белый фон и тень, чтобы она не «висела» над содержимым */
@media (max-width: 767px) {
    #header {
        background: #fff !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding-bottom: 0 !important; /* отступ 40px из старой темы давал пустую белую полосу */
    }
    #header .header-inner {
        background: #fff;
    }
    /* место под закреплённую шапку (60px) */
    .newwrap {
        padding-top: 60px !important;
    }
}
