/* --- ОСНОВНІ НАЛАШТУВАННЯ ТА ЗМІННІ --- */
:root {
    --color-primary: #544732;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-muted: #666666;
    --color-bg-light: #faf8f5;
    --color-accent: #F4E8D4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- ШАПКА САЙТУ (HEADER) --- */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu-list a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.menu-list a:hover,
.menu-list a.active {
    color: #8b7355;
}

/* Індикатор активної сторінки */
.menu-list a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* Мобільна адаптація меню */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .menu-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* --- ГОЛОВНИЙ БЛОК КОНТЕНТУ --- */
.main-pronas {
    padding: 60px 0;
}

.page-title {
    font-size: clamp(28px, 5vw, 38px);
    color: var(--color-primary);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 1px;
    font-weight: 700;
}

.activity-sections {
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* Відступ між секціями видів діяльності */
}

/* Рядок діяльності (Flexbox на десктопі) */
.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(84, 71, 50, 0.04);
}

/* Модифікатор для дзеркального відображення */
.activity-row--reverse {
    flex-direction: row-reverse;
}

.activity-content {
    flex: 1;
}

.activity-content h3 {
    font-size: clamp(20px, 4vw, 24px);
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.activity-content p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.activity-content p:last-child {
    margin-bottom: 0;
}

/* Контейнер картинки */
.activity-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Сама картинка: СУПЕР-АДАПТИВНА */
.img-responsive {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.shadows {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Адаптація секцій контенту під планшети та мобільні */
@media (max-width: 991px) {

    .activity-row,
    .activity-row--reverse {
        flex-direction: column;
        /* Перебудова контенту у вертикальний стек */
        gap: 25px;
        padding: 20px;
    }

    .activity-image {
        width: 100%;
    }

    .img-responsive {
        width: 100%;
        /* Картинка розгортається на всю ширину на мобілці */
        max-height: 300px;
    }
}

/* --- КАРТА --- */
.map-section {
    display: block;
    width: 100%;
    line-height: 0;
    /* Ліквідує мікро-відступи знизу iframe */
}

/* --- ФУТЕР (FOOTER) --- */
.main-footer {
    background-color: var(--color-primary);
    padding: 50px 0;
    color: var(--color-white);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-block {
    flex: 1;
}

.footer-heading {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links {
    padding-top: 53px;
    /* Ідеальне вирівнювання з базовою лінією першого заголовку */
}

.footer-info-list {
    list-style: none;
}

.footer-info-list li {
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-info-list span {
    opacity: 0.7;
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-logo {
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
}

.footer-img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Адаптація футера */
@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-block {
        width: 100%;
    }

    .footer-links {
        padding-top: 0;
    }

    .footer-logo {
        justify-content: center;
        align-self: center;
    }
}

/* --- КНОПКА ВГОРУ --- */
.up-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease;
}

.up-button:hover {
    transform: translateY(-5px);
}

@media (max-width: 480px) {
    .up-button {
        bottom: 15px;
        right: 15px;
    }

    .up-button img {
        width: 40px;
        height: 40px;
    }
}



/* --- СТИЛІ ДЛЯ СТОРІНКИ ВАКАНСІЙ (VACATION) --- */
.main-vacation {
    padding: 60px 0;
}

/* Центруємо картку вакансій по центру екрана */
.vacation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Стильний білий блок із закругленими кутами та м'якою тінню */
.vacation-card {
    background-color: var(--color-white);
    max-width: 800px;
    /* Обмежуємо ширину для зручного читання тексту */
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(84, 71, 50, 0.06);
    text-align: center;
}

.vacation-description {
    font-size: 18px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 30px;
}

/* Блок заклику до дії (номер телефону) */
.vacation-cta {
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    /* Стильний акцент зліва */
    display: inline-block;
    width: 100%;
    max-width: 500px;
}

.cta-text {
    font-size: 15px;
    color: var(--color-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.cta-phone {
    font-size: clamp(20px, 5vw, 26px);
    /* Шрифт автоматично зменшується на дрібних смартфонах */
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.cta-phone:hover {
    color: #8b7355;
}

/* Адаптація під мобільні екрани */
@media (max-width: 768px) {
    .main-vacation {
        padding: 40px 0;
    }

    .vacation-card {
        padding: 25px 20px;
    }

    .vacation-description {
        font-size: 16px;
    }
}



/* --- СТИЛІ ДЛЯ СТОРІНКИ КОНТАКТІВ (CONTACTS) --- */
.main-contacts {
    padding: 60px 0;
}

/* Сучасна гнучка сітка для карток */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Дві картки в ряд на десктопі */
    gap: 30px;
    /* Відстань між картками */
    width: 100%;
}

/* Стиль самої картки контакту */
.contact-card {
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(84, 71, 50, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ефект підняття картки при наведенні */
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(84, 71, 50, 0.1);
}

.card-inner {
    padding: 35px;
}

.contact-card h3 {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

/* Декоративна тонка лінія під посадою */
.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin-top: 15px;
    margin-bottom: 15px;
}

.contact-details {
    background-color: var(--color-bg-light);
    padding: 15px 20px;
    border-radius: 10px;
}

.contact-details p {
    font-size: 15px;
    color: var(--color-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

/* Стилізація лінків всередині карток */
.contact-field-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-field-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* АДАПТИВНІСТЬ ДЛЯ СІТКИ КОНТАКТІВ */
@media (max-width: 991px) {
    .contacts-grid {
        gap: 20px;
    }

    .card-inner {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        /* Одна картка в ряд на планшетах та мобільних */
    }

    .main-contacts {
        padding: 40px 0;
    }
}