/* ==================== 1. Базові стилі та підключення шрифтів ==================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Tektur:wght@400;900&display=swap');

/* Встановлюємо загальний box-sizing для всього документа */
html {
    box-sizing: border-box;
    font-size: 120%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

/* ==================== 2. Загальні елементи ==================== */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Консолідація стилів для всіх заголовків */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tektur', sans-serif;
    font-weight: 900;
    margin: 0;
    color: #fff;
}

/* Додаткові стилі для головних заголовків секцій */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.25rem;
    color: #fff;
}

p {
    margin: 0;
}

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

/* ==================== 3. Хедер ==================== */
header {
    height: 85px;
    background: #000;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header_logo img {
    height: 49.4px;
    width: auto;
}

/* Навігація */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    padding-left: 25px;
    gap: 25px;
}

.nav-links li {
    padding-left: 0;
}

.nav-links a {
    font-family: 'Tektur', sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #f67828;
}

/* Контактна інформація та кнопки */
.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info .phone-number {
    font-family: 'Tektur', sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

/* Єдиний клас для всіх кнопок */
.main-button {
    font-family: 'Tektur', sans-serif;
    background: #f67828;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    white-space: nowrap;
}

.main-button:hover,
.main-button:focus {
    background: #ff9147;
    box-shadow: 3px 9px 8px rgba(246, 120, 40, 0.5);
}

.hero-cta-button,
.all-services-button,
.all-projects-button,
.contact-form button,
.cta-button {
    /* Наслідуємо стилі від основного класу */
}

/* Бургер-меню */
.burger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

.burger.active .bar:nth-child(2) {
    opacity: 0;
}

.burger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-block,
.contact-info {
    display: flex;
}

/* ==================== 4. Основні секції ==================== */
main {
    padding-top: 85px;
}

.section {
    padding: 80px 0;
}

/* Групування стилів для однакових сіток */
.about .features-grid,
.services .service-list,
.contacts .contact-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-item,
.service-item,
.contact-info-block {
    text-align: center;
}

.feature-item i,
.contact-info-block i {
    font-size: 2.5rem;
    color: #f67828;
    margin-bottom: 15px;
}

.feature-item h3,
.service-item h3 {
    font-size: 1.5em;
    color: #fff;
}

.feature-item p {
    color: #ccc;
    font-size: 0.9rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 1rem;
}

.service-list li i {
    margin-right: 10px;
    color: #f67828;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #222;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.contact-form textarea {
    resize: vertical;
}

.all-services-button,
.all-projects-button {
    display: block;
    margin: 50px auto 0;
}

.contacts {
    background-color: #000;
    color: #fff;
    padding: 80px 0;
}

.contacts .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    color: #ccc;
}

/* ==================== Секція "Як нас знайти?" ==================== */
.find-us-section {
    width: 100%;
    background-color: #f67828;
    color: #fff;
    text-align: center;
    padding: 40px 0 0;
    margin: 0;
}

.find-us-section h2 {
    font-size: 2.25rem;
    color: #fff;
    margin-bottom: 40px;
}

.map-container {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
}

.map-container iframe {
    width: 100%;
    height: 50vh;
    border: 0;
    display: block;
}

/* ==================== 5. Футер ==================== */
footer {
    background-color: #000;
    color: #fff;
    padding: 0;
}

.footer-contacts {
    position: relative;
    background-image: url('../img/contacts_bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 40px 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.footer-contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.footer-contacts .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-contacts-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.25rem;
    color: #fff;
}

.footer-contacts .contacts-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contacts .contact-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.footer-contacts .contact-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #f67828;
}

.footer-contacts .contact-title {
    font-family: 'Tektur', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-contacts .contact-text {
    font-size: 1rem;
    line-height: 1.5;
}

.footer_bottom {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 17.5px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_logo {
    min-width: 150px;
    flex-grow: 1;
    text-align: left;
}

.footer_logo img {
    height: 35px;
    width: auto;
}

.footer_copyright {
    flex-grow: 1;
    min-width: 250px;
    text-align: center;
}

.footer_copyright p {
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
}

.footer_social {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    min-width: 150px;
    justify-content: flex-end;
}

.footer_social a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer_social a:hover {
    color: #f67828;
}

/* ==================== 6. Перемикач мови ==================== */
.lang-switcher {
    position: fixed;
    top: 25%;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background-color: rgba(44, 62, 80, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lang-link {
    padding: 10px;
    font-family: 'Tektur', sans-serif;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.lang-link.active {
    background-color: #f67828;
    color: #fff;
    font-weight: bold;
}

.lang-link:hover {
    background-color: #f67828;
    color: #fff;
}

/* ==================== REVIEWS SECTION STYLING ==================== */
.reviews-section {
    padding: 80px 0;
    text-align: center;
    background-color: #000;
    color: #fff;
}

.reviews-section .section-title {
    margin-bottom: 40px;
    font-size: 2em;
    color: #fff;
}

.reviews-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

@media (min-width: 992px) {
    .reviews-content-wrapper {
        gap: 60px;
    }
}

.reviews-rating-block {
    flex: 1;
    max-width: 400px;
    padding: 20px;
    text-align: left;
}

.rating-box {
    padding: 20px;
}

.rating-box h3 {
    font-family: 'Tektur', sans-serif;
    font-weight: 900;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.rating-score {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
    color: #f67828;
    margin-bottom: 5px;
}

.rating-score .total-rating {
    font-size: 1.2em;
    color: gold;
}

.rating-box p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 15px;
}

.google-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #f67828;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    gap: 10px;
}

.google-review-btn:hover {
    background-color: #f67828;
}

.reviews-carousel-wrapper {
    flex: 2;
    max-width: 700px;
    position: relative;
    display: flex;
    align-items: center;
}

.reviews-container {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.review-card {
    background-color: #222;
    padding: 20px;
    border-radius: 12px;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    position: relative;
    width: 50px;
    height: 50px;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.google-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #fff;
    color: #4285F4;
    border-radius: 50%;
    padding: 2px;
    font-size: 0.8rem;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.review-author h4 {
    margin: 0;
    font-family: 'Tektur', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
}

.review-author p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    color: #aaa;
    margin: 0;
}

.review-rating-stars {
    color: gold;
    font-size: 0.50rem;
    margin-bottom: 10px;
}

.review-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #ccc;
    line-height: 1.6;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .reviews-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .reviews-rating-block {
        text-align: center;
        max-width: 100%;
    }

    .carousel-btn {
        display: none;
    }
}
