/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #1976d2;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background-color: var(--dark-bg);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    padding: 15px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.logo-subtitle {
    font-size: 12px;
    color: #aaaaaa;
    margin: 2px 0 0 0;
}

.nav-menu {
    display: flex;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--primary-color);
}

/* ==================== MOBILE MENU TOGGLE ==================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px auto;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #b71c1c;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #1565c0;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-small {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-large {
    padding: 14px 40px;
    font-size: 16px;
    width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.75) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    padding: 40px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 30px;
}

.hero-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-benefits li {
    background-color: rgba(211, 47, 47, 0.1);
    padding: 12px 20px;
    border-left: 4px solid var(--primary-color);
    text-align: left;
    font-size: 14px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== SECTION STYLES ==================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ==================== WHY US SECTION ==================== */
.why-us {
    background-color: var(--light-bg);
}

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

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}
.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background-color: #ffffff;
}

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

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 30px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px 8px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}
.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==================== CATALOG SECTION ==================== */
.catalog {
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

.product-image {
    background: linear-gradient(135deg, #666 0%, #999 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 16px;
    padding: 15px 15px 5px 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.product-description {
    padding: 0 15px;
    font-size: 13px;
    color: var(--text-light);
}

.product-price {
    padding: 10px 15px 5px 15px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-status {
    padding: 5px 15px;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}

.product-card .btn {
    margin: 15px;
    margin-top: auto;
}

/* ==================== HOW WE WORK SECTION ==================== */
.how-we-work {
    background-color: #ffffff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step {
    background-color: var(--light-bg);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    background-color: #eeeeee;
    box-shadow: var(--card-shadow);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==================== REVIEWS SECTION ==================== */
.reviews {
    background-color: var(--light-bg);
}

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

.review-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.review-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.review-stars {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.review-location {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.review-car {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background-color: #ffffff;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-list {
    list-style: none;
    margin: 15px 0 20px 0;
}

.about-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-light);
    font-size: 14px;
}

.about-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== FORM SECTION ==================== */
.form-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%);
    color: #ffffff;
}

.form-subtitle {
    text-align: center;
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
    font-size: 13px;
}

.form-agreement input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.form-agreement label {
    cursor: pointer;
    color: #cccccc;
}

/* ==================== CONTACTS SECTION ==================== */
.contacts {
    background-color: var(--light-bg);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contacts-info h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-item a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #b71c1c;
}

.contact-item p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.map-placeholder {
    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #999999;
    font-size: 16px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 40px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contacts a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: #ff6b6b;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #999999;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .header-top-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-contacts {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }

    .logo {
        order: 1;
    }

    .mobile-menu-toggle {
        order: 3;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .cards-grid,
    .services-grid,
    .products-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .contacts-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .header-top-content {
        align-items: center;
    }

    .logo-text {
        font-size: 24px;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 20px 15px;
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 0;
    }

    .header-contacts {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .phone-link {
        font-size: 16px;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-benefits li {
        font-size: 12px;
        padding: 10px 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 13px;
    }

    .btn-small {
        padding: 9px 18px;
        font-size: 12px;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .card,
    .service-card,
    .product-card,
    .review-card {
        padding: 20px;
    }

    .card-icon,
    .service-icon {
        font-size: 36px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }

    .form-agreement {
        font-size: 12px;
    }

    .about-text h3 {
        font-size: 18px;
    }

    .about-text p {
        font-size: 14px;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-text,
    .footer-contacts a,
    .footer-link {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 18px;
    }

    .section-title {
        font-size: 18px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .contact-form {
        padding: 15px;
    }
}
