* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    line-height: 1.5;
    font-size: 16px; /* 1 rem = 16 px */
}

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

/* HEADER */
.header {
    background: #000;
    color: #fff;
    font-weight: 50;

}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 10px;
    padding: 15px 20px;
}

.logo {
    max-width: 10px;
    height: auto;     /* Сохраняет пропорции */
    display: block;
}

.nav a {
    color: #fff;
    margin: 0 15px; /* расстояние между словами */
    text-decoration: none;
    font-size: 1rem;
}

.contacts {
    font-size: 1rem;
    /* font-size: 14px; */
    text-align: right;
}

.contacts div {
    padding: 3px 0;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(64, 64, 64, 0.6), rgba(0,0,0,.6)),
                url("images/about.jpeg") center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
}

.hero h1 {
    font-size: 42px;
    /* font-size: 3rem; */
    margin-bottom: 20px;
}


.hero p {
    font-size: 26px;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* BUTTONS */
.btn {
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 4px;
    /* font-size: 14px; */
    font-size: 1rem;
}


.hero-btn-primary {
    background: #f28c38;
    color: #fff;
}


.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    
}



/* SERVICES */

.services {
    padding: 180px 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /*repeat(3, 1fr)*/
    gap: 2rem; /*Отступы между элементами 2rem. 40px*/
}

.service-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem; /*40px*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}


.service-card img {
    width: 100%;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem; /* 20px */
    margin-bottom: 10px; /* 1rem */
          
}

.price {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;

}

.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.brand {
    background-color: rgba(68, 62, 62, 0.053);
    padding: 5px 15px;
    border-radius: 20px; /*cкругленрие углов кнопки */
    font-weight: 600;
}

.btn-primary {
    background: #f28c38;
    color: #fff;

    margin-top: auto;

    padding: 14px;
    margin: 30px 20px 10px;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;

}


.btn-button:hover {
  background: #34495e;
}

.btn-primary:hover {
    background-color: #ff8500;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}


.cta-button:hover {
    background-color: #ff8500;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



/* FAQ */
.faq {
    background-color:#77777730;
    width: 100%;
    padding: 180px 0;

}
.faq-container {
    max-width: 800px;
    margin: 0 auto;

    padding: 100px 20px;
}
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.332);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}
.faq-question:hover {
    background-color: rgba(227, 142, 23, 0.839); /* цвет при наведении на блок вопроса*/
}

.faq-answer {

    margin: 20px;
    line-height: 1.6;
    overflow: hidden;
    transition: height 0.35s ease, padding 0.35s ease;

}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    padding: 10px;
}


.faq-toggle {
    font-size: 2rem;

    color: #000000;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}




/**/

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;


}

/* Ответ */
.faq-answer {
    /* height: 0; */
    overflow: hidden;
    padding: 0 20px;
    transition: height 0.35s ease, padding 0.35s ease;
    color: #444;
    line-height: 1.6;

}

/* Активное состояние */
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}




/* FOOTER */
.footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}



/* CONTACTS */
.contacts-section {
    padding: 100px 0;
    background: #f5f5f5;
    text-align: center;
}

.contacts-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.contacts-info p {
    font-size: 22px;
    margin-bottom: 10px;
    
}



/* .contacts numbers {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
} */

.contacts-info a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    
}


.schedule{
    font-size: 22px;
    margin-bottom: 10px;
}


.alarm{
    font-size: 22px;
    margin-bottom: 10px;
    color: #ff8500;
}

.address {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
}


/* MAP */
.map iframe {
    display: block;
    width: 100%;
    border: none;
}



/* FOOTER */
.footer {
    background: #111;
    color: #aaa;
    padding: 60px 0 30px;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    color: #777;
}

.footer-bottom a {
    color: #777;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}



/* адаптив для телефона */
@media (max-width: 768px) {

    /* HEADER */
    .header-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 15px;
    }

    .logo img {
        height: 40px;
    }


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

    .contacts {
        text-align: center;
    }

    /* HERO */
    .hero {
        padding: 60px 0;
        text-align: center;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }


    /* SERVICES */
    .services {
        padding: 80px 0;
    }

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

    /* FAQ */
    .faq-question {
        font-size: 16px;
    }

    /* CONTACTS */
    .contacts-info p {
        font-size: 18px;
    }

    /* FOOTER */
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}
