/* Основные стили */
:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.logo h1 {
    font-size: 20px;
    margin-left: 10px;
}

.contact-info {
    text-align: right;
}

.phone {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.callback-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 14px;
}

.callback-btn:hover, .callback-btn:focus {
    background-color: #c0392b;
    outline: 2px solid #3498db;
}

/* Navigation */
nav {
    background-color: var(--accent);
    padding: 10px 0;
    position: relative;
    z-index: 10;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 15px;
}

nav ul li a:hover, nav ul li a:focus {
    background-color: rgba(255,255,255,0.1);
    outline: 2px solid #fff;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    background-color: #f1f1f1;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumbs a:hover, .breadcrumbs a:focus {
    text-decoration: underline;
    outline: none;
}

/* Hero section */
.hero {
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(0,0,0,0.7);
    margin-bottom: 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #fff;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 16px;
    margin: 5px;
    border: none;
    cursor: pointer;
}

.btn:hover, .btn:focus {
    background-color: #c0392b;
    outline: 2px solid #3498db;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
}

.btn-outline:hover, .btn-outline:focus {
    background-color: white;
    color: var(--primary);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus {
    outline: 2px solid #fff;
}

/* Services section */
.services {
    padding: 50px 0;
    position: relative;
    z-index: 5;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 15px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.service-content ul {
    list-style: none;
    margin: 15px 0;
}

.service-content ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-content ul li:before {
    content: '✓';
    color: var(--success);
    position: absolute;
    left: 0;
}

/* Brands section */
.brands {
    padding: 50px 0;
    background-color: var(--light);
    position: relative;
    z-index: 5;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.brand-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.brand-item img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

/* About section */
.about {
    padding: 50px 0;
    position: relative;
    z-index: 5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.advantages {
    margin-top: 30px;
}

.advantage {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.advantage i {
    background-color: var(--accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Repair steps */
.repair-steps {
    padding: 50px 0;
    position: relative;
    z-index: 5;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step {
    text-align: center;
    padding: 25px 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Call to action */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 5;
}

.cta h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0 20px;
    position: relative;
    z-index: 5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: 18px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        display: none;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .services-grid,
    .steps,
    .footer-content,
    .brands-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid,
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: rotate 4s linear infinite;
}