/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    color: #e74c3c;
}

/* Main navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s;
    font-weight: 500;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #e74c3c;
}

/* Header phone */
.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.phone-number {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap;
    display: block;
    margin-bottom: 0.2rem;
}

.phone-text {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #fff;
    display: block;
}

/* Cities bar */
.cities-bar {
    background: #34495e;
    padding: 0.5rem 0;
}

.cities-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem 0;
}

.city-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.city-link:hover,
.city-link.active {
    background: #e74c3c;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero button:hover {
    background: #c0392b;
}

/* Services section */
.services {
    padding: 4rem 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.service-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    display: inline-block;
}

/* SEO Text section */
.seo-text {
    padding: 4rem 0;
    background: #f8f9fa;
}

.seo-text h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.seo-text h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.seo-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.seo-text ul, .seo-text ol {
    margin: 1rem 0 1rem 2rem;
}

.seo-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Cities section */
.cities {
    padding: 4rem 0;
    background: #fff;
}

.cities h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.city-button {
    background: #3498db;
    color: #fff;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.city-button:hover {
    background: #2980b9;
}

/* Advantages section */
.advantages {
    padding: 4rem 0;
    background: #f8f9fa;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem;
}

.advantage-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Process section */
.process {
    padding: 4rem 0;
    background: #fff;
}

.process h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Reviews section */
.reviews {
    padding: 4rem 0;
    background: #f8f9fa;
}

.reviews h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-item {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.review-author {
    text-align: right;
    color: #666;
}

/* FAQ section */
.faq {
    padding: 4rem 0;
    background: #fff;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #e74c3c;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: black;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

form button {
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

form button:hover {
    background: #c0392b;
}

/* Адаптивность */
@media (max-width: 1024px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .header-phone {
        align-items: center;
        text-align: center;
    }
    
    .services-grid,
    .advantages-grid,
    .process-steps,
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .advantages-grid,
    .process-steps,
    .reviews-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cities-scroll {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .city-link {
        text-align: center;
    }
}
.cities-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.city-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.city-link:hover,
.city-link.active {
    background: #e74c3c;
}

/* Убираем полосу прокрутки для WebKit браузеров */
.cities-scroll::-webkit-scrollbar {
    display: none;
}

.cities-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Стили для примеров выкупленных авто */
.purchased-cars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.car-example {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.car-example h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.car-example p {
    margin: 0.3rem 0;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .purchased-cars {
        grid-template-columns: 1fr;
    }
}
/* Стили для страницы со списком городов */
.cities-list {
    padding: 4rem 0;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.city-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.city-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.city-card h3 a:hover {
    color: #e74c3c;
}