/* Подключение шрифта Bodoni Nova */
@font-face {
    font-family: 'BodoniNova';
    src: url('../fonts/bodoninova/ABodoniNovaNr.eot');
    src: url('../fonts/bodoninova/ABodoniNovaNr.eot?#iefix') format('embedded-opentype'),
        url('../fonts/bodoninova/ABodoniNovaNr.woff2') format('woff2'),
        url('../fonts/bodoninova/ABodoniNovaNr.woff') format('woff'),
        url('../fonts/bodoninova/ABodoniNovaNr.ttf') format('truetype'),
        url('../fonts/bodoninova/ABodoniNovaNr.svg#ABodoniNovaNr') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Подключение шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    animation: heroZoomIn 20s ease-out infinite alternate;
}

/* Анимация медленного увеличения фонового изображения */
@keyframes heroZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 40px;
    padding-bottom: 40px;
    max-width: 800px;
}

.hero-title {
    font-family: 'BodoniNova', serif;
    font-weight: 400;
    font-size: 52px;
    line-height: 0.98;
    color: #F9F3E0;
    margin-bottom: 25px;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 175px;
    height: 42px;
    background-color: #811823;
    border-radius: 10px;
    text-decoration: none;
    padding: 0 23px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s, background-color 0.3s ease;
}

.hero-button.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-button.animate:hover {
    background-color: #a01d2b;
    transform: translateY(-2px);
}

.button-text {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: #F9F3E0;
}

.button-arrow {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-arrow svg {
    width: 15px;
    height: 15px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-content {
        padding-left: 60px;
    }

    .hero-title {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .hero-button {
        width: auto;
        height: 38px;
        padding: 0 20px;
    }

    .button-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.1;
        word-wrap: break-word;
    }

    .hero-button {
        width: auto;
        height: 36px;
    }
}

@media (max-width: 320px) {
    .hero-content {
        padding-left: 15px;
        padding-right: 15px;
        max-width: calc(100vw - 30px);
    }

    .hero-title {
        font-size: 28px;
    }
}

/* Capsule detail: override hero height */
.hero--capsule-detail {
    height: 720px;
}



@media (max-width: 768px) {
    .hero--capsule-detail .hero-overlay {
        background-color: rgba(0, 0, 0, 0.6) !important;
    }
}

.woocommerce-error::before, 
.woocommerce-info::before, 
.woocommerce-message::before {
    position: initial;
}
