/* Основные стили */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Шапка */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 16px;
}

.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    text-decoration: none;
    color: var(--primary);
}

.logo-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.logo-sub {
    font-size: 12px;
    color: var(--gray);
    display: block;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
    background: rgba(52, 152, 219, 0.1);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

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

.btn-outline {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

.btn-danger {
    background: var(--accent);
    color: white;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Герой блок */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin: 30px 0;
    color: white;
    padding: 40px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Exo 2', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.number-sample {
    text-align: center;
}

.plate {
    background: white;
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
    font-family: monospace;
    margin-bottom: 10px;
    border: 3px solid #ffd700;
}

/* Поиск */
.search-section {
    background: white;
    padding: 30px 0;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 15px;
    margin-top: 20px;
}

.search-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.btn-search {
    white-space: nowrap;
}

/* Быстрая проверка */
.quick-check {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 40px 0;
    text-align: center;
}

.check-form {
    max-width: 600px;
    margin: 20px auto;
}

.check-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.check-input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
}

.check-note {
    color: var(--gray);
    font-size: 14px;
}

/* Карточки */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

/* Сетка объявлений */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.listing-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.listing-card:hover {
    transform: translateY(-5px);
}

.listing-badge {
    background: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.listing-plate {
    font-family: monospace;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.listing-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 500;
}

.listing-price {
    color: var(--success);
    font-size: 20px;
}

/* Футер */
.main-footer {
    background: var(--primary);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .search-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .check-input-group {
        flex-direction: column;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}