/* Основные стили сайта по тюнингу выхлопной системы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #0a0a0a;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.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: rgba(33, 33, 33, 0.98);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    min-height: 70px;
}

/* Безопасные зоны для iPhone */
@supports (padding: max(0px)) {
    header {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
        padding-top: max(12px, env(safe-area-inset-top));
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 46px;
}

.logo {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.logo h1 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 3px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tagline {
    font-size: 11px;
    color: #aaa;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
}

.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;
    align-items: center;
    gap: 15px;
}

.phone {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

/* Стиль для кнопки Telegram */
.telegram-btn {
    background-color: var(--telegram-color);
    color: white;
    padding: 8px 12px 8px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    display: inline-block;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.telegram-btn:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    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;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    z-index: 1001;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s;
}

.mobile-menu-btn:active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Мобильное меню */
.mobile-nav {
    display: none;
    background-color: rgba(33, 33, 33, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding-top: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    display: block;
}

/* Безопасные зоны для мобильного меню */
@supports (padding: max(0px)) {
    .mobile-nav {
        padding-top: max(80px, calc(env(safe-area-inset-top) + 60px));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

.mobile-nav ul {
    list-style: none;
    padding: 0 20px;
}

.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;
    font-size: 16px;
    -webkit-tap-highlight-color: rgba(211, 47, 47, 0.1);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') center/cover no-repeat;
    padding: 140px 0 80px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.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;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.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: 28px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 25px;
    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: 36px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-card p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 14px;
}

.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: 28px;
    margin-bottom: 30px;
    color: var(--text-light);
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 15px;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #ccc;
}

.about-text li {
    margin-bottom: 8px;
    font-size: 15px;
}

.about-image {
    height: 350px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 2px dashed var(--border-color);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Галерея */
.gallery {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.gallery h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.faq h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    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;
    font-size: 16px;
}

.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;
    font-size: 15px;
}

/* Форма заявки */
.request-form {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.request-form h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.request-form > p {
    text-align: center;
    margin-bottom: 40px;
    color: #ccc;
    font-size: 16px;
}

.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);
    font-size: 15px;
}

.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;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.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-dark);
}

.contacts h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.contact-info p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 15px;
    line-height: 1.5;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info .telegram-btn {
    margin-top: 20px;
    display: inline-block;
}

.map-container {
    height: 350px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Подвал */
footer {
    background-color: var(--secondary-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 20px;
    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;
    font-size: 15px;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-contacts p {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 15px;
}

.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.7), rgba(0, 0, 0, 0.7)), url('images/5.jpg') center/cover no-repeat;
    padding: 120px 0 60px;
    text-align: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.page-hero-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero-content p {
    font-size: 16px;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-page {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.main-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.main-content h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--text-light);
}

.main-content p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.7;
    font-size: 15px;
}

.main-content ul,
.main-content ol {
    margin-left: 20px;
    margin-bottom: 25px;
    color: #ccc;
}

.main-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
}

.cta-box {
    background-color: var(--secondary-color);
    padding: 25px;
    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);
    font-size: 22px;
}

.cta-box p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 16px;
}

.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;
    font-size: 20px;
}

.warning-box p {
    color: #ccc;
    font-size: 15px;
}

.sidebar-widget {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    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;
    font-size: 15px;
}

.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);
}

/* Анимации для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: #f44336;
}

.notification.info {
    background-color: #2196f3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-content,
    .contacts-content,
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .contact-info h3,
    .sidebar-widget h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        z-index: 1000;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        min-height: 40px;
    }
    
    .logo h1 {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .tagline {
        font-size: 10px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 3;
        margin-left: 10px;
    }
    
    .contact-info {
        display: none;
    }
    
    .mobile-nav {
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 20px;
    }
    
    /* Безопасные зоны для мобильного меню */
    @supports (padding: max(0px)) {
        .mobile-nav {
            padding-top: max(20px, calc(env(safe-area-inset-top) + 60px));
            padding-bottom: max(20px, env(safe-area-inset-bottom));
        }
    }
    
    .hero {
        padding: 100px 0 60px;
        margin-top: 60px;
        min-height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 26px;
    }
    
    .hero-content p {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .page-hero {
        padding: 100px 0 40px;
        margin-top: 60px;
    }
    
    .page-hero-content h2 {
        font-size: 26px;
    }
    
    .page-hero-content p {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .services, 
    .about, 
    .faq, 
    .request-form, 
    .contacts, 
    .content-page, 
    .gallery {
        padding: 50px 0;
    }
    
    .services h2,
    .about h2,
    .faq h2,
    .request-form h2,
    .contacts h2,
    .gallery h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-nav ul,
    .footer-contacts {
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item {
        height: 150px;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        display: block;
        text-align: center;
        padding: 0 15px;
        order: 2;
    }
    
    .contact-info p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .contact-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .map-container {
        height: 300px;
        width: 100%;
        border-radius: 8px;
        margin: 0;
        order: 1;
    }
    
    .telegram-btn {
        padding: 8px 12px 8px 35px;
        font-size: 13px;
    }
    
    .telegram-btn:before {
        width: 16px;
        height: 16px;
        left: 10px;
    }
    
    .mobile-nav .telegram-btn {
        margin: 20px auto;
        display: inline-block;
    }
    
    .accordion-header {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    /* Предотвращение зума на iOS при фокусе на input */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
    
    .about-image {
        height: 250px;
    }
    
    .main-content h2 {
        font-size: 24px;
    }
    
    .main-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 90px 0 50px;
        min-height: 60vh;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .gallery-item {
        height: 120px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .mobile-nav a {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .cta-box {
        padding: 20px 15px;
    }
    
    .cta-box h3 {
        font-size: 20px;
    }
    
    .warning-box {
        padding: 15px;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 16px;
    }
    
    .tagline {
        font-size: 9px;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}
/* СБРОС И ОСНОВНЫЕ НАСТРОЙКИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e53935;
    --primary-dark: #c62828;
    --secondary: #212121;
    --accent: #ff5252;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --bg: #0a0a0a;
    --bg-light: #1a1a1a;
    --border: #333;
    --telegram: #0088cc;
    --success: #4caf50;
    --warning: #ff9800;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 80px;
}

/* КОНТЕЙНЕР */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ТИПОГРАФИЯ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

/* ШАПКА - ПЕРЕПИСАНА ПОЛНОСТЬЮ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* ЛОГОТИП */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text);
    line-height: 1;
}

.logo h1 span.red {
    color: var(--primary);
}

.logo .tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 3px;
    opacity: 0.8;
}

/* НАВИГАЦИЯ ДЛЯ ПК */
.nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-desktop a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 1rem;
}

.nav-desktop a.active {
    color: var(--primary);
}

.nav-desktop a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* КОНТАКТЫ В ШАПКЕ */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--telegram);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.telegram-btn:hover {
    background: #0077b5;
    transform: translateY(-2px);
    color: white;
}

/* КНОПКА МОБИЛЬНОГО МЕНЮ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    display: block;
    color: var(--text);
    font-size: 1.2rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a.active {
    color: var(--primary);
    border-color: var(--primary);
}

.mobile-contacts {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.mobile-contacts p {
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* ГЕРОЙ СЕКЦИЯ */
.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;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text);
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

/* КНОПКИ */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* СЕКЦИИ */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* УСЛУГИ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ГАЛЕРЕЯ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ФОРМЫ */
.request-form {
    background: var(--secondary);
    border-radius: 12px;
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}

/* КОНТАКТЫ И КАРТА */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--secondary);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ФУТЕР */
.footer {
    background: var(--secondary);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-nav h4,
.footer-contacts h4 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--text-secondary);
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-contacts p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* СТРАНИЦЫ КОНТЕНТА */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('images/6.jpg') center/cover no-repeat;
    min-height: 40vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 3rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-content h2 {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.main-content h3 {
    color: var(--text);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.main-content ul,
.main-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

.main-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.cta-box {
    background: var(--secondary);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* БОКОВАЯ ПАНЕЛЬ */
.sidebar-widget {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

/* FAQ АККОРДЕОН */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* УВЕДОМЛЕНИЯ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification.success { background: var(--success); }
.notification.error { background: var(--primary); }
.notification.info { background: var(--telegram); }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* АДАПТИВ */
@media (max-width: 992px) {
    body { padding-top: 70px; }
    
    .header { height: 70px; padding: 10px 0; }
    .mobile-menu { top: 70px; }
    
    .contacts-grid,
    .footer-grid,
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    
    .header { height: 60px; padding: 8px 0; }
    .mobile-menu { top: 60px; }
    
    /* Скрываем десктоп навигацию */
    .nav-desktop { display: none; }
    
    /* Показываем кнопку меню */
    .mobile-menu-toggle { display: flex; }
    
    /* Адаптируем контакты в шапке */
    .header-contacts { display: none; }
    
    /* Адаптивный логотип */
    .logo h1 { font-size: 1.5rem; }
    .logo .tagline { font-size: 0.75rem; }
    
    /* Адаптивная типография */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    /* Адаптивные отступы */
    section { padding: 3rem 0; }
    
    /* Мобильная галерея */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* Мобильные формы */
    .request-form {
        padding: 1.5rem;
    }
    
    /* Мобильная карта */
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    
    .logo h1 { font-size: 1.3rem; }
    .logo .tagline { font-size: 0.7rem; }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 24px;
        width: 100%;
        max-width: 300px;
    }
    
    .hero { min-height: 60vh; }
    .page-hero { min-height: 30vh; }
}

/* IOS FIXES */
@supports (-webkit-touch-callout: none) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
    
    .mobile-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ПРЕДОТВРАЩЕНИЕ ZOOM НА IOS */
@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Улучшение тапов на мобильных */
    a, button, input[type="button"], input[type="submit"] {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
}
/* ... (весь ваш предыдущий CSS) ... */

/* ========== ПЛАВАЮЩИЕ КНОПКИ ========== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 28px;
    text-decoration: none;
    border: 2px solid transparent;
}

.floating-btn.telegram {
    background-color: var(--telegram-color);
}

.floating-btn.phone {
    background-color: var(--primary-color);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: white;
}

.floating-btn span {
    line-height: 1;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 15px;
        right: 10px;
    }
    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

/* Галерея внутри контента */
.content-gallery {
    margin: 40px 0;
}

.content-gallery .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .content-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .content-gallery .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* Коррекция галереи внутри контента */
.content-gallery {
    width: 100%;
    overflow: hidden;
}

.content-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* колонки не выходят за пределы */
    gap: 15px;
}

/* Для мобильных оставляем адаптивность */
@media (max-width: 768px) {
    .content-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .content-gallery .gallery-grid {
        grid-template-columns: 1fr;
    }
}
