/* Стили для главной страницы */
/* Основано на new_template/scss/index.scss */

/* Базовые шрифты для элементов (переопределяем style.css) */
main a,
main p,
body main a,
body main p {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

main h3,
body main h3 {
    font-family: Helvetica, sans-serif !important;
    font-weight: 700 !important;
}
label[for='consultation-agreement']{
    margin-top: 0 !important;
}
label[for='consultation-agreement'] a{
    color: #000000;
}
/* 1. Фоновое изображение */
body .main-bg {
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, transparent 20%), url(/local/templates/air_template/images/index_bg.png);
    background-size: cover;
    background-position: center;
    height: 1100px;
    z-index: -10;
    width: 100%;
}

/* Адаптивность для фонового изображения */
@media (max-width: 1199.98px) {
    body .main-bg {
        height: 1400px;
    }
}

@media (max-width: 999.98px) {
    body .main-bg {
        height: 1800px;
        background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, transparent 15%), url(/local/templates/air_template/images/index_bg.png);
    }
}

@media (max-width: 767.98px) {
    body .main-bg {
        height: 2000px;
        background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, transparent 12%), url(/local/templates/air_template/images/index_bg.png);
    }
}

@media (max-width: 767.98px) {
    body .main-bg {
        height: 2000px;
        background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, transparent 12%), url(/local/templates/air_template/images/index_bg.png);
    }
}

/* 2. Header - цвет и фон */
body header {
    background-color: rgba(255 255 255 / 13%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body header nav {
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3. Блок фильтра (top-filter) */
.top-filter {
    margin: 7rem 0 10rem 0;
    position: relative;
    z-index: 1;
}

/* Стили для заголовков фильтра - точно как в new_template */
/* Переопределяем body h1 из style.css */
body .top-filter-head h1,
body .top-filter-head .h1 {
    font-family: Roboto-Black !important;
    font-size: 3.5rem !important;
    letter-spacing: 0.1rem !important;
    line-height: 48px !important;
    font-weight: normal !important;
    margin: 0 !important;
}

body .top-filter-head p {
    font-family: Roboto-Medium !important;
    font-size: 1.5rem !important;
    line-height: normal !important;
    font-weight: normal !important;
}

.top-filter-body {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    padding: 1rem;
    overflow: visible;
    font-family: "Sofia Pro", sans-serif;
}

/* Навигационные табы */
.top-filter-body .nav-tabs {
    border: none;
    font-family: "Sofia Pro", sans-serif;
    font-weight: 600;
}

.top-filter-body .nav-tabs .nav-link {
    transition: background-color 0.5s ease;
    text-align: left;
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 0;
}

.top-filter-body .nav-tabs .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.top-filter-body .nav-tabs .nav-link.active {
    opacity: 1;
    color: #eff8f3;
    background-color: #018d42;
    border: none;
}

.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-ip {
    border-top-left-radius: 0.5rem;
}

.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-b {
    border-top-right-radius: 0.5rem;
}

/* Стили для иконок в табах */
.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-ip svg path {
    stroke: #fff;
    fill: none;
}

.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-kn svg path,
.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-zu svg path,
.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-b svg path {
    fill: #fff;
    stroke: none;
}

.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-ip.active svg path {
    stroke: #eff8f3;
    fill: none;
}

.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-kn.active svg path,
.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-zu.active svg path,
.top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-b.active svg path {
    fill: #eff8f3;
    stroke: none;
}

/* Отступ между иконкой и текстом */
.top-filter-body .nav-tabs .nav-link svg {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.top-filter-body .nav-tabs .nav-link {
    display: flex;
    align-items: center;
}

/* Контент табов */
.top-filter-body-content .tab-pane {
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    background-color: #fff;
    padding: 1rem;
}

.top-filter-body-content-selects-wrap {
    border-right: 1px dotted gray;
}

/* Стили для заголовков фильтров - точно как в new_template */
body .top-filter-body-content-selects-head {
    color: #000;
    font-family: "Sofia Pro", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.top-filter-body-content-selects-body button {
    color: grey;
    position: relative;
    padding: 0 1rem 0 0;
    border: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Sofia Pro", sans-serif;
}

.top-filter-body-content-selects-body .dropdown-menu {
    --bs-dropdown-link-active-bg: #009035;
    width: auto;
    min-width: 100%;
    white-space: nowrap;
    background-color: white;
    margin-top: 0.5rem;
}

.top-filter-body-content-selects-body-from-to {
    padding: 1rem;
}

/* 4. Карусели */
.custom-carousel {
    overflow-x: scroll;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 1rem;
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.custom-carousel .card {
    min-width: 300px;
    max-width: 300px;
    font-family: "Inter", sans-serif;
    font-weight: 300;
}

/* 5. Блок "О портале" */
.bg-forest,
main .bg-forest,
.container-fluid .bg-forest {
    background-image: url(/local/templates/air_template/images/forest_full.png) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 2rem 3rem !important;
    min-height: 400px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
}
.about{
    font-size: 19px;
}
.fs-1 {
    line-height: normal;
}

.bg-forest .fs-1,
.bg-forest .text-light.fs-1 {
    line-height: normal !important;
}

@media (min-width: 576px) {
    .bg-forest {
        padding: 6rem 5rem;
    }
}


.map-wrapper {
    max-width: 600px;
    max-height: 400px;
    background-image: url(/local/templates/air_template/images/map_screen.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}


/* 6. Блок "Функционал" */
.functions__list img {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.functions__list .rounded-5 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 7. Форма консультации */
.bg-form {
    background-image: url(/local/templates/air_template/images/form_bg.jpg);
    background-size: cover;
    background-position: center;
}

.custom-input {
    background-color: rgba(1, 1, 1, 0.25)!important;
    
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.custom-input[type='text']:focus,
.custom-input[type='tel']:focus {
    background-color: rgba(0, 90, 45, 0.95) !important;
    box-shadow: 0 0 0 0.25rem rgba(1, 141, 66, 0.5);
    outline: none;
    color: #fff !important;
}

.custom-input[type='checkbox'] {
    width: 1.25em !important;
    height: 1.25em !important;
    margin-top: 0 !important;
    margin-right: 0.5em;
    vertical-align: middle;
    background-color: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 0.25em;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.custom-input[type='checkbox']:checked {
    border-color: #018d42 !important;
    background-color: #018d42 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 75% !important;
}

.custom-input[type='checkbox']:checked::before,
.custom-input[type='checkbox']:checked::after {
    display: none !important;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-label {
    margin-bottom: 0;
}

.phone-input {
    padding: 0 !important;
}

.phone-input input {
    background-color: transparent !important;
}

.phone-input input:focus {
    background-color: rgba(0, 90, 45, 0.95) !important;
    box-shadow: 0 0 0 0.25rem rgba(1, 141, 66, 0.5) !important;
    outline: none !important;
    color: #fff !important;
}

.phone-input input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.5) !important;
}

#phone-error {
    color: #ff6b6b !important;
    font-size: 0.875rem;
    line-height: 1.4;
}

#consultation-form:disabled,
#consultation-form input:disabled,
#consultation-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

#consultation-success,
#consultation-error {
    animation: fadeIn 0.3s ease-in;
}

#consultation-success .alert {
    background-color: rgba(1, 141, 66, 0.95) !important;
    border: none;
    color: #fff;
}

#consultation-error .alert {
    background-color: rgba(220, 53, 69, 0.95) !important;
    border: none;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Блок "Публикации" */
.publication-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.publication-card:hover {
    transform: translateY(-4px);
}

.publication-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.85) 100%);
    padding: 1.5rem;
    border-radius: 0 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.publication-card .fs-3 {
    font-size: 1.5rem !important;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.publication-card .text-light {
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

/* Адаптивность для публикаций */
@media (max-width: 1199.98px) {
    .publication-card .fs-3 {
        font-size: 1.25rem !important;
    }
    
    .publication-content {
        padding: 1.25rem;
        min-height: 100px;
    }
}

@media (max-width: 767.98px) {
    .publication-card .fs-3 {
        font-size: 1.1rem !important;
    }
    
    .publication-content {
        padding: 1rem;
        min-height: 90px;
    }
}

/* 8. Публикации */
.bg-cover {
    background-size: cover;
    background-position: center;
}

/* 9. Ссылки */
.light-link {
    color: #57c272;
}

.light-link:hover {
    color: #4cad65;
}

/* Стили для поля поиска в dropdown */
.filter-search-input {
    border: none !important;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    padding: 0.35rem 0.5rem !important;
    padding-left: 2.5rem !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04 0.062 0.078 0.098 0.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-0.115-0.099zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    background-size: 12px 12px;
    color: #495057;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-indent: 0 !important;
    box-shadow: none !important;
}

.filter-search-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.filter-search-input:focus {
    border: none !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04 0.062 0.078 0.098 0.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-0.115-0.099zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z' fill='%23018d42'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    background-size: 12px 12px;
    box-shadow: none !important;
    outline: none;
    color: #212529;
    padding-left: 2.5rem !important;
}

/* Контейнер для поля поиска в dropdown */
.dropdown-menu .filter-search-input {
    margin: 0;
    width: 100%;
}

/* Контейнер для элементов dropdown с поиском */
.filter-dropdown-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

/* Стилизация скроллбара для контейнера элементов */
.filter-dropdown-items::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-items::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.filter-dropdown-items::-webkit-scrollbar-thumb {
    background: #018d42;
    border-radius: 3px;
}

.filter-dropdown-items::-webkit-scrollbar-thumb:hover {
    background: #016d32;
}

/* Улучшенные стили для элементов списка при наведении */
.filter-dropdown-items .dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-dropdown-items .dropdown-item:hover {
    background-color: #f0f7f3;
    color: #018d42;
}

.filter-dropdown-items .dropdown-item:active {
    background-color: #018d42;
    color: #fff;
}

/* Стили для разделителя после поля поиска */
.dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-top-color: #e9ecef;
}

/* Адаптивность */
@media (max-width: 1199.98px) {
    .top-filter {
        margin: 5rem 0 7rem 0;
    }
    
    .top-filter-head h1 {
        font-size: 2.5rem;
    }
    
    .top-filter-head p {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .top-filter {
        margin: 2rem 0 3rem 0;
    }
    
    .top-filter-head h1 {
        font-size: 2rem;
    }
    
    .top-filter-head p {
        font-size: 1rem;
    }
    
    .top-filter-body {
        padding: 0.75rem !important;
        overflow: visible;
    }
    
    /* Табы на мобильных - единый блок без отдельных скруглений */
    .top-filter-body .nav-tabs {
        flex-direction: column;
        gap: 0;
        background-color: transparent;
        overflow: visible;
        display: flex !important;
    }
    
    .top-filter-body .nav-tabs .nav-link {
        border-radius: 0 !important;
        margin-bottom: 0;
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
        text-align: left;
        display: flex;
        align-items: center;
        opacity: 1 !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
    }
    
    .top-filter-body .nav-tabs .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.3) !important;
    }
    
    .top-filter-body .nav-tabs .nav-link.active {
        background-color: #018d42 !important;
        color: #eff8f3 !important;
        opacity: 1 !important;
    }
    
    /* Первый таб - скругление только сверху */
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-ip {
        border-top-left-radius: 0.5rem !important;
        border-top-right-radius: 0.5rem !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    
    /* Последний таб - без скруглений */
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-b {
        border-radius: 0 !important;
    }
    
    /* Иконки на мобильных */
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-ip svg path {
        stroke: #fff;
        fill: none;
    }
    
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-kn svg path,
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-zu svg path,
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-b svg path {
        fill: #fff;
        stroke: none;
    }
    
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-ip.active svg path {
        stroke: #eff8f3;
        fill: none;
    }
    
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-kn.active svg path,
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-zu.active svg path,
    .top-filter-body .nav-tabs .nav-link.nav-tabs-nav-link-b.active svg path {
        fill: #eff8f3;
        stroke: none;
    }
    
    /* Контент табов на мобильных */
    .top-filter-body-content .tab-pane {
        border-radius: 0 0 0.5rem 0.5rem !important;
        background-color: #fff;
        padding: 1rem;
        margin-top: 0;
    }
    
    /* Поля фильтра на мобильных - вертикально */
    .top-filter-body-content-selects {
        flex-direction: column !important;
    }
    
    .top-filter-body-content .tab-pane .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .top-filter-body-content-selects-wrap {
        border-right: none !important;
        border-bottom: 1px dotted #dee2e6;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .top-filter-body-content-selects-wrap:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    /* Кнопка "Подобрать" на мобильных */
    .top-filter-body-content-selects-button {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .top-filter-body-content-selects-button .btn {
        width: 100%;
    }
}
.iti__selected-dial-code{
    color: #ffffff;
}
.top-filter-body-content-selects-button button{
    font-family: "Sofia Pro", sans-serif;
    font-weight: 600;
}
/* Карусель проектов со стрелками */
.projects-carousel-wrapper {
    position: relative;
    padding: 0 60px; /* Место для стрелок */
}
input[type=tel]{
    padding-left: 95px !important;
}
.projects-carousel {
    overflow: hidden; /* Убираем горизонтальный скролл на десктопе */
    display: flex;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

/* На мобильных включаем скролл */
@media (max-width: 767.98px) {
    .projects-carousel {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .projects-carousel::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
}

.projects-carousel .project-card {
    scroll-snap-align: start;
}

.project-card {
    min-width: 363px;
    max-width: 363px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px; /* Фиксированная минимальная высота для одинаковых карточек */
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.iti {
    width: 100%;
}
.project-card:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-4px);
}

.project-card .card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.02);
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem 0.75rem;
}

/* Название проекта с обрезкой */
.project-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1;
    margin-bottom: 0.5rem;
    padding-right: 0.5rem; /* Отступ справа для многоточия */
    max-height: 5em; /* 2 строки * 1.5 line-height */
}

.project-card-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #161413;
    font-weight: 500;
    transition: color 0.3s ease;
    word-wrap: break-word;
    word-break: break-word;
}

.project-card-title a:hover {
    color: #009035;
    text-decoration: none;
}

/* Срок окупаемости */
.project-card-payback {
    /*color: #6c757d;*/
    color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-weight: 500;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    margin-top: auto;
}

.project-card-payback span {
    /*color: #6c757d;*/
    color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
    line-height: 1;
    font-weight: 500;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;

}

/* Местонахождение */
.project-card-location {
    min-height: 24px;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1;
    color: #6c757d;
    font-size: 0.9rem;
    /*margin-bottom: 1rem;*/
}

/* Стоимость */
.project-card-price {
    margin-top: 1.5rem;
    /*border-top: 1px solid rgba(0, 0, 0, 0.08);*/
    min-height: 48px;
}

.project-card-price .text-secondary {
    color: #6c757d;
    font-size: 0.9rem;
}

.project-card-price .text-primary {
    color: #009035 !important;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Стрелки карусели */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #009035;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: #009035;
    color: #009035;
    box-shadow: 0 6px 16px rgba(0, 144, 53, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: 0;
}

/* Адаптивность для карусели */
@media (max-width: 1199.98px) {
    .projects-carousel-wrapper {
        padding: 0 50px;
    }
    
    .project-card {
        min-width: 350px;
        max-width: 350px;
    }
}

@media (max-width: 767.98px) {
    .projects-carousel-wrapper {
        padding: 0 0; /* Убираем отступы для мобильных, чтобы карточки были на всю ширину */
    }
    
    .projects-carousel {
        padding: 0 1rem; /* Добавляем небольшой отступ по бокам */
        gap: 1rem; /* Отступ между карточками */
    }
    
    .project-card {
        min-width: calc(100vw - 3rem); /* Карточка на всю ширину минус отступы */
        max-width: calc(100vw - 3rem);
        min-height: 480px; /* Немного меньше высота на мобильных */
    }
    
    .carousel-nav-btn {
        display: none; /* Скрываем стрелки на мобильных, используем свайп */
    }
}

/* Блок "Публикации" */
.publication-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.publication-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.85) 100%);
    padding: 1.5rem;
    border-radius: 0 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.publication-card .fs-3 {
    font-size: 1.5rem !important;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    font-weight: 700 !important;
}

.publication-card .text-light {
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптивность для публикаций */
@media (max-width: 1199.98px) {
    .publication-card {
        min-height: 280px;
    }
    
    .publication-card .fs-3 {
        font-size: 1.25rem !important;
    }
    
    .publication-content {
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .publication-card {
        min-height: 250px;
    }
    
    .publication-card .fs-3 {
        font-size: 1.1rem !important;
    }
    
    .publication-content {
        padding: 1rem;
    }
    
    .publication-card .text-light {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

