/*
Theme Name: Faeton Express - Roadside & Service
Author: PBN Creative Service
Description: Дизайн для сервиса выездной помощи и автосервиса. Акцент на скорости реакции, надежности и широком спектре услуг.
Version: 1.0.0
*/

:root {
    /* Colors - Urgent & Professional */
    --bg: #ffffff;
    --surface: #f3f4f6;
    --surface-dark: #111827; /* Dark Slate */
    --primary: #f97316; /* Emergency Orange */
    --secondary: #1e40af; /* Rescue Blue */
    --accent: #fbbf24; /* Alert Yellow */
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    
    /* Spacing */
    --gap: 2.5rem;
    --header-height: 90px;
    --container-width: 1200px;
    
    /* Fonts */
    --font-display: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

.container { 
    width: 100%;
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 var(--gap); 
}

/* Typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; color: var(--surface-dark); }

/* Header - Floating Bold Header */
.site-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 950;
    text-transform: uppercase;
    color: var(--surface-dark);
    flex-shrink: 0;
}
.logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 3rem; }
.main-nav a { 
    font-weight: 800; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    color: var(--text-muted);
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

.menu-toggle { display: none; background: var(--primary); color: #fff; border: none; padding: 0.8rem; cursor: pointer; }
.hamburger { width: 22px; height: 2px; background: currentColor; position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: currentColor; left: 0; transition: 0.3s; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Hero - Option D: Split Screen (50/50) */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: var(--surface-dark);
    color: #fff;
}

.hero-image {
    position: relative;
    overflow: hidden;
    background: var(--surface-dark);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--surface-dark) 0%, transparent 100%);
}

.hero-content {
    padding: 10rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    align-self: flex-start;
}

.hero h1 { font-size: clamp(3rem, 6vw, 4.5rem); margin-bottom: 2.5rem; color: #fff; }
.hero h1 span { color: var(--primary); }
.hero-desc { font-size: 1.2rem; color: rgba(255,255,255,0.6); margin-bottom: 4rem; max-width: 500px; }

.btn-action {
    background: #fff;
    color: var(--surface-dark);
    padding: 1.5rem 4rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    transition: 0.4s;
    border: none;
}
.btn-action:hover { background: var(--primary); color: #fff; transform: translateY(-5px); }

/* Quick Services */
.services-section { padding: 10rem 0; background: #fff; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    background: var(--surface);
    border-radius: 20px;
    transition: 0.3s;
    text-align: center;
}
.service-card:hover { transform: translateY(-10px); background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,0.05); }
.service-icon { 
    width: 60px; height: 60px; background: var(--primary); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem;
    color: #fff; font-weight: 900; font-size: 1.2rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Roadside Block */
.roadside-info {
    padding: 10rem 0;
    background: var(--primary);
    color: #fff;
}
.roadside-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}
.roadside-text h2 { color: #fff; font-size: 3.5rem; margin-bottom: 2.5rem; }
.roadside-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.road-feat-item h4 { font-size: 1.3rem; margin-bottom: 1rem; }
.road-feat-item p { opacity: 0.8; font-size: 0.95rem; }

/* Post Cards */
.articles-section { padding: 10rem 0; }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem;
    padding-bottom: 10rem;
}

.post-card { display: flex; flex-direction: column; }
.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border-radius: 12px;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.post-card:hover .card-img { transform: scale(1.1); }

.card-title { font-size: 1.6rem; margin-bottom: 1.5rem; line-height: 1.2; }
.card-excerpt { font-size: 1rem; color: var(--text-muted); margin-bottom: 2.5rem; flex-grow: 1; }
.btn-more {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-more::after { content: '→'; font-size: 1.2rem; transition: 0.3s; }
.post-card:hover .btn-more::after { transform: translateX(10px); }

/* Single Content */
.single-post-header { padding: 8rem 0; background: var(--surface); text-align: left; border-bottom: 5px solid var(--primary); }
.single-post-header h1 { font-size: 3.5rem; max-width: 900px; }
.breadcrumbs { margin-bottom: 2.5rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; }
.breadcrumbs .sep { margin: 0 1rem; color: var(--primary); }

.single-post-layout { max-width: 900px; margin: 6rem auto 10rem; }
.post-content-body { font-size: 1.2rem; line-height: 1.8; color: var(--text); }
.post-content-body h2 { font-size: 2.2rem; margin: 4rem 0 2rem; color: var(--surface-dark); border-left: 10px solid var(--primary); padding-left: 2rem; }

.post-content-body li { 
    list-style: none;
    margin-bottom: 1.5rem; 
    padding: 2rem 2.5rem;
    background: #fff;
    border: 1px solid var(--border);
    position: relative;
    padding-left: 5rem;
}
.post-content-body li::before {
    content: '!';
    position: absolute;
    left: 1.5rem; top: 1.8rem;
    width: 2rem; height: 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 950;
    font-size: 1.2rem;
}

/* Pagination */
.pagination-container { margin: 6rem 0; display: flex; justify-content: center; }
.pagination-list { display: flex; gap: 0.8rem; }
.pagination-item a, .pagination-item span {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 2px solid var(--border);
    font-weight: 900;
}
.pagination-item.is-active span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer {
    padding: 10rem 0 5rem;
    background: var(--surface-dark);
    color: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8rem;
    margin-bottom: 8rem;
}
.footer-col h4 { font-size: 0.9rem; color: var(--primary); text-transform: uppercase; margin-bottom: 3.5rem; letter-spacing: 0.1em; }
.footer-links li { margin-bottom: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.4); font-weight: 700; }
.footer-links a:hover { color: #fff; }

.footer-contact-item { margin-bottom: 3.5rem; }
.footer-contact-item label { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 0.8rem; }
.footer-contact-item span { font-size: 1.3rem; font-weight: 900; }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}

/* Mobile */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .hero-content { padding: 8rem var(--gap); text-align: center; }
    .hero-badge { align-self: center; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: fixed; top: var(--header-height); left: 0; width: 100%; height: 100vh;
        background: #fff; padding: 4rem 0; z-index: 999;
    }
    .main-nav.is-active ul { flex-direction: column; align-items: center; gap: 3rem; }
    .menu-toggle { display: block; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .roadside-inner { grid-template-columns: 1fr; gap: 5rem; }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
}
