/* Загальні стилі */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 60px 0 0;
    background: #f3f1ee;
    color: #444;
    font-size: 15px;
    /*padding-top: 60px;*/
}

.clr {
    clear: both;
}

/* Головний контейнер */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-block {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* Навігація */
/*header {*/
/*    text-align: center;*/
/*    padding: 20px;*/
/*}*/

/*header h1 {*/
/*    font-size: 28px;*/
/*    font-weight: bold;*/
/*    color: #333;*/
/*}*/

/*nav ul {*/
/*    list-style: none;*/
/*    padding: 0;*/
/*}*/

/*nav ul li {*/
/*    display: inline;*/
/*    margin: 0 15px;*/
/*}*/

/*nav ul li a {*/
/*    text-decoration: none;*/
/*    color: #666;*/
/*    font-weight: bold;*/
/*}*/

/* Хедер */
header {
    background: #222;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 60px;
    color: #fff;
}

header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

/* Логотип */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #c49a6c;
    text-decoration: none;
}

/* Навігація */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Прапорці */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.language-switcher img {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 3px; /* легке закруглення прапорців */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); /* невелика тінь */
}

.language-switcher button:hover {
    transform: scale(1.2);
}

/* Меню */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* ← Ось це додати */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #fc8904;
    font-weight: bold;
    transition: 0.3s;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6101;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.burger span {
    width: 30px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* Анімація бургер-кнопки */
.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(5px, -5px);
}

/* 📱 Мобільна версія */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        background: #222;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        z-index: 1000;
        transition: 0.3s;
    }

    nav.active {
        display: flex;
    }

    .language-switcher {
        flex-direction: row;
        gap: 15px;
        margin-bottom: 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .burger {
        display: flex;
    }
}

/* Фіксація body */
body.locked {
    overflow: hidden;
}

/* Головний банер */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: #ded5c9;
    border-radius: 15px;
}

.hero h2 {
    font-size: 32px;
    color: #222;
}

.hero p {
    font-size: 18px;
    color: #222;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: #fc8904;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #ff6101;
}

/* Секції */
section {
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 20px;
}

/* Послуги */
.services {
    background: white;
    border-radius: 10px;
    padding: 20px 20px 50px 20px;
}

.service-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service {
    width: 40%;
    padding: 20px;
    background: #ded5c9;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .service {
        width: 100%;
        /*padding: 20px;*/
        /*background: #ede7e1;*/
        /*border-radius: 10px;*/
    }
}

.service h3 {
    color: #333;
}

/* Курсор pointer для блоків послуг */
.service {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.service:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Стилізація модального вікна */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    position: relative;
    width: 90%;
    box-sizing: border-box;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease;
    background: none;
    border: none;
    width: 15px;
    height: 15px;
    line-height: 15px;
    padding: 0;
}

.close:hover {
    color: #c49a6c;
}

/* Відгуки */
.testimonials {
    background: #e2dad2;
    padding: 20px 20px 50px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.testimonial {
    /*max-width: 600px;*/
    margin: 10px auto;
    font-style: italic;
    font-size: 18px;
    color: #444;

    background: #fff;
    border-radius: 5px;
    padding: 1px 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    text-align: left;
}

#testimonial > h2 {
    margin: 0 auto;
}

/* Ім'я у відгуках */
.testimonial p strong {
    font-weight: bold;
    color: #222;
}

/* Форма відгуку */
#testimonial-form {
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#testimonial-form h3 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

#testimonial-name,
#testimonial-input,
#rating {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#testimonial-name {
    height: 40px;
}

#testimonial-input {
    height: 100px;
}

#testimonial-form label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

#testimonial-form button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background-color: #fc8904;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#testimonial-form button:hover {
    background-color: #ff6101;
}

.rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #f0ece7;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.rating span {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating span svg {
    width: 28px;
    height: 28px;
    transition: fill 0.3s, stroke 0.3s;
    fill: transparent;
    stroke: #ffa348;
}

.rating span.active svg {
    fill: #ffa348;
}

/* Запис на масаж */
.booking {
    background: #ded5c9;
    border-radius: 10px;
    padding: 50px;
    margin-bottom: 20px;
}

/* Футер */
footer {
    background: #222;
    color: white;
    padding: 20px 20px 50px 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.footer-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffa348;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
    width: 100%; /* По замовчуванню на мобільному */
    justify-content: center;
}

/* Іконки */
.icon {
    width: 22px;
    height: 22px;
    fill: #ffa348;
    transition: fill 0.3s ease, transform 0.3s ease;
}

/* Ховер ефекти */
.contact-item:hover {
    transform: translateY(-2px);
}

.contact-item:hover .icon {
    fill: #ff6101;
    transform: scale(1.2);
}

.contact-item a {
    display: inline-block; /* або block, якщо треба */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffa348;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts .contact-item a {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;

}

.contact-item:hover a {
    color: #ff6101;
}

/* На великих екранах — 2 колонки */
@media (min-width: 980px) {
    .contact-item {
        width: 415px; /* 2 колонки */
        justify-content: flex-start; /* Вирівнюємо вліво в колонці */
    }
}


/* Блок з цінами */
.pricing {
    background: #e8e1d8; /* Темніший фон */
    padding: 20px 20px 50px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.pricing h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* Таблиця цін */
.pricing table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.pricing th, .pricing td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 18px;
}

.pricing th {
    background: #fc8904;
    color: white;
    font-weight: bold;
}

.pricing td {
    color: #444;
}

.pricing tr:nth-child(even) {
    background: #f4f1ec;
}

/* 📱 Адаптивність */
@media (max-width: 768px) {
    .pricing table {
        font-size: 16px;
    }

    .pricing th, .pricing td {
        padding: 10px;
    }
}

/* Блок з сертифікатом */
.gift-card-section {
    background: white;
    padding: 20px 20px 50px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.gift-card-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.gift-card-image {
    width: 100%;
    max-width: 800px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.gift-card-text {
    flex: 1;
    min-width: 250px;
}

.gift-card-text p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Кнопка "Наверх" */
#scrollToTop {
    left: 50%;
    margin-left: -100px;
    bottom: -20px;
    border-radius: 15px 15px 0 0;
    height: 60px;
    width: 200px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 6px;
    background-color: rgb(252, 137, 4);
    position: fixed;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

#scrollToTop:hover {
    background-color: #ff6101;
    transform: translateY(-20px);
}

#scrollToTop .icon {
    width: 40px;
    height: 40px;
    color: #e2dad2;
    transition: color 0.3s;
    transform: translateY(-10px);
}

#scrollToTop:hover .icon {
    /*color: #ff6101;*/
}

/* Анімація появи (опціонально) */
#scrollToTop.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

#scrollToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.4s, transform 0.4s;
}
