/* =========================================================
   PODBORUCHASTKA.RU — СТРОГИЙ АРХИТЕКТУРНЫЙ ДИЗАЙН (V4)
   КП «Соловеново» (Переславль-Залесский)
   ========================================================= */

:root {
    --color-primary: #1d4b3c;        /* Свежий хвойно-зеленый */
    --color-primary-light: #27624f;
    --color-primary-dark: #14362b;
    --color-forest-surface: #225343; /* Поверхность карточек */
    --color-accent: #c89e29;         /* Золотой акцент */
    --color-accent-hover: #b0881c;
    --color-bg-light: #edf3f0;       /* Мягкий зеленовато-серый */
    --color-surface: #ffffff;
    --color-surface-tint: #f5f8f6;
    --color-text-main: #13241d;
    --color-text-muted: #566f65;
    --color-border: #d4e0da;
    --color-border-dark: #2e6050;
    
    /* Статусы участков */
    --status-free: #10b981;
    --status-free-bg: rgba(16, 185, 129, 0.2);
    --status-reserved: #f59e0b;
    --status-reserved-bg: rgba(245, 158, 11, 0.25);
    --status-sold: #ef4444;
    --status-sold-bg: rgba(239, 68, 68, 0.2);

    --radius-none: 0px;

    --shadow-subtle: 0 4px 14px rgba(20, 54, 43, 0.06);
    --shadow-elevated: 0 16px 36px rgba(20, 54, 43, 0.12);
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-dark);
    letter-spacing: -0.3px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.svg-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: square;
    stroke-linejoin: miter;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

/* =========================================================
   TOP BAR & HEADER
   ========================================================= */
.top-bar {
    background: var(--color-primary-dark);
    color: #cbdad3;
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-dark);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-badges {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #cbdad3;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.3px;
}

.top-badge-dot {
    width: 5px;
    height: 5px;
    background: var(--status-free);
}

.header {
    background: var(--color-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--color-accent);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon-box {
    width: 34px;
    height: 34px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 16px;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.logo-text p {
    font-size: 9.5px;
    color: #a7c5b9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex: 1;
    margin: 0 16px;
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    font-size: 11px;
    font-weight: 600;
    color: #c5d7cf;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 5px 9px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-pres-link {
    color: #ffd875 !important;
    background: rgba(200, 158, 41, 0.15);
    border: 1px solid var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-phone a {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.header-phone span {
    font-size: 11px;
    color: var(--status-free);
    font-weight: 600;
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-border-dark);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: white;
}

.btn-accent {
    background: var(--color-accent);
    color: #0b1c15;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 15px rgba(200, 158, 41, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #0b1c15;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 11px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 13px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    padding: 75px 0 85px;
    background: linear-gradient(180deg, rgba(12, 20, 17, 0.55) 0%, rgba(12, 20, 17, 0.45) 100%), url('images/hero.webp') center/cover no-repeat, url('images/hero.jpg') center/cover no-repeat;
    color: white;
    border-bottom: 1px solid var(--color-border-dark);
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(18, 48, 38, 0.85);
    border: 1px solid var(--color-accent);
    color: #ffd875;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.hero h1 {
    color: white;
    font-size: 42px;
    margin-bottom: 18px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero-lead {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat-box {
    background: rgba(18, 48, 38, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 14px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.stat-box .val {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
    margin-bottom: 2px;
}

.stat-box .lbl {
    font-size: 10.5px;
    color: #a7c5b9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================================================
   LOCATION CONTEXT BAR
   ========================================================= */
.location-context-bar {
    background: var(--color-forest-surface);
    color: white;
    padding: 36px 0;
    border-bottom: 1px solid var(--color-border-dark);
}

.location-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
}

.loc-item h4 {
    color: var(--color-accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loc-item p {
    font-size: 13px;
    color: #d1e2db;
    line-height: 1.55;
}

/* =========================================================
   FEATURES & ADVANTAGES
   ========================================================= */
.section {
    padding: 75px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.section-subtitle {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.section-desc {
    font-size: 14px;
    color: var(--color-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 28px 24px;
    box-shadow: var(--shadow-subtle);
    border-top: 3px solid var(--color-primary);
    transition: var(--transition);
}

.feature-card:hover {
    border-top-color: var(--color-accent);
    box-shadow: var(--shadow-elevated);
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    background: var(--color-bg-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
}

.feature-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* =========================================================
   INTERACTIVE MASTERPLAN
   ========================================================= */
.masterplan-section {
    background: #14362b;
    color: white;
    padding: 75px 0;
    border-top: 1px solid var(--color-border-dark);
    border-bottom: 1px solid var(--color-border-dark);
}

.masterplan-section .section-title {
    color: white;
}

.masterplan-section .section-desc {
    color: #a7c5b9;
}

.masterplan-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    background: var(--color-forest-surface);
    padding: 10px 14px;
    border: 1px solid var(--color-border-dark);
}

.filter-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #14362b;
    border: 1px solid var(--color-border-dark);
    color: #d1e2db;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-accent);
    color: #0b1c15;
    border-color: var(--color-accent);
}

.map-view-switch {
    display: flex;
    background: #14362b;
    border: 1px solid var(--color-border-dark);
}

.switch-btn {
    background: transparent;
    border: none;
    color: #a7c5b9;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.switch-btn.active {
    background: var(--color-primary-light);
    color: white;
}

.masterplan-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
}

.map-viewport {
    background: #0e271f;
    border: 1px solid var(--color-border-dark);
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#yandex-map-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

#yandex-map-container.active {
    display: block;
}

.svg-plan-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #112e25;
}

.svg-plan-container.hidden {
    display: none;
}

svg#masterplan-svg {
    width: 100%;
    height: 100%;
    max-height: 500px;
}

.plot-polygon {
    cursor: pointer;
    transition: var(--transition);
    stroke-width: 1;
    stroke: rgba(255, 255, 255, 0.4);
}

.plot-polygon.status-free {
    fill: var(--status-free-bg);
    stroke: var(--status-free);
}

.plot-polygon.status-free:hover {
    fill: rgba(16, 185, 129, 0.5);
    stroke-width: 2.5;
}

.plot-polygon.status-reserved {
    fill: var(--status-reserved-bg);
    stroke: var(--status-reserved);
}

.plot-polygon.status-sold {
    fill: var(--status-sold-bg);
    stroke: var(--status-sold);
    cursor: not-allowed;
    opacity: 0.5;
}

.plot-label {
    font-size: 10.5px;
    font-weight: 700;
    fill: #ffffff;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: central;
}

/* Inspector */
.plot-inspector {
    background: var(--color-forest-surface);
    border: 1px solid var(--color-border-dark);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border-dark);
}

.inspector-header h3 {
    color: white;
    font-size: 20px;
}

.status-badge {
    padding: 2px 7px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-badge.free { background: var(--status-free-bg); color: #34d399; border: 1px solid #10b981; }
.status-badge.reserved { background: var(--status-reserved-bg); color: #fbbf24; border: 1px solid #f59e0b; }
.status-badge.sold { background: var(--status-sold-bg); color: #f87171; border: 1px solid #ef4444; }

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12.5px;
}

.spec-row .lbl { color: #a7c5b9; }
.spec-row .val { color: white; font-weight: 600; }

.inspector-price-block {
    background: #14362b;
    padding: 12px 14px;
    margin: 14px 0;
    border: 1px solid var(--color-border-dark);
}

.inspector-price-block .total {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
}

.inspector-price-block .monthly {
    font-size: 11.5px;
    color: #d1e2db;
    margin-top: 2px;
}

.inspector-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.plot-tag {
    background: #14362b;
    border: 1px solid var(--color-border-dark);
    color: #d1e2db;
    font-size: 9.5px;
    padding: 2px 5px;
    text-transform: uppercase;
}

/* =========================================================
   COMPACT CATALOG
   ========================================================= */
.catalog-section {
    background: var(--color-surface-tint);
    padding: 70px 0;
}

.catalog-table-wrapper {
    background: white;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
    overflow-x: auto;
}

.catalog-table-header {
    background: var(--color-primary);
    color: white;
    display: grid;
    grid-template-columns: 70px 90px 130px 130px 170px 1fr 130px;
    padding: 10px 18px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--color-accent);
    min-width: 760px;
}

.catalog-row {
    display: grid;
    grid-template-columns: 70px 90px 130px 130px 170px 1fr 130px;
    padding: 12px 18px;
    font-size: 12.5px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    transition: var(--transition);
    min-width: 760px;
}

.catalog-row:nth-child(even) {
    background: #fbfdfc;
}

.catalog-row:hover {
    background: #eef5f1;
}

.catalog-row.active-row {
    background: #e1efe8;
    border-left: 4px solid var(--color-accent);
}

.catalog-row-num {
    font-weight: 800;
    color: var(--color-primary-dark);
}

.catalog-row-price {
    font-weight: 700;
    color: var(--color-primary);
}

.catalog-toggle-box {
    text-align: center;
    padding: 14px;
    background: white;
    border-top: 1px solid var(--color-border);
}

/* =========================================================
   12-HOUR BOOKING GUARANTEE BANNER
   ========================================================= */
.booking-guarantee-banner {
    background: var(--color-forest-surface);
    color: white;
    border: 1px solid var(--color-border-dark);
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: center;
    margin-top: 45px;
}

.guarantee-content h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.guarantee-content p {
    color: #d1e2db;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.guarantee-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.guarantee-step {
    background: #14362b;
    border: 1px solid var(--color-border-dark);
    padding: 14px;
}

.guarantee-step .step-num {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 3px;
}

.guarantee-step p {
    font-size: 11.5px;
    color: #d1e2db;
    margin: 0;
}

.guarantee-action {
    background: #14362b;
    border: 1px solid var(--color-border-dark);
    padding: 20px;
    text-align: center;
}

/* =========================================================
   CALCULATOR & SURROUNDINGS
   ========================================================= */
.calc-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 36px;
    box-shadow: var(--shadow-subtle);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.calc-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.calc-range {
    width: 100%;
    accent-color: var(--color-primary);
}

.calc-result-box {
    background: var(--color-forest-surface);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-border-dark);
}

.calc-result-box .monthly-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-accent);
    margin: 8px 0;
}

/* БЛОК ОКРУЖЕНИЕ И ЭКОЛОГИЯ */
.surroundings-section {
    background: var(--color-bg-light);
    padding: 85px 0;
    border-top: 1px solid var(--color-border);
}

.surroundings-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.surroundings-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.surroundings-img {
    height: 100%;
    min-height: 380px;
    display: flex;
}

.surroundings-img img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-elevated);
}

.location-points {
    list-style: none;
    margin-top: 20px;
}

.location-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.location-point-icon {
    width: 26px;
    height: 26px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.location-point-text strong {
    color: var(--color-primary-dark);
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.location-point-text p {
    font-size: 12.5px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* =========================================================
   CONSULTATION FORM SECTION (НОВАЯ ФОРМА ВОПРОСОВ)
   ========================================================= */
.consultation-section {
    background: var(--color-primary-dark);
    color: white;
    padding: 80px 0;
    border-top: 2px solid var(--color-accent);
    border-bottom: 1px solid var(--color-border-dark);
}

.consult-card {
    background: var(--color-forest-surface);
    border: 1px solid var(--color-border-dark);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.consult-info h2 {
    color: white;
    font-size: 30px;
    margin-bottom: 12px;
}

.consult-info p {
    color: #cbdad3;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.consult-perks {
    list-style: none;
}

.consult-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #ffd875;
    margin-bottom: 10px;
    font-weight: 600;
}

.consult-form-box {
    background: #14362b;
    border: 1px solid var(--color-border-dark);
    padding: 28px;
}

.topic-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.topic-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0e271f;
    border: 1px solid var(--color-border-dark);
    color: #d1e2db;
    padding: 6px 12px;
    font-size: 11.5px;
    cursor: pointer;
    transition: var(--transition);
}

.topic-pill-label input {
    accent-color: var(--color-accent);
}

.topic-pill-label:has(input:checked) {
    background: var(--color-accent);
    color: #0b1c15;
    border-color: var(--color-accent);
    font-weight: 700;
}

.consult-alert-success {
    background: #10b981;
    color: white;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
    display: none;
    text-align: center;
}

/* =========================================================
   MODAL & CRM TOAST
   ========================================================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 48, 38, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-backdrop.open {
    display: flex;
    opacity: 1;
}

.modal-window {
    background: white;
    width: 100%;
    max-width: 460px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.modal-header {
    background: var(--color-primary-dark);
    color: white;
    padding: 18px 20px;
    position: relative;
    border-bottom: 2px solid var(--color-accent);
}

.modal-header h3 {
    color: white;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-header p {
    color: #a7c5b9;
    font-size: 11.5px;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.timer-badge {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 12px;
    font-size: 11.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px;
    border: 1px solid var(--color-border);
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

/* Telegram Toast */
.tg-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0f172a;
    color: white;
    border: 1px solid var(--color-accent);
    max-width: 400px;
    padding: 16px;
    z-index: 2000;
    display: none;
}

.tg-toast.show {
    display: block;
}

.tg-toast-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.tg-toast-body {
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.45;
    background: #020617;
    padding: 8px;
    font-family: monospace;
    white-space: pre-wrap;
}

.crm-preview-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    background: var(--color-forest-surface);
    color: white;
    border: 1px solid var(--color-border-dark);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 990;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.crm-badge {
    background: var(--color-accent);
    color: #0b1c15;
    padding: 1px 5px;
    font-size: 9px;
}

/* Footer */
.footer {
    background: var(--color-primary-dark);
    color: #9ab4aa;
    padding: 50px 0 20px;
    border-top: 2px solid var(--color-border-dark);
    font-size: 12.5px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.footer h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
}

/* =========================================================
   RESPONSIVE / АДАПТИВНАЯ ВЕРСТКА
   ========================================================= */
@media (max-width: 1024px) {
    .masterplan-wrapper { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .location-context-grid { grid-template-columns: 1fr; }
    .booking-guarantee-banner { grid-template-columns: 1fr; }
    .calc-card { grid-template-columns: 1fr; }
    .surroundings-grid { grid-template-columns: 1fr; }
    .consult-card { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: 16px;
        border-top: 1px solid var(--color-border-dark);
        box-shadow: var(--shadow-elevated);
        gap: 12px;
    }
    .nav-links.mobile-open {
        display: flex;
    }
    .nav-links a {
        width: 100%;
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .header-phone { display: none; }
    .hero h1 { font-size: 30px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .top-bar { display: none; }
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 26px; }
    .features-grid { grid-template-columns: 1fr; }
    .guarantee-steps { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .crm-preview-bar { display: none; }
    .floating-b2b-widget { top: auto; bottom: 16px; right: 16px; left: 16px; justify-content: center; }
}

/* =========================================================
   FLOATING B2B PRESENTATION TRIGGER WIDGET & MODAL
   ========================================================= */
.floating-b2b-widget {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f2b22;
    border: 2px solid var(--color-accent);
    padding: 12px 18px;
    color: white;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.floating-b2b-widget:hover {
    background: #184436;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(200, 158, 41, 0.4);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50% !important;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-ring 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.pres-modal-window {
    background: white;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--color-accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.pres-modal-header {
    background: #14362b;
    color: white;
    padding: 24px;
    position: relative;
    border-bottom: 3px solid var(--color-accent);
}

.pres-modal-body {
    padding: 28px;
    background: #fdfdfd;
}

.pres-feature-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.pres-icon-box {
    width: 44px;
    height: 44px;
    background: #edf3f0;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

