:root {
    --white: #ffffff;
    --gold: #f6bf64;
    --black: #000000;
    --header-h: 140px;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--white);
    background: var(--black);
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.container {
    width: min(1360px, 94vw);
    margin-inline: auto;
}

/* Header */
.site-header {
    background: var(--black);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--header-h);
}

.site-header__left {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.logo__img {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.site-header__divider {
    width: 1px;
    height: 72px;
    background: rgba(255, 255, 255, 0.35);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.85rem, 1.8vw, 1.75rem);
}

.nav__link {
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav__link--active::after,
.nav__link:hover::after {
    transform: scaleX(1);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(280px, 32vw);
    padding: 0.6rem 1.15rem;
    border: 1.5px solid var(--gold);
    border-radius: 999px;
}

.search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.8rem;
    color: var(--white);
}

.search__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.search__btn {
    display: flex;
    color: var(--gold);
}

.cart {
    position: relative;
    display: flex;
}

.cart__badge {
    position: absolute;
    top: -5px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--black);
    background: var(--gold);
    border-radius: 999px;
}

/* Hero slider */
.hero-slider {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    overflow: hidden;
    background: var(--black);
}

.hero-slider__slides {
    position: relative;
    min-height: calc(100vh - var(--header-h));
}

.hero-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background-color: var(--black);
    background-image: var(--hero-bg);
    background-repeat: no-repeat;
    background-position: 72% center;
    background-size: cover;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide--zoom-out {
    background-size: 78% auto;
    background-position: 82% center;
}

.hero__inner {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    padding: 3rem 0 5rem;
}

.hero__content {
    max-width: 560px;
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero__line {
    display: block;
    width: 72px;
    height: 2px;
    margin: 1.5rem 0 1.35rem;
    background: var(--gold);
}

.hero__text {
    margin: 0 0 2.25rem;
    max-width: 36ch;
    line-height: 1.7;
}

.btn-hero {
    display: inline-block;
    padding: 0.95rem 2.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 999px;
}

.btn-hero:hover {
    background: transparent;
    color: var(--gold);
}

.hero__dots {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7rem;
}

.hero__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero__dot--active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.15);
}

/* Error page */
.error-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
}

.error-page__inner {
    text-align: center;
    padding: 4rem 0;
}

.error-page__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--gold);
}

.error-page__text {
    margin: 0 0 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 960px) {
    .site-header__divider,
    .nav {
        display: none;
    }

    .site-header__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 0;
    }

    .hero__inner {
        justify-content: center;
        text-align: center;
    }

    .hero__line {
        margin-inline: auto;
    }

    .hero__text {
        margin-inline: auto;
    }

    .hero-slide {
        background-position: 75% center;
        background-size: cover;
    }

    .hero-slide--zoom-out {
        background-size: 90% auto;
        background-position: center center;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 200px;
    }

    .search {
        width: 100%;
    }

    .site-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero-slider,
    .hero-slider__slides {
        min-height: 480px;
        min-height: calc(100vh - var(--header-h));
    }

    .hero-slide {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: none;
        min-height: calc(100vh - var(--header-h));
    }

    .hero-slide.is-active {
        display: block;
    }

    .hero__inner {
        min-height: calc(100vh - var(--header-h));
        padding: 2rem 0 4.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 640px) {
        .hero-slider,
        .hero-slider__slides,
        .hero-slide,
        .hero__inner {
            min-height: calc(100dvh - var(--header-h));
        }
    }
}
