* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
}

/* Навбар */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 15px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    order: 1;
}

.navbar .logo:hover {
    transform: translateY(-3px);
    color: #ff6200;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
    order: 2;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar .nav-links a:hover {
    transform: translateY(-3px);
    color: #ff6200;
}

.navbar .nav-links a.active {
    color: #ff6200;
    border-bottom: 2px solid #ff6200;
}

.navbar .social-icon {
    order: 3;
}

.navbar .social-icon a .x-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.navbar .social-icon a:hover .x-icon {
    transform: translateY(-3px);
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    order: 2;
    z-index: 1001;
}

.burger span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Главная секция */
.hero {
    height: 100vh;
    background: url('images/1.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    max-width: 500px;
    margin-left: 50px;
    margin-top: 100px;
    border-radius: 10px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

.hero-content h1:hover {
    transform: scale(1.05);
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.hero-content p:hover {
    transform: translateY(-3px);
}

.hero-content .btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6200;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.hero-content .btn:hover {
    animation: pulse 1s infinite;
}

/* Секция About Us */
.about {
    background: #2a2a2a;
    padding: 80px 50px;
    text-align: center;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
}

.about-content h2 {
    grid-column: 1 / -1;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #ff6200;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.about-content h2:hover {
    transform: scale(1.05);
}

.about-left,
.about-right {
    padding: 20px;
}

.about-left {
    margin-top: 50px;
}

.about-right {
    margin-top: 20px;
}

.about-left h3,
.about-right h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #ff6200;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.about-left h3:hover,
.about-right h3:hover {
    transform: scale(1.05);
}

.about-left p,
.about-right p {
    font-size: 18px;
    line-height: 1.6;
    transition: transform 0.3s ease;
}

.about-left p:hover,
.about-right p:hover {
    transform: translateY(-3px);
}

/* Секция брендов */
.brands {
    background: #f5f5f5;
    color: #333;
    padding: 80px 50px;
    text-align: center;
}

.brands h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: #ff6200;
    transition: transform 0.3s ease;
}

.brands h2:hover {
    transform: scale(1.05);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 190px;
    margin: 0 auto;
}

.brand-item img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 10px;
    transition: 0.3s;
}

.brand-item img:hover {
    width: 300px;
    z-index: 1000000;
}

.brand-item p {
    font-size: 18px;
    color: #333;
    transition: transform 0.3s ease;
}

.brand-item p:hover {
    transform: translateY(-3px);
}

/* Секция What We Offer */
.offer {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    padding: 80px 50px;
    text-align: center;
}

.offer h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: #ff6200;
    transition: transform 0.3s ease;
}

.offer h2:hover {
    transform: scale(1.05);
}

.cube-container {
    max-width: 400px;
    margin: 0 auto;
    perspective: 1200px;
    padding-top: 20px;
}

.cube {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.cube:hover {
    transform: scale(1.05);
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    color: #333;
    border: 2px solid #ff6200;
}

.face i {
    font-size: 40px;
    color: #ff6200;
    margin-bottom: 15px;
}

.face h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.face h3:hover {
    transform: scale(1.05);
}

.face p {
    font-size: 14px;
    line-height: 1.5;
    transition: transform 0.3s ease;
}

.face p:hover {
    transform: translateY(-3px);
}

.front {
    transform: translateZ(200px);
}

.right {
    transform: rotateY(90deg) translateZ(200px);
}

.back {
    transform: rotateY(180deg) translateZ(200px);
}

.left {
    transform: rotateY(-90deg) translateZ(200px);
}

.cube-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.cube-prev,
.cube-next {
    background: #ff6200;
    border: none;
    padding: 12px 24px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cube-prev:hover,
.cube-next:hover {
    animation: pulse 1s infinite;
    box-shadow: 0 0 10px rgba(255, 98, 0, 0.5);
}

/* Секция Why Choose Us */
.why {
    background: #2a2a2a;
    padding: 80px 50px;
    text-align: center;
}

.why h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: #ff6200;
    transition: transform 0.3s ease;
}

.why h2:hover {
    transform: scale(1.05);
}

.why-items {
    max-width: 800px;
    margin: 0 auto 40px;
}

.why-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.why-item p {
    font-size: 18px;
    line-height: 1.6;
    transition: transform 0.3s ease;
}

.why-item p:hover {
    transform: translateY(-3px);
}

.why-video {
    margin: 40px auto;
    max-width: 800px;
}

.why-video video {
    width: 100%;
    border-radius: 10px;
}

.why-text p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.why-text p:hover {
    transform: translateY(-3px);
}

/* Секция Parts */
.parts {
    background: #f5f5f5;
    padding: 80px 50px;
    text-align: center;
}

.parts h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: #ff6200;
    transition: transform 0.3s ease;
}

.parts h2:hover {
    transform: scale(1.05);
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.part-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.part-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.part-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.part-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 98, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.part-overlay p {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}

.part-item:hover .part-overlay {
    opacity: 1;
}

/* Секция Contacts */
.contact {
    background: #1a1a1a;
    padding: 80px 50px;
    text-align: center;
}

.contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: #ff6200;
    transition: transform 0.3s ease;
}

.contact h2:hover {
    transform: scale(1.05);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-content p:hover {
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-details p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-details a {
    color: #ff6200;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details a .x-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.contact-details a:hover .x-icon {
    transform: translateY(-3px);
}

.contact-details a span {
    color: #fff;
    font-size: 18px;
}

/* Футер */
.footer {
    background: #1a1a1a;
    padding: 20px;
    text-align: center;
}

.footer p {
    font-size: 16px;
    color: #fff;
    transition: transform 0.3s ease;
}

.footer p:hover {
    transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1a1a1a;
        padding: 20px;
        position: absolute;
        top: 70px;
        left: 0;
        z-index: 1000;
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .navbar .nav-links a {
        font-size: 18px;
        padding: 10px 0;
    }

    .navbar .social-icon {
        order: 3;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-content {
        margin: 20px;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-left,
    .about-right {
        margin-top: 0;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .brand-item {
        width: 120px;
        height: 160px;
    }

    .brand-item:hover {
        width: 144px;
    }

    .brand-item img {
        width: 120px;
        height: 120px;
    }

    .parts-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .cube-container {
        max-width: 250px;
    }

    .cube {
        width: 250px;
        height: 250px;
    }

    .front,
    .right,
    .back,
    .left {
        transform: translateZ(125px);
    }

    .right {
        transform: rotateY(90deg) translateZ(125px);
    }

    .back {
        transform: rotateY(180deg) translateZ(125px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(125px);
    }

    .face i {
        font-size: 32px;
    }

    .face h3 {
        font-size: 18px;
    }

    .face p {
        font-size: 12px;
    }
}