/* ==============================================
   base.css — стили хедера и футера
   Вынесено из base.php <style>
   Подключается в base.php
   ============================================== */

/* ==========================================
   СБРОС И БАЗОВЫЕ СТИЛИ
=========================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    padding-top: 66px !important;
}

body > *:first-child {
    margin-top: 0 !important;
}

/* ==========================================
   ХЕДЕР — ФИКСИРОВАННЫЙ
=========================================== */
.tf-header {
    background: #1a1a2e;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    margin: 0;
    transition: all 0.3s
        cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-header.scrolled {
    box-shadow: 0 4px 24px
        rgba(0,0,0,0.15);
    padding: 6px 0;
}

.tf-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* ЛОГОТИП */
.tf-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tf-header__logo:hover {
    opacity: 0.85;
}

.tf-header__logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
    display: block;
}

.tf-header.scrolled .tf-header__logo img {
    height: 45px;
}

/* ТЕЛЕФОН */
.tf-header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tf-header__phone:hover {
    background: rgba(251,191,36,0.15);
    border-color: #fbbf24;
    color: #fbbf24;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px
        rgba(251,191,36,0.2);
}

.tf-header__phone-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Адаптив для планшетов */
@media (max-width: 768px) {
    body {
        padding-top: 61px !important;
    }

    .tf-header {
        padding: 6px 0;
    }

    .tf-header.scrolled {
        padding: 4px 0;
    }

    .tf-header__inner {
        padding: 0 16px;
    }

    .tf-header__logo img {
        height: 45px;
    }

    .tf-header.scrolled .tf-header__logo img {
        height: 40px;
    }

    .tf-header__phone {
        font-size: 14px;
        padding: 6px 16px;
        gap: 6px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    body {
        padding-top: 57px !important;
    }

    .tf-header__phone {
        font-size: 16px;
        padding: 6px 12px;
    }
}