/* Основные стили сайта по тюнингу выхлопной системы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #0a0a0a;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Цветовые переменные */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary-color: #212121;
    --accent-color: #ff5252;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --bg-dark: #0a0a0a;
    --bg-light: #1a1a1a;
    --border-color: #333;
    --telegram-color: #0088cc;
    --telegram-dark: #0077b5;
}

.red {
    color: var(--primary-color);
}

/* Шапка сайта */
header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.tagline {
    font-size: 12px;
    color: #aaa;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone {
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Стиль для кнопки Telegram */
.telegram-btn {
    background-color: var(--telegram-color);
    color: white;
    padding: 8px 15px 8px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    display: inline-block;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.telegram-btn:before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.692-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.telegram-btn:hover {
    background-color: var(--telegram-dark);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: var(--secondary-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: background-color 0.3s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
}

/* Стили для кнопки Telegram в мобильном меню */
.mobile-nav .telegram-btn {
    margin: 15px 20px;
    text-align: center;
    padding-left: 50px;
}

.mobile-nav .telegram-btn:before {
    left: 20px;
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/hero-bg.jpg') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ccc;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Секция услуг */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-card p {
    color: #ccc;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s;
}

.service-link:hover {
    transform: translateX(5px);
}

/* О компании */
.about {
    padding: 80px 0;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: 24px;
    margin: 25px 0 15px;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 15px;
    color: #ccc;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #ccc;
}

.about-text li {
    margin-bottom: 8px;
}

.about-image {
    height: 400px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 2px dashed var(--border-color);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.faq h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text-light);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--secondary-color);
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    position: relative;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: rgba(211, 47, 47, 0.1);
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 500px;
}

.accordion-content p {
    color: #ccc;
}

/* Форма заявки */
.request-form {
    padding: 80px 0;
}

.request-form h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.request-form > p {
    text-align: center;
    margin-bottom: 40px;
    color: #ccc;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-note {
    margin-top: 15px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* Контакты */
.contacts {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contacts h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text-light);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.contact-info p {
    margin-bottom: 15px;
    color: #ccc;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info .telegram-btn {
    margin-top: 20px;
    display: inline-block;
}

.map-placeholder {
    height: 300px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 2px dashed var(--border-color);
}

/* Подвал */
footer {
    background-color: var(--secondary-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-logo p {
    color: #aaa;
    font-size: 14px;
}

.footer-nav h4,
.footer-contacts h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-contacts p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contacts a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Стили для внутренних страниц */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/page-bg.jpg') center/cover no-repeat;
    padding: 80px 0;
    text-align: center;
}

.page-hero-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-hero-content p {
    font-size: 18px;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

.content-page {
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.main-content h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.main-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-light);
}

.main-content p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.7;
}

.main-content ul,
.main-content ol {
    margin-left: 25px;
    margin-bottom: 25px;
    color: #ccc;
}

.main-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.cta-box {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.cta-box h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.cta-box p {
    margin-bottom: 20px;
    color: #ccc;
}

.warning-box {
    background-color: rgba(211, 47, 47, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.warning-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.warning-box p {
    color: #ccc;
}

.sidebar-widget {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 12px;
    color: #ccc;
    padding-left: 20px;
    position: relative;
}

.sidebar-widget li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.sidebar-widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-widget a:hover {
    color: var(--primary-color);
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-content,
    .contacts-content,
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .contact-info {
        order: 3;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: 15px;
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav ul,
    .footer-contacts {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .services,
    .about,
    .faq,
    .request-form,
    .contacts,
    .content-page {
        padding: 50px 0;
    }
    
    .services h2,
    .about h2,
    .faq h2,
    .request-form h2,
    .contacts h2 {
        font-size: 26px;
    }
    
    .page-hero {
        padding: 50px 0;
    }
    
    .page-hero-content h2 {
        font-size: 28px;
    }
    
    .telegram-btn {
        padding: 8px 12px 8px 35px;
        font-size: 13px;
    }
    
    .telegram-btn:before {
        width: 16px;
        height: 16px;
        left: 10px;
    }
}