:root {
    --primary-color: #00CED1; /* Turquoise */
    --secondary-color: #9370DB; /* Purple */
    --dark-color: #121212; /* Dark background */
    --dark-secondary: #1a1a1a; /* Slightly lighter dark */
    --light-color: #242424; /* Light elements on dark */
    --text-color: #e0e0e0; /* Light text */
    --text-muted: #b0b0b0; /* Muted text */
    --gray-color: #6c757d;
    --transition: all 0.3s ease;
    --success-color: #28a745;
    --error-color: #dc3545;
    --gradient-start: #0E90B2;
    --gradient-end: #E20E25;
    --dark-primary: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--dark-color);
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-image {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo-image img {
    height: 40px;
    width: auto;
    filter: none;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    line-height: 1.1;
}

.logo-top {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1px;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Для светлых секций - показываем градиентный текст */
.before-after-section .logo-top,
.polishing-section .logo-top,
.cleaning-section .logo-top,
.washing-section .logo-top,
.coating-section .logo-top,
.about-section .logo-top,
.faq-section .logo-top,
.contact .logo-top,
.services .logo-top {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.before-after-section .logo-main,
.polishing-section .logo-main,
.cleaning-section .logo-main,
.washing-section .logo-main,
.coating-section .logo-main,
.about-section .logo-main,
.faq-section .logo-main,
.contact .logo-main,
.services .logo-main {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--gradient-end);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-muted);
}

.cta-button {
    display: inline-block;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.5s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    /* Начальный градиент */
    background: linear-gradient(90deg, 
        var(--gradient-start) 0%, 
        var(--gradient-end) 50%,
        var(--gradient-start) 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
}

.cta-button:hover {
    background-position: 100% 0%;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14, 144, 178, 0.3);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--dark-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 10px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid #333;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--gradient-start);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.service-link {
    color: var(--gradient-start);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--gradient-end);
    gap: 10px;
}

/* Before After Slider */
.before-after-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.before-after-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 80px;
}

.before-after-item {
    background: var(--light-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.before-after-item h3 {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.before-after-item p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #444;
}

.image-comparison {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-comparison img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-before {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.image-after {
    z-index: 1;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
    cursor: pointer;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: white;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    cursor: grab;
}

.slider-button:active {
    cursor: grabbing;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Film Types */
.film-types {
    margin-top: 60px;
    text-align: center;
}

.film-types h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.film-type {
    background: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid #333;
}

.film-type:hover {
    transform: translateY(-5px);
    border-color: var(--gradient-start);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.film-type i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.film-type h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.film-type p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Polishing Section */
.polishing-section {
    padding: 100px 0;
    background-color: var(--dark-secondary);
}

#polishing.coating-section {
    background-color: var(--dark-secondary);
}

.service-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-detail {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 40px;
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    align-items: stretch; 
}

.service-detail-img {
    height: 100%;
    overflow: hidden;
}

.service-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.service-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-detail-content {
    padding: 30px;
}

.service-detail-content h3 {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-description {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 500;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.service-features i {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-time-price {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.time, .price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #ffffff;
}

.time i {
    color: var(--gradient-start);
}

.price i {
    color: #28a745;
}
/* Добавьте в существующий CSS или отредактируйте */
/* Убедитесь, что все service-detail имеют одинаковую высоту */
.service-detail {
    min-height: 300px; /* Минимальная высота, чтобы все блоки были одинаковыми */
}

/* Для выравнивания цены с полоской */
.service-time-price {
    margin-top: auto; /* Прижмет цену к низу контейнера */
}
/* Cleaning Section */
.cleaning-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

/* Центровка, чтобы блок не был на всю ширину */
.cleaning-wrapper {
    max-width: 350px;
    margin: 40px auto 0;
}

.cleaning-card-single {
    background: var(--light-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    text-align: center;
}

/* Иконка как в coating */
.cleaning-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.cleaning-description {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cleaning-features {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px;
}

.cleaning-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.cleaning-features i {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cleaning-price {
    padding-top: 20px;
    border-top: 1px solid #444;
}
/* Washing Section */
.washing-section {
    padding: 100px 0;
    background-color: var(--dark-secondary);
}

.washing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.washing-step {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid #333;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.washing-step h3 {
    margin-bottom: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.washing-step p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.step-features {
    list-style: none;
    text-align: left;
    padding: 0 20px;
}

.step-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    display: flex;
    align-items: center; /* Добавьте это для вертикального выравнивания */
    min-height: 1.5em; /* Минимальная высота строки */
}

.step-features li:before {
    content: "•";
    color: var(--gradient-start);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    top: 50%; /* Центрируем по вертикали */
    transform: translateY(-50%); /* Смещаем на половину высоты */
    line-height: 1; /* Убираем лишнюю высоту строки */
}

.engine-wash {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.engine-wash-content h3 {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.engine-wash-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.engine-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.engine-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.engine-feature i {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.engine-wash-image {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
}

.engine-wash-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Coating Section */
.coating-section {
    padding: 100px 0;
    background-color: var(--dark-color);
    text-align: center;
}

.coating-section h2 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.coating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.coating-card {
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid #333;
}

.coating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--gradient-start);
}

.coating-header {
    padding: 30px;
    text-align: center;
    position: relative;

}

.coating-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.coating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.coating-body {
    padding: 0 30px 30px;
}

.coating-description {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.coating-features {
    list-style: none;
    margin-bottom: 25px;
}

.coating-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.coating-features i {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coating-price {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--dark-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center
}

.about-text > p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: center
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-features {
    align-items: center;
}

.feature {
    justify-content: center;
    text-align: center;

    padding-bottom: 5px;
}

.feature i {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-top: 5px;
}

.feature h4 {
    margin-bottom: 5px;
    color: #ffffff;
    text-align: center
}

.feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-color);
}

.faq-question:hover {
    background: #2a2a2a;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0;
    flex: 1;
}

.faq-question i {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 30px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: white;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
}

.footer-logo .logo-text {
    font-size: 1.8rem;
    margin-left: 0;
    margin-bottom: 15px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gradient-end);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.legal-links {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    gap: 20px;
}

.legal-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--gradient-end);
}

/* Modal */
/* Скрытые чекбоксы */
.modal-toggle { display: none; }

/* Кнопки */
.modal-button {
    display: inline-block;
    margin-right: 15px;
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.modal-button:hover {
    color: var(--gradient-end);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top:0; left:0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Показываем модальное окно, когда чекбокс checked */
#imprintModal:checked ~ .modal:nth-of-type(1),
#privacyModal:checked ~ .modal:nth-of-type(2),
#agbModal:checked ~ .modal:nth-of-type(3) {
    display: flex;
}

.modal-content {
    background: #1a1a1a; /* заменил var(--light-color) для примера */
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #444;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
}

.modal-content h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #0e90b2;
    
    /* Градиент для текста */
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity:0; }
    to { transform: translateY(0); opacity:1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    /* Градиент */
    background: linear-gradient(to right, #0e90b2, #00cfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* При наведении крестик слегка крутится и подсвечивается */
.close-modal:hover {
    transform: rotate(90deg);
    background: linear-gradient(to right, #00cfff, #0e90b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content h3 {
    margin-bottom: 25px;
    color: #0e90b2;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #0e90b2;
}

.modal-content p { margin-bottom: 20px; color: #ccc; line-height:1.7; }

.modal-content strong { color: #fff; }

.modal-content ul { padding-left:20px; margin-bottom:20px; }
.modal-content li { margin-bottom:10px; color:#ccc; }

/* Скроллбар */
.modal-content::-webkit-scrollbar { width:8px; }
.modal-content::-webkit-scrollbar-track { background:#111; border-radius:4px; }
.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#0e90b2 0%,#00cfff 100%);
    border-radius:4px;
}
/* Selection color */
::selection {
    background: rgba(14, 144, 178, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(14, 144, 178, 0.3);
    color: white;
}
/* ============================================
   АДАПТИВНЫЕ ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ============================================ */

/* Исправление для очень маленьких экранов (менее 400px) */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
    
    /* Герой секция */
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .contact-form-container { 
        padding: 20px 15px; 
        margin: 0 5px; 
        background: #1a1a1a; 
        border-radius: 15px; 
    }
    .form-row { display:flex; gap:15px; flex-wrap:wrap; }
    .form-group { margin-bottom: 20px; width:100%; }
    .form-control { width: 100%; padding: 8px 10px; border-radius:5px; border:1px solid #444; background:#222; color:#fff; }
    textarea.form-control { resize: vertical; }
    .submit-btn { width: 100%; max-width: 250px; padding: 10px 20px; background: #0e90b2; color:#fff; border:none; border-radius:5px; cursor:pointer; transition: all 0.3s; }
    .submit-btn:hover { background: #00cfff; }

    /* Блок авто с плавной анимацией через height */
    .vehicle-details {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    }
    .vehicle-details.show {
        display: block;
        opacity: 1;
    }
    /* Карточки услуг */
    .service-card,
    .cleaning-card,
    .washing-step,
    .coating-card {
        margin: 0 5px;
    }
    
    /* Before/After слайдеры */
    .slider-container {
        height: 200px !important;
    }
    
    .before-after-item {
        padding: 15px;
        margin: 0 5px;
    }
    
    /* Сервис детали */
    .service-detail {
        margin: 0 5px;
    }
    
    .service-detail-content {
        padding: 15px;
    }
    
    /* Footer */
    .footer-content {
        padding: 0 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }
    
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    /* Логотип в хедере */
    header .logo-image img {
        height: 30px !important;
    }
    
    .logo-text {
        display: none;
    }
    
    /* Навигация */
    .nav-links.active {
        padding: 10px 0;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
}

/* Исправление для средних мобильных (400px - 480px) */
@media (max-width: 480px) {
    /* Форма */
    .contact-form-container {
        padding: 25px 15px;
    }
    
    /* Радио и чекбокс группы */
    .radio-group,
    .checkbox-group {
        gap: 10px;
    }
    
    .radio-option,
    .checkbox-option {
        font-size: 0.9rem;
    }
    
    /* Селекты и инпуты */
    .form-control {
        font-size: 16px !important; /* Отключает зумирование на iOS */
        padding: 14px 12px;
    }
    
    /* Модальное окно */
    .modal-content {
        padding: 25px 15px;
        margin: 10% 5px;
        width: calc(100% - 10px);
    }
    
    /* Статистика в "О нас" */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat {
        padding: 15px;
    }
    
    /* FAQ */
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Исправление горизонтального скролла */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}


/* Фикс для Google Chrome mobile emulation */
@media (max-width: 768px) {
    /* Убираем горизонтальный скролл */
    body {
        overflow-x: hidden;
        position: relative;
    }
    
    /* Контейнеры секций */
    section {
        width: 100%;
        overflow: hidden;
    }
    
    /* Все гриды становятся колонками */
    .services-grid,
    .film-grid,
    .cleaning-grid,
    .washing-steps,
    .coating-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Двухколоночные элементы */
    .service-detail,
    .engine-wash,
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Картинки */
    .service-detail-img,
    .about-image img,
    .engine-wash-image {
        height: 250px !important;
    }
    
    /* Форма */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* CAPTCHA */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left center;
        width: 100%;
        overflow: hidden;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }
}

/* Исправление для очень высоких экранов */
@media (min-height: 800px) and (max-width: 768px) {
    .hero {
        height: 80vh;
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Фикс для наложения футера */
@media (max-width: 768px) {
    footer {
        position: relative;
        z-index: 10;
        margin-top: 0;
    }
    
    .contact {
        padding-bottom: 50px;
    }
    
    /* Гарантируем, что футер не накладывается */
    body {
        padding-bottom: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .footer-bottom {
        margin-top: auto;
    }
}

/* Исправление видимости формы */
.contact-form-container {
    position: relative;
    z-index: 5;
}

/* Фикс для iOS Safari */
@supports (-webkit-touch-callout: none) {
    input,
    textarea,
    select {
        font-size: 16px !important; /* Предотвращает зумирование */
    }
    
    .form-control {
        padding: 12px;
    }
}

/* Фикс для Android Chrome */
@media (-webkit-device-pixel-ratio: 1.5) {
    .form-control {
        min-height: 44px; /* Минимальная высота для тач-интерфейса */
    }
    
    button,
    .cta-button,
    .submit-btn {
        min-height: 44px;
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
    border-left: 1px solid #333;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--gradient-start) 0%, 
        var(--gradient-end) 50%,
        var(--gradient-start) 100%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    border-radius: 6px;
    border: 2px solid var(--dark-color);
    transition: background-position 0.5s ease;
    min-height: 40px;
}

::-webkit-scrollbar-thumb:hover {
    background-position: 0% 100%;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14, 144, 178, 0.3);
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* Убираем focus-рамку у кнопок и ссылок */
button,
a,
input,
textarea,
select {
    outline: none;
}



/* Contact form */

.contact {
    padding: 100px 20px;
    background-color: var(--dark-secondary);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgba(14, 144, 178, 0.2);
    background-color: #333;
}

.form-control::placeholder {
    color: #666;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0e0e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Блок с деталями автомобиля */
.vehicle-details {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(42, 42, 42, 0.3);
    border-radius: 10px;
    border: 1px solid #333;
}

.vehicle-details.show {
    display: block;
}

.vehicle-details.visible {
    opacity: 1;
}

/* Сообщения об ошибках */
.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-control.error {
    border-color: var(--error-color);
}

/* Кнопка отправки */
.submit-btn {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    min-width: 200px;
    position: relative;
}

.submit-btn:hover {
    background: linear-gradient(90deg, var(--gradient-end) 0%, var(--gradient-start) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 144, 178, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Спиннер загрузки */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщения формы */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

/* Инструкция по настройке */
.setup-info {
    margin-top: 40px;
    padding: 25px;
    background-color: rgba(14, 144, 178, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(14, 144, 178, 0.3);
}

.setup-info h3 {
    color: var(--gradient-start);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.setup-info ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.setup-info li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.setup-info a {
    color: var(--gradient-end);
    text-decoration: none;
    font-weight: 600;
}

.setup-info a:hover {
    text-decoration: underline;
}

.setup-info code {
    background-color: #2a2a2a;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #00d4ff;
}

.setup-info p {
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact {
        padding: 60px 15px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .submit-btn {
        width: 100%;
    }

    .setup-info {
        padding: 20px;
    }
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        overflow: hidden; /* Предотвращаем вылазивание */
    }
    
    .about-image {
        max-width: 100%;
        overflow: hidden;
    }
    
    .about-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .contact-form-container {
        padding: 25px 15px;
    }
    .header-container {
        padding: 10px 15px;
    }
    
    /* Уменьшаем логотип, но не скрываем полностью */
    .logo-image img {
        height: 35px !important;
    }
    
    .logo-text {
        display: flex !important; /* Восстанавливаем отображение */
        flex-direction: column;
        margin-left: 10px;
    }
    
    .logo-top {
        font-size: 0.7rem;
    }
    
    .logo-main {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
    }
    
    /* Корректируем навигацию */
    .nav-links {
        padding: 10px 0;
    }
    
    .nav-links li {
        margin: 8px 0;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    .about-content {
        padding: 0 10px;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr !important; /* 2 колонки вместо 4 */
        gap: 15px;
    }
    
    .stat {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    .about-text > p {
        text-align: center;
        padding: 0 10px;
    }
    
    .feature {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .feature i {
        margin-bottom: 5px;
        display: block;
    }
    .nav-links {
        padding: 0px 0;
    }
    
    .nav-links li {
        margin: 10px 0;
    }

}

.footer-contact a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
    gap: 5px;
}

.footer-contact a:hover {
    color: var(--gradient-end);
    text-decoration: underline;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--gradient-start) !important;
    text-decoration: underline;
}

@media (max-width: 375px) {
    .header-container {
        padding: 8px 10px;
    }
    
    .logo-text {
        margin-left: 8px;
    }
    
    .logo-top {
        font-size: 0.65rem;
    }
    
    .logo-main {
        font-size: 1rem;
    }
    .about-stats {
        grid-template-columns: 1fr !important; /* 1 колонка на узких экранах */
        gap: 10px;
    }
    
    .stat {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Фикс именно для твоего блока */
.before-after-item {
    max-width: 100%;
    box-sizing: border-box;
}

.before-after-item .image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 10px;
}

.before-after-item .image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;   /* как у твоих карточек */
}