@import url('../sklesprom/assets/css/bootstrap.min.css');
@import url("../sklesprom/assets/icons/bootstrap-icons/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100..900;
    font-style: normal;
}

/* ============================================================
   ПЕРЕОПРЕДЕЛЕНИЕ ЦВЕТОВ BOOTSTRAP 5
   Схема "Природная классика"
   Primary: Терракотовый #b86b3a
   Secondary: Графитовый #38332b
   ============================================================ */

/* ===== ROOT ПЕРЕМЕННЫЕ ===== */
:root {
    --bs-primary: #b86b3a;
    --bs-primary-rgb: 184, 107, 58;
    --bs-secondary: #38332b;
    --bs-secondary-rgb: 56, 51, 43;
    --bs-body-bg: #f8f6f2;
    --bs-body-color: #38332b;
    --bs-body-color-rgb: 56, 51, 43;
    --bs-link-color: #b86b3a;
    --bs-link-hover-color: #9e5a30;
    --bs-border-color: #d6d0c7;
}

/* ===== КНОПКИ ===== */

/* --- btn-primary --- */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #b86b3a;
    --bs-btn-border-color: #b86b3a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #9e5a30;
    --bs-btn-hover-border-color: #9e5a30;
    --bs-btn-focus-shadow-rgb: 184, 107, 58;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #8a4e29;
    --bs-btn-active-border-color: #8a4e29;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #b86b3a;
    --bs-btn-disabled-border-color: #b86b3a;
}

/* --- btn-secondary --- */
.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #38332b;
    --bs-btn-border-color: #38332b;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2a261f;
    --bs-btn-hover-border-color: #2a261f;
    --bs-btn-focus-shadow-rgb: 56, 51, 43;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1f1c16;
    --bs-btn-active-border-color: #1f1c16;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #38332b;
    --bs-btn-disabled-border-color: #38332b;
}

/* --- btn-outline-primary --- */
.btn-outline-primary {
    --bs-btn-color: #b86b3a;
    --bs-btn-border-color: #b86b3a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #b86b3a;
    --bs-btn-hover-border-color: #b86b3a;
    --bs-btn-focus-shadow-rgb: 184, 107, 58;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b86b3a;
    --bs-btn-active-border-color: #b86b3a;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #b86b3a;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #b86b3a;
    --bs-gradient: none;
}

/* --- btn-outline-secondary --- */
.btn-outline-secondary {
    --bs-btn-color: #38332b;
    --bs-btn-border-color: #38332b;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #38332b;
    --bs-btn-hover-border-color: #38332b;
    --bs-btn-focus-shadow-rgb: 56, 51, 43;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #38332b;
    --bs-btn-active-border-color: #38332b;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #38332b;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #38332b;
    --bs-gradient: none;
}

/* --- btn-link --- */
.btn-link {
    --bs-btn-color: #b86b3a;
    --bs-btn-hover-color: #9e5a30;
    --bs-btn-active-color: #8a4e29;
}

/* ===== ЦВЕТ ТЕКСТА ===== */

.text-primary {
    color: #b86b3a !important;
}

.text-primary-emphasis {
    color: #8a4e29 !important;
}

.text-secondary {
    color: #38332b !important;
}

.text-secondary-emphasis {
    color: #1f1c16 !important;
}

.text-body {
    color: #38332b !important;
}

.text-body-secondary {
    color: #6b6257 !important;
}

.text-body-tertiary {
    color: #8f8678 !important;
}

/* ===== ФОН ===== */

.bg-primary {
    background-color: #b86b3a !important;
}

.bg-primary-subtle {
    background-color: #f5e6db !important;
}

.bg-secondary {
    background-color: #38332b !important;
}

.bg-secondary-subtle {
    background-color: #e3dfd9 !important;
}

.bg-body {
    background-color: #f8f6f2 !important;
}

.bg-body-secondary {
    background-color: #e9e5de !important;
}

.bg-body-tertiary {
    background-color: #d6d0c7 !important;
}

/* ===== ГРАНИЦЫ ===== */

.border-primary {
    border-color: #b86b3a !important;
}

.border-secondary {
    border-color: #38332b !important;
}

.border {
    border-color: #d6d0c7 !important;
}

.border-1 {
    border-color: #d6d0c7 !important;
}

.border-2 {
    border-color: #d6d0c7 !important;
}

.border-3 {
    border-color: #d6d0c7 !important;
}

.border-4 {
    border-color: #d6d0c7 !important;
}

.border-5 {
    border-color: #d6d0c7 !important;
}

/* ===== ССЫЛКИ ===== */

a:not(.btn) {
    color: #b86b3a !important;
}

a:not(.btn):hover {
    color: #9e5a30 !important;
}

a:not(.btn):active {
    color: #8a4e29 !important;
}

.link-primary {
    color: #b86b3a !important;
}

.link-primary:hover,
.link-primary:focus {
    color: #9e5a30 !important;
}

.link-secondary {
    color: #38332b !important;
}

.link-secondary:hover,
.link-secondary:focus {
    color: #2a261f !important;
}

.link-body-emphasis {
    color: #38332b !important;
}

.link-body-emphasis:hover,
.link-body-emphasis:focus {
    color: #1f1c16 !important;
}

/* ===== BADGE / ТЕГИ ===== */

.badge.bg-primary {
    background-color: #b86b3a !important;
}

.badge.bg-secondary {
    background-color: #38332b !important;
}

.badge.text-primary {
    color: #b86b3a !important;
}

.badge.text-secondary {
    color: #38332b !important;
}

/* ===== ALERT ===== */

.alert-primary {
    --bs-alert-color: #6b3d22;
    --bs-alert-bg: #f5e6db;
    --bs-alert-border-color: #eaccb8;
}

.alert-secondary {
    --bs-alert-color: #221f1a;
    --bs-alert-bg: #e3dfd9;
    --bs-alert-border-color: #c6bfb5;
}

/* ===== LIST GROUP ===== */

.list-group-item-primary {
    color: #6b3d22;
    background-color: #f5e6db;
    border-color: #eaccb8;
}

.list-group-item-primary.list-group-item-action:hover,
.list-group-item-primary.list-group-item-action:focus {
    color: #6b3d22;
    background-color: #eaccb8;
}

.list-group-item-primary.list-group-item-action.active {
    color: #fff;
    background-color: #6b3d22;
    border-color: #6b3d22;
}

.list-group-item-secondary {
    color: #221f1a;
    background-color: #e3dfd9;
    border-color: #c6bfb5;
}

.list-group-item-secondary.list-group-item-action:hover,
.list-group-item-secondary.list-group-item-action:focus {
    color: #221f1a;
    background-color: #c6bfb5;
}

.list-group-item-secondary.list-group-item-action.active {
    color: #fff;
    background-color: #221f1a;
    border-color: #221f1a;
}

/* ===== PROGRESS BAR ===== */

.progress-bar.bg-primary {
    background-color: #b86b3a !important;
}

.progress-bar.bg-secondary {
    background-color: #38332b !important;
}

/* ===== SPINNER ===== */

.spinner-border.text-primary {
    color: #b86b3a !important;
}

.spinner-border.text-secondary {
    color: #38332b !important;
}

.spinner-grow.text-primary {
    color: #b86b3a !important;
}

.spinner-grow.text-secondary {
    color: #38332b !important;
}

/* ===== FORM ELEMENTS ===== */

/* --- Checkbox / Radio --- */
.form-check-input:checked {
    background-color: #b86b3a;
    border-color: #b86b3a;
}

.form-check-input:focus {
    border-color: #d6a081;
    box-shadow: 0 0 0 0.25rem rgba(184, 107, 58, 0.25);
}

/* --- Range --- */
.form-range::-webkit-slider-thumb {
    background: #b86b3a;
}

.form-range::-webkit-slider-thumb:active {
    background: #9e5a30;
}

.form-range::-moz-range-thumb {
    background: #b86b3a;
}

.form-range::-moz-range-thumb:active {
    background: #9e5a30;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(184, 107, 58, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(184, 107, 58, 0.25);
}

/* --- Select / Input focus --- */
.form-control:focus,
.form-select:focus {
    border-color: #d6a081;
    box-shadow: 0 0 0 0.25rem rgba(184, 107, 58, 0.25);
}

/* --- Floating labels --- */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    color: #b86b3a;
}

/* ===== NAV ===== */

.nav-link {
    color: #38332b;
}

.nav-link:hover,
.nav-link:focus {
    color: #b86b3a;
}

.nav-link.active {
    color: #b86b3a !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: #b86b3a;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #b86b3a;
    border-color: #d6d0c7 #d6d0c7 #fff;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: #e9e5de #e9e5de #d6d0c7;
}

/* ===== PAGINATION ===== */

.page-link {
    color: #b86b3a;
}

.page-link:hover {
    color: #9e5a30;
}

.page-item.active .page-link {
    background-color: #b86b3a;
    border-color: #b86b3a;
}

.page-item.disabled .page-link {
    color: #8f8678;
}

/* ===== DROPDOWN ===== */

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f5e6db;
    color: #38332b;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #b86b3a;
    color: #fff;
}

.dropdown-item:focus-visible {
    background-color: #f5e6db;
    color: #38332b;
}

/* ===== ACCORDION ===== */

.accordion-button:not(.collapsed) {
    color: #6b3d22;
    background-color: #f5e6db;
    box-shadow: inset 0 -1px 0 rgba(184, 107, 58, 0.125);
}

.accordion-button:focus {
    border-color: #d6a081;
    box-shadow: 0 0 0 0.25rem rgba(184, 107, 58, 0.25);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b3d22'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ===== TOOLTIP / POPOVER ===== */

.tooltip-inner {
    background-color: #38332b;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #38332b;
}

.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #38332b;
}

.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #38332b;
}

.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #38332b;
}

.popover-header {
    background-color: #f5e6db;
    color: #6b3d22;
    border-bottom: 1px solid #eaccb8;
}

.popover-body {
    color: #38332b;
}

.popover {
    border-color: #d6d0c7;
}

.popover-header {
    border-bottom-color: #d6d0c7;
}

.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,
.bs-popover-top>.popover-arrow::after {
    border-top-color: #f8f6f2;
}

.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,
.bs-popover-bottom>.popover-arrow::after {
    border-bottom-color: #f5e6db;
}

.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,
.bs-popover-start>.popover-arrow::after {
    border-left-color: #f8f6f2;
}

.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,
.bs-popover-end>.popover-arrow::after {
    border-right-color: #f8f6f2;
}

/* ===== MODAL ===== */

.modal-header {
    border-bottom-color: #d6d0c7;
}

.modal-footer {
    border-top-color: #d6d0c7;
}

.btn-close {
    --bs-btn-close-color: #38332b;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2338332b'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 0.5;
    --bs-btn-close-hover-opacity: 0.75;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(184, 107, 58, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
}

/* ===== OFF-CANVAS ===== */

.offcanvas-header {
    border-bottom-color: #d6d0c7;
}

.offcanvas-footer {
    border-top-color: #d6d0c7;
}

/* ===== TABLE ===== */

.table-primary {
    --bs-table-bg: #f5e6db;
    --bs-table-border-color: #eaccb8;
    --bs-table-striped-bg: #e8d9ce;
    --bs-table-active-bg: #dccdc2;
    --bs-table-hover-bg: #e2d3c8;
}

.table-primary> :not(caption)>*>* {
    --bs-table-bg-state: #f5e6db;
}

.table-secondary {
    --bs-table-bg: #e3dfd9;
    --bs-table-border-color: #c6bfb5;
    --bs-table-striped-bg: #d7d3cd;
    --bs-table-active-bg: #ccc7c1;
    --bs-table-hover-bg: #d1cdc7;
}

.table-secondary> :not(caption)>*>* {
    --bs-table-bg-state: #e3dfd9;
}

/* ===== PLACEHOLDER ===== */

.placeholder-primary::-webkit-input-placeholder {
    color: #b86b3a !important;
}

.placeholder-primary::-moz-placeholder {
    color: #b86b3a !important;
}

.placeholder-primary:-ms-input-placeholder {
    color: #b86b3a !important;
}

.placeholder-primary::-ms-input-placeholder {
    color: #b86b3a !important;
}

.placeholder-primary::placeholder {
    color: #b86b3a !important;
}

/* ===== FOCUS RING ===== */

.focus-ring-primary {
    --bs-focus-ring-color: rgba(184, 107, 58, 0.25);
}

.focus-ring-secondary {
    --bs-focus-ring-color: rgba(56, 51, 43, 0.25);
}

/* ===== CAROUSEL ===== */

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b86b3a'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b86b3a'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.carousel-indicators [data-bs-target] {
    background-color: #b86b3a;
}

.carousel-indicators .active {
    background-color: #b86b3a;
}

.carousel-caption {
    color: #38332b;
}

.carousel-dark .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b86b3a'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.carousel-dark .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b86b3a'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.carousel-dark .carousel-indicators [data-bs-target] {
    background-color: #b86b3a;
}

.carousel-dark .carousel-caption {
    color: #38332b;
}

/* ===== TOAST ===== */

.toast-header {
    border-bottom-color: #d6d0c7;
    color: #38332b;
}

.toast-header .btn-close {
    --bs-btn-close-color: #38332b;
}

.toast {
    border-color: #d6d0c7;
}

/* ===== SPINNERS ===== */

.spinner-border.text-primary {
    color: #b86b3a !important;
}

.spinner-border.text-secondary {
    color: #38332b !important;
}

.spinner-grow.text-primary {
    color: #b86b3a !important;
}

.spinner-grow.text-secondary {
    color: #38332b !important;
}

/* ===== PROGRESS ===== */

.progress-bar.bg-primary {
    background-color: #b86b3a !important;
}

.progress-bar.bg-secondary {
    background-color: #38332b !important;
}

/* ===== BREADCRUMB ===== */

.breadcrumb-item.active {
    color: #38332b;
}

.breadcrumb-item a {
    color: #b86b3a;
}

.breadcrumb-item a:hover {
    color: #9e5a30;
}

/* ===== CLOSE BUTTON ===== */

.btn-close {
    --bs-btn-close-color: #38332b;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2338332b'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 0.5;
    --bs-btn-close-hover-opacity: 0.75;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(184, 107, 58, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
}


/* Анимация для каждой буквы */
.animated {
    display: inline-block;
    position: relative;
}

.animated span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

/* Задержки для каждой буквы */
.animated span:nth-child(1) {
    animation-delay: 0s;
}

.animated span:nth-child(2) {
    animation-delay: 0.1s;
}

.animated span:nth-child(3) {
    animation-delay: 0.2s;
}

.animated span:nth-child(4) {
    animation-delay: 0.3s;
}

.animated span:nth-child(5) {
    animation-delay: 0.4s;
}

.animated span:nth-child(6) {
    animation-delay: 0.5s;
}

.animated span:nth-child(7) {
    animation-delay: 0.6s;
}

.animated span:nth-child(8) {
    animation-delay: 0.7s;
}

.animated span:nth-child(9) {
    animation-delay: 0.8s;
}

.animated span:nth-child(10) {
    animation-delay: 0.9s;
}

.animated span:nth-child(11) {
    animation-delay: 1.0s;
}

.animated span:nth-child(12) {
    animation-delay: 1.1s;
}

.animated span:nth-child(13) {
    animation-delay: 1.2s;
}

.animated span:nth-child(14) {
    animation-delay: 1.3s;
}

.animated span:nth-child(15) {
    animation-delay: 1.4s;
}

.animated span:nth-child(16) {
    animation-delay: 1.5s;
}

.animated span:nth-child(17) {
    animation-delay: 1.6s;
}

.animated span:nth-child(18) {
    animation-delay: 1.7s;
}

.animated span:nth-child(19) {
    animation-delay: 1.8s;
}

.animated span:nth-child(20) {
    animation-delay: 1.9s;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0px);
        color: #000;
    }

    25% {
        transform: translateY(-0px);
        color: #007bff;
    }

    50% {
        transform: translateY(0px);
        color: #000;
    }

    75% {
        transform: translateY(0px);
        color: #007bff;
    }
}

.house-icon {
    width: 100%;
    max-width: 512px;
    height: auto;
    aspect-ratio: 1 / 1;
    /* Сохраняет квадратную пропорцию */
    display: block;
    /* Убирает лишние отступы */
    margin: 0 auto;
    /* Центрирует, если нужно */
}

/* Маска, которая открывается снизу вверх */
.mask-rect {
    fill: white;
    animation: buildUp 5s ease-in-out forwards;
}

@keyframes buildUp {
    0% {
        transform: translateY(64px);
    }

    /* Начинаем снизу */
    100% {
        transform: translateY(0);
    }

    /* Поднимаемся вверх */
}

/* ===== NAV ACTIVE ===== */

/* --- Nav-link active --- */
.nav-link.active {
    color: #b86b3a !important;
    background-color: transparent !important;
}

.nav-link.active:hover {
    color: #9e5a30 !important;
}

/* --- Nav-pills --- */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: #fff !important;
    background-color: #b86b3a !important;
}

.nav-pills .nav-link.active:hover,
.nav-pills .show>.nav-link:hover {
    background-color: #9e5a30 !important;
}

/* --- Nav-tabs --- */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #b86b3a !important;
    background-color: #f8f6f2 !important;
    border-color: #d6d0c7 #d6d0c7 #f8f6f2 !important;
}

.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-item.show .nav-link:hover {
    color: #9e5a30 !important;
}

/* --- Nav-tabs (темная версия, если используете) --- */
.nav-tabs .nav-link.active:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(184, 107, 58, 0.25) !important;
}

/* --- Nav-underline (Bootstrap 5.3+) --- */
.nav-underline .nav-link.active,
.nav-underline .show>.nav-link {
    color: #b86b3a !important;
    border-bottom-color: #b86b3a !important;
}

.nav-underline .nav-link.active:hover,
.nav-underline .show>.nav-link:hover {
    color: #9e5a30 !important;
}

/* --- Nav-underline (border-bottom) --- */
.nav-underline .nav-link {
    border-bottom: 2px solid transparent !important;
}

.nav-underline .nav-link.active {
    border-bottom-color: #b86b3a !important;
}

/* --- Dropdown item active --- */
.dropdown-item.active,
.dropdown-item:active {
    color: #fff !important;
    background-color: #b86b3a !important;
}

.dropdown-item.active:hover,
.dropdown-item:active:hover {
    background-color: #9e5a30 !important;
}

/* --- Navbar (если активный пункт в navbar) --- */
.navbar-nav .nav-link.active {
    color: #b86b3a !important;
}

.navbar-nav .nav-link.active:hover {
    color: #9e5a30 !important;
}

/* --- Navbar dark (для темной шапки) --- */
.navbar-dark .navbar-nav .nav-link.active {
    color: #b86b3a !important;
}

.navbar-dark .navbar-nav .nav-link.active:hover {
    color: #d6a081 !important;
}

/* --- Sidebar / vertical nav --- */
.nav-vertical .nav-link.active {
    color: #b86b3a !important;
    background-color: #f5e6db !important;
    border-color: #b86b3a !important;
}

.nav-vertical .nav-link.active:hover {
    background-color: #eaccb8 !important;
}

/* ===== DROPDOWN ===== */

/* --- Dropdown toggle (кнопка) --- */
.dropdown-toggle {
    color: #38332b !important;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    color: #b86b3a !important;
}

.dropdown-toggle:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(184, 107, 58, 0.25) !important;
}

/* --- Dropdown menu (контейнер) --- */
.dropdown-menu {
    background-color: #f8f6f2 !important;
    border-color: #d6d0c7 !important;
    box-shadow: 0 0.5rem 1rem rgba(56, 51, 43, 0.15) !important;
}

/* --- Dropdown item (обычный) --- */
.dropdown-item {
    color: #38332b !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #b86b3a !important;
    background-color: #f5e6db !important;
}

.dropdown-item:focus-visible {
    background-color: #f5e6db !important;
    color: #b86b3a !important;
}

/* --- Dropdown item active (текущая страница) --- */
.dropdown-item.active,
.dropdown-item:active {
    color: #fff !important;
    background-color: #b86b3a !important;
}

.dropdown-item.active:hover,
.dropdown-item:active:hover {
    background-color: #9e5a30 !important;
}

.dropdown-item.active:focus-visible,
.dropdown-item:active:focus-visible {
    background-color: #b86b3a !important;
    color: #fff !important;
}

/* --- Dropdown item disabled --- */
.dropdown-item.disabled,
.dropdown-item:disabled {
    color: #8f8678 !important;
    opacity: 0.6;
}

/* --- Dropdown divider --- */
.dropdown-divider {
    border-top-color: #d6d0c7 !important;
}

/* --- Dropdown header (заголовок) --- */
.dropdown-header {
    color: #6b6257 !important;
}

/* --- Dropdown menu dark (для темной шапки) --- */
.dropdown-menu-dark {
    background-color: #38332b !important;
    border-color: #4f483f !important;
}

.dropdown-menu-dark .dropdown-item {
    color: #e9e5de !important;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    color: #fff !important;
    background-color: rgba(184, 107, 58, 0.4) !important;
}

.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
    color: #fff !important;
    background-color: #b86b3a !important;
}

.dropdown-menu-dark .dropdown-header {
    color: #b0a89b !important;
}

.dropdown-menu-dark .dropdown-divider {
    border-top-color: #4f483f !important;
}

/* --- Dropdown submenu (если есть вложенность) --- */
.dropdown-submenu .dropdown-item {
    padding-left: 2rem !important;
}

.dropdown-submenu .dropdown-item.active {
    background-color: #b86b3a !important;
    color: #fff !important;
}

/* --- Dropdown в navbar --- */
.navbar .dropdown-menu {
    background-color: #f8f6f2 !important;
}

.navbar .dropdown-item:hover {
    background-color: #f5e6db !important;
}

.navbar-dark .dropdown-menu {
    background-color: #38332b !important;
}

.navbar-dark .dropdown-item {
    color: #e9e5de !important;
}

.navbar-dark .dropdown-item:hover {
    background-color: rgba(184, 107, 58, 0.4) !important;
    color: #fff !important;
}

.navbar-dark .dropdown-item.active {
    background-color: #b86b3a !important;
    color: #fff !important;
}

/* Общий стиль для всех карточек */
.card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Эффект для изображения внутри карточки */
.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(1, 20, 49, 0.13);
}

/* Дополнительный эффект для заголовка карточки */
.card-title {
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: #000000;
}

/* Стили для single-project */
.project-details {
    padding: 40px 0;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.project-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
    border-left: 4px solid #2271b1;
    padding-left: 20px;
}

/* Галерея Swiper */
.project-gallery {
    margin-bottom: 2rem;
}

.main-gallery {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.main-gallery .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.main-gallery .swiper-slide img:hover {
    transform: scale(1.02);
}

.main-gallery .swiper-button-next,
.main-gallery .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.main-gallery .swiper-button-next:hover,
.main-gallery .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-gallery .swiper-button-next::after,
.main-gallery .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.main-gallery .swiper-pagination {
    bottom: 20px;
}

.main-gallery .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.8;
}

.main-gallery .swiper-pagination-bullet-active {
    background: #2271b1;
    opacity: 1;
}

/* Миниатюры */
.thumb-gallery {
    width: 100%;
    height: 120px;
    padding: 5px 0;
}

.thumb-gallery .swiper-slide {
    width: 120px !important;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.thumb-gallery .swiper-slide:hover {
    opacity: 0.8;
}

.thumb-gallery .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #2271b1;
}

.thumb-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fancybox кастомные стили */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.9);
}

.fancybox__slide .fancybox__image {
    border-radius: 8px;
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
}

/* Цена */
.project-price {
    margin: 2rem 0;
}

.price-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.price-label {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
}

/* Характеристики с Bootstrap Icons */
.project-additional {
    margin: 2rem 0;
}

.project-additional h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.project-additional .card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef !important;
}

.project-additional .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.project-additional .icon-wrapper {
    margin-bottom: 10px;
}

.project-additional .icon-wrapper i {
    color: #2271b1;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.project-additional .card:hover .icon-wrapper i {
    transform: scale(1.1);
}

.project-additional .char-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.project-additional .char-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
}

/* Контент */
.project-content {
    margin: 2rem 0;
}

.project-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Боковая колонка */
.project-sidebar {
    position: sticky;
    top: 30px;
    align-self: flex-start;
}

.sidebar-inner {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;

}

/* Адаптивность */
@media (max-width: 991px) {
    .project-sidebar {
        position: static;
        margin-top: 30px;
    }

    .project-title {
        font-size: 2rem;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .main-gallery {
        height: 350px;
    }

    .thumb-gallery {
        height: 90px;
    }

    .thumb-gallery .swiper-slide {
        width: 90px !important;
        height: 80px;
    }

    .project-additional .char-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .project-details {
        padding: 20px 0;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .price-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-gallery {
        height: 250px;
    }

    .thumb-gallery {
        height: 70px;
    }

    .thumb-gallery .swiper-slide {
        width: 70px !important;
        height: 60px;
    }

    .main-gallery .swiper-button-next,
    .main-gallery .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .main-gallery .swiper-button-next::after,
    .main-gallery .swiper-button-prev::after {
        font-size: 14px;
    }

    .sidebar-inner {
        padding: 0px;
    }

    .project-additional .card {
        padding: 15px 0;
    }

    .project-additional .icon-wrapper i {
        font-size: 2rem;
    }

    .project-additional .char-value {
        font-size: 1rem;
    }

    .project-additional h2 {
        font-size: 1.4rem;
    }
}

/* Добавьте в ваш CSS */
.project-item {
    transition: all 0.3s ease;
}

.project-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.8);
}