/* Стили для информационных блоков */
.info-block {
    padding: 60px 0;
    background: #fff;
}

.info-block--about {
    background: #f8f9fa;
}

.info-block--gallery {
    background: #fff;
}

.info-block--infrastructure {
    background: #f8f9fa;
}

.info-block--documents {
    padding-top: 40px; /* Фиксированный отступ сверху */
    padding-bottom: 0; /* Убираем отступ снизу */
    margin-bottom: 0; /* Убираем margin снизу */
}

.info-block__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-block__content {
    display: flex;
    gap: 40px;
    align-items: center;
    min-height: 500px;
}

.info-block__text {
    flex: 1;
}

.info-block__title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: left;
}

.info-block__title--fullwidth {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.info-block--gallery .info-block__title {
    text-align: center;
}

.info-block__subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #27ae60;
    margin: 30px 0 20px 0;
}

.info-block__text p {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 20px;
    text-align: justify;
}

.info-block__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}

.info-block__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #34495e;
}

.info-block__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

.info-block__image {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.info-block__image-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    border: 2px dashed #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6c757d;
    font-size: 18px;
    font-weight: 500;
}

.info-block__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-block__img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Стили для видео */
.info-block__video {
    margin: 40px 0;
    text-align: center;
}

.info-block__video-title {
    font-size: 24px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 20px;
    text-align: center;
}

.info-block__video-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-block__video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Стили для фотогалереи */
.gallery-tabs__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.gallery-tabs__btn {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.gallery-tabs__btn.active {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.gallery-tabs__btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #bdc3c7;
    color: #2c3e50;
}

.gallery-tabs__panel {
    display: none;
}

.gallery-tabs__panel.active {
    display: block;
}

/* Стили для галереи фотографий - карусель */
.gallery-sect__content {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-sect__content::-webkit-scrollbar {
    height: 8px;
}

.gallery-sect__content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-sect__content::-webkit-scrollbar-thumb {
    background: #27ae60;
    border-radius: 4px;
}

.gallery-sect__content::-webkit-scrollbar-thumb:hover {
    background: #219a52;
}

.gallery-sect__photo {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 280px;
    height: 210px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.gallery-sect__photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-sect__photo span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.gallery-sect__photo:hover span {
    transform: scale(1.05);
}

.gallery-sect__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-sect__photo:hover img {
    opacity: 1;
}

/* Стили для кнопок навигации карусели */
.gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(39, 174, 96, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-carousel__btn:hover {
    background: rgba(39, 174, 96, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel__btn--prev {
    left: -20px;
}

.gallery-carousel__btn--next {
    right: -20px;
}

.gallery-carousel__btn:disabled {
    background: rgba(149, 165, 166, 0.5);
    cursor: not-allowed;
    transform: translateY(-50%);
}

.gallery-carousel__btn:disabled:hover {
    background: rgba(149, 165, 166, 0.5);
    transform: translateY(-50%);
}

/* Дополнительные стили для Fancybox */
.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.95);
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    margin: 10px;
}

.fancybox__button {
    background: rgba(39, 174, 96, 0.8);
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fancybox__button:hover {
    background: rgba(39, 174, 96, 1);
    transform: scale(1.1);
}

.fancybox__thumbs {
    background: rgba(0, 0, 0, 0.8);
}

.fancybox__thumb {
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fancybox__thumb.is-selected {
    border-color: #27ae60;
}

.fancybox__thumb:hover {
    border-color: rgba(39, 174, 96, 0.7);
}

/* Дополнительные стили для корректной работы Fancybox */
.fancybox__container {
    z-index: 9999;
}

.fancybox__content {
    border-radius: 8px;
    overflow: hidden;
}

.fancybox__image {
    border-radius: 8px;
}

/* Обеспечиваем правильное отображение на мобильных */
@media (max-width: 768px) {
    .fancybox__toolbar {
        padding: 10px;
    }
    
    .fancybox__button {
        width: 40px;
        height: 40px;
    }
}

/* Стили для собственного модального окна */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-modal__close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.image-modal__image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.image-modal__caption {
    padding: 15px 20px;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 16px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .image-modal__content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .image-modal__image {
        max-height: 70vh;
    }
    
    .image-modal__close {
        top: 5px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .image-modal__caption {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Стили для преимуществ */
.info-block__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-block__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-block__feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-block__feature span {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    
    .info-block__content {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
    }
    
    .genplan-sect__symbols {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
    }
    
    .genplan-sect__symbol {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-slider {
        height: 300px;
    }
    
    .info-block__title {
        font-size: 32px;
    }
    
    .gallery-tabs__nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .gallery-tabs__btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .gallery-sect__content {
        gap: 12px;
        padding: 8px 0;
    }
    
    .gallery-sect__photo {
        width: 240px;
        height: 180px;
    }
    
    .gallery-carousel__btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .gallery-carousel__btn--prev {
        left: -15px;
    }
    
    .gallery-carousel__btn--next {
        right: -15px;
    }
    
    .info-block__features {
        grid-template-columns: 1fr;
    }
    
    .info-block__list {
        grid-template-columns: 1fr;
        gap: 12px 0;
    }
    
    .info-block__video-title {
        font-size: 20px;
    }
    
    .info-block__video-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    
    .info-block {
        padding: 40px 0;
    }
    
    .info-block--documents {
        padding-top: 30px; /* Фиксированный отступ сверху на мобильных */
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .documents-accordion {
        margin-bottom: 30px; /* Отступ снизу на мобильных */
    }
    
    .about-slider {
        height: 250px;
    }
    
    .info-block__title {
        font-size: 28px;
    }
    
    .info-block__subtitle {
        font-size: 20px;
    }
    
    .gallery-sect__photo {
        width: 200px;
        height: 150px;
    }
    
    .gallery-carousel__btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .gallery-carousel__btn--prev {
        left: -10px;
    }
    
    .gallery-carousel__btn--next {
        right: -10px;
    }
    
    .info-block__video-title {
        font-size: 18px;
    }
    
    .info-block__video {
        margin: 30px 0;
    }
}

/* Стили для секции генпланов */
.genplan-sect {
    padding: 60px 0;
    background: #f8f9fa;
}

.genplan-sect__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.genplan-sect__tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 40px 0 20px 0;
}

.genplan-sect__tab {
    padding: 15px 40px;
    background: #fff;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin: 0 5px;
}

.genplan-sect__tab:first-child {
    border-radius: 8px 0 0 8px;
    margin-right: 0;
}

.genplan-sect__tab:last-child {
    border-radius: 0 8px 8px 0;
    margin-left: 0;
}

.genplan-sect__tab.active {
    background: #27ae60; /* Green color */
    color: #fff;
    border-color: #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.genplan-sect__tab:hover:not(.active) {
    background: #f8f9fa;
    border-color: #bdc3c7;
    color: #2c3e50;
}

.genplan-sect__content {
    margin-top: 20px;
}

.genplan-sect__map {
    height: 600px;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    display: none; /* Hidden by default */
}

.genplan-sect__map.active {
    display: block; /* Shown when active */
}

.genplan-sect__subtitle {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 15px 0;
    color: #2c3e50;
    text-align: center;
}

.genplan-sect__symbols {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.genplan-sect__symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    flex: 1;
    text-align: center;
}

.genplan-sect__symbol-img {
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.genplan-sect__symbol-label {
    font-size: 16px;
    font-weight: 500;
    color: #34495e;
}

.genplan-sect__title {
    text-align: center;
    margin-bottom: 20px;
}

.map-sect__title {
    text-align: center;
    margin-bottom: 20px;
}

.genplan-sect__text {
    text-align: center;
    margin-bottom: 20px;
}

.genplan-sect__text p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Стили для попапов участков */
.polygon-popup__header {
    text-align: center;
    margin-bottom: 25px;
}

.polygon-popup__title {
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.polygon-popup__status {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    color: #27ae60;
}

.polygon-popup__reserve-btn {
    color: #fff !important;
    background: #27ae60 !important;
    border: 2px solid #27ae60 !important;
    transition: all 0.3s ease;
}

.polygon-popup__reserve-btn:hover {
    background: #2ecc71 !important;
    border-color: #2ecc71 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* Стили для диалога бронирования */
.reserve-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 8;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

.reserve-dialog__container {
    padding: 39px;
}

.reserve-dialog__title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
}

.reserve-dialog__inputs {
    margin-bottom: 20px;
}

.reserve-dialog__inputs .main-footer__form-input {
    margin-bottom: 15px;
}

.reserve-dialog__inputs .main-footer__form-input:last-child {
    margin-bottom: 0;
}

.reserve-dialog__inputs input {
    height: 30px !important;
    padding: 8px 12px;
    font-size: 14px;
}

.reserve-dialog__inputs input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.reserve-dialog__checkbox {
    margin-bottom: 25px;
}

.reserve-dialog__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1.4;
}

.reserve-dialog__checkbox-label input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.reserve-dialog__checkbox-text {
    color: #6c757d;
}

.reserve-dialog__submit {
    width: 100%;
    background: #27ae60;
    border: 2px solid #27ae60;
    color: #fff;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reserve-dialog__submit:hover {
    background: #2ecc71;
    border-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.reserve-dialog__submit:active {
    transform: translateY(0);
}

/* Стили для слайдера в блоке "О поселке" */
.about-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-slider__container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-slider__track {
    display: flex;
    width: 700%; /* 7 слайдов * 100% */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.about-slider__slide {
    width: 14.285%; /* 100% / 7 слайдов */
    height: 100%;
    flex-shrink: 0;
}

/* Специфичные стили для слайдера на странице rpolya.html (8 слайдов) */
body:has(.rpolya-slider-8) .about-slider__track,
.rpolya-slider-8 .about-slider__track {
    width: 800%; /* 8 слайдов * 100% */
}

body:has(.rpolya-slider-8) .about-slider__slide,
.rpolya-slider-8 .about-slider__slide {
    width: 12.5%; /* 100% / 8 слайдов */
}

.about-slider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(39, 174, 96, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-slider__btn:hover {
    background: rgba(39, 174, 96, 1);
    transform: translateY(-50%) scale(1.1);
}

.about-slider__btn--prev {
    left: 15px;
}

.about-slider__btn--next {
    right: 15px;
}

.about-slider__btn:disabled {
    background: rgba(149, 165, 166, 0.5);
    cursor: not-allowed;
    transform: translateY(-50%);
}

.about-slider__btn:disabled:hover {
    background: rgba(149, 165, 166, 0.5);
    transform: translateY(-50%);
}

.about-slider__dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.about-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-slider__dot.active {
    background: rgba(39, 174, 96, 0.9);
    transform: scale(1.2);
}

.about-slider__dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.about-slider__dot.active:hover {
    background: rgba(39, 174, 96, 1);
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
    .about-slider__btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .about-slider__btn--prev {
        left: 10px;
    }
    
    .about-slider__btn--next {
        right: 10px;
    }
    
    .about-slider__dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .about-slider__dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .about-slider__btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .about-slider__btn--prev {
        left: 8px;
    }
    
    .about-slider__btn--next {
        right: 8px;
    }
    
    .about-slider__dots {
        bottom: 8px;
        gap: 5px;
    }
    
    .about-slider__dot {
        width: 8px;
        height: 8px;
    }
}

/* Стили для аккордеона документов */
.documents-accordion {
    margin-top: 0;
    margin-bottom: 40px; /* Отступ снизу до следующей секции */
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.accordion-icon {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in;
}

.accordion-subitem {
    border-bottom: 1px solid #f0f0f0;
}

.accordion-subitem:last-child {
    border-bottom: none;
}

.accordion-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-subheader:hover {
    background: #f8f9fa;
}

.accordion-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #34495e;
    margin: 0;
}

.accordion-subicon {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    transition: transform 0.3s ease;
}

.accordion-subitem.active .accordion-subicon {
    transform: rotate(45deg);
}

.accordion-subcontent {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease-out;
}

.accordion-subitem.active .accordion-subcontent {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in;
}

.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.documents-list li {
    padding: 12px 25px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.documents-list li:last-child {
    border-bottom: none;
}

.documents-list li:hover {
    background: #e9ecef;
}

.document-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.document-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.document-link:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Адаптивность для аккордеона */
@media (max-width: 768px) {
    .accordion-header {
        padding: 15px 20px;
    }
    
    .accordion-title {
        font-size: 18px;
    }
    
    .accordion-subheader {
        padding: 12px 20px;
    }
    
    .accordion-subtitle {
        font-size: 15px;
    }
    
    .documents-list li {
        padding: 10px 20px;
    }
    
    .document-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .accordion-header {
        padding: 12px 15px;
    }
    
    .accordion-title {
        font-size: 16px;
    }
    
    .accordion-subheader {
        padding: 10px 15px;
    }
    
    .accordion-subtitle {
        font-size: 14px;
    }
    
    .documents-list li {
        padding: 8px 15px;
    }
    
    .document-link {
        font-size: 12px;
    }
}

/* Стили для модального окна слайдера */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
}

.about-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.about-modal__close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.about-modal__close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.about-modal__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 100px 120px 100px;
}

.about-modal__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.about-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-modal__nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.about-modal__nav--prev {
    left: 30px;
}

.about-modal__nav--next {
    right: 30px;
}

.about-modal__nav:disabled {
    background: rgba(149, 165, 166, 0.5);
    cursor: not-allowed;
    transform: translateY(-50%);
}

.about-modal__nav:disabled:hover {
    background: rgba(149, 165, 166, 0.5);
    transform: translateY(-50%);
}

.about-modal__caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    text-align: center;
    z-index: 10001;
    max-width: 80%;
}

.about-modal__dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10001;
}

.about-modal__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-modal__dot.active {
    background: rgba(39, 174, 96, 0.9);
    transform: scale(1.3);
}

.about-modal__dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.about-modal__dot.active:hover {
    background: rgba(39, 174, 96, 1);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .about-modal__image-container {
        padding: 60px 60px 100px 60px;
    }
    
    .about-modal__close {
        top: 15px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .about-modal__nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .about-modal__nav--prev {
        left: 20px;
    }
    
    .about-modal__nav--next {
        right: 20px;
    }
    
    .about-modal__caption {
        bottom: 20px;
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .about-modal__dots {
        bottom: 60px;
        gap: 10px;
    }
    
    .about-modal__dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .about-modal__image-container {
        padding: 50px 40px 80px 40px;
    }
    
    .about-modal__close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .about-modal__nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .about-modal__nav--prev {
        left: 15px;
    }
    
    .about-modal__nav--next {
        right: 15px;
    }
    
    .about-modal__caption {
        bottom: 15px;
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .about-modal__dots {
        bottom: 50px;
        gap: 8px;
    }
    
    .about-modal__dot {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   СТИЛИ ДЛЯ КАРТЫ "РАСПОЛОЖЕНИЕ ПОСЁЛКОВ"
   ============================================ */

/* Стили для Vue.js v-cloak */
[v-cloak] {
    display: none !important;
}

/* Базовые стили для калькулятора */
.calc-sect {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.calc-sect__app {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.calc-sect__app-aside {
    flex: 1;
}

.calc-sect__app-content {
    flex: 1;
}

.calc-sect__app-block {
    display: none;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calc-sect__app-block.active {
    display: block;
}

.calc-sect__app-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.calc-sect__app-checks {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calc-sect__check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.calc-sect__check:hover {
    background-color: #f8f9fa;
}

.calc-sect__check input[type="radio"] {
    margin: 0;
}

.calc-sect__app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.calc-sect__app-prev,
.calc-sect__app-next {
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-sect__app-prev:hover,
.calc-sect__app-next:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.calc-sect__app-steps {
    display: flex;
    gap: 10px;
}

.calc-sect__app-step {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #2b2b2b;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 var(--dh);
    flex: 0 0 var(--dh);
    width: var(--dh);
    height: var(--dh);
    border-radius: 50%;
    border: 1px solid #eaeaea;
    font-size: 18px;
}

@media only screen and (max-width: 1370px) {
    .calc-sect__app-step {
        font-size: 16px;
    }
}

@media only screen and (max-width: 576px) {
    .calc-sect__app-step {
        font-size: 14px;
    }
}

.calc-sect__app-step span {
    display: inline-block;
}

.calc-sect__app-step img {
    display: none;
    height: auto;
    block-size: auto;
}

.calc-sect__app-step.active {
    border-color: #66a05d;
    border-width: 2px;
}

.calc-sect__app-step.done {
    border-color: #66a05d;
    background-color: #66a05d;
}

.calc-sect__app-step.done span {
    display: none;
}

.calc-sect__app-step.done img {
    display: inline-block;
}

/* Стили для формы в последнем шаге калькулятора */
.calc-sect__app-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.calc-sect__app-form .main-footer__form-input {
    margin-bottom: 0;
}

.calc-sect__app-form .main-footer__form-conf {
    margin-bottom: 0;
}

.calc-sect__app-submit {
    width: 100%;
    margin-top: 10px;
}

/* Убираем отступы между calc-sect и ready-house-sect */
.calc-sect {
    margin-bottom: 0 !important;
    padding-bottom: 60px !important;
}

/* Убираем отступы только у ready-house-sect */
.ready-house-sect {
    margin-top: 0 !important;
}

/* Убираем отступы у всех секций */
.comps-sect {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Убираем отступы между ready-house-sect и comps-sect */
.ready-house-sect + .comps-sect {
    margin-top: 0 !important;
}

/* Убираем отступы у футера */
.main-footer {
    margin-top: 0 !important;
}

/* Убираем отступы между картой и футером */
.map-sect + .main-footer {
    margin-top: 0 !important;
}

/* Стили для блока "Купите готовый дом" */
.ready-house-sect {
    padding: 0 0 60px 0;
    background-color: #1e3a8a; /* Fallback цвет */
    background-image: url('../img/gotov.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}

/* Стили для заголовка блока "Готовые дома" */
.ready-house-sect .def-gotovie {
    font-size: 52px;
    font-weight: 500;
    line-height: 1.05;
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media only screen and (max-width: 1200px) {
    .ready-house-sect .def-gotovie {
        font-size: 48px;
    }
}

@media only screen and (max-width: 992px) {
    .ready-house-sect .def-gotovie {
        font-size: 40px;
    }
}

@media only screen and (max-width: 768px) {
    .ready-house-sect .def-gotovie {
        font-size: 32px;
    }
}

@media only screen and (max-width: 576px) {
    .ready-house-sect .def-gotovie {
        font-size: 28px;
    }
}

@media only screen and (max-width: 480px) {
    .ready-house-sect .def-gotovie {
        font-size: 24px;
    }
}

.ready-house-sect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
    z-index: 1;
}

.ready-house-sect__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0 20px;
    position: relative;
    z-index: 2;
}

.ready-house-sect__title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ready-house-sect__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.ready-house-sect__feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ready-house-sect__feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ready-house-sect__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.ready-house-sect__feature:hover .ready-house-sect__icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ready-house-sect__text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ready-house-sect__button {
    text-align: center;
}

.ready-house-sect__button .def-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e3a8a;
    border: 1px solid #ffffff;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.ready-house-sect__button .def-btn:hover {
    background: #f8f9fa;
    color: #1e3a8a;
    border-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* Адаптивность для блока "Купите готовый дом" */
@media (max-width: 1024px) {
    .ready-house-sect__title {
        font-size: 32px;
    }
    
    .ready-house-sect__features {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .ready-house-sect {
        padding: 0 0 50px 0;
    }
    
    .ready-house-sect__container {
        padding: 50px 20px 0 20px;
    }
    
    .ready-house-sect__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .ready-house-sect__features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .ready-house-sect__feature {
        padding: 15px;
        gap: 12px;
    }
    
    .ready-house-sect__icon {
        width: 40px;
        height: 40px;
    }
    
    .ready-house-sect__text {
        font-size: 14px;
    }
    
    .ready-house-sect__button .def-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .ready-house-sect {
        padding: 0 0 40px 0;
    }
    
    .ready-house-sect__container {
        padding: 40px 20px 0 20px;
    }
    
    .ready-house-sect__title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .ready-house-sect__features {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .ready-house-sect__feature {
        padding: 12px;
        gap: 10px;
    }
    
    .ready-house-sect__icon {
        width: 36px;
        height: 36px;
    }
    
    .ready-house-sect__text {
        font-size: 13px;
    }
    
    .ready-house-sect__button .def-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 100px;
    }
}

/* Основные стили секции карты */
.map-sect {
    padding: 60px 0;
    background-color: #f8f9fa;
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.map-sect__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-sect__title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* Контейнер карты */
.map-sect__map {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: #e9ecef;
}

/* Стили для iframe карты */
.map-sect__map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Стили для Яндекс.Карт */
.ymaps-2-1-79-balloon {
    border-radius: 10px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.ymaps-2-1-79-balloon__content {
    padding: 20px !important;
    font-family: 'Onest', sans-serif !important;
}

.ymaps-2-1-79-balloon__header {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}

.ymaps-2-1-79-balloon__body {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

.ymaps-2-1-79-balloon__footer {
    margin-top: 10px !important;
}

.ymaps-2-1-79-balloon__footer a {
    color: #007bff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

.ymaps-2-1-79-balloon__footer a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Стили для кнопки закрытия балуна */
.ymaps-2-1-79-balloon__close {
    background-color: #007bff !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    top: 8px !important;
    right: 8px !important;
}

.ymaps-2-1-79-balloon__close:before {
    color: #fff !important;
    font-size: 14px !important;
}

/* Стили для меток на карте */
.ymaps-2-1-79-placemark {
    cursor: pointer !important;
}

/* Стили для кнопок поселков на карте */
.map-marker-custom {
    background: #1e3a8a !important;
    color: #ffffff !important;
    font-family: 'Arial', sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 10px 16px !important;
    line-height: 1.3 !important;
    border-radius: 8px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-block !important;
    min-width: 120px !important;
    height: 35px !important;
    box-sizing: border-box !important;
}

.map-marker-custom:hover {
    background: #1e40af !important;
    transform: scale(1.08) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    border-color: #f0f9ff !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .map-sect {
        padding: 40px 0;
    }
    
    .map-sect__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .map-sect__map {
        height: 400px;
        border-radius: 8px;
    }
    
    .map-sect__container {
        padding: 0 15px;
    }
    
    .ymaps-2-1-79-balloon__content {
        padding: 15px !important;
    }
    
    .ymaps-2-1-79-balloon__header {
        font-size: 16px !important;
    }
    
    .ymaps-2-1-79-balloon__body {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .map-sect {
        padding: 30px 0;
    }
    
    .map-sect__title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .map-sect__map {
        height: 350px;
        border-radius: 6px;
    }
    
    .ymaps-2-1-79-balloon__content {
        padding: 12px !important;
    }
    
    .ymaps-2-1-79-balloon__header {
        font-size: 15px !important;
    }
    
    .ymaps-2-1-79-balloon__body {
        font-size: 12px !important;
    }
    
    .map-marker-custom {
        font-size: 10px !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        min-width: 100px !important;
        height: 30px !important;
        border-width: 1px !important;
    }
}

/* Стили для сообщения "Раздел в разработке" */
.development-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.development-message__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    color: #1e3a8a;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

.development-message__icon svg {
    width: 100%;
    height: 100%;
}

.development-message__title {
    font-size: 28px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.development-message__text {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Адаптивность для сообщения о разработке */
@media (max-width: 768px) {
    .development-message {
        padding: 40px 20px;
    }
    
    .development-message__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .development-message__title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .development-message__text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .development-message {
        padding: 30px 15px;
    }
    
    .development-message__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 15px;
    }
    
    .development-message__title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .development-message__text {
        font-size: 13px;
    }
}

/* Стили для страницы ипотечных программ */
.ipoteka-sect {
    padding: 80px 0;
    background-color: #ffffff;
}

.ipoteka-sect__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ipoteka-sect__title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    line-height: 1.3;
}

.ipoteka-sect__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ipoteka-sect__item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ipoteka-sect__item:hover {
    transform: translateY(-5px);
    border-color: #27ae60;
}

.ipoteka-sect__item-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ipoteka-sect__item:hover .ipoteka-sect__item-icon {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%);
    color: #27ae60;
    transform: scale(1.1);
}

.ipoteka-sect__item-icon svg {
    width: 48px;
    height: 48px;
}

.ipoteka-sect__item-title {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipoteka-sect__item-text {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.ipoteka-sect__item-btn {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
    text-align: center;
}

/* Адаптивность для ипотечных программ */
@media (max-width: 992px) {
    .ipoteka-sect__items {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .ipoteka-sect__item {
        padding: 35px 25px;
    }
    
    .ipoteka-sect__item-title {
        font-size: 20px;
        min-height: 55px;
    }
}

@media (max-width: 768px) {
    .ipoteka-sect {
        padding: 60px 0;
    }
    
    .ipoteka-sect__title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .ipoteka-sect__items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ipoteka-sect__item {
        padding: 30px 20px;
    }
    
    .ipoteka-sect__item-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .ipoteka-sect__item-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .ipoteka-sect__item-title {
        font-size: 18px;
        margin-bottom: 12px;
        min-height: auto;
    }
    
    .ipoteka-sect__item-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .ipoteka-sect {
        padding: 40px 0;
    }
    
    .ipoteka-sect__title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .ipoteka-sect__item {
        padding: 25px 15px;
    }
    
    .ipoteka-sect__item-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .ipoteka-sect__item-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .ipoteka-sect__item-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .ipoteka-sect__item-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

/* Стили для модальных окон ипотечных программ */
.ipoteka-modal {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    position: relative;
}

/* Стили для кнопки закрытия модального окна - вынести за пределы окна */
.mfp-container .mfp-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10001;
    border: 2px solid #d0d0d0;
}

.mfp-container .mfp-close:hover {
    background: rgba(255, 255, 255, 1);
    color: #ff7043;
    border-color: #ff7043;
    transform: scale(1.1);
}

.mfp-container .mfp-close:active {
    top: -40px;
}

.ipoteka-modal__container {
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Стилизация скроллбара для модального окна */
.ipoteka-modal__container::-webkit-scrollbar {
    width: 8px;
}

.ipoteka-modal__container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ipoteka-modal__container::-webkit-scrollbar-thumb {
    background: #ff7043;
    border-radius: 4px;
}

.ipoteka-modal__container::-webkit-scrollbar-thumb:hover {
    background: #ff5722;
}

/* Для Firefox */
.ipoteka-modal__container {
    scrollbar-width: thin;
    scrollbar-color: #ff7043 #f1f1f1;
}

.ipoteka-modal__title {
    font-size: 28px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 20px;
    line-height: 1.3;
}

.ipoteka-modal__subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.ipoteka-modal__content {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 30px;
}

.ipoteka-modal__content p {
    margin-bottom: 15px;
}

.ipoteka-modal__content strong {
    color: #27ae60;
    font-weight: 600;
}

.ipoteka-modal__content ol,
.ipoteka-modal__content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.ipoteka-modal__content ol li,
.ipoteka-modal__content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.ipoteka-modal__section-title {
    font-size: 20px;
    font-weight: 600;
    color: #27ae60;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.ipoteka-modal__section-title:first-child {
    margin-top: 0;
}

.ipoteka-modal__list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.ipoteka-modal__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.ipoteka-modal__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

.ipoteka-modal__sublist {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
}

.ipoteka-modal__sublist li {
    padding-left: 20px;
    margin-bottom: 8px;
}

.ipoteka-modal__sublist li::before {
    content: "—";
    color: #64748b;
    font-size: 14px;
}

.ipoteka-modal__content a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ipoteka-modal__content a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

.ipoteka-modal__form {
    padding: 30px;
    margin-top: 30px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
}

.ipoteka-modal__form-title {
    font-size: 20px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 20px;
}

.ipoteka-modal__form .main-footer__form-input {
    margin-bottom: 15px;
}

.ipoteka-modal__form .main-footer__form-input input,
.ipoteka-modal__form .main-footer__form-input textarea {
    height: 50px;
    padding: 0 20px;
    font-size: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #ffffff;
}

.ipoteka-modal__form .main-footer__form-input textarea {
    height: auto;
    min-height: 100px;
    padding: 15px 20px;
}

.ipoteka-modal__form .main-footer__form-conf {
    margin-bottom: 20px;
}

.ipoteka-modal__submit {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
    .ipoteka-modal__container {
        padding: 30px 20px;
    }
    
    .ipoteka-modal__title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .ipoteka-modal__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .ipoteka-modal__content {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .ipoteka-modal__form-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .ipoteka-modal__container {
        padding: 25px 15px;
    }
    
    .ipoteka-modal__title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .ipoteka-modal__subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .ipoteka-modal__content {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .ipoteka-modal__form-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

/* Стили для страницы условий рассрочки */
.rassrochka-sect {
    padding: 80px 0;
    background-color: #ffffff;
}

.rassrochka-sect__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rassrochka-sect__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.rassrochka-sect__text {
    padding-right: 20px;
    text-align: justify;
}

.rassrochka-sect__title {
    font-size: 36px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 30px;
    line-height: 1.3;
    text-align: left;
}

.rassrochka-sect__text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.rassrochka-sect__text a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.rassrochka-sect__text a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.rassrochka-sect__form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rassrochka-sect__form-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 25px;
    text-align: center;
}

.rassrochka-sect__form-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rassrochka-sect__form .main-footer__form-input {
    margin-bottom: 0;
}

.rassrochka-sect__form .main-footer__form-input input {
    height: 40px;
    padding: 0 15px;
    font-size: 16px;
}

.rassrochka-sect__form .main-footer__form-conf {
    margin-bottom: 0;
}

.rassrochka-sect__form-submit {
    width: 100%;
    margin-top: 10px;
    height: 40px;
}

/* Адаптивность для блока рассрочки */
@media (max-width: 992px) {
    .rassrochka-sect__content {
        gap: 40px;
    }
    
    .rassrochka-sect__title {
        font-size: 32px;
    }
    
    .rassrochka-sect__text p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .rassrochka-sect {
        padding: 60px 0;
    }
    
    .rassrochka-sect__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .rassrochka-sect__text {
        padding-right: 0;
    }
    
    .rassrochka-sect__title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .rassrochka-sect__text p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .rassrochka-sect__form {
        padding: 30px 20px;
    }
    
    .rassrochka-sect__form-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .rassrochka-sect {
        padding: 40px 0;
    }
    
    .rassrochka-sect__container {
        padding: 0 15px;
    }
    
    .rassrochka-sect__content {
        gap: 30px;
    }
    
    .rassrochka-sect__title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .rassrochka-sect__text p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .rassrochka-sect__form {
        padding: 25px 15px;
    }
    
    .rassrochka-sect__form-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Стили для страницы npolya.html */
.npolya-sect {
    padding: 80px 0;
    background-color: #ffffff;
}

.npolya-sect__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.npolya-sect__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.npolya-sect__text {
    padding-right: 20px;
}

.npolya-sect__text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
}

.npolya-sect__text a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.npolya-sect__text a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.npolya-sect__form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.npolya-sect__form-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 25px;
    text-align: center;
}

.npolya-sect__form-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.npolya-sect__form .main-footer__form-input {
    margin-bottom: 0;
}

.npolya-sect__form .main-footer__form-input input,
.npolya-sect__form .main-footer__form-input textarea {
    height: 40px;
    padding: 0 15px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Onest', sans-serif;
}

.npolya-sect__form .main-footer__form-input textarea {
    height: auto;
    min-height: 100px;
    padding: 12px 15px;
    resize: vertical;
}

.npolya-sect__form .main-footer__form-conf {
    margin-bottom: 0;
}

.npolya-sect__form-submit {
    width: 100%;
    margin-top: 10px;
    height: 40px;
}

/* Адаптивность для блока npolya */
@media (max-width: 992px) {
    .npolya-sect__content {
        gap: 40px;
    }
    
    .npolya-sect__text p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .npolya-sect {
        padding: 60px 0;
    }
    
    .npolya-sect__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .npolya-sect__text {
        padding-right: 0;
    }
    
    .npolya-sect__text p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .npolya-sect__form {
        padding: 30px 20px;
    }
    
    .npolya-sect__form-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .npolya-sect {
        padding: 40px 0;
    }
    
    .npolya-sect__container {
        padding: 0 15px;
    }
    
    .npolya-sect__content {
        gap: 30px;
    }
    
    .npolya-sect__text p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .npolya-sect__form {
        padding: 25px 15px;
    }
    
    .npolya-sect__form-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Стили для страницы adress.html */
.adress-sect {
    padding: 80px 0;
    background-color: #ffffff;
}

.adress-sect__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.adress-sect__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.adress-sect__contacts {
    padding-right: 20px;
}

.adress-sect__contact-item {
    margin-bottom: 30px;
}

.adress-sect__contact-item:last-child {
    margin-bottom: 0;
}

.adress-sect__contact-label {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.adress-sect__contact-value {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
}

.adress-sect__contact-value a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.adress-sect__contact-value a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.adress-sect__map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.adress-sect__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Адаптивность для блока adress */
@media (max-width: 992px) {
    .adress-sect__content {
        gap: 40px;
    }
    
    .adress-sect__contact-value {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .adress-sect {
        padding: 60px 0;
    }
    
    .adress-sect__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .adress-sect__contacts {
        padding-right: 0;
    }
    
    .adress-sect__contact-item {
        margin-bottom: 25px;
    }
    
    .adress-sect__contact-label {
        font-size: 14px;
    }
    
    .adress-sect__contact-value {
        font-size: 16px;
    }
    
    .adress-sect__map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .adress-sect {
        padding: 40px 0;
    }
    
    .adress-sect__container {
        padding: 0 15px;
    }
    
    .adress-sect__content {
        gap: 30px;
    }
    
    .adress-sect__contact-item {
        margin-bottom: 20px;
    }
    
    .adress-sect__contact-label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .adress-sect__contact-value {
        font-size: 14px;
    }
    
    .adress-sect__map {
        height: 350px;
    }
}

/* Стили для блока поселков на главной странице - изменение порядка в мобильной версии */
@media (max-width: 768px) {
    .polya-sect__item {
        display: flex;
        flex-direction: column;
    }
    
    .polya-sect__item-aside {
        order: 2;
    }
    
    .polya-sect__item-img {
        order: 1;
    }
}

/* Стили для страницы новостей */
.news-sect {
    padding: 80px 0;
    background-color: #ffffff;
}

.news-sect__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-sect__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-sect__item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-sect__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1e3a8a;
}

.news-sect__item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-sect__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-sect__item:hover .news-sect__item-image img {
    transform: scale(1.05);
}

.news-sect__item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-sect__item-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-sect__item-date {
    font-size: 14px;
    color: #9aa0b5;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.news-sect__item-text {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-sect__item-btn {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
    text-align: center;
    align-self: flex-start;
}

/* Адаптивность для блока новостей */
@media (max-width: 992px) {
    .news-sect__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .news-sect__item-image {
        height: 180px;
    }
    
    .news-sect__item-title {
        font-size: 18px;
    }
    
    .news-sect__item-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .news-sect {
        padding: 60px 0;
    }
    
    .news-sect__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-sect__item-image {
        height: 200px;
    }
    
    .news-sect__item-content {
        padding: 20px;
    }
    
    .news-sect__item-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .news-sect__item-text {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .news-sect {
        padding: 40px 0;
    }
    
    .news-sect__container {
        padding: 0 15px;
    }
    
    .news-sect__grid {
        gap: 15px;
    }
    
    .news-sect__item-image {
        height: 180px;
    }
    
    .news-sect__item-content {
        padding: 15px;
    }
    
    .news-sect__item-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .news-sect__item-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .news-sect__item-link {
        font-size: 14px;
    }
}

/* Стили для страницы акций share.html */
.polya-sect__articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.polya-sect__article {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.polya-sect__article:last-child {
    border-bottom: none;
}

.polya-sect__article-img {
    flex-shrink: 0;
    width: 270px;
    height: 270px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.polya-sect__article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polya-sect__article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
}

.polya-sect__article-title {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.polya-sect__article-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Адаптивность для блока акций */
@media (max-width: 768px) {
    .polya-sect__article {
        flex-direction: column;
        gap: 15px;
    }
    
    .polya-sect__article-img {
        width: 100%;
        height: 200px;
    }
    
    .polya-sect__article-title {
        font-size: 20px;
    }
    
    .polya-sect__article-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .polya-sect__article {
        padding: 15px 0;
    }
    
    .polya-sect__article-img {
        height: 180px;
    }
    
    .polya-sect__article-title {
        font-size: 18px;
    }
    
    .polya-sect__article-content p {
        font-size: 14px;
    }
}