* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 80vw;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 4px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.logo-subtitle {
    font-size: 14px;
    color: #7f8c8d;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

.main-nav a:hover {
    color: #3498db;
}

.header-phone {
    text-align: right;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.phone-description {
    font-size: 12px;
    color: #7f8c8d;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
}

/* Герой-секция */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.feature i {
    font-size: 24px;
    color: #3498db;
}

/* Кнопки */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #2ecc71;
    color: white;
}

.btn-secondary:hover {
    background: #27ae60;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-block {
    width: 100%;
}

/* Слайдер */
.gallery-section {
    padding: 40px 10px;
    background: #f8f9fa;
    min-height: 100vh;  /* было height: 100vh */
    display: block;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.slider-container {
    position: relative;
    margin: 0 auto;
}

.slider {
    display: flex;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #3498db;
}

/* Видео-секция */
.video-section {
    margin-top: 20px;
    padding: 40px 10px;
    min-height: 100vh; 
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    background: #34495e;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.placeholder-text {
    position: relative;
    z-index: 2;
}

.placeholder-text i {
    font-size: 60px;
    color: #ff0000;
    margin-bottom: 20px;
}

.placeholder-text p {
    font-size: 18px;
    margin-bottom: 10px;
}

.placeholder-text code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    font-family: monospace;
}

/* О комплексе */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: #2ecc71;
    font-size: 18px;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Планировки */
.plans-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.plan-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.plan-card:hover .plan-image img {
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.plan-details {
    padding: 25px;
}

.plan-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.plan-specs {
    margin-bottom: 20px;
}

.spec {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.spec-label {
    color: #7f8c8d;
}

.spec-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Ипотека */
.mortgage-section {
    padding: 80px 0;
}

.mortgage-banner {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 15px;
    padding: 60px;
    color: white;
}

.mortgage-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.mortgage-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.mortgage-features {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.mortgage-feature {
    text-align: center;
}

.feature-number {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 16px;
    opacity: 0.9;
}

.mortgage-buttons {
    display: flex;
    gap: 20px;
}

/* Расположение */
.location-section {
    padding: 80px 0;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.location-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.location-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-feature i {
    color: #3498db;
    font-size: 20px;
}

.map-placeholder {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed #bdc3c7;
}

.map-placeholder i {
    font-size: 60px;
    color: #3498db;
    margin-bottom: 20px;
}

/* Контакты */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: #3498db;
    font-size: 24px;
    margin-top: 5px;
}

.contact-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Форма */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input {
    width: auto;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    background: white;
    border-radius: 15px;
    padding: 40px;

    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

/* Футер */
.footer {
  background: #2c3e50;
  color: white;
  padding: 20px;
  display: block;
}

.footer-bg-image {
  display: block;
  margin: 20px auto;
  border-radius: 4px;
  box-shadow: 5px 5px 4px #000;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

.privacy-link {
    color: #bdc3c7;
    text-decoration: none;
    margin-left: 20px;
}

.privacy-link:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }
   
    .about-grid,
    .location-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
   
    .features-list,
    .location-features {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные фиксы адаптивности */
@media (max-width: 768px) {
    .gallery-section,
    .video-section,
    .about-section,
    .plans-section,
    .mortgage-section,
    .location-section,
    .contact-section {
        min-height: auto;
        padding: 40px 0;
    }

    .slider-container {
        margin: 0 auto;
    }

    .video-wrapper {
        margin: 0 auto;
    }

    .header-content {
        flex-wrap: wrap;
    }
   
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 20px;
    }
   
    .main-nav.active {
        display: block;
    }
   
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
   
/* ===== ОБЩИЕ СТИЛИ ===== */
.mobile-menu-btn {
    display: block;
}

.hero-title {
    font-size: 32px;
}

.hero-features {
    flex-direction: column;
    gap: 15px;
}

.mortgage-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mortgage-buttons {
    flex-direction: column;
}

.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-phone,
.footer-address {
    justify-content: center;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    .section-title {
        font-size: 28px;
    }
    .contact-wrapper {
        padding: 30px;
    }
    .modal {
        padding: 30px 20px;
    }
}

/* ===== ИПОТЕКА ===== */
.mortgage-calculator {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.calculator-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.calculator-form {
    display: grid;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.value-display {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #3498db;
}

.results {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.result-value {
    font-weight: 600;
    color: #2c3e50;
}

/* ===== СЛАЙДЕР ИНТЕРЬЕРОВ ===== */
.slider-container {
    position: relative;
    width: 100%;
}

.slider-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #3498db;
}

/* ===== КАРТА ===== */
.map-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 769px) {
    .map-section {
        padding: 80px 0;
    }
    .map-wrapper {
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .map-section {
        padding: 40px 0;
    }
    .map-wrapper {
        border-radius: 8px;
    }
}

/* ===== ПЛАНИРОВКИ ===== */
.plans-slider-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.plans-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.plan-card-link {
    flex: 0 0 calc(33.333% - 14px);
    text-decoration: none;
    color: inherit;
}

.plan-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.plan-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.plan-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.plan-details {
    padding: 16px;
}

.plan-details h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.plan-specs {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.btn-all {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

@media (max-width: 768px) {
    .plan-card-link {
        flex: 0 0 100%;
    }
    .slider-arrow {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .plan-card-link {
        flex: 0 0 calc(50% - 10px);
    }
}