:root {
    --bg-dark: #1a1a1a;
    --bg-light: #2d2d2d;
    --gold: #d4af37;
    --gold-text: #e6c055;
    --gold-dark: #b8860b;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --text-muted: #b0b0b0;
    --black: #000000;
    --vh: 1vh;
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);
    --safe-area-top: env(safe-area-inset-top, 0px);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-white); 
    line-height: 1.6;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ============================================
   КРИТИЧЕСКИ ВАЖНО: Все интерактивные элементы
   ============================================ */
a, button, input, select, textarea {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

input, select, textarea {
    cursor: text !important;
}

/* ============================================
   Доступность
   ============================================ */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px; 
    height: 1px;
    margin: -1px; 
    border: 0; 
    padding: 0;
    white-space: nowrap; 
    clip-path: inset(100%);
    clip: rect(0 0 0 0); 
    overflow: hidden;
}

/* ============================================
   Прогресс-бар
   ============================================ */
.progress-bar {
    position: fixed;
    top: 0; 
    left: 0;
    height: 3px;
    background: var(--gold);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s;
    pointer-events: none !important;
}

/* ============================================
   Плавающие иконки
   ============================================ */
.floating-chat {
    position: fixed;
    bottom: calc(30px + var(--safe-area-bottom));
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999 !important;
}
.chat-icon {
    width: 55px; 
    height: 55px;
    border-radius: 50%;
    background: var(--gold);
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--bg-dark);
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
    text-decoration: none !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10000 !important;
}
@media (hover: hover) {
    .chat-icon:hover { 
        transform: scale(1.1); 
        background: #fff; 
        color: var(--gold); 
    }
}
@media (pointer: coarse) {
    .chat-icon:active { 
        transform: scale(0.95); 
        background: var(--gold-dark); 
    }
}

/* ============================================
   Кнопка «Наверх»
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: calc(30px + var(--safe-area-bottom));
    left: 30px;
    width: 50px; 
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--bg-dark);
    font-size: 24px;
    cursor: pointer;
    opacity: 0; 
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999 !important;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
}
.scroll-top.show { 
    opacity: 1; 
    visibility: visible; 
}
@media (hover: hover) {
    .scroll-top:hover { 
        transform: translateY(-3px); 
    }
}
@media (pointer: coarse) {
    .scroll-top:active { 
        transform: scale(0.95); 
    }
}

/* ============================================
   Hero Section
   ============================================ */
header {
    height: auto;
    min-height: 100dvh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: -webkit-fill-available;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible !important;
    padding: 100px 0 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), 
                      url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    transition: opacity 0.1s ease-out;
    pointer-events: none !important;
}

@media (max-width: 1024px) {
    .hero-bg {
        background-attachment: scroll;
        position: fixed;
    }
}

.hero-content {
    position: relative;
    z-index: 100 !important;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.hero-content > * {
    pointer-events: auto !important;
}

.hero-content h1 { 
    font-size: clamp(2rem, 5vw, 4rem); 
    color: var(--gold-text); 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    line-height: 1.2;
    word-wrap: break-word;
    font-weight: 700;
    text-align: center;
    pointer-events: none !important;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
    pointer-events: none !important;
}

.hero-description { 
    font-size: 1rem; 
    color: var(--text-gray); 
    margin-bottom: 25px; 
    max-width: 100%; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.6;
    text-align: center;
    padding: 0 10px;
    pointer-events: none !important;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
    pointer-events: none;
}

.hero-buttons .btn,
.hero-buttons .btn-secondary {
    pointer-events: auto !important;
    z-index: 1000 !important;
}

.hero-social-proof {
    font-size: 0.85rem; 
    opacity: 0.9; 
    margin-top: 20px;
    color: var(--text-gray);
    line-height: 1.5;
    text-align: center;
    padding: 0 15px;
    pointer-events: none !important;
}
.hero-social-proof i { 
    color: var(--gold); 
    margin-right: 5px; 
}

/* ============================================
   Кнопки
   ============================================ */
.btn, 
.btn-secondary {
    display: inline-block;
    padding: 18px 45px;
    background-color: var(--gold);
    color: var(--black);
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gold);
    cursor: pointer !important;
    border-radius: 0;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
    min-width: 48px;
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative !important;
}

@media (hover: hover) {
    .btn:hover { 
        background-color: transparent; 
        color: var(--gold-text); 
        transform: translateY(-3px); 
        box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.3); 
    }
}

@media (pointer: coarse) {
    .btn:active {
        background-color: var(--gold-dark);
        transform: scale(0.98);
        opacity: 0.9;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--text-muted);
    margin-left: 15px;
}

@media (hover: hover) {
    .btn-secondary:hover {
        border-color: var(--gold);
        color: var(--gold-text);
    }
}

@media (pointer: coarse) {
    .btn-secondary:active {
        border-color: var(--gold);
        background: rgba(212, 175, 55, 0.1);
    }
}

/* ============================================
   Sections
   ============================================ */
section { 
    padding: 100px 0; 
    position: relative;
    z-index: 10;
}
.section-title { 
    text-align: center; 
    font-size: 2.3rem; 
    color: var(--gold-text); 
    margin-bottom: 60px; 
    text-transform: uppercase; 
    position: relative; 
}
.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 15px auto 0;
}

/* ============================================
   About
   ============================================ */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 60px; 
    align-items: center; 
}
.about-image { 
    width: 100%; 
    min-height: 500px; 
    height: auto; 
    position: relative; 
    border: 1px solid var(--gold); 
    background-color: #2d2d2d; 
    overflow: visible; 
    box-shadow: 0 0 0 1px var(--gold);
}
.about-image img { 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    display: block; 
}

.achievements { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-top: 40px; 
}
.ach-item { 
    text-align: left; 
}
.ach-item h3 { 
    color: var(--gold-text); 
    font-size: 1.8rem; 
    margin-bottom: 5px; 
}
.ach-item p { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
}

/* ============================================
   Pain Points
   ============================================ */
.pain-section {
    background: linear-gradient(135deg, #1a1a1a, #252525);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}
.pain-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}
.pain-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}
.pain-item i {
    font-size: 1.3rem;
    color: var(--gold-text);
    margin-top: 3px;
    flex-shrink: 0;
}
.pain-item p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
}
.pain-item.positive {
    border-left-color: #2ecc71;
}
.pain-item.positive i { 
    color: #2ecc71; 
}

/* ============================================
   Benefits
   ============================================ */
.benefits-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}
.benefit-card { 
    background: var(--bg-light); 
    padding: 25px; 
    border: 1px solid rgba(212, 175, 55, 0.1); 
    transition: 0.4s; 
    height: 100%; 
}
@media (hover: hover) {
    .benefit-card:hover { 
        border-color: var(--gold); 
        transform: translateY(-10px); 
        background: #333; 
        box-shadow: 0 15px 30px -10px #000;
    }
}
.benefit-card h4 { 
    color: var(--text-white);
    margin-bottom: 15px; 
    font-size: 1.2rem; 
}
.benefit-card p { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    color: var(--text-muted); 
}

/* ============================================
   Cases Section
   ============================================ */
.cases-section {
    background: #121212;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.case-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3d3d3d;
    transition: 0.4s;
}
.case-card a {
    pointer-events: auto !important;
    z-index: 100 !important;
}
@media (hover: hover) {
    .case-card:hover {
        border-color: var(--gold);
        transform: translateY(-5px);
        box-shadow: 0 15px 30px -10px rgba(0,0,0,0.5);
    }
}
.case-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    pointer-events: none !important;
}
.case-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: #000;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    pointer-events: none !important;
}
.case-info {
    padding: 25px;
}
.case-info h4 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 8px;
    pointer-events: none !important;
}
.case-type {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    pointer-events: none !important;
}
.case-result {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    pointer-events: none !important;
}
.result-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}
.result-value {
    display: block;
    color: #2ecc71;
    font-size: 1.5rem;
    font-weight: 700;
}
.case-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    pointer-events: none !important;
}
@media (max-width: 768px) {
    .cases-grid { 
        grid-template-columns: 1fr; 
    }
}

/* ============================================
   Story Section
   ============================================ */
.story-section {
    background: var(--bg-light);
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.story-image {
    position: relative;
}
.story-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--gold);
}
.story-content h2 {
    color: var(--gold-text);
    font-size: 2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.story-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}
.story-values {
    margin-top: 30px;
}
.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #3d3d3d;
}
.value-item:last-child { 
    border-bottom: none; 
}
.value-item i {
    color: var(--gold);
    font-size: 1.1rem;
}
.value-item span {
    color: var(--text-gray);
}
@media (max-width: 992px) {
    .story-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .story-image { 
        order: -1; 
    }
}

/* ============================================
   Analytics Section
   ============================================ */
.analytics-section {
    background: #121212;
}
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}
.analytics-card {
    background: var(--bg-light);
    padding: 30px 25px;
    border-radius: 12px;
    border: 1px solid #3d3d3d;
    text-align: center;
    transition: 0.4s;
}
.analytics-card a {
    pointer-events: auto !important;
}
@media (hover: hover) {
    .analytics-card:hover {
        border-color: var(--gold);
        transform: translateY(-5px);
    }
}
.analytics-card i {
    font-size: 2.5rem;
    color: var(--gold-text);
    margin-bottom: 20px;
}
.analytics-card h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.analytics-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}
.analytics-card p strong {
    color: var(--gold-text);
}
@media (max-width: 768px) {
    .analytics-grid { 
        grid-template-columns: 1fr; 
    }
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-section {
    background: #121212;
}
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.comparison-col {
    padding: 30px;
    border-radius: 12px;
}
.comparison-col.agency {
    background: #252525;
    border: 1px solid #444;
}
.comparison-col.private {
    background: linear-gradient(135deg, #1a1a1a, #252525);
    border: 2px solid var(--gold);
    position: relative;
}
.comparison-col.private::before {
    content: 'Ваш выбор';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gold);
    color: #000;
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 700;
}
.comparison-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
}
.comparison-col ul { 
    list-style: none; 
}
.comparison-col li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.comparison-col li:last-child { 
    border-bottom: none; 
}
.comparison-col li i { 
    margin-top: 4px; 
    flex-shrink: 0; 
}
.comparison-col.agency li i { 
    color: #e74c3c; 
}
.comparison-col.private li i { 
    color: #2ecc71; 
}

@media (max-width: 768px) {
    .comparison-table { 
        grid-template-columns: 1fr; 
    }
    .comparison-col.private::before {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
    background: var(--bg-light);
}
.pricing-table {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #3d3d3d;
}
.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #3d3d3d;
}
.pricing-item:last-child { 
    border-bottom: none; 
}
.pricing-service {
    font-weight: 500;
    color: var(--text-gray);
}
.pricing-price {
    color: var(--gold-text);
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
    margin-left: 15px;
}
.pricing-price small {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.pricing-note {
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px dashed #444;
}
.pricing-note i { 
    color: var(--gold); 
    margin-top: 3px; 
}

/* ============================================
   Property Grid
   ============================================ */
.property-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.property-card { 
    background: var(--bg-light); 
    border: 1px solid #3d3d3d; 
    overflow: visible !important;
    transition: 0.4s; 
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.property-card a {
    pointer-events: auto !important;
    z-index: 1000 !important;
}
@media (hover: hover) {
    .property-card:hover { 
        border-color: var(--gold); 
    }
}
@media (pointer: coarse) {
    .property-card:active { 
        border-color: var(--gold);
    }
}

.prop-img-carousel {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    pointer-events: none !important;
}

.prop-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none !important;
}

.prop-slide.active {
    opacity: 1;
}

.prop-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none !important;
}

.property-card:hover .prop-counter {
    opacity: 1;
}

.status-badge {
    position: absolute;
    top: 10px; 
    right: 10px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 2;
    color: #000;
    pointer-events: none !important;
}
.status-badge[data-status="сдан"] { 
    background: #2ecc71; 
}
.status-badge[data-status="строится"] { 
    background: #f39c12; 
}
.status-badge[data-status="сдан-строится"] {
    background: linear-gradient(90deg, #2ecc71 50%, #f39c12 50%);
}

.prop-info { 
    padding: 25px; 
    pointer-events: none !important;
}
.prop-info * {
    pointer-events: none !important;
}
.prop-price { 
    color: var(--gold-text); 
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-bottom: 10px; 
}
.prop-tag { 
    display: inline-block; 
    padding: 4px 10px; 
    border: 1px solid var(--gold); 
    font-size: 0.7rem; 
    color: var(--gold-text); 
    margin-bottom: 15px; 
    text-transform: uppercase; 
}

.prop-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #3d3d3d;
    line-height: 1.5;
    font-style: italic;
}

/* ============================================
   Process
   ============================================ */
.process-steps { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}
.step { 
    text-align: center; 
    background: var(--bg-light);
    padding: 25px 20px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: 0.4s;
}
@media (hover: hover) {
    .step:hover {
        border-color: var(--gold);
        transform: translateY(-5px);
        background: #333;
    }
}
.step-icon { 
    width: 65px; 
    height: 65px; 
    border: 1px solid var(--gold); 
    color: var(--gold-text); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px; 
    font-size: 1.8rem; 
    background: var(--bg-dark);
}
.step h4 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.step p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    background: #121212;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3d3d3d;
}
.faq-item summary {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
}
.faq-item summary::-webkit-details-marker { 
    display: none; 
}
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--gold);
    transition: transform 0.3s;
    font-weight: 300;
}
.faq-item[open] summary::after { 
    transform: rotate(45deg); 
}
.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-answer p { 
    margin: 10px 0; 
}

/* ============================================
   Reviews
   ============================================ */
.reviews-grid {
    display: grid;
    gap: 25px;
    margin-top: 40px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .reviews-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media (min-width: 1200px) {
    .reviews-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
}
.review-card {
    background: var(--bg-light);
    padding: 25px;
    border: 1px solid #3d3d3d;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.review-card a {
    pointer-events: auto !important;
}
@media (hover: hover) {
    .review-card:hover { 
        border-color: var(--gold); 
    }
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.review-avatar {
    width: 55px; 
    height: 55px;
    border-radius: 50%;
    background: var(--gold);
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.review-meta { 
    flex: 1; 
    min-width: 0; 
}
.review-meta h4 { 
    font-size: 1.1rem; 
    margin-bottom: 2px; 
}
.review-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.review-text { 
    font-style: italic; 
    line-height: 1.6; 
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Tips
   ============================================ */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.tip-card {
    background: var(--bg-light);
    padding: 25px;
    border-left: 3px solid var(--gold);
}
.tip-card h4 { 
    color: var(--text-white);
    margin-bottom: 10px; 
    font-size: 1.2rem; 
}
.tip-card p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    line-height: 1.6; 
}

/* ============================================
   Map Section
   ============================================ */
#map-section {
    background: #121212;
    padding: 100px 0;
}

.map-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3d3d3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.map-wrapper iframe,
.map-wrapper script,
.map-wrapper ymaps {
    width: 100% !important;
    display: block;
}

@media (max-width: 768px) {
    .map-wrapper {
        border-radius: 4px;
    }
}

@media (max-width: 500px) {
    #map-section {
        padding: 60px 0;
    }
}

/* ============================================
   Form - КРИТИЧЕСКИ ВАЖНО
   ============================================ */
.form-block { 
    background: var(--bg-light); 
    padding: 60px; 
    max-width: 700px;
    margin: 0 auto; 
    border: 1px solid var(--gold);
    position: relative;
    z-index: 1000 !important;
}
.form-group { 
    margin-bottom: 25px; 
    position: relative;
    z-index: 100 !important;
}
label { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
    color: var(--text-gray); 
}

input, select, textarea { 
    width: 100%; 
    padding: 16px; 
    background: var(--bg-dark); 
    border: 1px solid #444; 
    color: white; 
    font-family: inherit; 
    font-size: 16px;
    border-radius: 0; 
    margin-bottom: 0;
    scroll-margin-bottom: 300px;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto !important;
    cursor: text !important;
    z-index: 1000 !important;
    position: relative !important;
}
input:focus, select:focus, textarea:focus { 
    border-color: var(--gold); 
    outline: none; 
}

#formSuccess {
    text-align: center; 
    padding: 20px; 
    background: #2d2d2d; 
    margin-top: 20px; 
    border: 1px solid var(--gold);
    display: none;
    position: relative;
    z-index: 1000 !important;
}
#formSuccess.show { 
    display: block; 
    animation: fadeIn 0.3s; 
}
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

/* ============================================
   Footer - ИСПРАВЛЕНО ДЛЯ МОБИЛЬНЫХ
   ============================================ */
footer { 
    padding: 80px 0; 
    border-top: 1px solid #333; 
    color: var(--text-muted); 
    background: #111; 
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.social-links { 
    display: flex; 
    gap: 20px; 
    margin-top: 20px; 
}
.social-links a { 
    color: var(--text-gray); 
    font-size: 1.5rem; 
    transition: 0.3s; 
    text-decoration: none !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1000 !important;
}
@media (hover: hover) {
    .social-links a:hover { 
        color: var(--gold-text); 
    }
}
@media (pointer: coarse) {
    .social-links a:active { 
        color: var(--gold); 
        transform: scale(1.1); 
    }
}

/* ============================================
   Анимации
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 992px) {
    .benefits-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .process-steps { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .about-grid, .form-grid { 
        grid-template-columns: 1fr; 
    }
    .achievements { 
        grid-template-columns: 1fr; 
    }
    .about-image { 
        min-height: 300px; 
    }
    .footer-content { 
        flex-direction: column; 
        text-align: center; 
        align-items: center;
        gap: 25px;
    }
    .social-links { 
        justify-content: center; 
        margin: 20px 0;
        gap: 25px;
    }
    .social-links a {
        font-size: 1.8rem;
        width: 45px;
        height: 45px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-secondary { 
        margin-left: 0; 
        margin-top: 15px; 
        display: block; 
    }
    section { 
        padding: 60px 0; 
    }
    .pricing-item { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 8px; 
    }
    .pricing-price { 
        margin-left: 0; 
    }
    
    /* Футер на мобильных - ИСПРАВЛЕНО */
    footer {
        padding: 60px 0 40px;
        text-align: center;
    }
    .footer-content > div:first-child {
        width: 100%;
        margin-bottom: 20px;
    }
    .footer-content > div:first-child h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    .footer-content > div:first-child p {
        font-size: 0.9rem;
        opacity: 0.7;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    .footer-content > div:last-child {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    .footer-content > div:last-child p {
        margin: 8px 0;
        font-size: 1rem;
    }
    .footer-content > div:last-child p:first-child {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--gold-text);
        margin-bottom: 5px;
    }
    .footer-content > div:last-child p:nth-child(2) {
        font-size: 0.95rem;
        color: var(--text-muted);
        margin-bottom: 20px;
    }
    .footer-content > div:last-child p:last-child {
        font-size: 0.75rem;
        opacity: 0.4;
        margin-top: 20px;
        line-height: 1.6;
    }
}

@media (max-width: 500px) {
    .benefits-grid, .process-steps, .tips-grid { 
        grid-template-columns: 1fr; 
    }
    .floating-chat { 
        bottom: calc(15px + var(--safe-area-bottom)); 
        right: 15px; 
    }
    .chat-icon { 
        width: 45px; 
        height: 45px; 
        font-size: 22px; 
    }
    .scroll-top { 
        bottom: calc(15px + var(--safe-area-bottom)); 
        left: 15px; 
        width: 40px; 
        height: 40px; 
    }
    .form-block { 
        padding: 30px 20px; 
    }
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    .section-title { 
        font-size: 1.8rem; 
    }
    .prop-disclaimer {
        font-size: 0.65rem;
    }
    .btn,
    .btn-secondary {
        min-height: 50px;
        padding: 20px 45px;
    }
    /* Контейнеры кнопок */
    .hero-buttons,
    .property-grid + div[style*="text-align"],
    .cases-section > .container > div[style*="text-align"] {
        position: relative !important;
        z-index: 50 !important;
        pointer-events: none;
    }
    .hero-buttons > *,
    .property-grid + div[style*="text-align"] > *,
    .cases-section > .container > div[style*="text-align"] > * {
        pointer-events: auto !important;
    }
    
    /* Футер на очень маленьких экранах */
    footer {
        padding: 50px 0 30px;
    }
    .footer-content > div:first-child h3 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    .footer-content > div:first-child p {
        font-size: 0.85rem;
    }
    .social-links {
        gap: 20px;
    }
    .footer-content > div:last-child p:first-child {
        font-size: 1.1rem;
    }
    .footer-content > div:last-child p:nth-child(2) {
        font-size: 0.9rem;
    }
    .footer-content > div:last-child p:last-child {
        font-size: 0.7rem;
        padding: 0 10px;
    }
}

/* ============================================
   Заголовки на мобильных
   ============================================ */
@media (max-width: 768px) {
    h1, h2, h3, h4 {
        line-height: 1.3;
        letter-spacing: 0.5px;
    }
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.6rem !important;
    }
    h3 {
        font-size: 1.3rem !important;
    }
    h4 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 1.6rem !important;
    }
    h2 {
        font-size: 1.4rem !important;
    }
    h3 {
        font-size: 1.15rem !important;
    }
    h4 {
        font-size: 1rem !important;
    }
}

/* ============================================
   iOS фиксы
   ============================================ */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }
    .btn:active,
    .btn-secondary:active,
    a:active {
        opacity: 0.9;
    }
}