/* Nunito Regular (400) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-v32-cyrillic_latin-regular.woff2') format('woff2');
}

/* Nunito SemiBold (600) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-v32-cyrillic_latin-600.woff2') format('woff2');
}

/* Nunito Bold (700) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-v32-cyrillic_latin-700.woff2') format('woff2');
}

/* Nunito ExtraBold (800) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/nunito-v32-cyrillic_latin-800.woff2') format('woff2');
}

/* ==========================================================================
   1. СБРОС И БАЗОВЫЕ НАСТРОЙКИ
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e2b3c;
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
}

/* ==========================================================================
   2. ШАПКА И ВЕРХНЯЯ ПАНЕЛЬ
   ========================================================================== */
.top-notification {
    background: #14294d;
    color: #cfe0f7;
    font-size: 13px;
    padding: 9px 0;
}

.notif-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-messengers {
    display: flex;
    gap: 10px;
}

.m-link {
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

.m-link.tg {
    background: #229ed9;
    color: #fff;
}

.m-link.wa {
    background: #25d366;
    color: #fff;
}

.header {
    background: #14294d;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
    gap: 20px;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    height: 42px;
    width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.1;
}

.brand-desc {
    font-size: 9px;
    text-transform: uppercase;
    color: #9db6dd;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu a {
    color: #dce8fb;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #ffffff;
}

.nav-menu-contacts { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.h-phone {
    color: #ffffff;
    font-weight: 900;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.header-messenger-links {
    display: flex;
    gap: 12px;
}

.header-messenger-links a {
    color: #9db6dd;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 9px;
    font-weight: 700;
    transition: color 0.2s;
    line-height: 1.1;
}

.header-messenger-links a:hover {
    color: #ffffff;
}

@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }

    .h-phone {
        display: none;
    }

    .brand-desc {
        display: none;
    }
}

/* ==========================================================================
   3. КНОПКИ И ОБЩИЕ ЭЛЕМЕНТЫ
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: #163a6e;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0e2749;
}

.btn-white {
    background: #ffffff;
    color: #163a6e;
    box-shadow: 0 6px 18px rgba(15, 25, 45, 0.18);
}

.btn-white:hover {
    background: #dbe6fa;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #163a6e;
    color: #163a6e;
}

.btn-secondary:hover {
    background: #163a6e;
    color: #ffffff;
}

.btn-outline-light {
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #14294d;
}

.btn-dark {
    background: #14294d;
    color: #ffffff;
}

.btn-dark:hover {
    background: #0e2749;
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #163a6e;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
}

.btn-link-arrow span {
    transition: transform 0.2s;
}

.btn-link-arrow:hover span {
    transform: translateX(5px);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

/* ==========================================================================
   4. ГЛАВНЫЙ ЭКРАН (HERO) — фото-панель как референс
   ========================================================================== */
.hero-block {
    background: #ffffff;
}

.hero-panels {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    min-height: 620px;
    gap: 30px;
    max-width: 1240px;   /* было: 1600px */
    margin: 0 auto;
    padding: 0 20px;     /* добавил — как у .container, чтобы отступы совпадали в точности */
}

.hero-panel {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-panel-main {
    background-image: linear-gradient(180deg, rgba(20, 41, 77, 0.25) 0%, rgba(15, 25, 45, 0.88) 55%, rgba(15, 25, 45, 0.88) 75%, rgba(255, 255, 255, 1) 100%), 
    url('../img/hero-bg.jpeg');
}

.hero-panel-2 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 1) 100%), url('../img/gallery-1.jpeg');
}

.hero-panel-3 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 1) 100%), 
    url('../img/gallery-2.webp');
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 45px 40px 50px 40px;
    color: #ffffff;
}

.main-title {
    font-family: 'Nunito', sans-serif;
    font-size: 60px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.08;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.main-subtitle {
    font-size: 16px;
    color: #cfe0f7;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 420px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.hero-buttons .btn-link-arrow {
    color: #14294d;
    font-weight: 800;
}

.hero-stats-strip {
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1240px; /* Ограничиваем ширину контейнера */
    margin: 0 auto;    /* Центрируем блок по центру страницы */
    padding: 0 20px;   /* Боковые поля безопасности, чтобы на планшетах цифры не липли к краям */
}

.hero-stat {
    text-align: center;
    padding: 26px 10px;
    position: relative;
}

.hero-stat::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 42px;
    background: #14294d;
    border-radius: 3px;
}

.hero-stat:last-child::after {
    display: none;
}

.hs-digit {
    font-size: 28px;
    font-weight: 900;
    color: #14294d;
    margin-bottom: 4px;
}

.hs-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero-panels {
        grid-template-columns: 1fr;
        min-height: unset;
        padding: 0 !important; /* Убираем белые поля по бокам */
        max-width: 100% !important;
    }

    .hero-panel-main {
        height: 520px;
        width: 100%;
        border-radius: 0; /* Если у панели было скругление */
    }

    .hero-panel-2,
    .hero-panel-3 {
        display: none;
    }

    .hero-stats-strip {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stat {
        padding-bottom: 20px;
    }

    .hero-stat::after {
        right: 50%;
        transform: translate(50%, 0);
        top: auto;
        bottom: 0;
        width: 42px;
        height: 3px;
    }

    .hero-stat:nth-child(n+3)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-panel-main {
        height: 560px;
    }

    .main-title {
        font-size: 34px;
    }

    .main-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        gap: 16px;
    }
}

/* ==========================================================================
   5. ОБЩИЕ СТИЛИ СЕКЦИЙ
   ========================================================================== */
.section {
    padding: 90px 0;
}

.section-white {
    background: #ffffff;
}

.section-gray {
    background: #f4f7fc;
}

.section-dark {
    background: #14294d;
    color: #ffffff;
}

.section-dark-contact {
    background: #0e2749;
    color: #ffffff;
}

.badge-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #4d7cc7;
    margin-bottom: 10px;
}

.badge-tag.accent {
    color: #7ea8e8;
}

.title-h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #14294d;
    line-height: 1.12;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.text-white {
    color: #ffffff !important;
}

.text-light {
    color: #b9cbe8 !important;
}

.subtitle-p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.text-center-block {
    text-align: left;
    max-width: 800px;
    margin-bottom: 10px;
}

/* ==========================================================================
   6. О ПОСЁЛКЕ
   ========================================================================== */
.about-flex {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: stretch; /* Растягивает левую и правую колонки на одинаковую высоту */
}

.adv-header-left {
    text-align: left;
    margin-bottom: 45px;
}

.adv-header-left .title-h2 {
    max-width: 1000px;
    margin-bottom: 12px;
}

.adv-header-left .subtitle-p {
    margin-bottom: 0;
}

.about-info {
    display: flex;
    flex-direction: column;
}

.about-info .title-h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.text-lead {
    font-size: 18px;
    font-weight: 800;
    color: #14294d;
    margin-bottom: 20px;
    line-height: 1.45;
}

.desc-paragraphs p {
    margin-bottom: 14px;
    font-size: 14.5px;
    color: #52627a;
    font-weight: 500;
    line-height: 1.6;
}

.desc-paragraphs p:last-child {
    margin-bottom: 14px;
}

.btn-route {
    margin-top: auto; /* Прижимает кнопку к нижнему краю вровень с блоком справа */
    align-self: flex-start;
    padding: 14px 26px;
    font-size: 14px;
    border-radius: 10px;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.about-photo-wrapper {
    flex: 1;
    min-height: 220px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

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

.about-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-card {
    background: #f4f7fc;
    padding: 20px 18px;
    border-radius: 14px;
}

.m-digit {
    font-size: 28px;
    font-weight: 900;
    color: #14294d;
    margin-bottom: 4px;
    line-height: 1.1;
}

.m-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    font-weight: 700;
}

@media (max-width: 920px) {
    .about-flex {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-photo-wrapper {
        min-height: 260px;
        height: 280px;
    }
    .btn-route {
        margin-top: 24px;
        align-self: center;
    }
}

/* ==========================================================================
   7. ПРЕИМУЩЕСТВА ПОСЁЛКА
   ========================================================================== */
.adv-grid-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 50px;
}

.adv-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.adv-item h3 {
    font-size: 19px;
    font-weight: 800;
    color: #14294d;
    margin-bottom: 12px;
    line-height: 1.3;
}

.adv-item p {
    font-size: 14.5px;
    color: #52627a;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 960px) {
    .adv-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 30px;
    }
}

@media (max-width: 640px) {
    .adv-grid-detailed {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   8. СЛАЙДЕР ФОТОГРАФИЙ (общий компонент)
   ========================================================================== */
.photo-slider-wrap {
    position: relative;
}

.photo-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: none;
    margin-top: 55px;
}

.photo-slider::-webkit-scrollbar {
    display: none;
}

.slide-item {
    flex: 0 0 auto;
    width: 590px;
    scroll-snap-align: start;
}

.slide-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.slide-caption {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #14294d;
    font-style: italic;
}

.slider-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #dbe6fa;
    background: #ffffff;
    color: #14294d;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.slider-nav-btn:hover {
    background: #14294d;
    color: #ffffff;
    border-color: #f6f6f7;
}

/* ==========================================================================
   9. ГОТОВЫЕ ДОМА — слайдер объектов
   ========================================================================== */


.houses-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 55px;
}

.h-benefit {
    background: rgba(255, 255, 255, 0.06);
    padding: 24px;
    border-radius: 14px;
}

.h-benefit h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 800;
}

.h-benefit p {
    font-size: 13px;
    color: #b9cbe8;
    font-weight: 500;
}

.house-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.house-slider::-webkit-scrollbar {
    display: none;
}

.house-slide {
    flex: 0 0 auto;
    width: 590px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}

.house-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.house-slide-body {
    padding: 22px 24px 26px 24px;
}

.house-slide-title {
    font-size: 20px;
    font-weight: 900;
    color: #14294d;
    margin-bottom: 4px;
}

.house-slide-spec {
    font-size: 14px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 18px;
}

.house-slide-body .btn {
    width: 100%;
    margin-bottom: 12px;
}

.house-slide-link {
    display: block;
    text-align: center;
    color: #14294d;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.houses-map-cta {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.houses-map-cta p {
    color: #dce8fb;
    font-size: 15px;
    margin-bottom: 18px;
    font-weight: 600;
}

/* ==========================================================================
   10. ИНТЕРАКТИВНЫЙ ГЕНПЛАН
   ========================================================================== */
/* ==========================================================================
   КОМПАКТНЫЙ ВЫПАДАЮЩИЙ ФИЛЬТР ВНУТРИ КАРТЫ
   ========================================================================== */
.map-filter-dropdown {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 60;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 41, 77, 0.12);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    color: #14294d;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.open {
    background: #14294d;
    color: #ffffff;
    border-color: #14294d;
}

.filter-toggle-btn .arrow-indicator {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.filter-toggle-btn.open .arrow-indicator {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    padding: 8px;
    min-width: 210px;
    border: 1px solid rgba(20, 41, 77, 0.08);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 4px;
}

.filter-dropdown-menu.open {
    display: flex;
}

.filter-dropdown-menu .filter-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.filter-dropdown-menu .filter-btn:hover {
    background: #f1f5f9;
    color: #14294d;
}

.filter-dropdown-menu .filter-btn.active {
    background: #14294d;
    color: #ffffff;
}

.filter-dropdown-menu .filter-btn .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid #e7edf6;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    color: #334155;
}

.filter-btn.active,
.filter-btn:hover {
    background: #14294d;
    color: #ffffff;
    border-color: #14294d;
}

.filter-btn .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.genplan-frame {
    position: relative;
    width: 100%;
    height: 650px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(20, 41, 77, 0.15);
    background: #111c24;
    cursor: grab;
    user-select: none;
    touch-action: pan-y; /* Разрешает вертикальный скролл страницы одним пальцем */
}

/* Подсказка при попытке скролла одним пальцем */
.map-touch-hint {
    position: absolute;
    inset: 0;
    background: rgba(14, 39, 73, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 90;
}

.map-touch-hint.visible {
    opacity: 1;
}

.genplan-frame:active {
    cursor: grabbing;
}

.map-viewport {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.map-bg {
    display: block;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

#map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.plot-shape {
    cursor: pointer;
    transition: fill-opacity 0.15s, stroke-width 0.15s;
    fill-opacity: 0.65;
    stroke-width: 3;
    stroke-linejoin: round;
    /* Отключает синий системный квадрат при тапе на смартфонах */
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

.plot-shape:hover {
    fill-opacity: 0.95;
    stroke: #494747 !important;
    stroke-width: 3 !important;
}

.plot-tooltip {
    position: absolute;
    display: none;
    background: rgba(20, 41, 77, 0.97);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-width: 260px;
    backdrop-filter: blur(4px);
}

.tt-header {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
}

.tt-price {
    font-weight: 800;
    font-size: 15px;
    color: #6fd18a;
    margin-top: 6px;
}

.map-zoom-controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
}

.map-zoom-controls button {
    width: 38px;
    height: 38px;
    background: #ffffff;
    color: #14294d;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
}

.map-zoom-controls button:hover {
    background: #14294d;
    color: #ffffff;
}

/* ==========================================================================
   11. УСЛОВИЯ ПОКУПКИ
   ========================================================================== */
.purchase-detailed-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.p-block {
    background: #f4f7fc;
    padding: 35px 25px;
    border-radius: 16px;
    position: relative;
    text-align: center;
}

.p-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.p-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.p-block.highlighted {
    background: #eaf1fc;
}

.p-block-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #14294d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.p-block-header {
    font-size: 20px;
    font-weight: 900;
    color: #14294d;
    margin-bottom: 6px;
}

.p-block-sub {
    font-size: 14px;
    font-weight: 800;
    color: #2e8b57;
    margin-bottom: 14px;
}

.p-block p {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* ==========================================================================
   12. ЗАСТРОЙЩИК
   ========================================================================== */
.developer-box {
    background: #f4f7fc;
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.dev-badges {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dev-badges span {
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: #14294d;
}

.dev-quote blockquote {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    color: #14294d;
    border-left: 4px solid #163a6e;
    padding-left: 20px;
}

/* ==========================================================================
   13. КОНТАКТЫ И ФОРМА ЗАЯВКИ
   ========================================================================== */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.info-items-list {
    margin-top: 30px;
}

.i-item {
    margin-bottom: 18px;
}

.i-label {
    display: block;
    font-size: 12px;
    color: #8fa8d1;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 700;
}

.i-val {
    font-size: 16px;
    color: #ffffff;
}

.bold-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
}

.messengers-btns {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.max-btn {
    background: linear-gradient(135deg, #4B7BF5 0%, #8C52FF 100%);
}

.max-btn-footer {
    background: #ffffff;
    mask-image: url('../img/max.svg');
}

.m-btn {
    text-decoration: none;
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.tg-btn {
    background: #229ed9;
}

.tg-btn-footer {
    background: #ffffff;
    mask-image: url('../img/telegram.svg');
}

.wa-btn {
    background: #25d366;
}

.wa-btn-footer {
    background: #ffffff;
    mask-image: url('../img/whatsapp.svg');
}

.contact-card-form {
    background: #ffffff;
    color: #14294d;
    padding: 40px;
    border-radius: 20px;
}

.contact-card-form h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 6px;
    text-align: center;
}

.form-sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.form-group-field {
    margin-bottom: 14px;
}

.form-group-field input,
.form-group-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e7edf6;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}

.privacy-agreement {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
}

/* ==========================================================================
   14. ФУТЕР (с анимированным фоном)
   ========================================================================== */
.footer {
    background: #0e2749;
    color: #b9cbe8;
    padding: 70px 0 0 0;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.footer-aurora {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(77, 124, 199, 0.35) 0%, rgba(77, 124, 199, 0) 70%);
    animation: footerFloat 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.footer-aurora.two {
    top: auto;
    bottom: -60%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, rgba(111, 209, 138, 0.22) 0%, rgba(111, 209, 138, 0) 70%);
    animation-duration: 18s;
    animation-delay: 2s;
}

@keyframes footerFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 40px) scale(1.15);
    }
}

.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.15;
}

.footer-col .f-phone {
    display: block;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-col .f-email {
    color: #b9cbe8;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.footer-messengers {
    display: flex;
    gap: 10px;
}

.footer-messengers a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

.footer-messengers .wa {
    background: #25d366;
}

.footer-messengers .tg {
    background: #229ed9;
}

.footer-col p {
    color: #b9cbe8;
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 500;
}

.footer-col .f-route {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 10px 0;
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 14px;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #7d93bb;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 12px;
    color: #7d93bb;
}

.admin-entry {
    color: #7ea8e8;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: #14294d;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-menu.open {
        max-height: 500px;
    }

    .nav-menu a {
        padding: 14px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-action {
        display: none;
    }

    .nav-menu-contacts {
        display: block;
        padding: 18px 20px 22px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nm-phone {
        display: block;
        color: #ffffff;
        font-size: 20px;
        font-weight: 900;
        text-decoration: none;
        margin-bottom: 10px;
        text-align: center;
        display: block;
        width: 100%;
    }

    .nm-links {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }

    .nm-links a {
        color: #9db6dd;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
    }

    .nm-links a:hover {
        color: #ffffff;
    }

    .about-flex,
    .contacts-wrapper,
    .developer-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-title {
        font-size: 42px;
    }

    .title-h2 {
        font-size: 30px;
    }

    .genplan-frame {
        height: 550px;
    }

    .slide-item {
        width: 280px;
    }

    .house-slide {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .plot-tooltip {
        /* Делаем плашку компактнее на мобилках */
        max-width: 220px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .plot-tooltip .tt-header {
        font-size: 13px;
    }
    .plot-tooltip .tt-price {
        font-size: 14px;
    }
}

/* Слой объектов инфраструктуры */
.poi-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.poi-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.poi-marker:hover {
    transform: translate(-50%, -60%) scale(1.15);
    z-index: 50;
}

.poi-bubble {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid #14294d;
}

.poi-label {
    margin-top: 4px;
    background: rgba(20, 41, 77, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}