а* {
    box-sizing: border-box; 
    margin: 0;/* Всі елементи враховують рамки і відступи у своїй ширині/висоті */
}

::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.7); /* Прозорий повзунок */
}
/* Стилізація скроллбару */
::-webkit-scrollbar {
    width: 6px; /* Ширина скроллбару */
}

/* Фон скроллбару */
::-webkit-scrollbar-track {
    background: #AB8574; /* Колір фону */
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green); /* Прозорий повзунок */
}
/* При наведенні змінюється колір повзунка */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-brown);
}


:root {
    --primary-gold: #fffb1f;
    --primary-green: #027166;
    --primary-green-dark: #155941;
    --primary-white: #ffffff;
    --primary-black: #000000;
    --primary-brown: #6d4c41;
    --secondary-grey: #f4f4f4;
    --secondary-milk: #e9d7b9;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Приховує горизонтальний скрол */
    width: 100vw; /* Забезпечує повне покриття ширини екрана */
}

.page {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary-black);
    background-color: var(--primary-green);
    line-height: 1.6;
    max-width: 100vw; /* Обмежує ширину сторінки */
    overflow-x: hidden; /* Додає захист від горизонтального скролу */
}

h1, h2, h3 {
    font-family: 'Montserrat', serif;
    color: var(--primary-white);
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
    font-size: 2.25em; /* Збільшено розмір заголовків на 25% */
    font-weight: bold;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.625em; /* Збільшено розмір тексту на 25% */
}


/* === HEADER === */
.header {
    background-color: var(--primary-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 3000;
    padding: 12px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: var(--primary-green-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.header__container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === ЛОГО === */
.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img {
    max-height: 46px;
    transition: transform 0.3s ease;
}

.header__logo-img:hover {
    transform: scale(1.05);
}

.header__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.header__logo-link:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 110;
    transition: transform 0.4s ease;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-gold);
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Активний стан — бургер трансформується в хрестик */
.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

/* Активний стан: хрестик */
.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* === НАВІГАЦІЯ === */
.header__nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 100px;
}


.header__nav-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    animation: fadeInDown 0.4s ease-in-out;
}

.header__nav-item {
    display: inline-block;
}

.header__nav-link {
    text-decoration: none;
    color: var(--primary-white);
    font-weight: 600;
    font-size: 15px;
    padding: 0.6em 0.4em;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.4px;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link:hover {
    color: var(--primary-gold);
}

/* === СОЦМЕРЕЖІ === */
.header__social {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.header__social-link {
    font-size: 20px;
    color: var(--primary-white);
    padding: 6px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.header__social-link:hover {
    transform: scale(1.15);
}

/* Індивідуальні стилі соцмереж */
.header__social-link__0:hover { color: rgb(97, 127, 235); }
.header__social-link__1:hover { color: rgb(242, 23, 23); }
.header__social-link__2:hover {
    background-image: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.header__social-link__3:hover { color: rgb(91, 110, 180); }

.header__social--mobile {
    display: none;
}


.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
    background-color: #000;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/Wedding-Nikolay&Anna-118.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    animation: fadeInHeroBg 1s forwards;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Затемнення */
    z-index: -1;
}

@keyframes fadeInHeroBg {
    to {
        opacity: 1;
    }
}

.hero__container {
    max-width: 1200px;
    padding: 20px;
    z-index: 2;
}

.hero__title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
    font-size: 1em;
    margin-bottom: 1.8em;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero__cta-button {
    background-color: var(--primary-green);
    color: white;
    padding: 14px 26px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.hero__cta-button:hover {
    background-color: var(--primary-brown);
}

.about-parishes {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(185deg, #31170b, #3D2216, #784E3D, #AB8574, #d4a089);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.about-parishes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.437); /* Напівпрозоре затемнення */
    z-index: 0; /* Забезпечує затемнення позаду тексту */
}

.about-parishes__container {
    position: absolute;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 40px;
}

.about-parishes__content {
    flex: 1;
    max-width: 600px;
    margin-right: 40px;
    text-align: left;
}

.about-parishes__title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
    text-transform: uppercase;
}

.about-parishes__description {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 30px;
}

.about-parishes__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.about-parishes__button {
    padding: 12px 25px;
    background-color:var(--primary-green);
    color: #fff;
    border-radius: 20px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.about-parishes__button:hover {
    background-color: var(--primary-brown);
}

.about-parishes__image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-parishes__image {
    width: 500px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* === СЕКЦІЯ РОЗКЛАДУ === */
.timetable {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background-image: url("/img/DSC_5704.webp");
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    position: relative;
    color: #ffffff;
    height: 100vh;
}

.timetable::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}


.timetable__inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timetable__title {
    font-size: 2.4em;
    color: #ffffff;
    margin-bottom: 0.2em;
    padding-top: 40px;
}

.timetable__subtitle {
    font-size: 1.2em;
    color: #f3e8d3;
    margin-bottom: 20px;
}

.timetable__card {
    position: relative;
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
    color: #fff;
    text-align: left;
    background-repeat: no-repeat;
    background: linear-gradient(135deg, var(--primary-brown), #5e3d1f);
}

/* Контент поверх затемнення */
.timetable__card > * {
    position: relative;
    z-index: 1;
}
/* Список розкладу */
.timetable__schedule {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timetable__row {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--secondary-milk);
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.timetable__row:hover {
    transform: translateY(-2px);
}

.timetable__row::before {
    font-family: "Font Awesome 6 Free";
    content: "\f4ba";
    font-weight: 900;
    font-size: 1.1em;
    margin-right: 12px;
    color: var(--primary-green-dark);
}

.timetable__row div {
    flex: 1;
    color: var(--primary-black);
}

.timetable__row div:first-child {
    font-weight: 600;
    color: var(--primary-black);
}

.timetable__day {
    font-weight: 600;
    color: var(--primary-green-dark);
}

.timetable__date {
    color: var(--primary-black);
    font-size: 0.95em;
}

@keyframes grow-center {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

[data-aos="grow-center"] {
    opacity: 0;
    transform: scale(0.6);
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); /* Плавніше */
}

[data-aos="grow-center"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

.services {
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/img/Wedding-Nikolay&Anna-134.webp') center/cover no-repeat;
    text-align: center;
    color: var(--primary-white);
}

.services__title {
    font-weight: 800;
    font-size: 2.5em;
    margin-bottom: 40px;
    padding-top: 70px;
    color: var(--primary-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 10px;
}

.services__item {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-white);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.services__item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.services__item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-white);
}

.services__item p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--primary-white);
}

.services__icon {
    width: 70px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0px auto 24px 12px;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.services__icon:hover {
    transform: scale(1.05);
}


/* === ГАЛЕРЕЯ === */
.gallery {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(0deg, #31170b, #3D2216, #784E3D, #AB8574, #d4a089);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.27);
    z-index: 0;
}

.gallery__title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2em;
    color: var(--primary-white);
    z-index: 2;
    position: relative;
}

/* SWIPER СТИЛІ */
.gallery-swiper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item {
    flex: 0 0 auto;
    width: 320px;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.04);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SWIPER КНОПКИ */
.swiper-button-prev,
.swiper-button-next {
    background-color: rgba(61, 34, 22, 0.85); /* Темно-коричневе напівпрозоре тло */
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #784E3D;
    transform: scale(1.1);
}

/* Позиціонування — за бажанням */
.swiper-button-prev {
    left: 10px;
}
.swiper-button-next {
    right: 10px;
}

/* Усередині іконки Swiper стрілок */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.swiper-pagination-bullet {
    background: var(--primary-white);
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.gallery-swiper .swiper-wrapper {
    align-items: center;
}

/* Основна секція */
.vintage-map {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #31170b, #3D2216, #784E3D, #AB8574, #d4a089);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* Затемнення поверх зображення */
.vintage-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.27); /* темна маска */
    z-index: 0;
}

/* Контейнер карти */
.vintage-map__container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    padding-top: 80px;
    gap: 20px;
}
.vintage-map__map-wrapper {
    position: relative;
    width: 70%;
    height: 80%;
    border-radius: 10px;
    overflow: hidden;
}

.vintage-map__map {
    width: 100%;
    height: 100%;
    filter: grayscale(80%) blur(4px);
    transition: all 0.3s ease;
}

.vintage-map__map.active {
    filter: none;
}

.vintage-map__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vintage-map__overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Блок історій */
.vintage-map__stories {
    width: 30%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.vintage-map__hint {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    animation: pulseMapHint 2s infinite;
}

.vintage-map__map.active + .vintage-map__hint,
.vintage-map__hint.hidden, .vintage-map__map.active::before {
    opacity: 0;
}

@keyframes pulseMapHint {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.6; }
}


/* Кнопки перемикання */
.vintage-map__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.vintage-map__button {
    background: #3d2216;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.vintage-map__button:hover {
    background: #784e3d;
    transform: scale(1.1);
}

/* Стилізація історій */
.vintage-map__story {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
}

.vintage-map__story.active {
    display: block;
    opacity: 1;
}

/* Заголовок історії */
.vintage-map__story-title {
    font-size: 1.5rem;
    color: #ffdab9;
    margin-bottom: 10px;
}

/* Опис історії */
.vintage-map__story-description {
    font-size: 1rem;
    color: #eee;
    margin-bottom: 15px;
}

/* Фото в історіях */
.vintage-map__story-image {
    width: 70%;
    max-height: 319px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vintage-map__story-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}


.maplibregl-popup-content {
    background-color: var(--primary-white);
    color: var(--primary-black);
    border-left: 5px solid var(--primary-gold);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.4;
}
.maplibregl-popup-content a {
    color: var(--primary-green);
    font-weight: bold;
    text-decoration: underline;
}

/* Загальні стилі футера */
.footer {
    background: var(--primary-green);
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
}

.footer__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer__left,
.footer__center,
.footer__right {
    flex: 1;
    min-width: 250px;
    text-align: center;
    margin: 10px 0;
}

/* Контактна інформація */
.footer__contact {
    margin: 5px 0;
    font-size: 16px;
}

.footer__contact i {
    margin-right: 8px;
    color: #ffffff; /* Золотистий колір */
}

/* Стилі для клікабельних елементів */
.footer__link {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer__link:hover {
    color: var(--primary-gold);
}

/* Стилі для соціальних іконок у футері */
.footer__social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.footer__social-link {
    font-size: 1.0625em; /* Розмір шрифту, як у хедері */
    color: var(--primary-white);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer__social-link:hover {
    transform: scale(1.2);
}

/* Кольори при наведенні (як у хедері) */
.footer__social-link--facebook:hover {
    color: rgb(38, 66, 166);
}

.footer__social-link--instagram:hover {
    background-image: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    background-clip: text;
}

.footer__social-link--telegram:hover {
    color: rgb(22, 54, 170);
}

.footer__social-link--email:hover {
    color: var(--primary-gold);
}

/* Копірайт */
.footer__text {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}


@media (max-width: 1024px) {
    .header__nav {
        gap: 50px;
    }

    .hero__title {
        font-size: 2.5em;
        padding: 0 9px;
    }

    .hero__subtitle {
        font-size: 1.2em;
    }

    .hero__cta-button {
        font-size: 1em;
        padding: 12px 24px;
    }
    
    .about-parishes {
        padding: 80px 20px;
        height: 100vh;
    }

    .about-parishes__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-parishes__content {
        max-width: 90%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .about-parishes__title {
        font-size: 32px;
        text-align: center;
    }

    .about-parishes__image-container {
        gap: 20px;
    }

    .about-parishes__image {
        width: 300px;
        height: 480px;
    }

    .about-parishes__buttons {
        justify-content: center;
    }
    
    .gallery__title {
        font-size: 2.2rem;
    }

    .gallery-item {
        width: 280px;

    }
    
    
    .vintage-map__container {
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 30px;
    }

    .vintage-map__map-wrapper,
    .vintage-map__stories {
        width: 100%;
        height: auto;
    }

    .vintage-map__stories {
        max-height: none;
        height: 40%;
        width: 80%;
        padding: 16px;
    }

    .vintage-map__map {
        height: 400px;
    }
}

@media (max-width: 991.98px) {
    .header__container {
        grid-template-columns: auto 1fr auto;
        gap: 24px;
    }

    .header__burger {
        display: flex;
    }

    .header__nav {
        flex-direction: column;
        align-items: center;
        background-color: var(--primary-green);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        padding: 20px;
    }

    .header__nav.header__nav--active {
        display: flex;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .header__container {
        grid-template-columns: 1fr auto;
        justify-content: space-between;
        gap: 0;
    }

    .header__logo {
        justify-content: center;
        display: flex;
        width: 100%;
    }

    .header__logo-link {
        display: block;
        margin: 0 20px 0 40px;
    }

    .header__burger {
        display: flex;
        justify-self: end;
    }
    
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background:
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
            url('/img/holy_tr.webp') no-repeat center center / cover;
        padding: 0 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    
        transition:
            max-height 0.6s ease,
            padding 0.6s ease,
            gap 0.6s ease,
            opacity 0.4s ease,
            visibility 0.6s ease;
        
        z-index: 99;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }
    
    .header__nav--active {
        max-height: 500px; /* або більше, якщо у тебе більше пунктів */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 30px 0;
        gap: 20px;
    }

    .about-parishes__container {
        flex-direction: column;
        align-items: center;
    }

    .about-parishes__content {
        max-width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .about-parishes__title {
        font-size: 28px;
    }

    .about-parishes__description {
        width: 88%;
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .about-parishes__image-container {
        justify-content: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .timetable {
        padding: 60px 20px;
        height: auto;
    }

    .timetable__title {
        font-size: 2em;
    }

    .timetable__subtitle {
        font-size: 1.1em;
    }

    .timetable__card {
        padding: 24px;
    }

    .timetable__row {
        padding: 12px 16px;
        font-size: 0.95em;
    }
    
    .services {
        padding: 50px 15px;
    }

    .services__title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .services__grid {
        gap: 24px;
        padding: 0 5px;
    }

    .services__item {
        padding: 20px 16px;
    }

    .services__item h3 {
        font-size: 1.3em;
    }

    .services__item p {
        font-size: 0.95em;
    }

    .services__icon {
        width: 60px;
        margin-left: 8px;
        margin-bottom: 20px;
    }
    
    .footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__left,
    .footer__center,
    .footer__right {
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .footer__social {
        flex-wrap: wrap;
        gap: 10px;
    }
    
}

@media (max-width: 767.98px) {
    .header__container {
        grid-template-columns: 1fr auto;
        justify-content: space-between;
    }

    .header__logo {
        justify-content: center;
    }
    
    
}

@media (max-width: 768px) {

    .hero {
        padding: 70px 16px;
    }

    .hero__title {
        font-size: 2em;
    }

    .hero__subtitle {
        font-size: 1.05em;
    }

    .hero__cta-button {
        font-size: 0.95em;
        padding: 12px 20px;
    }

    .about-parishes__container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0px;
    }

    .about-parishes__content {
        text-align: center;
        padding-top: 90px;
    }
    
    .about-parishes__image {
        display: none;
    }

    .timetable__inner {
        padding: 0 10px;
    }

    .timetable__title {
        font-size: 1.8em;
    }

    .timetable__subtitle {
        font-size: 1em;
    }

    .timetable__card {
        padding: 20px;
    }

    .timetable__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .timetable__row div {
        width: 100%;
    }

    .timetable__row::before {
        display: none;
    }
    
    .services {
        padding: 40px 10px;
    }

    .services__title {
        font-size: 1.8em;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services__item {
        padding: 18px 14px;
    }

    .services__item h3 {
        font-size: 1.2em;
    }

    .services__item p {
        font-size: 0.9em;
    }

    .services__icon {
        width: 55px;
        margin-left: 4px;
        margin-bottom: 18px;
    }
    
    
    .gallery__title {
        font-size: 2rem;
        margin-bottom: 1.5em;
    }

    .gallery-item {
        width: 240px;

    }
    
    .vintage-map {
        padding: 80px 0px;
        height: auto;
    }

    .vintage-map__hint {
        font-size: 13px;
        padding: 6px 12px;
    }

    .vintage-map__story-title {
        font-size: 1.3rem;
    }

    .vintage-map__story-description {
        font-size: 0.95rem;
    }

    .vintage-map__story-image {
        max-height: 180px;
    }

    .vintage-map__button {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .about-parishes {
        padding: 60px 15px;
    }

    .about-parishes__title {
        font-size: 24px;
    }

    .about-parishes__description {
        font-size: 14px;
    }

    .about-parishes__button {
        width: 80%;
        text-align: center;
        justify-content: center;
    }
    
    .footer {
        padding: 30px 10px;
    }

    .footer__contact {
        font-size: 15px;
    }

    .footer__text {
        font-size: 13px;
    }

    .footer__social-link {
        font-size: 1em;
    }

}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0px;
    }
    
    .hero__container {
        padding: 10px 10px 40%;
    }


    .hero__subtitle {
        font-size: 0.95em;
    }

    .hero__cta-button {
        font-size: 0.9em;
        padding: 15px 18px;
    }
    
    .about-parishes {
        padding: 40px 10px;
        height: 115vh;
    }

    .about-parishes__title {
        font-size: 24px;
    }

    .about-parishes__description {
        font-size: 15px;
    }

    .about-parishes__buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-parishes__button {
        width: 75%;
        text-align: center;
        padding: 12px 20px;
    }

    
    
    .timetable {
        padding: 40px 10px;
    }

    .timetable__title {
        font-size: 1.6em;
    }

    .timetable__subtitle {
        font-size: 0.95em;
    }

    .timetable__card {
        padding: 16px;
    }

    .timetable__row {
        font-size: 0.9em;
        padding: 10px 14px;
    }

    .timetable__row div:first-child {
        font-size: 1em;
    }

    .timetable__day,
    .timetable__date {
        font-size: 1.1em;
    }
    
    .services {
        padding: 30px 20px;
    }

    .services__title {
        font-size: 1.6em;
        margin-bottom: 25px;
    }

    .services__item {
        padding: 13px 21px;
    }

    .services__item h3 {
        font-size: 1.1em;
    }

    .services__item p {
        font-size: 0.85em;
    }

    .services__icon {
        width: 50px;
        margin-left: 0;
        margin-bottom: 16px;
    }
    
    .gallery__title {
        font-size: 1.8rem;
    }

    .gallery-item {
        width: 200px;
    }

    .gallery {
        padding: 60px 10px;
    }
    
    .vintage-map__map {
        height: 300px;
    }

    .vintage-map__story-title {
        font-size: 1.2rem;
    }

    .vintage-map__story-description {
        font-size: 0.9rem;
    }

    .vintage-map__story-image {
        max-height: 160px;
    }

    .vintage-map__button {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .maplibregl-popup-content {
        font-size: 0.85rem;
        padding: 12px 16px;
    }
}

@media (max-width: 360px) {



    .hero__subtitle {
        font-size: 0.85em;
    }

    .hero__cta-button {
        font-size: 0.85em;
        padding: 8px 16px;
    }
}