@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Rubik:wght@300;400;500;600;700;800;900&display=swap');
/* font-family: "Roboto Slab", serif; */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto+Slab:wght@100..900&family=Rubik:wght@300;400;500;600;700;800;900&display=swap');
/* font-family: "Montserrat", sans-serif; */
@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace+SC&display=swap');
/* font-family: "Bruno Ace SC", sans-serif; */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000;
    color: #fff;
    height: 100vh;
    min-height: 610px;
    user-select: none;
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    background-color: #000;
    position: fixed;
    z-index: 100;
}

nav::before {
    content: "";
    height: 85px;
    background-color: #000;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100vw;

}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}


.logo img {
    height: 61px;
    margin-top: .5rem;
    opacity: .8;
}

.menu a {
    margin-left: 1.5rem;
    font-size: 1rem;
    color: #ccc;
}

.hero-content {
    width: 100vw;
    margin-top: 0rem;
    padding: 10rem 0rem;
    background: url(../img/bg-blur.webp);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 1px 1px 5px #2229;
}

.hero p {
    font-size: 1.2rem;
    color: #eee;
    font-weight: 300;
    text-shadow: 1px 1px 5px #2229;
    margin-bottom: 2rem;
}

.cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background-color: #212121;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta:hover {
    background-color: #d1d1d1;
    color: #333;
}

.services, .about {
    text-align: center;
    padding: 4rem 1.5rem;
    background-color: #fff;
    color: #333;
}

.services h2, .about h2, .contact h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-wrap: nowrap;
    gap: 2rem;
}

.cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 300px;
    height: 350px;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 1px 1px 5px #0009;
    position: relative;
    z-index: 0;
    cursor: pointer;
}

.service-card .text {
    background-color: #0007;
    padding: .5rem 1rem 1rem;
    backdrop-filter: blur(1px);

}

.service-card:nth-child(1) {
    background-image: url(../img/i1.webp);
}

.service-card:nth-child(2) {
    background-image: url(../img/i3.webp);
}

.service-card:nth-child(3) {
    background-image: url(../img/i4.webp);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.about {
    /* background: url(../img/repair2.webp); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* text-shadow: 1px 1px 5px #2229; */
    /* color: #fff; */
}



.about {
    text-align: center;
    padding: 4rem 1.5rem;
    background-color: #ecf0f1;
    color: #333;
}

.about h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-wrap: nowrap;
    gap: 2rem;
}

.about h2::before,
.about h2::after,
.services h2::before,
.services h2::after {
    content: "";
    width: 100%;
    height: 3px;
    background-color: #777;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

.about-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

.about-image {
    margin-top: 3rem;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}


.about-image img {
    width: 400px;
    background-color: #0007;
    backdrop-filter: blur(4px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.contact {
    background: url(../img/contact2.webp);
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
}

.contact h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 1px 1px 5px #2229;
    text-align: center;
}

.contact p {
    font-size: 1.2rem;
    color: #eee;
    font-weight: 300;
    text-shadow: 1px 1px 5px #2229;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-link {
    color: #ffffff;
    /* Основной цвет иконок */
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.contact-link i {
    font-size: 1.5rem;
}

.contact-link:first-child:hover {
    color: #ffffff;
    text-shadow: 0px 0px 5px #fff
}

.contact-link:nth-child(2):hover {
    color: #3498db;
}

.contact-link:nth-child(3):hover {
    color: #9b59b6;
}

.contact-link:nth-child(4):hover {
    color: #2ecc71;
}

.about i {
    font-size: 30px;
}

.container {
    width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 1rem;
}

.container h1::selection,
.container h2::selection,
.container h3::selection,
.container p::selection {
    background-color: #000;
    color: #fff;
}

.container span::selection{
    background-color: #e67e22;
    color: #333333;
}

footer p::selection,
footer p *::selection {
    background-color: #fff;
    color: #333;
}

footer {
    padding: 2rem 1.5rem;
    background-color: #000;
    color: #777;
    text-align: center;
}

footer a {
    color: #2980b9
}

.icons {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    perspective: 1000px;
}

.button {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    opacity: 0;
    animation: animateButtons 3s infinite ease-in-out;
    transform-style: preserve-3d;
    transition: transform 1s ease, opacity 0.8s ease;
}

.circle {
    animation-delay: 0s;
}

.cross {
    animation-delay: 0.5s;
}

.square {
    animation-delay: 1s;
}

.triangle {
    animation-delay: 1.5s;
}

@keyframes animateButtons {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateX(0deg) rotateY(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotateX(180deg) rotateY(180deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) rotateX(360deg) rotateY(360deg);
    }
}

@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
    .about-features {
        gap: 0;
    }
    
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-content{
        padding: 0 1rem;
        background-image: url(../img/bg-m.webp);
    }

    .container {
        width: 100%;
        padding: 1rem;
    }

    .icons {
        width: 100%;
        gap: 2rem;
    }

    nav {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    nav .menu {
        display: flex;
        gap: 1rem;
        margin-bottom: .5rem;
    }

    a.contact-link span:nth-child(2) {
        display: none;
    }

    .contact i {
        font-size: 3rem;
    }

    .button {
        width: 1rem;
        height: 1rem;
        font-size: 1.8rem;
    }

    .cards {
        flex-direction: column;
    }

    .service-card,
    .feature-card {
        width: 100%;
    }

    .feature-card {
        margin-top: 1.2rem;
    }

    .services, .about {
        padding: 2rem 0 1rem;
    }

    .menu a {
        margin-left: 0;
    }

    footer {
        padding: 1rem;
    }
    .service-card:hover,
    .feature-card:hover {
        transform: translateY(0px);
    }
}