/* complex.css — общие стили для страниц жилых комплексов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}
section {
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #0f172a;
}

/* ----- Hero с фиксированным фоном ----- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Новый оверлей с текстом */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-slogan h2 {
    font-size: 48px;
    margin-bottom: 16px;
    color: white;
}

.hero-slogan p {
    font-size: 24px;
    font-weight: 300;
}

/* ----- Шапка внутри hero ----- */
.complex-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  color: white;
  background: #0000004f;
  border-bottom: 3px groove #000;
}

.header-logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-small {
    height: 48px;
    width: auto;
}

.complex-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-nav {
    display: flex;
    gap: 32px;
    font-weight: 500;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.2s;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.header-nav a:hover {
    opacity: 0.8;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: white;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-icons a:hover {
    background: rgba(255,255,255,0.3);
}

/* ----- Слайдеры ----- */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.slider-track {
    display: flex;
    transition: transform 0.3s ease;
}
.slider-slide {
    flex: 0 0 100%;
}
.slider-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.2s;
}
.slider-dot.active {
    background: #2563eb;
    transform: scale(1.3);
}
.auto-slider .slider-track {
    transition: transform 0.8s ease;
}

/* ----- Карта ----- */
.map-container {
    margin: 0 auto;
}
.map-image {
  max-height: 90vh;
  display: block;
  border: 3px groove #000;
  border-radius: 4px;
  box-shadow: 7px 7px 7px #000;
  margin: 8px;
}

/* ----- Планировки ----- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}
.plan-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.plan-card img {
    width: 100%;
    height: auto;
    display: block;
}
.plan-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-plan {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}
.btn-plan:hover {
    background: #1d4ed8;
}
.btn-outline-plan {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}
.btn-outline-plan:hover {
    background: #2563eb;
    color: white;
}

/* ----- Форма обратной связи ----- */
.section-feedback {
    background: transparent;
}
.section-feedback form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 32px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
}
.form-submit {
    background: #2563eb;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.form-submit:hover {
    background: #1d4ed8;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    overflow: hidden;
}
.form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.form-content {
    padding: 40px;
}
@media (max-width: 768px) {
    .form-wrapper {
        grid-template-columns: 1fr;
    }
    .form-content {
        padding: 20px;
    }
}


/* ----- Footer ----- */
footer {
    padding: 2vh 4vw 0 4vw;
    position: relative;
}
.footer-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 3px 3px 3px #000;
}
.footer-content {
    padding: 40px 20px;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.footer-links a:hover {
    opacity: 0.8;
}
.footer-copy {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 992px) {
    .complex-header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
    }
    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .plans-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    h2 {
        font-size: 28px;
    }
    .hero-slogan h2 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .header-logo-area {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-contacts {
        flex-wrap: wrap;
        gap: 12px;
    }
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal {
    background: white;
    border-radius: 32px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
.modal-form {
    padding: 24px 32px 32px;
}
.btn-edit-building {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}