/*
Theme Name: BMW Service VN - Specialized Service Center
Author: PBN Creative
Description: Премиальный, технический дизайн для профильного сервиса BMW. Акцент на экспертности, кодировании и оригинальном качестве.
Version: 1.0.0
*/

:root {
    /* BMW Service VN - Power Palette */
    --primary: #0066CC;      /* BMW Blue */
    --primary-dark: #004499;
    --accent-red: #E7222E;   /* M-Power Red */
    --accent-light: #6295D2; /* M-Power Light Blue */
    --bg-dark: #0a0a0b;
    --bg-card: #161618;
    --text-white: #ffffff;
    --text-muted: #a1a1aa;
    --border: #27272a;
    
    --container-width: 1280px;
    --content-width: 860px;
    --radius: 8px;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Header & Navigation */
.site-header {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.logo {
    flex-shrink: 0;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo::before {
    content: '';
    width: 40px;
    height: 12px;
    background: linear-gradient(90deg, var(--accent-light) 33.3%, var(--primary) 33.3%, var(--primary) 66.6%, var(--accent-red) 66.6%);
    border-radius: 2px;
}

.logo span {
    color: var(--primary);
    position: relative;
}

.main-nav ul {
    display: flex;
    gap: 3.5rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--text-white);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

/* Hero Section - SVG Graphics */
.hero {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(0, 102, 204, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(231, 34, 46, 0.05) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-graphics {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-graphics svg {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 0 30px rgba(0, 102, 204, 0.2));
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1;
    font-weight: 900;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    color: var(--primary);
    -webkit-text-stroke: 1px var(--primary);
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 540px;
}

.hero-features {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
}

.feat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feat-item .val { font-size: 2rem; font-weight: 900; color: var(--text-white); }
.feat-item .lab { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; }

/* Content Sections */
.section-padding { padding: 8rem 0; }

.section-head {
    margin-bottom: 5rem;
}

.section-head h2 {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-head .stripe {
    width: 60px;
    height: 6px;
    background: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before { opacity: 1; }

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tech-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tech-list li {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tech-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-red);
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.post-thumb {
    height: 220px;
    background: #000;
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.post-content { padding: 2rem; }

.post-cat {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.post-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-btn {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-btn:hover { color: var(--primary); }

/* Single Post Content */
.post-header {
    padding: 8rem 0 4rem;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.post-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
}

.post-main { padding: 6rem 0; }

.post-content-body {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.post-content-body h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    margin: 4.5rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.post-content-body h2::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: var(--border);
}

/* Unique List Style for BMW Service VN */
.post-content-body ul {
    margin: 3rem 0;
    padding-left: 2.5rem;
    border-left: 4px solid var(--primary);
}

.post-content-body li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.post-content-body li::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.6rem;
    width: 20px;
    height: 2px;
    background: var(--accent-red);
}

.post-content-body strong { color: var(--text-white); }

/* Pagination */
.pagination-container {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.6rem;
}

.pagination-list a, .pagination-list span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-weight: 800;
    border-radius: var(--radius);
}

.pagination-list a:hover, .pagination-list .is-active span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

/* Footer */
.site-footer {
    background: #000;
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand .logo { margin-bottom: 2rem; }

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.15em;
    font-weight: 900;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links a:hover { color: var(--text-white); }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border);
    padding: 0.7rem;
    border-radius: var(--radius);
}

.hamburger {
    width: 20px;
    height: 2px;
    background: currentColor;
    display: block;
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

@media (max-width: 1024px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    .main-nav.is-active { display: flex; right: 0; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 3rem; }
    .main-nav a { font-size: 1.4rem; }
    .menu-toggle { display: block; z-index: 1001; }
    .nav-cta { display: none; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .hero-features { justify-content: center; }
    .services-grid, .posts-grid, .footer-grid { grid-template-columns: 1fr; }
}
