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

body {
    font-family: "Inter", -apple-system, sans-serif;
    background: radial-gradient(circle at 10% 20%, rgba(5, 15, 25, 1) 0%, rgba(0, 0, 0, 1) 100%);
    color: #f0f0f0;
    line-height: 1.5;
    padding-top: 80px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 122, 255, 0.3);
    padding: 16px 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #007aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contacts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 980px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(0,122,255,0.4);
    animation: blink-bmw 1.5s infinite ease-in-out;
}
.phone-link:hover {
    background: #007aff;
    color: #0d0d0d;
    animation: none;
    border-color: #007aff;
}
@keyframes blink-bmw {
    0% { box-shadow: 0 0 0 0 rgba(0,122,255,0.4); border-color: rgba(0,122,255,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(0,122,255,0); border-color: #007aff; background: rgba(0,122,255,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(0,122,255,0); border-color: rgba(0,122,255,0.3); }
}

/* Каталог (блок 2) */
.catalog {
    padding: 60px 0 40px;
}
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    background: linear-gradient(120deg, #fff, #a0c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.categories-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}
.category-group {
    background: rgba(20,20,30,0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 15px 20px;
    min-width: 180px;
    text-align: center;
}
.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #007aff;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
    padding-bottom: 5px;
}
.subcategories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.filter-btn {
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.filter-btn.active, .filter-btn:hover {
    background: #007aff;
    color: #0d0d0d;
    border-color: #007aff;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.product-card {
    background: rgba(20,20,20,0.5);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #007aff;
    box-shadow: 0 10px 30px rgba(0,122,255,0.2);
}
.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 16px;
}
.image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
}
.primary-img, .secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}
.primary-img {
    opacity: 1;
    z-index: 1;
}
.secondary-img {
    opacity: 0;
    z-index: 2;
}
.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #222;
    color: #aaa;
}
.product-card h3 {
    font-size: 1.1rem;
    margin: 12px 0 8px;
    font-weight: 600;
}
.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007aff;
}

/* Блок 3: Наши сервисы (мерцающие кнопки) */
.services-glow {
    padding: 60px 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}
.glow-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.glow-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(255,215,0,0.7);
    border-radius: 60px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    animation: bmw-blink 1.2s infinite ease-in-out;
}
.glow-btn i {
    font-size: 1.4rem;
    color: #ffcc00;
}
@keyframes bmw-blink {
    0% { box-shadow: 0 0 0 0 rgba(255,215,0,0.4); border-color: rgba(255,215,0,0.6); }
    50% { box-shadow: 0 0 0 12px rgba(255,215,0,0); border-color: #ffcc00; background: rgba(255,215,0,0.1); }
    100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); border-color: rgba(255,215,0,0.6); }
}
.glow-btn:hover {
    background: #ffcc00;
    color: #0d0d0d;
    animation: none;
    border-color: #ffcc00;
}
.glow-btn:hover i {
    color: #0d0d0d;
}

/* Hero с меняющимся фоном */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: none;
    -webkit-text-fill-color: white;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 32px;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #007aff;
    color: #0d0d0d;
    font-weight: 600;
    text-decoration: none;
    border-radius: 980px;
    transition: 0.3s;
}
.btn:hover {
    background: #005bbf;
    transform: scale(1.02);
}

/* Контакты (увеличенные) */
.contacts-section {
    padding: 80px 0;
}
.contact-info-large {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    padding: 24px 32px;
    border-radius: 60px;
    border: 1px solid rgba(0,122,255,0.3);
    transition: 0.3s;
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: #007aff;
    background: rgba(0,122,255,0.1);
}
.contact-card i {
    font-size: 2.2rem;
    color: #007aff;
}
.contact-card a, .contact-card span {
    font-size: 1.3rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.contact-card a:hover {
    color: #007aff;
}

/* Футер */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.5);
    color: #aaa;
}
footer a {
    color: #aaa;
    text-decoration: none;
}
footer a:hover {
    color: #007aff;
}

/* Кнопка "Вверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,122,255,0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
    backdrop-filter: blur(5px);
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: #007aff;
    transform: scale(1.05);
}

/* Мобильная кнопка звонка */
.call-button-mobile {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #007aff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 28px;
    color: #0d0d0d;
    box-shadow: 0 4px 15px rgba(0,122,255,0.4);
    z-index: 999;
    animation: blink-bmw 1.5s infinite;
}

/* Адаптив */
@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .contacts {
        justify-content: center;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    .glow-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    .call-button-mobile {
        display: block;
    }
    .scroll-top {
        bottom: 100px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .contact-card {
        padding: 18px 24px;
        width: 100%;
        justify-content: center;
    }
    .contact-card i {
        font-size: 1.8rem;
    }
    .contact-card a, .contact-card span {
        font-size: 1.1rem;
    }
    .contact-info-large {
        gap: 20px;
    }
    .category-group {
        min-width: 140px;
        padding: 10px 15px;
    }
}
@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .filter-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    h2 {
        font-size: 1.8rem;
    }
}
