*,
*::before,
*::after {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

body,
html {
    font-size: 15px;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

body {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.fade-item {
    opacity: 0;
    transform: scale(0.9) translateZ(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.fade-item.visible {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.page-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 2s ease;
    background: url(/img/backgrounds/logoBg.webp) center center no-repeat;
    background-size: cover;
}

.page-loader video {
    width: 60%;
    max-width: 400px;
}

.loader-message {
    position: absolute;
    bottom: 20px;
    text-align: center;
    color: rgb(250, 250, 240);
    font-size: 1rem;
    opacity: 0.8;
}

.websitebackground {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: background-image 0.3s ease-in-out;
}

/*Header*/
.smartheader {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    opacity: 0;
    color: #fff;
    z-index: 1000;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.4);
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
}

body.loaded .smartheader {
    animation: slideInsmartheader 1.2s ease forwards;
    animation-delay: 2s;
}

@keyframes slideInsmartheader {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.sh-logo {
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
}

.sh-menu {
    display: flex;
    gap: 25px;
}

.sh-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    padding: 6px 10px;
    border-radius: 50px;
    transition: background-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
}

.sh-menu a:hover,
.sh-menu a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #eee;
    outline: none;
}

.lang-menu {
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

#lang-toggle {
    font-weight: 500;
    font-size: 1.5rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

#lang-toggle:hover,
#lang-toggle:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #eee;
    outline: none;
}

@media (max-width: 768px) {
    .smartheader {
        padding: 10px 20px;
    }

    .sh-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 240px;
        /* чуть шире для комфорта */
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 30px 20px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.75);
        z-index: 1050;
        opacity: 0;
        align-items: center;
        /* центровка по горизонтали */
        justify-content: flex-start;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }

    .sh-menu::-webkit-scrollbar {
        width: 6px;
    }

    .sh-menu::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .sh-menu.active {
        right: 0;
        opacity: 1;
    }

    .sh-menu a {
        font-size: 1.4rem;
        padding: 12px 20px;
        text-align: center;
        width: 100%;
        border-radius: 8px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .sh-menu a:hover,
    .sh-menu a:focus {
        background-color: rgba(255, 255, 255, 0.15);
        color: #fff;
        outline: none;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 22px;
        cursor: pointer;
        z-index: 1100;
    }

    .burger span {
        display: block;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .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);
    }

    .lang-menu {
        margin-top: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/*Modal Window*/
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    font-family: 'Montserrat', sans-serif;
}

.modal-content {
    background: #fff;
    color: #333;
    padding: 24px 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-title,
.modal-title2 {
    font-size: 24px;
    font-weight: bold;
    margin: 24px 0 16px;
    text-align: center;
}

.modal-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 14px;
    background-color: #f3f4f6;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
    background-color: #e5e7eb;
    outline: none;
}

.modal-form textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-form button {
    background: linear-gradient(to right, #6366f1, #3b82f6);
    color: #fff;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-form button:hover {
    transform: translateY(-2px);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #111;
}

.thank-you-message {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    color: #22c55e;
    text-align: center;
    font-weight: 600;
}

.modal-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
}

.modal-links a img {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.modal-links a img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/*Container 1*/
.container1 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    padding: 0;
    background: none;
}

.container1-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    max-width: 1400px;
    padding: 40px;
    position: relative;
    cursor: default;
}

.text-line {
    font-family: 'Inika', sans-serif;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: block;
    opacity: 0;
    will-change: transform, opacity;
}

body.loaded .text-line.text-left {
    text-align: left;
    font-size: clamp(2rem, 7vw, 8rem);
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    animation: slideInleft 1.5s forwards;
    animation-delay: 0.3s;
}

body.loaded .text-line.text-right {
    text-align: left;
    font-size: clamp(2rem, 12vw, 14rem);
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: white 3px;
    animation: slideInright 1.5s forwards;
    animation-delay: 0.6s;
}

body.loaded .text-subtitle {
    font-family: 'Lobster', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    color: white;
    margin-top: 1rem;
    text-align: left;
    white-space: pre-line;
    animation: slideInsub 1.5s forwards;
    animation-delay: 0.9s;
}

.text-subtitle {
    opacity: 0;
}

body.loaded .cont1-btn {
    position: absolute;
    right: 40px;
    bottom: 10px;
    animation: fadeInbtn 1s forwards;
    animation-delay: 1.2s;
}

.cont1-btn {
    will-change: opacity;
    opacity: 0;
}

.cont1-btn button {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    font-weight: 600;
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.cont1-btn button:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes slideInleft {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInright {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInsub {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInbtn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*Container 2 - MAP*/
.container2 {
    min-height: 100vh;
    margin-top: -3rem;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
}

.cont2-title {
    position: relative;
    left: 10%;
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Inika', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    user-select: none;
    z-index: 1;
    max-width: 37%;
}

.container2-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.interactionMap {
    position: relative;
    width: clamp(300px, 60vw, 800px);
    aspect-ratio: 3 / 4;
    margin: 0 auto;
}

.region-image {
    position: absolute;
    width: auto;
    height: auto;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.region-image.ulster {
    top: 0%;
    left: 55%;
    transform: translate(-50%, 0%);
}

.region-image.leinster {
    top: 24%;
    left: 56.5%;
    transform: translate(-50%, 0%);
}

.region-image.connacht {
    top: 17%;
    left: 29%;
    transform: translate(-50%, 0%);
}

.region-image.munster {
    top: 41%;
    left: 31%;
    transform: translate(-50%, 0%);
}

.region-image.ulster:hover,
.region-image.leinster:hover,
.region-image.connacht:hover,
.region-image.munster:hover {
    transform: translate(-50%, 0%) scale(1.05);
    z-index: 3;
}

.region-image.dimmed {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.region-image:hover {
    transform: translate(-50%, 0%) scale(1.1);
    opacity: 1 !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.munster-style {
    background-color: #ffe9e3;
    color: #5a2c2c;
}

.leinster-style {
    background-color: #e3f3ff;
    color: #1a3d5d;
}

.connacht-style {
    background-color: #e9ffe3;
    color: #2d5a2c;
}

.ulster-style {
    background-color: #f3e3ff;
    color: #4b2c5a;
}

/*Container 3*/
.container3 {
    margin-top: -8rem;
    margin-bottom: 4rem;
}

.cont3-title {
    position: relative;
    left: 10%;
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Inika', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
    user-select: none;
    z-index: 1;
    max-width: 25%;
}

.tours-layout {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
    flex-wrap: wrap;
}

.tour-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.tour-card:not(.large):hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.tour-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tour-card.large img {
    height: 280px;
}

.tour-card.large {
    flex: 7;
}

.side-cards {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info {
    padding: 1rem 1.2rem;
    color: white;
    font-family: 'Inika', serif;
}

.info h3 {
    font-size: 1.5rem;
    margin: 0 0 0.4rem;
}

.info p {
    font-size: 1rem;
    margin: 0.2rem 0;
    opacity: 0.9;
}

.book-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    background-color: #b8ffc4;
    color: #0b2e18;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-btn:hover {
    background-color: #9aeaaa;
}

/* Анимация плавной смены */
.fade {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.fade.out {
    opacity: 0;
}

@media (max-width: 768px) {
    .tours-layout {
        flex-direction: column;
    }

    .tour-card.large img {
        height: 200px;
    }
}

.cont3-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inika', serif;
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem;
    user-select: none;
    gap: 1rem;
}

.switch-btn {
    cursor: pointer;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.switch-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/*Footer*/
.smartfooter {
    width: 80%;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    color: #fff;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.footer-left {
    font-weight: 700;
    font-size: 1.2rem;
    user-select: none;
}

.footer-right {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-right a:hover {
    opacity: 0.8;
}

.footer-bottom-text {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.8;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.4);
}

