* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}


body {
    padding-top: 70px;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 50px 0;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    z-index: 9999;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.navbar.hide {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

.nav-links a {
    margin-left: 20px;
    font-size: 15px;
    opacity: 0.9;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: #ffb400;
}

.lang-switch-btn {
    margin-left: 25px;
    padding: 6px 12px;
    border: 1px solid #ffb400;
    border-radius: 6px;
    color: #ffb400;
    font-weight: bold;
    transition: 0.3s;
}

.lang-switch-btn:hover {
    background: #ffb400;
    color: black;
}

/* BURGER */
.burger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #1e3c72;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        display: flex;
        gap: 25px;
        transition: 0.4s ease;
    }

    .nav-links a {
        font-size: 18px;
    }

    .nav-links.active {
        right: 0;
    }
}

/* HEADER */

header {
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.areas{
    margin-top:12px;
    font-size:16px;
    opacity:0.9;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(30, 60, 114, 0.85), rgba(42, 82, 152, 0.85)),
        url('images/electrician.jpg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.subtitle {
    font-size: 20px;
    margin-top: 15px;
    opacity: 0.95;
}

.hero-buttons {
    margin-top: 30px;
}

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

.btn-outline:hover {
    background: #ffb400;
    color: black;
}

header h1 {
    font-size: 42px;
}

.btn {
    background: #ffb400;
    color: black;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.btn:hover {
    background: #ffa000;
}

/* ADVANTAGES */

.advantages {
    background: #f4f6f9;
}


/* SECTIONS */
section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.about {
    background: white;
    text-align: center;
}

.services {
    background: #eef2f7;
}

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

.card {
    background: white;
    padding: 35px 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: 0.35s ease;
    font-size: 18px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* STATS */

.stats {
    background: #1e3c72;
    color: white;
    text-align: center;
}

.stat h3 {
    font-size: 36px;
    color: #ffb400;
}

/* WORKS GALLERY */
.works {
    background: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 265px;
    height: 265px;
    object-fit: cover;   
    border-radius: 12px;
    transition: 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* REVIEWS */

.reviews {
    background: #eef2f7;
}

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

.review {
    background: white;
    padding: 35px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    position: relative;
    transition: 0.3s;
}

.review:hover {
    transform: translateY(-6px);
}

/* кавычки */

.review::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: #ffb400;
    opacity: 0.3;
}

/* звёзды */

.stars {
    color: #ffb400;
    font-size: 20px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 16px;
    margin-bottom: 15px;
}

.review-author {
    font-weight: bold;
    color: #1e3c72;
}

/* CONTACTS */
.contacts {
    position: relative;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.contacts::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(30, 60, 114, 0.85), rgba(42, 82, 152, 0.85)),
        url('images/electrician.jpg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.social-buttons {
    margin-top: 20px;
}

.social {
    display: inline-block;
    margin: 10px;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.tg {
    background: #229ED9;
}

.wa {
    background: #25D366;
}

.vb {
    background: #7360F2;
}

.social:hover {
    opacity: 0.8;
}

/* FLOATING-CALL */

.floating-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffb400;
    color: black;
    font-size: 22px;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1000;
}

/* FOOTER */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

/* =========================
   TABLET (768px – 1024px)
========================= */

@media (min-width: 769px) and (max-width: 1024px) {

    header {
        padding: 100px 20px;
    }

    header h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        width: 92%;
    }

}

/* =========================
   MOBILE (до 768px)
========================= */

@media (max-width: 768px) {

    .container {
        padding: 35px 0;
    }

    header {
        padding: 80px 15px;
        text-align: center;
    }

    header h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px;
    }

    section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

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

    .card {
        padding: 25px 20px;
        font-size: 16px;
    }

    .stat h3 {
        font-size: 28px;
    }

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

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

    .social {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    /* Отключаем fixed фон на мобильных */
    header::before,
    .contacts::before {
        background-attachment: scroll;
    }

    .floating-call {
        bottom: 15px;
        right: 15px;
        padding: 14px;
        font-size: 20px;
    }

/* LANGUAGE BUTTON */

.lang-switch {
    position: fixed; 
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.lang-btn {
    color: white;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.9;
    transition: 0.3s;
}

.lang-btn:hover {
    opacity: 1;
    text-decoration: underline;
}
}