/* ===========================
   Root Variables
=========================== */
:root {
    --primary-font: 'Playfair Display', serif;
    --secondary-font: 'Josefin Sans', sans-serif;
    --primary-color: #f4eed1;
    --background-dark: #000;
    --text-dark: #272727;
}

/* ===========================
   Base Reset
=========================== */
* {
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    min-height: 100%;
    font-family: var(--secondary-font);
    background-color: var(--background-dark);
    color: var(--primary-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

a.link-light {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hide Scrollbar */
body::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* ===========================
   Typography
=========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--primary-font);
    color: var(--primary-color);
}

h1.display-1 {
    font-size: clamp(55px, 8vw, 96px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: clamp(4px, 1vw, 12px);
}

h2,
.heading-large {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 600;
    letter-spacing: clamp(2px, 0.5vw, 8px);
}

h5,
.heading-medium {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 500;
}

.subtitle {
    font-size: clamp(20px, 4vw, 28px);
    letter-spacing: clamp(4px, 1vw, 12px);
    font-family: var(--primary-font);
}

.year {
    font-size: clamp(24px, 4vw, 36px);
}

.group-heading {
    font-size: clamp(24px, 5vw, 40px);
}

.paragraph-large,
p,
li {
    font-size: clamp(18px, 3vw, 24px);
    font-family: var(--secondary-font);
    line-height: 1.8;
}

.paragraph-medium {
    font-size: clamp(17px, 2.5vw, 22px);
}

.contact-text {
    font-size: clamp(20px, 3vw, 24px);
}

/* ===========================
   HR Lines and Decorations
=========================== */
.line-star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1.5rem 0;
}

.hr-light {
    flex-grow: 1;
    height: 1px;
    background-color: var(--primary-color);
    border: none;
    opacity: 1;
}

.hr-black {
    flex-grow: 1;
    height: 1px;
    background-color: var(--text-dark);
    border: none;
    opacity: 1;
}

.custom-hr {
    width: 150px;
    height: 1px;
    background-color: var(--primary-color);
    border: none;
    opacity: 1;
    margin: 1rem auto;
}

.brand-underline {
    width: 75px;
    height: 1px;
    background-color: var(--primary-color);
    margin: 0.5rem auto;
}

.vertical-line {
    width: 2px;
    height: clamp(40px, 40px, 100px);
    background-color: var(--primary-color);
    margin: 2rem 0;
}

/* ===========================
   Images
=========================== */
.logo-icon {
    width: 150px;
}

.star-icon {
    width: 30px;
    height: 30px;
}

.img-90 {
    max-width: 90%;
}

.icon-fixed {
    max-width: 150px;
    max-height: 118px;
}

/* ===========================
   Background Sections
=========================== */
#first {
    background: url(../images/1.jpg) no-repeat center center/cover fixed;
    position: relative;
}

.hero {
    background: url(../images/2back.png) no-repeat center center/cover;
    position: relative;
}

.hero2 {
    background: url(../images/3back.png) no-repeat center center/cover;
    position: relative;
}

.hero3 {
    background: url(../images/4.jpg) no-repeat center center/cover fixed;
    position: relative;
}

.hero4 {
    background: url(../images/5back.png) no-repeat center center/cover;
    position: relative;
}

.hero5 {
    background-color: #272727;
    position: relative;
}

.hero6 {
    background: url(../images/9.jpg) no-repeat center center/cover fixed;
    height: 100vh;
    position: relative;
}

.hero7 {
    background-color: #c1bdba;
    position: relative;
}

.hero8 {
    background: url(../images/11.jpg) no-repeat center center/cover fixed;
    position: relative;
}

/* ===========================
   Lists
=========================== */
.ul-large {
    font-size: clamp(20px, 3vw, 26px);
    list-style-type: disc;
    padding-left: 1.5rem;
}

.ul-colored {
    font-size: clamp(20px, 3vw, 26px);
    color: var(--primary-color);
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* ===========================
   Extra Utilities
=========================== */
.text-black * {
    color: var(--text-dark);
}

.w-25 {
    width: 35%;
    /* Removed !important for better specificity */
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
    display: block;
}

.thumb {
    display: none;
}

.splide__slide {
    border-radius: 0.375rem;
}

.swiper-slide-active .overlay {
    display: none;
}

.swiper-slide-active .thumb {
    display: block;
}

.swiper-pagination-bullet-active {
    background-color: var(--text-dark) !important;
}

.swiper-slide {
    height: auto;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.splide__slide {
    aspect-ratio: 16 / 9;
    max-height: 360px;
}

.swiper-horology .swiper-slide,
.swiper-couture .swiper-slide {
    transform: scale(0.7);
    transition: transform 0.4s ease;
}

.swiper-horology .swiper-slide-active,
.swiper-couture .swiper-slide-active {
    transform: scale(1) !important;
    z-index: 10;
}

/* Внутри splide — одинаковый aspect-ratio */
.swiper-slide .zeyn .splide__slide {
    aspect-ratio: 9 / 16;
    width: 200px !important;
    max-width: 1500px;
    transition: height 0.4s ease;
}

.swiper-slide-prev .zeyn {
    transform: translateX(35%);
}

.swiper-slide-next .zeyn {
    transform: translateX(35%);
}

.zeyn {
    transition: transform 0.4s ease;
}

.swiper-slide-active .zeyn .splide__slide {
    aspect-ratio: 16 / 9 !important;
    height: 360px !important;
    width: 100% !important;
    transition: height 0.4s ease;
}


.brand-logo img {
    height: 100% !important;
    object-fit: contain !important;
}

.brand-logo {
    height: 90px !important;
}

@media (max-width: 1440px) {
    .swiper-slide {
        transform: scale(0.75);
    }

    .swiper-slide-active {
        transform: scale(1.05) !important;
    }

    .swiper-slide .zeyn .splide__slide {
        height: clamp(180px, 30vw, 280px) !important;
    }

    .swiper-slide-active .zeyn .splide__slide {
        height: clamp(240px, 40vw, 340px) !important;
    }

    .brand-logo {
        height: 80px !important;
    }
}

@media (max-width: 576px) {
    .swiper-slide {
        aspect-ratio: auto !important;
        height: auto !important;
    }

    .swiper-slide {
        transform: scale(0.7);
    }

    .swiper-slide-active {
        transform: none !important;
    }

    .brand-logo {
        height: 76px !important;
    }
}

.thumb .is-active {
    border: 2px solid var(--text-dark) !important;
}

.swiper,
.swiper-wrapper,
.swiper-slide {
    overflow: visible !important;
}

/* ===========================
   Media Queries
=========================== */
@media (max-width: 768px) {

    .swiper-slide {
        aspect-ratio: auto !important;
        height: auto !important;
    }

    .swiper-horology .swiper-slide,
    .swiper-couture .swiper-slide {
        transform: scale(0.75);
    }

    .swiper-slide-active {
        transform: scale(1) !important;
    }

    .swiper-slide-prev,
    .swiper-slide-next {
        transform: scale(0.85) !important;
    }

    .brand-label {
        font-size: 12px;
        padding: 3px 8px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }

}

@media (max-width: 576px) {
    .swiper-slide {
        aspect-ratio: 1 / 1;
        /* Square on very small screens */
    }

    .swiper-horology .swiper-slide,
    .swiper-couture .swiper-slide {
        transform: scale(0.9);
    }

    .swiper-slide-active {
        transform: none !important;
    }

    .swiper-slide-prev,
    .swiper-slide-next {
        display: none;
        /* Hide adjacent slides on mobile */
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 25px;
        height: 25px;
    }

    .parent-slider {
        height: 450px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .swiper-slide {
        aspect-ratio: auto !important;
        height: auto !important;
    }

    .swiper-horology .swiper-slide,
    .swiper-couture .swiper-slide {
        transform: scale(0.8);
    }

    .swiper-slide-active {
        transform: scale(1) !important;
    }

    .swiper-slide-prev,
    .swiper-slide-next {
        transform: scale(0.9);
    }

}

@media (min-width: 1200px) {
    .swiper-slide {
        aspect-ratio: auto !important;
        height: auto !important;
    }

    .swiper-horology .swiper-slide,
    .swiper-couture .swiper-slide {
        transform: scale(0.65);
    }

    .swiper-slide-active {
        transform: scale(1.1) !important;
    }

    .swiper-slide-prev,
    .swiper-slide-next {
        transform: scale(0.7);
    }

    .swiper-pagination {
        position: relative !important;
        margin-top: 50px !important;
    }
}

.swiper-slide {
    transition: transform 1s ease, height 2s ease;
}

.swiper-pagination {
    bottom: 10px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--text-dark);
}