/* Responsive стили */
/* Общие медиа-запросы */
@media (max-width: 1200px) {
  .stats-grid,
  .consulting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .value-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .value-content {
    width: 100%;
    align-items: center;
  }
  
  .value-image-wrapper {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    max-width: 400px;
    margin-top: 40px;
  }
  
  .btn-dark {
    align-self: center;
  }
}

@media (max-width: 1024px) {
  .footer-main,
  .footer-bottom {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .purchase-grid,
  .real-estate-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .sales-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .final-cta-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  
  .cta-form-container {
    width: 100%;
    max-width: 450px;
    padding-left: 0;
  }
  
  .cta-text h2,
  .real-estate-section h2 {
    font-size: 48px;
    text-align: center;
  }
}

@media (max-width: 992px) {
    .wpcf7-form {
        padding: 20px;
    }
  .additional-services-grid,
  .cases-grid,
  .full-service-grid {
    grid-template-columns: 1fr;
  }
  .form-fields {
    grid-template-columns:  100%;
  }
  
  .lot-title,
  .price-text {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  /* Общие стили */
  section {
    padding: 60px 0;
  }
  
  .header-contact .phone-number {
    display: none;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 16px;
  }
  
  /* Hero секция */
  .hero-section,
  .hero-slider {
    height: 600px;
    min-height: 400px;
  }
  
  .hero-content {
    margin-top: 200px;
  }
  
  .hero-content h1 {
    font-size: 48px;
  }
  
  .hero-content p {
    font-size: 20px;
  }
  
  .slider-nav {
    padding: 0 1rem;
  }
  
  .slider-prev,
  .slider-next {
    width: 45px;
    height: 45px;
  }
  
  .slider-prev {
    margin-left: 0.5rem;
  }
  
  .slider-next {
    margin-right: 0.5rem;
  }
  
  /* Секции */
  .trust-section,
  .value-section,
  .recommendations-section,
  .consulting-section {
    padding: 80px 0;
  }
  
  .trust-header h2,
  .clients-header h2,
  .sales-header h2,
  .full-service-header h2,
  .additional-services-header h2,
  .cases-section h2,
  .acquisition-conditions h2,
  .location-header .section-title,
  .recommendations-section h2 {
    font-size: 36px;
  }
  
  .trust-header p,
  .clients-header p,
  .sales-header p,
  .additional-services-header p,
  .value-description {
    font-size: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .value-image-wrapper {
    max-width: 250px;
  }
  
  .value-content {
    padding: 80px 0 56px;
  }
  
  .recommendations-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .consulting-grid {
    grid-template-columns: 1fr;
  }
  
  /* Лоты */
  .lot-header {
    padding: 0;
  }
  
  .lot-title,
  .price-text {
    font-size: 32px;
  }
  
  .lot-details-bar {
    gap: 8px;
    width: 70%;
    justify-content: flex-start;
  }
  
  .live-camera-btn {
    font-size: 12px;
    padding: 8.58px 10.16px;
    width: 103.3px;
  }
  
  .premium-badge {
    padding: 5.1px 9.35px;
    font-size: 15px;
  }
  
  .gallery-slides {
    aspect-ratio: 1920 / 1080;
    min-height: 31vh;
  }
  
  .gallery-nav {
    width: 45px;
    height: 45px;
  }
  
  .gallery-nav.prev {
    left: 15px;
  }
  
  .gallery-nav.next {
    right: 15px;
  }
  
  .purchase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .purchase-card {
    padding: 24px;
  }
  
  .purchase-form-wrapper {
    padding-left: 0;
    padding-top: 20px;
  }
  
  /* CTA */
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-box {
    padding: 32px 24px;
    margin: 0 20px;
    max-width: calc(100% - 40px);
  }
  
  .cta-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-form button,
  .purchase-form button {
    height: auto;
    padding: 16px 24px !important;
    font-size: 16px !important;
  }
  
  /* Footer */
  .footer-section, .site-footer {
    padding: 80px 0;
  }
  
  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  
  .footer-section .container, .site-footer .container {
    gap: 60px;
  }
  
  /* Business Partners */
  .business-partners-section {
    padding: 80px 0;
  }
  
  .business-partners__title {
    font-size: 36px;
  }
  
  .business-partners__subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .partners-slider .owl-item {
    width: 150px;
    height: 90px;
    margin-right: 15px;
  }
  
  /* Surroundings */
  .surroundings-gallery-wrapper {
    padding: 0 !important;
  }
  
  .cta-box {
    padding: 18px 18px !important;
  }
  
  .surroundings-navigation {
    bottom: auto !important;
    top: 0 !important;
    left: 20px !important;
    right: 20px !important;
  }
  
  #surroundingsCarousel .surroundings-image img {
    aspect-ratio: 1920 / 1080 !important;
    height: 60vh !important;
  }
  
  .surroundings-navigation .carousel-control-prev,
  .surroundings-navigation .carousel-control-next {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 50vh;
    min-height: 300px;
  }
  
  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-content p {
    font-size: 14px;
  }
  
  .header-container {
    padding: 0 15px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
    line-height: 20px;
  }
  
  .business-partners__title {
    font-size: 28px;
  }
  
  .partners-slider .owl-item {
    width: 120px;
    height: 70px;
    margin-right: 10px;
  }
  
  .partners-slider .owl-item img {
    width: 100%;
    height: auto;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
  
  .quote-author p {
    font-size: 12px !important;
  }
}
@media (max-width: 768px) {
    .page-title-heading {
        font-size: 32px;
    }
}
@media (max-width: 768px) {
    .category-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
@media (max-width: 1200px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
}
/* Адаптивность about-gallery */
@media (max-width: 992px) {
  .gallery-row {
    flex-wrap: wrap;
  }
  
  .gallery-item.col-7,
  .gallery-item.col-8,
  .gallery-item.col-9,
  .gallery-item.col-10,
  .gallery-item.col-11,
  .gallery-item.col-12 {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .gallery-item.col-3,
  .gallery-item.col-4,
  .gallery-item.col-5,
  .gallery-item.col-6,
  .gallery-item.col-7,
  .gallery-item.col-8,
  .gallery-item.col-9,
  .gallery-item.col-10,
  .gallery-item.col-11,
  .gallery-item.col-12 {
    flex: 0 0 100%;
  }
  
  .surroundings-image {
    aspect-ratio: auto !important;
  }
}


@media (max-width: 767px) {
    .lot-title {
        font-size: 32px;
    }
    .lot-sleepy-info {
        gap: 0;
        flex-wrap: wrap;
    }
    .intro-section {
        padding: 0px 10px 0;
    }

    .detail-item {
        display: grid !important;
        grid-template-columns: repeat(3, max-content);
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        font-size: 12px !important;
        line-height: 16px !important;
    }

    .intro-content {
        flex-direction: column;
        gap: 40px;
    }

    .intro-header {
        flex: none;
        max-width: 100%;
    }

    .intro-title {
        font-size: 32px;
    }

    .intro-subtitle {
        font-size: 32px;
    }

    .intro-text {
        max-width: 100%;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .master-plan-section {
        padding: 0px 10px 0;
    }

    .master-plan-title {
        font-size: 32px;
    }

    .master-plan-info {
        flex-direction: column;
        gap: 15px;
    }

    .info-box {
        min-width: auto;
        padding: 15px 20px;
    }

    .info-text {
        font-size: 1rem;
    }

    .master-plan-overlay {
        top: 15px;
        left: 15px;
        gap: 8px;
        flex-direction: column;
    }

    .master-plan-overlay .info-box {
        padding: 12px 12px;
    }

    .master-plan-overlay .info-text {
        font-size: 0.9rem;
    }

    .acquisition-conditions {
        padding: 60px 10px 0;
    }

    .consultation-section-2 {
        padding: 60px 10px 60px;
    }

    .master-plan-img {
        height: unset;
    }
}
@media (max-width: 992px) {
    .purchase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 32px;
    }

    .intro-subtitle {
        font-size: 32px;
    }

    .master-plan-title {
        font-size: 32px;
    }

    .master-plan-overlay {
        top: 10px;
        left: 10px;
        gap: 6px;
        flex-direction: column;
    }

    .master-plan-overlay .info-box {
        padding: 10px 10px;
    }

    .master-plan-overlay .info-text {
        font-size: 0.8rem;
        white-space: normal;
    }

    .icon-card:hover img {
        filter: brightness(0) invert(1);
    }
}
/* Адаптивность */
@media (max-width: 1440px) {
    .header-container {
        padding: 20px 64px;
    }
}

@media (max-width: 1200px) {
    .header-container {
        padding: 20px 32px;
    }
    
    .main-nav ul {
        gap: 24px;
    }
    
    .header-contact {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .header-contact {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .header-container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
        height: 70px;
    }
    
    .logo {
        width: 50px;
        height: 37px;
    }
}

/* Бургер-иконка становится темной при скролле */
.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #FFFFFF;
    margin: 5px 0;
    transition: 0.3s;
}
.archive .header .mobile-nav-toggle span,
.single-lot .header .mobile-nav-toggle span,
.header-scrolled .mobile-nav-toggle span {
    background: #1E2143;
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}



/* Стили для мобильного меню */
.mobile-menu-active .main-nav {
    display: block;
    position: fixed;
    top: 70px;
    height: calc(100vh - 70px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 33, 67, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    overflow-y: auto;
}

.mobile-menu-active .main-nav ul {
    flex-direction: column;
    gap: 30px;
    height: auto;
}

.mobile-menu-active .main-nav a {
    font-size: 18px;
    color: #FFFFFF !important;
}


.mobile-menu-active .mobile-nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-active .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-active .mobile-nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Класс для затемнения контента при открытом мобильном меню */
.mobile-menu-active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }
}
/* Мобильная адаптация */
@media (max-width: 768px) {
    .error-404-title {
        font-size: 80px;
    }

    .error-404-subtitle {
        font-size: 28px;
    }

    .error-404-text {
        font-size: 16px;
    }

    .error-404-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-404-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .footer-logo-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-logo-col a {
        flex: 0;
    }
    .contacts-main-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .contacts-info h1 {
        font-size: 2.5rem;
    }
    
    .graphic-element {
        width: 150px;
    }
    
    .contacts-map-section h2,
    .contacts-departments-section h2 {
        font-size: 2rem;
    }
    
    .departments-list {
        padding: 30px 0;
    }
    
    .department-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .department-header {
        min-width: auto;
    }
    
    .department-details {
        margin-left: 0;
    }
    
    .details-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .details-left,
    .details-right {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .graphic-element {
        width: 120px;
    }
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .rate-subtitle,
    .payment-subtitle {
        font-size: 13px;
    }

    .payment-label-1 {
        font-size: 12px;
    }

    .rate-label,
    .payment-label {
        font-size: 11px;
    }
}
/* Адаптив для блока условий */
@media (max-width: 992px) {
    .purchase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .purchase-form-wrapper {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .acquisition-conditions h2 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .acquisition-conditions h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .purchase-card {
        padding: 24px;
    }
}
@media (max-width: 1280px) {

} 
 
@media (max-width: 992px) {
    .section {
            padding: 90px 0;
    }
    .quote-content {
      padding: 30px 20px;

    }
    .quote-description {
        font-size: 20px;
    }

    .col4-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-modal .service-modal__content .wp-block-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .section-quote,
    .col4-grid,
    .col3-grid,
    .col2-grid {
        grid-template-columns: 100%;
    }
    .section-quote .wp-block-image {
        display: none;

    }
    .service-modal__close {
        color: var(--color-primary);
        top: 0px;
    right: 5px;
    }
    .modal-body .form-group label {
            margin-bottom: 3px;
    margin-top: 10px;
    }

    .service-modal h2.section-title,
    .section h2.section-title {
        font-size: 28px;
    }
    .service-modal p.section-sibtitle,
    .section p.section-sibtitle {
        font-size: 17px;
    }
    .service-modal .service-modal__content .wp-block-column {
        padding: 20px!important;
    }
    .service-modal__content {
        position: relative;
    margin: 70px auto;
    padding: 0;
    max-height: 95vh;
    max-width:  95vw;
    overflow-y: auto;
    transform: none;
}
.service-modal__content .wp-block-image {
    display: none;
}

}