/* Основные стили */
: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;
	gap: 10px;
}

.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: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
	gap: 5px;
}

.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-secondary{
	color: white;
}

.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: flex;
    /* grid-template-columns: repeat(5, 1fr) auto; */
    gap: 10px;
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

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

.btn-search {
    white-space: nowrap;
    display: block;
    width: 100%;
}

/* Быстрая проверка */
.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;
}

.menu-toggle{
	display: none;
}

.social-links{
    display: flex;
    gap: 15px;
    margin: 10px 0px 0px 0px;
}

.number_not_found{
    position: relative;
    background: #e74c3c;
    width: 100%;
    padding: 10px;
    color: white;
    font-weight: bold;
    border-radius: 10px;
}

div.section-header{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

section.features{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
div.feature-card{
    position: relative;
    background: white;
    padding: 15px;
    box-shadow: 0px 0px 5px 0px #303030;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

a:is(.view-all, .feature-link){
    position: relative;
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
}

/* Стили для сообщений об ошибках */
.error-message {
    text-align: center;
    padding: 40px;
    background: #ffecec;
    border-radius: 10px;
    border: 2px solid #ff7f7f;
}

.error-message i {
    font-size: 48px;
    color: #ff4444;
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 40px;
}

.no-results i {
    font-size: 48px;
    color: #999;
    margin-bottom: 20px;
}

.loader {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid/List view */
.listings-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.listings-container.list-view .listing-card {
    display: flex;
    align-items: center;
    padding: 20px;
}

.listings-container.list-view .listing-plate {
    margin: 0 20px;
    font-size: 24px;
}

.listings-container.list-view .listing-info {
    margin: 0 20px;
}

div.who_dev{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 20px 0px 0px 0px;
}
a#edgesection{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.7;
    padding: 10px;
    background: white;
    color: black;
    font-weight: bold;
    border-radius: 10px;
    width: fit-content;
    transition: all 1s;
    text-decoration: none;
}
a#edgesection img{
    position: relative;
    width: 20px;
    height: 20px;
}
a#edgesection span{
    font-size: 120%;
}

/* Адаптивность */
@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;
}