/* =====================================================
   BUDOVA TRAKTORIV V2
   Основні стилі сайту
   ===================================================== */

/* =====================================================
   СКИДАННЯ СТАНДАРТНИХ СТИЛІВ
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   БАЗОВІ СТИЛІ САЙТУ
   ===================================================== */

body.bt-site {
    font-family: 'Montserrat', sans-serif;
    background: #f5f7fa;
    color: #1f2937;
    line-height: 1.6;
}

/* =========================================
   HEADER
   ========================================= */
.bt-nav-desktop {
    display: flex;
    gap: 30px;
}

.bt-nav-desktop a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.bt-nav-desktop a:hover {
    color: #facc15;
}

.bt-header {
    background: #0f172a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.bt-header-bar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 24px;
}

.bt-logo {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
}

.bt-menu-toggle {
    display: none;
}

.bt-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
}

.bt-menu-icon {
    display: block;
}

.bt-icon-close {
    display: none;
}

.bt-menu-toggle.active .bt-icon-open {
    display: none;
}

.bt-menu-toggle.active .bt-icon-close {
    display: block;
}

.bt-mobile-panel.active {
    display: block;
}

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

.bt-footer {

    background: #0f172a;

    color: #e2e8f0;

    margin-top: 80px;
}

.bt-footer-content {

    max-width: 1200px;

    margin: 0 auto;

    padding: 50px 20px;

    display: flex;

    justify-content: space-between;

    gap: 60px;

    flex-wrap: wrap;
}

.bt-footer-brand {

    max-width: 500px;
}

.bt-footer-brand h3 {

    color: #facc15;

    margin-bottom: 15px;
}

.bt-footer-links h4 {

    color: #facc15;

    margin-bottom: 15px;
}

.bt-footer-links ul {

    list-style: none;

    padding: 0;
}

.bt-footer-links li {

    margin-bottom: 10px;
}

.bt-footer-links a {

    color: #e2e8f0;

    text-decoration: none;

    transition: .3s;
}

.bt-footer-links a:hover {

    color: #facc15;
}

.bt-footer-bottom {

    text-align: center;

    padding: 20px;

    border-top: 1px solid rgba(255,255,255,.1);

    font-size: .9rem;
}

/* =====================================================
   КНОПКА ПРОКРУТКИ ВГОРУ
   ===================================================== */

#bt-scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #facc15;
    color: #111827;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 18px rgba(0,0,0,.25);
    transition: .3s;
    z-index: 2000;
}

#bt-scroll-top:hover {
    background: #eab308;
    transform: translateY(-4px);
}

/* =========================================
   LOADING STATE (анти-flicker)
   ========================================= */

.bt-loading {
    opacity: 0;
}

.bt-loaded {
    opacity: 1;
    transition: opacity .3s ease;
}

/* =========================================
   HERO SKELETON LOADER
   ========================================= */

.bt-hero {
    position: relative;
}

/* коли завантажується — показуємо skeleton */
.bt-loading .bt-hero-skeleton {
    display: block;
}

.bt-loading .bt-hero-content {
    opacity: 0;
}

/* після завантаження */
.bt-loaded .bt-hero-skeleton {
    display: none;
}

.bt-loaded .bt-hero-content {
    opacity: 1;
}

/* =========================================
   BUTTONS
   ========================================= */

.bt-btn {
    display: inline-block;

    padding: 14px 28px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 600;

    transition: .3s;
}

.bt-btn-primary {
    background: #facc15;
    color: #111827;
}

.bt-btn-primary:hover {
    background: #eab308;
    transform: translateY(-2px);
}

.bt-btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.bt-btn-secondary:hover {
    background: #ffffff;
    color: #111827;
}

.bt-btn-outline {

    border: 2px solid #facc15;

    color: #facc15;

    background: transparent;
}

.bt-btn-outline:hover {

    background: #facc15;

    color: #111827;
}

/* =========================================
   SECTION NAVIGATION
   ========================================= */

.bt-section-nav {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 25px;

    max-width: 1200px;

    margin: 0 auto 80px;

    padding: 0 20px;
}

.bt-section-nav-card {

    display: block;

    padding: 28px;

    border-radius: 20px;

    background: #0f172a;

    color: #ffffff;

    text-decoration: none;

    transition: .3s;

    box-shadow:
        0 8px 25px rgba(0,0,0,.15);
}

.bt-section-nav-card:hover {

    transform: translateY(-6px);

    background: #1e293b;

    box-shadow:
        0 15px 35px rgba(250,204,21,.20);
}

.bt-nav-label {

    display: block;

    color: #facc15;

    font-size: .9rem;

    margin-bottom: 10px;

    text-transform: uppercase;

    letter-spacing: .05em;
}

.bt-section-nav-card strong {

    font-size: 1.2rem;

    line-height: 1.4;
}

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

.bt-mobile-panel {
    display: none;
}

/* =====================================================
   МОБІЛЬНА ВЕРСІЯ
   ===================================================== */

@media (max-width:768px){

    .bt-header-bar {

        padding: 16px 20px;

    }

    .bt-logo {

        font-size: 1.15rem;

    }

    .bt-menu-toggle {

        display: block;

        background: none;
        border: none;

        color: white;

        font-size: 2rem;

        cursor: pointer;
    }

    .bt-mobile-panel {
        position: absolute;

        left: 0;
        right: 0;
        top: 100%;

        background: #0f172a;

        display: none;

        box-shadow:
            0 10px 20px rgba(0,0,0,.25);
    }

    .bt-mobile-panel.active {

        display: block;

    }

    .bt-mobile-panel a {

        display: block;

        padding: 18px 24px;

        color: white;

        text-decoration: none;

        border-top:
            1px solid rgba(255,255,255,.08);
    }

    .bt-mobile-panel a:hover {

        background:
            rgba(255,255,255,.05);

    }

    .bt-nav-desktop {
        display: none;
    }

    .bt-btn {

        width: 100%;

        text-align: center;
    }

     .bt-section-nav {

        grid-template-columns: 1fr;

        gap: 18px;

        margin: 0 auto 50px;

        padding: 0 16px;
    }

    .bt-section-nav-card {

        padding: 22px;

        border-radius: 16px;
    }

    .bt-nav-label {

        font-size: .8rem;

        margin-bottom: 8px;
    }

    .bt-section-nav-card strong {

        font-size: 1rem;

        line-height: 1.5;
    }

    /* ефект натискання на телефоні */

    .bt-section-nav-card:active {

        transform: scale(.98);

        background: #1e293b;
    }

    .bt-footer-content {

        flex-direction: column;

        gap: 30px;
    }
}