/* CarScan - Проверка истории автомобиля */
/* Файл: css.css */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e3c72;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4CAF50;
}

/* ===== ШАПКА ===== */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #4CAF50;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-buttons button:hover {
    background: #3d8b40;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero {
    background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)), url('https://via.placeholder.com/1200x400') no-repeat center center/cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 60px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТИПА ПОИСКА ===== */
.search-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.search-type-btn {
    padding: 12px 25px;
    border: 2px solid #4CAF50;
    background: white;
    color: #4CAF50;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-type-btn.active {
    background: #4CAF50;
    color: white;
}

.search-type-btn:hover {
    background: #3d8b40;
    color: white;
}

/* ===== ПОИСКОВАЯ ФОРМА ===== */
.search-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s ease;
    text-transform: uppercase;
}

.search-box input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.search-box button {
    padding: 15px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
    font-size: 16px;
}

.search-box button:hover {
    background: #3d8b40;
}

/* Подсказка для поля ввода */
.input-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin: 5px auto 0;
}

/* ===== ОСОБЕННОСТИ ===== */
.features {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #1e3c72;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4CAF50;
    margin: 15px auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #1e3c72;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== КАК ЭТО РАБОТАЕТ ===== */
.how-it-works {
    background: #f9f9f9;
    padding: 80px 0;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 30px;
}

.step {
    text-align: center;
    max-width: 280px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.step-number {
    background: #4CAF50;
    color: white;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.step h3 {
    margin-bottom: 15px;
    color: #1e3c72;
}

.step p {
    color: #666;
}

/* ===== ТАРИФЫ ===== */
.pricing {
    padding: 80px 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
    margin-bottom: 20px;
    color: #1e3c72;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    color: #4CAF50;
    margin: 20px 0;
    font-weight: bold;
}

.pricing-card ul {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.pricing-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* ===== ОТЗЫВЫ ===== */
.testimonials {
    background: #f9f9f9;
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 60px;
    color: #4CAF50;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.1;
    font-family: serif;
}

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

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    color: #1e3c72;
    text-align: right;
}

/* ===== ФУТЕР ===== */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ddd;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #4CAF50;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 18px 22px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.notification.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.notification button:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-buttons {
        justify-content: center;
    }
    
    .hero {
        padding: 100px 0 60px;
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .search-type-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .search-box {
        flex-direction: column;
        padding: 20px;
    }
    
    .search-box input,
    .search-box button {
        width: 100%;
    }
    
    .features-grid,
    .pricing-cards,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 25px;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .notification {
        max-width: 300px;
        right: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .search-type-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .notification {
        max-width: 280px;
        right: 10px;
        left: 10px;
    }
}

/* Конец файла CSS */ 