/*
Theme Name: NogiAuto Market - Smart Auto Guide
Author: PBN Creative
Description: Дружелюбный и профессиональный дизайн для авто-площадки и гида по покупке. Акцент на ликвидности, проверке и выгодных сделках.
Version: 1.0.0
*/

:root {
    /* NogiAuto Market - Trust Teal & Amber Palette */
    --primary: #0f766e;      /* Deep Teal */
    --primary-light: #14b8a6;
    --accent: #f59e0b;       /* Amber/Yellow */
    --accent-hover: #d97706;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    
    --container-width: 1200px;
    --content-width: 900px;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* 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-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

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 2rem;
}

/* Header & Navigation */
.site-header {
    background: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.logo {
    flex-shrink: 0;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
    background: var(--primary);
    padding: 0.1rem 0.6rem;
    border-radius: 6px;
    margin-left: 0.1rem;
}

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

.main-nav a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

.nav-cta {
    background: var(--accent);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Hero Section - Option B: Image Left, Text Right */
.hero {
    padding: 6rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

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

.hero-graphics svg {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 20px 40px rgba(15, 118, 110, 0.15));
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.hero-content h1 span {
    color: var(--primary);
}

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

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-badge {
    background: var(--bg-main);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
}

.hero-badge .icon { font-size: 1.5rem; }
.hero-badge .text { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; color: var(--primary); }

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

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-head h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

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

.market-card {
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.market-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.market-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: block;
}

.market-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

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

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

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

.post-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.post-thumb {
    height: 200px;
    overflow: hidden;
}

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

.post-content { padding: 2rem; }

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

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

.post-btn {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Single Post Content */
.post-header {
    background: var(--bg-main);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    max-width: 900px;
    margin: 0 auto;
}

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

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

.post-content-body h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    margin: 4rem 0 2rem;
}

/* Unique List Style for NogiAuto Market */
.post-content-body ul {
    margin: 3rem 0;
    background: #fdfdfd;
    padding: 3rem;
    border-radius: 20px;
    border: 2px dashed var(--border);
}

.post-content-body li {
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
    position: relative;
    font-weight: 600;
}

.post-content-body li::before {
    content: '🔍';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

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

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

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

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

/* Footer */
.site-footer {
    background: #0f172a;
    color: #fff;
    padding: 8rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 8rem;
    margin-bottom: 6rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 2rem; display: block; }

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

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links a:hover { color: #fff; }

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

/* Mobile Nav */
.menu-toggle {
    display: none;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
}

.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: #fff;
        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.5rem; color: var(--primary); }
    .menu-toggle { display: block; z-index: 1001; }
    .nav-cta { display: none; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; }
    .hero-badges { justify-content: center; }
    .market-grid, .posts-grid, .footer-grid { grid-template-columns: 1fr; }
}
