@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-soft: #e0e7ff;
    --secondary: #10b981;
    --dark: #0b1a33;
    --gray-900: #1e293b;
    --gray-800: #2d3a4f;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --light: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.2s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #1a1a1a;
    margin: 0;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
        url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}
/* ========== НАВИГАЦИЯ ========== */
.navbar {
    position: relative;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e8ed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px; /* Чуть увеличил для солидности */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 10px;
    
    /* Сложный градиент: золото + белые блики */
    background: linear-gradient(
        -45deg, 
        #a67c00 0%,     /* Темное золото */
        #bf953f 20%,    /* Среднее золото */
        #fcf6ba 45%,    /* БЕЛЫЙ БЛИК (шампань) */
        #b38728 50%,    /* Глубокий золотой тон */
        #fbf5b7 55%,    /* ВТОРОЙ БЛИК */
        #aa771c 80%,    /* Бронзовое золото */
        #916808 100%    /* Тень */
    );
    
    /* Растягиваем градиент для плавности */
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Усиленная тень для эффекта "отрыва" от фона */
    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.7));
    
    /* Добавляем легкую анимацию перелива, если хочешь "живой" металл */
    animation: shine 5s linear infinite;
}

/* Анимация перелива золота (опционально) */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}



.recom-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px; /* Чуть увеличил для солидности */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 10px;
    
    /* Сложный градиент: золото + белые блики */
    background: linear-gradient(
        -45deg, 
        #a67c00 0%,     /* Темное золото */
        #bf953f 20%,    /* Среднее золото */
        #fcf6ba 45%,    /* БЕЛЫЙ БЛИК (шампань) */
        #b38728 50%,    /* Глубокий золотой тон */
        #fbf5b7 55%,    /* ВТОРОЙ БЛИК */
        #aa771c 80%,    /* Бронзовое золото */
        #916808 100%    /* Тень */
    );
    
    /* Растягиваем градиент для плавности */
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Усиленная тень для эффекта "отрыва" от фона */
    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.7));
    
    /* Добавляем легкую анимацию перелива, если хочешь "живой" металл */
    animation: shine 5s linear infinite;
}

/* Анимация перелива золота (опционально) */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Класс для подзаголовка прописью */
.hero-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    text-align: center;
    display: block;
    
    /* Мягкий золотисто-бежевый цвет */
    color: #f1e5ac;
    
    /* Легкое свечение для читабельности */
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
    margin-top: -5px; /* Чтобы пропись была ближе к заголовку */
}


.gold-divider {
    width: 200px; /* Ширина черточки */
    height: 2px;  /* Толщина */
    margin: 20px auto; /* Центрирование и отступы сверху/снизу */
    
    /* Золотой градиент, который плавно исчезает по бокам */
    background: radial-gradient(circle, 
        rgba(252,234,187,1) 0%, 
        rgba(248,181,0,1) 50%, 
        rgba(251,223,147,0) 100%
    );
    
    /* Небольшое сияние */
    box-shadow: 0px 0px 10px rgba(248, 181, 0, 0.5);
    border-radius: 50%; /* Скругляем края для мягкости */
}
.navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    height: 140px;
    background: #ffffff;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.logo-img {
    max-height: 133px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    margin-top: 5px;
}

.nav-menu {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-left: auto;
}

.nav-item {
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-item:hover {
    color: #b38728;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    white-space: nowrap;
}

/* Кнопка "Найти" */
.btn-primary {
    background: linear-gradient(135deg, #e6af2e 0%, #d4a017 100%);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    padding: 0 30px;
    height: 48px; /* Вровень с инпутами */
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: #000000;
    border: 2px solid #d4a017;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 12px;
    transition: all 0.3s ease;
}


.user-menu {
    display: none;
    align-items: center;
    gap: 20px;
}

.user-menu.active {
    display: flex;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    font-size: 24px;
    background: var(--gray-100);
    border: none;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
    margin-left: auto;
}

.menu-toggle:hover {
    background: var(--primary-soft);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* ========== ЯЗЫКОВОЙ ГЛОБУС ========== */
.lang-globe {
    position: absolute;
    top: 160px;
    right: 30px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.lang-globe-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e5e8ed;
    border-radius: 50px;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    min-width: 100px;
    justify-content: center;
}

.lang-globe-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.lang-globe-btn i.fa-globe {
    font-size: 18px;
    color: var(--primary);
    animation: globeRotate 8s linear infinite;
}

@keyframes globeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lang-current {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.lang-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: var(--gray-500);
}

.lang-globe-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    min-width: 160px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.lang-dropdown.show {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.lang-option:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.lang-option.active {
    background: var(--primary);
    color: white;
}

.lang-option .flag {
    font-size: 20px;
    line-height: 1;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 680px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 60px 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 30, 70, 0.4) 0%, rgba(0, 15, 40, 0.7) 100%);
    z-index: -1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://avatars.mds.yandex.net/i?id=d9af405608e78ba4ab365f5ac5e88ccd_l-8311701-images-thumbs&n=13') center/cover no-repeat;
    z-index: -3;
}

.hero-content {
    max-width: 1200px;
    padding: 0 80px;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 36px;
    margin-bottom: 48px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ========== SEARCH CARD ========== */
.search-card {
    /* Эффект матового стекла */
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Уменьшаем огромные паддинги */
    padding: 24px 32px; 
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Шрифты и текст */
    font-family: 'Inter', -apple-system, sans-serif;
    color: #ffffff; 
    max-width: 1000px;
    margin: 0 auto;
}


/* Стили заголовков внутри полей (Город, Тип объекта и т.д.) */
.search-card label, 
.search-card .label-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Инпуты делаем более аккуратными */
.search-card input, 
.search-card select {
    background: rgba(255, 255, 255, 0.9); /* Оставляем их светлыми для читаемости */
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    height: 48px; /* Чуть уменьшил высоту */
    font-size: 15px;
    color: #1a1a1a;
}
.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.search-tab.active {
    color: white;
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--gray-700);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    outline: none;
    font-size: 15px;
    background: white;
    transition: var(--transition);
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* ========== CONTAINER & SECTIONS ========== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 80px;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 18px;
}

/* ========== PROPERTY GRID ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e8ed;
    transition: all 0.22s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    border-color: #cbd5e1;
}

.img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-img {
    transform: scale(1.07);
}

.img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0,0,0,0.8) 30%,
        rgba(0,0,0,0.95) 70%,
        #000000 100%);
    pointer-events: none;
    z-index: 1;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.favorite-btn i {
    font-size: 18px;
    color: white;
    transition: color 0.2s;
}

.favorite-btn:hover i,
.favorite-btn.liked i {
    color: #ef4444;
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: white;
    z-index: 2;
}

.card-price {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


.card-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.card-address {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.card-address i {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 8px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-meta i {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.property-status {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 15;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.status-available {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.status-sold {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.status-pending {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--gray-500);
}

.loading-spinner i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary);
}

.no-properties {
    text-align: center;
    padding: 60px;
    color: var(--gray-500);
    font-size: 18px;
}

.no-properties i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 50, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 48px 40px 40px;
    border-radius: 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: scale(0.95);
    animation: modalPop 0.25s ease forwards;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalPop {
    to { transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-500);
    border: none;
    background: none;
    transition: var(--transition);
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary);
    background: var(--gray-100);
    transform: rotate(90deg);
}

.modal h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.02em;
}

.modal p {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 15px;
}

.auth-input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1.5px solid var(--gray-300);
    border-radius: 50px;
    background: #fcfcfc;
    outline: none;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.auth-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.auth-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: var(--gray-900);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    display: none;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
    max-width: 350px;
}

.toast.show {
    display: flex;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    color: white;
    padding: 40px 60px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 -18px 60px rgba(15, 23, 42, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: var(--transition);
}

.footer-link i {
    width: 24px;
    color: var(--primary-light);
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1440px) {
    .navbar-main { padding: 0 60px; }
    .container { padding: 60px 60px; }
    .nav-menu { gap: 40px; }
    .hero-content { padding: 0 60px; }
}

@media (max-width: 1024px) {
    .navbar-main { padding: 0 30px; }
    .container { padding: 40px 30px; }
    .nav-menu { gap: 25px; }
    
    .hero {
        min-height: 600px;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 44px;
    }
    
    .lang-globe {
        top: 150px;
    }
}

/* Мобильные устройства */
@media (max-width: 992px) {
    /* Навбар */
    .navbar-main {
        padding: 0 24px;
        height: 200px;
    }
    
    .logo-img {
        max-height: 333px; /* Огромный логотип как на десктопе */
        margin: 0;
        padding: 0;
    }
    
    .menu-toggle {
        display: flex;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
    
    /* БУРГЕР НА 1/3 ЭКРАНА */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 33.333%;
        min-width: 280px;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 120px 24px 40px;
        gap: 16px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    /* Затемнение фона */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        pointer-events: none;
    }
    
    .nav-item {
        width: 100%;
        padding: 18px 20px;
        font-size: 18px;
        font-weight: 600;
        text-align: left;
        border-radius: 12px;
        transition: all 0.2s;
        border: none;
        background: transparent;
    }
    
    .nav-item:hover {
        background: var(--primary-soft);
        color: var(--primary);
        transform: translateX(5px);
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 24px;
        gap: 12px;
    }
    
    .auth-buttons .btn {
        width: 100%;
        height: 56px;
        font-size: 17px;
        justify-content: center;
        border-radius: 12px;
    }
    
    .user-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .user-menu .btn {
        width: 100%;
    }
    
    /* Языковой переключатель - крупнее */
    .lang-globe {
        top: 135px;
        right: 24px;
    }
    
    .lang-globe-btn {
        padding: 14px 22px;
        min-width: 110px;
        font-size: 16px;
        gap: 12px;
    }
    
    .lang-globe-btn i.fa-globe {
        font-size: 20px;
    }
    
    .lang-current {
        font-size: 16px;
        min-width: 34px;
    }
    
    .lang-arrow {
        font-size: 14px;
    }
    
    .lang-dropdown {
        min-width: 180px;
    }
    
    .lang-option {
        padding: 14px 18px;
        font-size: 16px;
    }
    
    .lang-option .flag {
        font-size: 22px;
    }
    
    /* Hero секция - оставляем старую форму поиска */
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: 36px;
        margin-top: 20px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    /* Поисковая карточка - ВОЗВРАЩАЕМ СТАРУЮ */
    .search-card {
        padding: 28px 24px;
        margin: 0 20px;
    }
    
    .search-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 24px;
        background: transparent;
        padding: 0;
    }
    
    .search-tab {
        padding: 12px 24px;
        font-size: 15px;
        background: transparent;
        border: 1px solid var(--gray-200);
    }
    

    
    .search-form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        align-items: flex-end;
    }
    
    .form-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .form-group label {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--gray-700);
    }
    
    .form-group select,
    .form-group input {
        width: 100%;
        padding: 14px 18px;
        border: 1px solid var(--gray-300);
        border-radius: 50px;
        font-size: 15px;
        height: auto;
    }
    
    /* Кнопка "Найти" */
    .btn-primary {
        background: linear-gradient(135deg, #e6af2e 0%, #d4a017 100%);
        color: #000;
        font-weight: 700;
        font-size: 16px;
        text-transform: uppercase;
        padding: 0 30px;
        height: 48px; /* Вровень с инпутами */
        border-radius: 10px;
        border: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
    }
    /* Контейнер */
    .container {
        padding: 40px 24px;
    }
    
    .section-title {
        font-size: 32px;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 16px;
        text-align: center;
    }
    
    /* Карточки объектов - крупнее */
    .grid {
        gap: 20px;
    }
    
    .card {
        border-radius: 16px;
    }
    
    .card-price {
        font-size: 22px;
    }
    
    .card-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .card-address {
        font-size: 12px;
    }
    
    .card-meta {
        font-size: 12px;
        gap: 10px 12px;
        padding-top: 6px;
    }
    
    .card-meta i {
        font-size: 12px;
    }
    
    .property-status {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .favorite-btn {
        width: 34px;
        height: 34px;
    }
    
    .favorite-btn i {
        font-size: 16px;
    }
    
    /* Футер */
    .footer {
        padding: 48px 24px;
    }
}

@media (max-width: 768px) {
    .navbar-main {
        height: 110px;
        padding: 0 20px;
    }
    
    .logo-img {
        max-height: 180px;
    }
    
    .menu-toggle {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .nav-menu {
        min-width: 260px;
        padding: 110px 20px 30px;
    }
    
    .nav-item {
        padding: 16px 18px;
        font-size: 17px;
    }
    
    .hero {
        padding: 90px 0 40px;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-top: 15px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .search-card {
        padding: 24px 20px;
    }
    
    .search-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .form-group select,
    .form-group input {
        padding: 12px 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .grid {
        gap: 16px;
    }
    
    .card-price {
        font-size: 20px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .lang-globe {
        top: 125px;
        right: 20px;
    }
    
    .lang-globe-btn {
        padding: 12px 20px;
        min-width: 100px;
        font-size: 15px;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .navbar-main {
        height: 100px;
        padding: 0 16px;
    }
    
    .logo-img {
        max-height: 96px; /* Огромный логотип */
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
   
    
    .nav-menu {
        min-width: 240px;
        padding: 100px 16px 30px;
    }
    
    .nav-item {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .auth-buttons .btn {
        height: 52px;
        font-size: 16px;
    }
    
    .hero {
        padding: 80px 0 30px;
    }
    
    .hero h1 {
        font-size: 30px;
        margin-top: 10px;
        padding: 0 5px;
    }
    
    
    .hero p {
        font-size: 28px;
        margin-bottom: 28px;
    }
    
    .search-card {
        padding: 20px 16px;
        margin: 0 12px;
    }
    
    .search-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .search-form {
        gap: 14px;
    }
    
    .form-group label {
        font-size: 11px;
    }
    
    .form-group select,
    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-primary {
        height: 48px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }



.recom-title {
    font-family: 'Playfair Display', serif;
    font-size: 25px; /* Чуть увеличил для солидности */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 10px;
    
    /* Сложный градиент: золото + белые блики */
    background: linear-gradient(
        -45deg, 
        #a67c00 0%,     /* Темное золото */
        #bf953f 20%,    /* Среднее золото */
        #fcf6ba 45%,    /* БЕЛЫЙ БЛИК (шампань) */
        #b38728 50%,    /* Глубокий золотой тон */
        #fbf5b7 55%,    /* ВТОРОЙ БЛИК */
        #aa771c 80%,    /* Бронзовое золото */
        #916808 100%    /* Тень */
    );
    
    /* Растягиваем градиент для плавности */
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Усиленная тень для эффекта "отрыва" от фона */
    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.7));
    
    /* Добавляем легкую анимацию перелива, если хочешь "живой" металл */
    animation: shine 5s linear infinite;
}

/* Анимация перелива золота (опционально) */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .grid {
        gap: 14px;
    }
    
    .card-price {
        font-size: 18px;
    }
    
    .card-price::after {
        font-size: 0.6em;
    }
    
    .card-title {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .card-address {
        font-size: 11px;
    }
    
    .card-address i {
        font-size: 10px;
    }
    
    .card-meta {
        font-size: 11px;
        gap: 8px 10px;
        padding-top: 5px;
    }
    
    .card-meta i {
        font-size: 11px;
    }
    
    .property-status {
        padding: 4px 10px;
        font-size: 11px;
        top: 10px;
        left: 10px;
    }
    
    .favorite-btn {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }
    
    .favorite-btn i {
        font-size: 15px;
    }
    
    .lang-globe {
        top: 115px;
        right: 16px;
    }
    
    .lang-globe-btn {
        padding: 10px 18px;
        min-width: 90px;
        font-size: 14px;
        gap: 10px;
    }
    
    .lang-globe-btn i.fa-globe {
        font-size: 18px;
    }
    
    .lang-current {
        font-size: 14px;
        min-width: 30px;
    }
    
    .lang-arrow {
        font-size: 12px;
    }
    
    .lang-dropdown {
        min-width: 160px;
    }
    
    .lang-option {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .lang-option .flag {
        font-size: 20px;
    }
    
    /* Модалки */
    .modal-content {
        padding: 40px 20px 32px;
    }
    
    .modal h2 {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .navbar-main {
        height: 90px;
    }
    
    .logo-img {
        max-height: 140px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .search-card {
        padding: 16px 12px;
    }
    
    .search-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .form-group select,
    .form-group input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .btn-primary {
        height: 44px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .grid {
        gap: 12px;
    }
    
    .card-price {
        font-size: 16px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    .card-address {
        font-size: 10px;
    }
    
    .card-meta {
        font-size: 10px;
        gap: 6px 8px;
    }
    
    .nav-menu {
        min-width: 220px;
    }
}

/* Фикс для iOS */
input, select, textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Анимация для бургера */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Подключаем строгий шрифт Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Основная карточка */
.search-card {
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.07); /* Тонкая белая вуаль */
    backdrop-filter: blur(20px); /* Сильное размытие города сзади */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 30px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Заголовки полей (Город, Тип объекта) */
.search-card label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    text-align: left;
}

/* Поля ввода и селекты */
.search-card input, 
.search-card select {
    background: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 44px; /* Компактная высота */
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    width: 100%;
}

/* Стилизация кнопки "Купить / Аренда" (табы сверху) */
.search-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
}

.tab-btn.active {
    color: #fff;
    border-bottom: 2px solid #d4a017; /* Подчеркивание золотом */
}

/* Золотая кнопка "НАЙТИ" */
.btn-primary {
    background: linear-gradient(145deg, #f7d147, #d4a017) !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none !important;
    border-radius: 8px !important;
    height: 44px;
    padding: 0 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
    filter: brightness(1.1);
}

/* Отключаем синие вспышки на всех элементах */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

button, .btn, .nav-link, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    outline: none;
}

button:focus, .btn:focus, .nav-link:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}



/* Убираем лишние отступы у колонок, если используешь сетку */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto; /* Кнопка в ряд с полями */
    gap: 20px;
    align-items: flex-end;
}
