@font-face {
    font-family: 'Candara';
    src: url('Candara.woff2') format('woff2'),
    url('Candara.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Candara", sans-serif;
    font-size: 18px;
}

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* тянем сайт на всю высоту */
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #6D2A22;
    color: #fff;
    z-index: 10;
}

.header-inner {
    padding: 20px 0;
    display: flex;
    justify-content: space-between; /* логотип слева, меню по центру, действия справа */
    align-items: center;
    gap: 20px;
    position: relative;
}

.empty_header {
    max-width: 150px;
    width: 100%;
}

.logo {
    position: absolute;
    left: 20px; /* или transform: translateX(-50%) если хочешь по центру */
    bottom: -50px;
    z-index: 20;
}

.logo img {
    width: 100%;
    max-width: 150px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contacts {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 14px;
    gap: 5px;
}

.contacts span {
    text-transform: uppercase;
}

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

.btn {
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    font-size: 18px;
    text-transform: uppercase;
    border-radius: 20px;
    background: #C6A268;
    color: #6d2a22;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #b28e55; /* немного темнее */
    text-decoration: none;
}

/*Кнопка переключения темы*/
.season-switcher {
    display: flex;
    gap: 5px;
    max-width: 14%;
    width: 100%;
}

label {
    font-size: 13px;
    color: #424242;
    font-weight: 500;
}

.btn-color-mode-switch {
    display: inline-block;
    margin: 0px;
    position: relative;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner {
    margin: 0px;
    width: 140px;
    height: 30px;
    background: #b28e55;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    /*box-shadow: 0px 0px 8px 0px rgba(17, 17, 17, 0.34) inset;*/
    display: block;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner:before {
    content: attr(data-on);
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    top: 7px;
    right: 20px;

}

.btn-color-mode-switch > label.btn-color-mode-switch-inner:after {
    content: attr(data-off);
    width: 70px;
    height: 26px;
    background: #E0E0E0;
    border-radius: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 6px -2px #111;
    padding: 5px 0px;
}

.btn-color-mode-switch > .alert {
    display: none;
    background: #FF9800;
    border: none;
    color: #fff;
}

.btn-color-mode-switch input[type="checkbox"] {
    cursor: pointer;
    width: 50px;
    height: 25px;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0px;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner {
    background: #c7c6c6;
    /*color: #fff;*/
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:after {
    content: attr(data-on);
    left: 68px;
    background: #E0E0E0;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:before {
    content: attr(data-off);
    right: auto;
    left: 20px;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner {
    /*background: #66BB6A; */
    /*color: #fff;*/
}

.btn-color-mode-switch input[type="checkbox"]:checked ~ .alert {
    display: block;
}

/*mode preview*/
.icon {
    width: 10%;
    transition: all 0.3s ease;
}

.white-preview .icon-sun circle,
.white-preview .icon-sun path {
    stroke: #b28e55;
}

.white-preview .icon-moon,
.dark-preview .icon-sun {
    color: #777;
}

.dark-preview .icon-moon circle,
.dark-preview .icon-moon path {
    stroke: #c7c6c6;
}


p.by {

}

p.by a {
    text-decoration: none;
    color: #000;
}

.dark-preview p.by a {
    color: #777;
}

.white-preview p.by a {
    color: #000;
}

/*burger*/
/* Скрываем бургер на десктопе */
.burger {
    display: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.burger img {
    width: 100%;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: #6D2A22;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 9999;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: end;
}

body.menu-open {
    overflow: hidden; /* блокируем скролл основного контента */
}

/*main*/
main {
    flex: 1;
}

main section {
    margin: 0 0 50px 0;
}

.section__title {
    margin: 0 0 50px 0;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
}

.section__subtitle {
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 20px;
}

.section__btn {
    display: flex;
    justify-content: center;
    margin: 0 0 30px 0;
}


/*slider nav*/
.owl-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 10px;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

/* Стиль для кнопок */
.owl-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff !important;
    border: none;
    padding: 10px;
    font-size: 100px !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.owl-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.owl-prev.disabled,
.owl-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*slider dots*/
.owl-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 10;
}

.owl-dot span {
    width: 10px;
    height: 10px;
    background: #6D2A22 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: block;
}

.owl-dot.active span {
    width: 14px !important;
    height: 14px !important;
}

/*footer*/
footer {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 30px;
    border-top: 1px solid #dcdcdc;
    /*background: #fafafa;*/
    background: #6D2A22;
}

footer .copyright__item {
    margin: 50px 0 0;
    padding-bottom: 20px;
    display: flex;
    gap: 20px;
    color: #ffff;
}

/*popup*/
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 11;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

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

body.modal-open {
    overflow: hidden; /* Отключаем скролл страницы при открытом окне */
}

/* Адаптив */
@media (max-width: 991px) {
    .logo {
        bottom: -30px;
    }

    .logo img {
        max-width: 100px;
    }

    .main-nav, .toggle-button-cover {
        display: none;
    }

    .burger {
        display: block;
    }

    .mobile-menu nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu nav ul li {
        margin-bottom: 15px;
    }

    .mobile-menu nav ul li a {
        text-decoration: none;
        font-size: 18px;
        color: #333;
    }

    .mobile-menu .contacts {
        display: flex;
        flex-direction: column;
        font-size: 16px;
        gap: 5px;
    }

    .mobile-menu .toggle-button-cover {
        align-self: flex-start;
    }
}

@media (max-width: 700px) {
    .header-actions {
        display: none;
    }
}

@media (max-width: 768px) {

    .owl-nav button {
        font-size: 24px;
        padding: 8px;
    }

    /*.logo {
        font-size: 18px;
        padding: 8px 16px;
        bottom: -15px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }*/
}
