:root {
    --text-color: #1d1d1d;
    --text-color-white: #ffffff;
    --button-background: rgb(234,26,50);
    --button-background-hover: rgb(148, 25, 40);
    --background-light-color: #ffffff;
    --blue-main-color: rgb(20, 18, 48);
    --gray-background: #dbdbdb;
}

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        scroll-behavior: smooth;
    }

    body {
        font-family: "Roboto", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
        line-height: 1.5;
        overflow-x: hidden;
        background-color: var(--background-light-color) !important;
        
    }

    p {
        font-size: 1.1em;
        color: #666;
        line-height: 1.6;
        padding-bottom: 10px;
    }

    b {
        color: var(--blue-main-color);
    }

    h2 {
        text-transform: uppercase;
        font-size: 2.5em;
        margin-bottom: 30px;
        color: var(--blue-main-color);
        text-align: center;
        padding-bottom: 40px;
    }

    h3 {
        font-size: 1.8em;
        margin-bottom: 20px;
        color: #333;
        text-transform: uppercase;
    }

    .btn {
        background: linear-gradient(135deg, #339dff 0%, rgb(31 28 73) 100%);
    
        color: white;
        border: none;
        padding: 10px 25px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s ease;
        /* text-transform: uppercase; */
        line-height: 1.4em;
    }

    .btn:hover {
        background: linear-gradient(135deg, #0586ff 0%, rgb(9, 2, 99) 100%);
    
    }

    .house-btn {
        text-transform: none;
        padding: 10px 20px;
    }

    .cta-btn {
        height: 70px;
    }

    .form-btn {
        width: 100%;
    }

    /*** Основной заголовок ***/
    .main-header {
        background-color: var(--background-light-color) !important;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .header-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .phone {
        font-size: 24px;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
    }

    .phone:hover {
        text-decoration: underline;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .navigation ul li {
        list-style: none;
        padding: 0 15px;
    }

    .nav-link{
        text-decoration: none;
        text-transform: uppercase;
        color: var(--text-color);
        font-weight: 400;
        font-size: 18px;

    }

    .navigation ul a:hover {
        text-decoration: underline;
    }

    /*** Липкий заголовок ***/
    .sticky-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--background-light-color);
        padding: 15px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sticky-header.visible {
        transform: translateY(0);
    }

    .sticky-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .sticky-logo {
        font-size: 20px;
        font-weight: bold;
        color: #ffffff;
    }

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

    .sticky-phone {
        font-size: 20px;
        color: #333;
        text-decoration: none;
        font-weight: 600;
    }

    .sticky-phone:hover {
        text-decoration: underline;
    }

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

    /* Бургер-меню */
    .burger-menu {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .burger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: left center;
    }

    .burger-menu.active span:first-child {
        transform: rotate(45deg) translate(2px, -2px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:last-child {
        transform: rotate(-45deg) translate(2px, 2px);
    }

    /* Мобильное меню */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: flex-end;
        z-index: 2000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: flex;
        opacity: 1;
    }

    .mobile-menu {
        width: 300px;
        height: 100%;
        background: white;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .mobile-menu-overlay.active .mobile-menu {
        transform: translateX(0);
    }

    .mobile-menu-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .mobile-logo {
        font-size: 20px;
        font-weight: bold;
        color: #333;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 30px;
        color: #333;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
    }

    .mobile-menu-close:hover {
        color: #007bff;
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 20px 0;
        flex: 1;
    }

    .mobile-nav-link {
        display: block;
        padding: 15px 30px;
        text-decoration: none;
        color: #333;
        font-size: 18px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
    }

    .mobile-nav-link:hover {
        background: #f8f9fa;
        color: #007bff;
        border-left-color: #007bff;
    }

    .mobile-menu-footer {
        padding: 20px;
        border-top: 1px solid #eee;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-phone {
        font-size: 18px;
        color: #333;
        text-decoration: none;
        font-weight: bold;
        text-align: center;
    }

    .mobile-call-btn {
        padding: 12px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .mobile-call-btn:hover {
        background: #0056b3;
    }


    /*** Первый экран ***/
    .main-section {
        height: 50vh;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        background: url('/images/main/3.jpg') center center / cover no-repeat;
    }

    .gallery-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease;
        background-size: cover;
        background-position: center;
    }

    .gallery-slide.active {
        opacity: 1;
    }

    .main-title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: var(--text-color-white);
        text-align: center;
        z-index: 2;
        width: 100%;
    }

    .main-title h1 {
        font-size: 3.5em;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .main-title p {
        font-weight: 600;
        color: var(--text-color-white);
    }

    /* Второй экран - текст */
    .text-section {
        padding: 60px 20px;
        background: var(--background-light-color);
    }

    /* .text-section h2 {
        font-size: 2.5em;
        margin-bottom: 30px;
        color: var(--blue-main-color);
        text-align: center;
    } */

    .text-content-container {
        display: flex;
        flex-direction: column;
    }

    .text-content {
        max-width: 1250px;
        margin: 0 auto;  
        display: flex;   
        justify-content: space-around;
        align-items: center;
        margin-bottom: 30px;
    }

    .text-section-content-1,
    .text-section-content-3 {
        flex-direction: row-reverse;
        text-align: right;
    }

    .text-section-content-2,
    .text-section-content-4 {
        flex-direction: row;
        text-align: left;
    }

    .text-content p {
        font-size: 1.2em;
        color: var(--text-color);
        line-height: 1.5;
        
        max-width: 45%;

    }

    .text-section-img {
        max-width: 45%;
        border-radius: 8px;
    }

    /* Третий экран - фото и текст */
    .houses-section {
        padding: 60px 20px;
        background: var(--background-light-color);;
    }

    .houses-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 30px;
    }

    /* .houses-container h2 {
        text-align: center;
        font-size: 2.5em;
        margin-bottom: 50px;
        color: var(--text-color);
    } */

    .houses-item {
        display: flex;
        align-items: top;
        margin-bottom: 60px;
        gap: 40px;
    }

    .houses-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .houses-gallery {
        flex: 1;
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .gallery-container {
        position: relative;
        height: 100%;
        overflow: hidden;
    }

    .gallery-slides {
        display: flex;
        transition: transform 0.5s ease;
        height: 100%;
    }

    /* .gallery-slide-item {
        min-width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    } */

    .gallery-slide-item {
        min-width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .gallery-slide-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        object-position: center;
        display: block;
    }

    .gallery-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.8);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
        z-index: 10;
    }

    .gallery-arrow:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-50%) scale(1.1);
    }

    .gallery-arrow.prev {
        left: 15px;
    }

    .gallery-arrow.next {
        right: 15px;
    }

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

    .gallery-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .gallery-dot.active {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.2);
    }
/* 
    .houses-image {
        flex: 1;
        height: 400px;
        background: #ddd;
        border-radius: 10px;
        overflow: hidden;
    }

    .houses-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    } */

    .houses-text {
        flex: 1;
    }


    .houses-text h4 {
        font-size: 1.2em;
        margin-bottom: 20px;
        color: #5f5f5f;
    }

    .houses-text p {
        font-size: 1.1em;
        color: #666;
        line-height: 1.6;
    }

    .house-data-table {
        font-size: 0.9em;
        color: #666;
    }

    .house-data-table tr {
        padding: 0 0;
    }

    .house-data-table td:nth-child(1) {
        font-weight: 600;
    }



    /* Четвертый экран - карта */
    .map-section {
        padding: 60px 0 60px 0;
    }

    .map-content {
        max-width: 1200px;
        width: 100vw;
        margin: 0 auto;
        text-align: center;
    }

    /* .map-content h2 {
        font-size: 2.5em;
        margin-bottom: 30px;
        color: #333;
    } */

    .position {
        margin-top: 30px;
        margin-bottom: 30px;
    }


    .position-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .position-item {
        flex: 1;
        text-align: center;
        padding: 0 30px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .position-number {
        font-size: 2em;
        font-weight: 800;
        color: var(--blue-main-color);
        line-height: 1;
        margin-bottom: 10px;
        display: flex;
        align-items: baseline;
        justify-content: center;
    }

    .position-unit {
        font-size: 0.5em;
        font-weight: 600;
        color: #666;
        margin-left: 4px;
    }

    .position-label {
        font-size: 1.1em;
        color: #666;
        line-height: 1.4;
        max-width: 200px;
        margin: 0 auto;
    }

    .position-divider {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 100px;
        background: linear-gradient(to bottom, 
            transparent 0%, 
            rgba(31, 28, 73, 0.1) 10%, 
            rgba(31, 28, 73,0.1) 90%, 
            transparent 100%);
    }

    /* Убираем разделитель у последнего элемента */
    .position-item:last-child .position-divider {
        display: none;
    }

    .get-presentation {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 30px;
        background-color: var(--gray-background);
        border-radius: 8px;
    }

    .call-to-preview {
        max-width: 1024px;
        margin: 0 auto;
        /* padding: 30px; */
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-radius: 8px;
    }

    .call-to-preview-text {
        width: 80%;
        padding: 0 20px;
    }

    .call-to-preview p {
        text-align: left;
    }

    .features {
        background: var(--gray-background);
        padding: 60px 0 50px;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        border-radius: 8px;
    }

    .features-container {
        padding: 0 30px;
        
    }

    .feature {
        display: flex;
        justify-content: space-between;
        margin-bottom: 50px;
    }

    .feature-text, .feature-img {
        width: 45%;
    }

    .feature-img img {
        border-radius: 8px;
        width: 100%;
    }

    .feature-1 {
        flex-direction: row-reverse;
    }








    /* Кнопка позвонить */
    .call-button {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: rgb(31, 28, 73);
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 24px;
        box-shadow: 0 4px 15px rgba(0,123,255,0.3);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .call-button img {
        width: 50%;
        height: 50%;
    }

    .call-button:hover {
        background: #01a101;
        transform: scale(1.1);
    }




    /* Футер */
    footer {
        background: #333;
        color: white;
        padding: 50px 20px;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-info {
        flex: 1;
        min-width: 300px;
        color: var(--text-color-white);
    }

    .footer-info-right {
        text-align: right;
    }

    .footer-info h3 {
        margin-bottom: 20px;
        font-size: 1.5em;
        color: var(--text-color-white);
    }

    .footer-info p {
        margin-bottom: 10px;
        color: var(--text-color-white);
    }

    .footer-info b {
        color: var(--text-color-white);
    }

    .footer-phone {
        font-size: 1.2em;
        color: white;
        text-decoration: none;
        font-weight: bold;
    }

    .footer-link {
        font-size: 1em;
        color: white;
        cursor: pointer;
    }

    .footer-phone:hover, .footer-link:hover {
        text-decoration: underline;
    }

    /* Модальное окно */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .modal {
        background: white;
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-width: 500px;
        width: 90%;
        transform: scale(0.7);
        transition: transform 0.3s ease;
        position: relative;
    }

    .modal-overlay.active .modal {
        transform: scale(1);
    }

    .modal-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        transition: color 0.3s ease;
    }

    .modal-close:hover {
        color: #333;
    }

    .modal-title {
        text-align: center;
        margin-bottom: 30px;
        color: #333;
        font-size: 1.8em;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: bold;
    }

    .form-input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        transition: border-color 0.3s ease;
    }

    .form-input:focus {
        outline: none;
        border-color: rgb(31, 28, 73);
    }

    .submit-btn {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #339dff 0%, rgb(31 28 73) 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s ease;
        margin-top: 10px;
    }

    .submit-btn:hover {
        background: #700000;
    }

    .form-note {
        text-align: center;
        margin-top: 20px;
        color: #666;
        font-size: 0.9em;
    }

    /* Кнопка вызова модального окна в тексте */
    .call-request-btn {
        background: linear-gradient(135deg, #339dff 0%, rgb(31 28 73) 100%);
    
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.3s ease;
        margin: 10px 5px;
    }

    .call-request-btn:hover {
        background: linear-gradient(135deg, #0586ff 0%, rgb(9, 2, 99) 100%);
    
    }

.presentation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #339dff 0%, rgb(31 28 73) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
    margin: 20px 0;
}

.presentation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
    background: linear-gradient(135deg, #7fc1ff 0%, rgb(42, 40, 75) 100%);
    
}

.presentation-btn span {
    font-size: 20px;
}

/* Модальное окно презентации */
.presentation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.presentation-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.presentation-modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.presentation-modal-overlay.active .presentation-modal {
    transform: scale(1) translateY(0);
}

.presentation-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    border-radius: 50%;
}

.presentation-modal-close:hover {
    color: #333;
    background: #f5f5f5;
}

.presentation-modal-content {
    text-align: center;
}

.presentation-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.presentation-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.presentation-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.presentation-form .form-group {
    margin-bottom: 25px;
}

.presentation-form .form-label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.presentation-form .form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.presentation-form .form-input:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.presentation-form .form-input.error {
    border-color: #ff4757;
    background: #fff5f5;
}

.presentation-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #339dff 0%, rgb(31 28 73) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.presentation-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a0db9 0%, #1d6df0 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.presentation-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.presentation-note {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
    line-height: 1.5;
}

.policy-link {
    color: #6a11cb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-link:hover {
    text-decoration: underline;
    color: #5a0db9;
}

/* Успешная отправка */
.presentation-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-btn {
    padding: 15px 40px;
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background: #5a0db9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}


    /* Стили для ссылки Планировки */
    .layouts-link {
        display: inline-block;
        padding: 10px 0 0;
        
        color: var(--blue-main-color);
        text-decoration: none;
        border-bottom: dotted 2px;
        font-weight: 500;
        transition: all 0.3s ease;
        margin: 10px 25px 10px 5px;
    }

    .layouts-link:hover {
        border-bottom: solid 2px;
    }

    /* Модальное окно для планировок */
    .layouts-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 4000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .layouts-modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .layouts-modal {
        position: relative;
        width: 90%;
        height: 90%;
        max-width: 1000px;
        max-height: 700px;
        background: #000;
        border-radius: 15px;
        overflow: hidden;
        transform: scale(0.8);
        transition: transform 0.3s ease;
    }

    .layouts-modal-overlay.active .layouts-modal {
        transform: scale(1);
    }

    .layouts-modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 30px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }

    .layouts-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .layouts-modal-container {
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .layouts-modal-slides {
        display: flex;
        transition: transform 0.5s ease;
        height: 100%;
        width: 100%;
    }

    .layouts-modal-slide {
        min-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
    }

    .layouts-modal-image {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }

    .layouts-modal-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 24px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
        z-index: 10;
    }

    .layouts-modal-arrow:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .layouts-modal-arrow.prev {
        left: 20px;
    }

    .layouts-modal-arrow.next {
        right: 20px;
    }

    .layouts-modal-counter {
        position: absolute;
        top: 20px;
        left: 20px;
        color: white;
        font-size: 16px;
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 16px;
        border-radius: 20px;
        z-index: 10;
    }

    .layouts-modal-title {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 16px;
        border-radius: 20px;
        z-index: 10;
    }
  /* Анимация загрузки */
    .gallery-modal-loading {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 18px;
    }

    /* Улучшение для основной галереи */
    .gallery-container {
        position: relative;
        height: 400px;
        overflow: hidden;
        border-radius: 10px;
        cursor: pointer;
    }

    .gallery-slide-item {
        min-width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        transition: transform 0.3s ease;
    }

    .gallery-container:hover .gallery-slide-item {
        transform: scale(1.05);
    }

            
    .photo-gallery-section {
        padding: 60px 20px;
    }



    .photo-gallery-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .photo-gallery-wrapper {
        position: relative;
        overflow: hidden;
        padding: 0 50px;
    }

    .photo-gallery-track {
        display: flex;
        transition: transform 0.5s ease;
        gap: 15px;
    }

    .photo-gallery-item {
        flex: 0 0 calc(16.666% - 13px); /* 6 фотографий в ряду */
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        aspect-ratio: 1;
    }

    .photo-gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

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

    .photo-gallery-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .photo-gallery-arrow:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-50%) scale(1.1);
    }

    .photo-gallery-arrow.prev {
        left: 0;
    }

    .photo-gallery-arrow.next {
        right: 0;
    }

    .photo-gallery-arrow.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .photo-gallery-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 30px;
    }

    .photo-gallery-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ddd;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .photo-gallery-dot.active {
        background: var(--blue-main-color);
        transform: scale(1.2);
    }

    /* Модальное окно для большой галереи */
    .photo-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 4000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .photo-modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .photo-modal {
        position: relative;
        width: 90%;
        height: 90%;
        max-width: 1000px;
        max-height: 700px;
        background: #000;
        border-radius: 15px;
        overflow: hidden;
        transform: scale(0.8);
        transition: transform 0.3s ease;
    }

    .photo-modal-overlay.active .photo-modal {
        transform: scale(1);
    }

    .photo-modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 30px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }

    .photo-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .photo-modal-container {
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .photo-modal-slides {
        display: flex;
        transition: transform 0.5s ease;
        height: 100%;
        width: 100%;
    }

    .photo-modal-slide {
        min-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
    }

    .photo-modal-image {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }

    .photo-modal-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 24px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
        z-index: 10;
    }

    .photo-modal-arrow:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .photo-modal-arrow.prev {
        left: 20px;
    }

    .photo-modal-arrow.next {
        right: 20px;
    }

    .photo-modal-counter {
        position: absolute;
        top: 20px;
        left: 20px;
        color: white;
        font-size: 16px;
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 16px;
        border-radius: 20px;
        z-index: 10;
    }

    /* Секция обратной связи */
.callback-section {
    position: relative;
    overflow: hidden;
    background-color: var(--gray-background) !important;
    padding: 30px 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.container {
    padding: 0 30px;
}

.callback-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    overflow: hidden;
    align-items: flex-start;
}

/* Левая часть - форма */
.callback-form-container {
    flex: 1;
    padding: 35px;
    min-width: 50%;
}

.callback-form-wrapper {
    max-width: 450px;
    margin: 0 auto;
}

.callback-form {
    width: 100%;
}

.form-row {
    margin-bottom: 5px;
}

.callback-form-group {
    width: 100%;
}

.callback-form-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 15px;
}

.callback-form-input {
    width: 100%;
    padding: 10px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.callback-form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.callback-form-input.error {
    border-color: #ff4757;
    background: #fff5f5;
}

.error-message {
    color: #ff4757;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

.callback-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.callback-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0069d9 0%, #004a99 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.callback-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Согласие на обработку данных */
.callback-agreement {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-input {
    margin-top: 3px;
    min-width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.checkbox-label a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Сообщение об успехе */
.callback-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Правая часть - фотография */
.callback-image-container {
    flex: 1;
    height: 100%;
    min-width: 50%;
    position: relative;
    padding-top: 40px;
}

.callback-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.callback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.9) 0%, rgba(0, 86, 179, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.callback-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.callback-image-wrapper:hover .overlay-content {
    transform: translateY(0);
}

.phone-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.overlay-title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.overlay-text {
    font-size: 18px;
    opacity: 0.9;
}