:root {
    --main-color: #000000;
    --color-gold: #BC984B;
    --form-border-color: #858585;
    --input-bg-color: #e3e3e3;
    --disabled-text-color: #979797;
    --disabled-bg-color: #DADADA;
    --light-gray-bg: #E8E7E7;
    --beige-secondary-color: #DED5CD;
    --header-color: #090805;

    --bs-body-color: var(--main-color);
    --bs-form-invalid-color: #dc3545;
    --bs-form-invalid-border-color: #dc3545;
    --bs-form-valid-color: #198754;
    --bs-form-valid-border-color: #198754;
    --bs-body-line-height: 1.6;
}

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

body {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    background: #ffffff;
    color: var(--main-color);
    min-height: 100vh;
    overflow-x: hidden;
    word-break: break-word;
    display: flex;
    flex-direction: column;
}

/*body.contacts-page {
    padding-top: 90px;
}*/

.container {
    /*max-width: 1760px;*/
}

header {
    /*position: absolute;*/
    top: 0;
    width: 100%;
    z-index: 2;
    /*height: 90px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .top-bar {
    width: 100%;
    background: #DED5CD;
    height: 60px;
    margin-bottom: -13px;
    display: flex;
    align-items: center;
    color: var(--color-gold);
}

/*.contacts-page header,*/
.home-page header {
    position: absolute;
    padding-top: 47px;
}

/*.contacts-page header {
    padding-bottom: 24px;
    background: #000000;
}*/

/*.contacts-page header .top-bar,*/
.home-page header .top-bar {
    display: none;
}

header .logo-area {
    z-index: 2;
}

header .navbar-nav {
    gap: 3rem;
}

header .nav-menu::before {
    content: "";
    position: absolute;
    left: 0;
    height: 16px;
    width: 100%;
    background: var(--header-color);
    z-index: 0;
}

header .nav-item {
    z-index: 1;
}

header .navbar-nav,
header .navbar-nav .dropdown-menu {
    --bs-nav-link-color: var(--color-gold);
    --bs-nav-link-hover-color: var(--color-gold);
    --bs-navbar-active-color: var(--color-gold);
    --bs-dropdown-link-color: var(--main-color);
    --bs-dropdown-link-hover-color: var(--color-gold);
    --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-min-width: 0px;
    margin-top: 0;
    background: linear-gradient(180deg, rgba(222, 213, 205, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

header .navbar-nav .dropdown-menu.top-submenu {
    width: 100%;
    left: 12px !important;
    top: 29px;
    background: rgba(222, 213, 205, 0.9);
    padding-block: 38px;
}

.home-page header .navbar-nav .dropdown-menu.top-submenu {
    top: 48px;
    background: rgba(0, 0, 0, 0.5);

}

header .navbar-nav .top-submenu .dropdown-item {
    white-space: normal;
}

.navbar-toggler {
    z-index: 2;
    padding: 0;
    box-shadow: none !important;
}

.navbar-toggler.collapsed .navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url('../img/navbar-toggler-icon.svg');
    display: block;
    width: 12px;
    height: 10px;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url('../img/close-icon.svg');
    display: block;
    width: 12px;
    height: 10px;
}

.home-page header .navbar-nav,
.home-page header .navbar-nav .dropdown-menu {
    --bs-dropdown-link-color: var(--color-gold);
}

header .navbar-nav .dropdown-menu li {
    margin-bottom: 18px;
}

header .navbar-nav .dropdown-menu li:last-child {
    margin-bottom: 0px;
}

header .navbar-nav .dropdown-item,
header .navbar-nav .nav-link {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    padding: 0 !important;
    background: transparent;
    --bs-nav-link-color: var(--color-gold);
    --bs-dropdown-link-active-color: var(--color-gold);
}

.dropdown.without-arrow .dropdown-toggle::after {
    display: none;
}

header .dropdown-menu {
    background: #DED5CD;
    border-radius: 0;
    border: none;
    padding: 16px 12px;
    transform: matrix(1, 0, 0, 1, -12, 0);
}

/*.contacts-page header .dropdown-menu,*/
.home-page header .dropdown-menu {
    background: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 80%, rgba(255, 255, 255, 0) 100%)
}

.color-gold,
.link-gold,
a.link-gold {
    color: var(--color-gold);
}

.link-gold:hover,
a.link-gold:hover {
    color: var(--color-gold);
}

.link-white,
a.link-white {
    color: #ffffff;
}

.link-white:hover,
a.link-white:hover {
    color: #ffffff;
}

.color-white {
    color: #ffffff;
}

.color-main {
    color: var(--main-color);
}

.light-gray-bg {
    background-color: var(--light-gray-bg);
}

.beige-bg {
    background-color: var(--beige-secondary-color);
}

.font-size-12 {
    font-size: 12px;
}

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

.font-size-16 {
    font-size: 16px;
}

.font-size-18 {
    font-size: 18px;
}

.font-size-20 {
    font-size: 20px;
}

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

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

.line-height-24 {
    line-height: 24px;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.cover-img-box {
    position: relative;
}

.cover-img {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contain-img {
    position: absolute;
    object-fit: contain;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.min-h-200 {
    min-height: 200px;
}

.min-h-360 {
    min-height: 360px;
}

.gold-hr {
    color: var(--color-gold);
    opacity: 1;
}

.subscribe-wrap {
    background: #ffffff;
}

.form-floating-cs > .form-control {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--form-border-color);
    padding: 0 .15rem;
    height: 36px;
    min-height: 36px;
    font-size: 12px;
    --bs-form-valid-border-color: var(--form-border-color);
}

.form-floating-cs > label {
    padding: 0;
    display: flex;
    align-items: center;
}

.contact-form .form-control {
    padding: 16px;
    font-size: 14px;
}

.form-control-cs:focus,
.form-control-cs {
    box-shadow: none !important;
    background-image: none !important;
    background-color: var(--input-bg-color);
    border-color: var(--input-bg-color);
    border-radius: 0;
}

.contact-form button {
    min-width: 280px;
}

.btn {
    box-shadow: none !important;
}

.btn-cs {
    --bs-btn-padding-x: 1.5rem;
    border-radius: 0;
    height: 38px;
}

.btn-dark {
    --bs-btn-color: var(--color-gold);
    --bs-btn-bg: #000000;
    --bs-btn-border-color: #000000;

    --bs-btn-hover-color: var(--color-gold);
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: var(--color-gold);

    --bs-btn-active-color: var(--color-gold);
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: var(--color-gold);

    --bs-btn-disabled-color: var(--disabled-text-color);
    --bs-btn-disabled-bg: var(--disabled-bg-color);
    --bs-btn-disabled-border-color: var(--disabled-bg-color);
}

.btn-gold {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--color-gold);
    --bs-btn-border-color: var(--color-gold);

    --bs-btn-hover-color: var(--color-gold);
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: var(--color-gold);

    --bs-btn-active-color: var(--color-gold);
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: var(--color-gold);

    --bs-btn-disabled-color: var(--disabled-text-color);
    --bs-btn-disabled-bg: var(--disabled-bg-color);
    --bs-btn-disabled-border-color: var(--disabled-bg-color);
}

.btn-transparent {
    --bs-btn-color: var(--color-gold);
    --bs-btn-bg: rgba(255, 255, 255, 0.7);
    --bs-btn-border-color: rgba(255, 255, 255, 0.7);

    --bs-btn-hover-color: var(--color-gold);
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: var(--color-gold);

    --bs-btn-active-color: var(--color-gold);
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: var(--color-gold);

    --bs-btn-disabled-color: var(--disabled-text-color);
    --bs-btn-disabled-bg: var(--disabled-bg-color);
    --bs-btn-disabled-border-color: var(--disabled-bg-color);
}

/*******************************
********** BTN LOADER ***********
********************************/
.loader-in-btn,
.loader-in-btn:before,
.loader-in-btn:after {
    background: var(--disabled-text-color);
    -webkit-animation: load1 1s infinite ease-in-out;
    animation: load1 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}

.loader-in-btn {
    color: var(--disabled-text-color);
    text-indent: -9999em;
    position: absolute;
    font-size: 4px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -.16s;
    animation-delay: -.16s;
    left: 0;
    right: 0;
    top: 50%;
    margin: -1.5em auto 0 auto;
    visibility: hidden;
    opacity: 0;

    -webkit-transition: opacity .15s ease-out;
    transition: opacity .15s ease-out;
}

.btn-loader {
    position: relative;
}

.btn-loader.loading .loader-in-btn {
    visibility: visible;
    opacity: 1;
}

.btn-loader.loading .btn-label {
    visibility: hidden;
    opacity: 0;
}

.loader-in-btn:before,
.loader-in-btn:after {
    position: absolute;
    top: 0;
    content: '';
}

.loader-in-btn:before {
    left: -1.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.loader-in-btn:after {
    left: 1.5em;
}

@-webkit-keyframes load1 {
    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }
    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

@keyframes load1 {
    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }
    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

.heritage-item {
    position: relative;
}

.absolute-title,
.heritage-item .product-title,
.product-slider-item .product-title {
    position: absolute;
    bottom: 48px;
    text-align: center;
    width: 100%;
}

.owl-carousel .absolute-title {
    bottom: 102px;
    z-index: 1;
}

.heritage-item .product-title a,
.product-slider-item .product-title a {
    display: inline-block;
    min-width: 80%;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Убираем черные полосы - масштабируем видео чтобы заполнить контейнер */
.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 177.77vh; /* 16:9 aspect ratio для высоты */
    min-height: 56.25vw; /* 16:9 aspect ratio для ширины */
    pointer-events: none;
}
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 177.77vh; /* 16:9 aspect ratio для высоты */
    min-height: 56.25vw; /* 16:9 aspect ratio для ширины */
    pointer-events: none;
}

#productView .video-background {
    z-index: 0;
    overflow: hidden;
}

#productView .video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* чтобы не кликалось */
}

.slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

.y-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

button.collapsed .more {
    display: block;
}

button.collapsed .less {
    display: none;
}

button:not(.collapsed) .more {
    display: none;
}

button:not(.collapsed) .less {
    display: block;
}

.min-w-200 {
    min-width: 200px;
}

.min-w-252 {
    min-width: 252px;
}

.min-w-260 {
    min-width: 260px;
}

.min-w-280 {
    min-width: 280px;
}

.partners-info-content {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
}

.partner-block {
    background: rgba(255, 255, 255, 0.6);
}

.contact-page {
    /*background: #000000;*/
    /*padding-top: 90px;*/
}

.box-with-shadow,
.gift-item {
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.limited-item {
    position: relative;
}

.limited-item .button-wrap {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

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

.photo-grid .large {
    grid-row: 1 / span 2;
    grid-column: 1;
}

.heritage-item-view {
    position: relative;
}

.heritage-item-view .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 100%;
}

.to-top-btn {
    display: none;
    position: fixed;
    right: 2.5%;
    bottom: 80px;
    width: 24px;
    height: 24px;
    /*background-color: rgba(0, 0, 0, 0.7);*/
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.1s ease;
    text-decoration: none;
    background-image: url("../img/icon-arrow-up.svg");
    background-repeat: no-repeat;
    background-position: center center;
}

.product-view-modal .modal-content {
    border-radius: 0;
}

.product-view-modal .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.owl-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    gap: 16px;
}

.owl-nav button span {
    font-size: 0;
    width: 24px;
    height: 24px;
    display: block;
}

.owl-nav .owl-prev span {
    background: url("../img/icon-arrow-left.svg") no-repeat center center;
}

.owl-nav .owl-next span {
    background: url("../img/icon-arrow-right.svg") no-repeat center center;
}

.owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-dots button {
    margin: 23px 8px
}

.owl-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(243, 243, 243, 1);
    display: block;
}

.owl-dots .active span {
    background: rgba(208, 208, 208, 1);
}

.bd-form-container {
    position: fixed;
    width: 100%;
    height: 100%;
    background: url("../img/bd-form-bg.jpg") no-repeat center center;
    background-size: cover;
    top: 0;
    left: 0;
    z-index: 1050;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.year-input {
    background-image: none !important;
    background-color: transparent !important;
    border-color: transparent !important;
    border-radius: 0;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15) !important;
    text-align: center;
    color: var(--color-gold) !important;
    font-size: 24px;
    font-weight: 500;
    padding: .375rem .75rem !important;
}

.year-input::placeholder {
    color: rgba(188, 152, 75, 0.3) !important;
}

.year-input.is-invalid,
.was-validated .year-input:invalid {
    border-color: var(--bs-form-invalid-border-color) !important;
}

.selected-lang {
    background: #ffffff;
    color: var(--color-gold) !important;
    border: 1px solid var(--color-gold);
    height: 38px;
}

.selected-lang::after {
    border: none;
    width: 24px;
    height: 24px;
    background: url("../img/icon-arrow-down.svg") no-repeat center center;
    position: absolute;
    margin-left: 90px;
}

.lag-form .dropdown-menu {
    width: 100%;
    border-color: var(--color-gold);
    text-align: center;
    border-radius: 0;
}

.lag-form .dropdown-menu a {
    color: var(--color-gold) !important;
}

footer {
    background: #000000;
    padding-block: 1.5rem;
    margin-top: auto;
}

.footer-social {
    gap: 24px;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .font-size-md-14 {
        font-size: 14px;
    }

    .font-size-md-18 {
        font-size: 18px;
    }

    .font-size-md-20 {
        font-size: 20px;
    }

    .font-size-md-24 {
        font-size: 24px;
    }

    .font-size-md-28 {
        font-size: 28px;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }

    .left-image-position {
        margin-left: calc((-100vw + 960px - 24px)/2);
    }

    .right-image-position {
        margin-right: calc((-100vw + 960px - 24px)/2);
    }
}

@media (min-width: 1200px) {
    .left-image-position {
        margin-left: calc((-100vw + 1140px - 24px)/2);
    }

    .right-image-position {
        margin-right: calc((-100vw + 1140px - 24px)/2);
    }
}

@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 90%;
    }

    .left-image-position {
        margin-left: calc(-5vw - 12px);
    }

    .right-image-position {
        margin-right: calc(-5vw - 12px);
    }
}

@media (min-width: 1750px) {
    /* default .col-3xl: behave like .col (flexible equal-width) */
    .col-3xl {
        flex: 1 0 0%;
        max-width: 100%;
    }

    /* auto width column */
    .col-3xl-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

    /* 1..12 columns (percentage widths based on 12-grid) */
    /* generate widths: n/12*100% */
    .col-3xl-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-3xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-3xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-3xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-3xl-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-3xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-3xl-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-3xl-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-3xl-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-3xl-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-3xl-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-3xl-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Offsets (margin-left offsets by column count) */
    .offset-3xl-0 {
        margin-left: 0;
    }

    .offset-3xl-1 {
        margin-left: 8.333333%;
    }

    .offset-3xl-2 {
        margin-left: 16.666667%;
    }

    .offset-3xl-3 {
        margin-left: 25%;
    }

    .offset-3xl-4 {
        margin-left: 33.333333%;
    }

    .offset-3xl-5 {
        margin-left: 41.666667%;
    }

    .offset-3xl-6 {
        margin-left: 50%;
    }

    .offset-3xl-7 {
        margin-left: 58.333333%;
    }

    .offset-3xl-8 {
        margin-left: 66.666667%;
    }

    .offset-3xl-9 {
        margin-left: 75%;
    }

    .offset-3xl-10 {
        margin-left: 83.333333%;
    }

    .offset-3xl-11 {
        margin-left: 91.666667%;
    }

    /* Ordering helpers (simple set for common cases) */
    .order-3xl-first {
        order: -1;
    }

    .order-3xl-0 {
        order: 0;
    }

    .order-3xl-1 {
        order: 1;
    }

    .order-3xl-2 {
        order: 2;
    }

    .order-3xl-3 {
        order: 3;
    }

    .order-3xl-last {
        order: 9999;
    }
}

@media (max-width: 991px) {
    header .navbar-nav {
        background: transparent;
    }

    header.active-menu {
        background: var(--header-color);
    }

    header {
        padding-top: 16px !important;
    }

    header .top-bar {
        display: none !important;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: absolute;
    }
}

@media (max-width: 767px) {
    .selected-lang,
    .btn-cs {
        height: 32px;
    }

    header .navbar-nav {
        gap: 1.5rem;
    }

    .absolute-title,
    .heritage-item .product-title,
    .product-slider-item .product-title {
        bottom: 24px;
    }

    .owl-carousel + .absolute-title {
        bottom: 78px;
        z-index: 1;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 16px;
    }

    .photo-grid .large {
        grid-column: 1 / -1;
    }
}