/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя секция шапки */
.header-top {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    gap: 24px;
}

.header-top-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-link:hover {
    color: #0066cc;
}

.contact-link, .location-link {
    color: #0066cc;
    font-weight: 500;
}

.contact-link:hover, .location-link:hover {
    color: #0052a3;
}

/* Основная шапка */
.main-header {
    background-color: #fff;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 2100;
    transition: box-shadow 0.3s ease;
}

.main-header .container {
    display: block;
}

/* Левая часть шапки */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Общая строка шапки на десктопе: бургер | логотип | меню | контакты */
@media (min-width: 769px) {
    .header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    /* Размещаем меню по центру, контакты справа */
    .header-row .main-nav {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }

    .header-right {
        margin-left: auto;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-text {
    font-size: 39px;
    font-weight: 700;
    color: #0066cc;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.logo-slogan {
    font-size: 15px;
    font-weight: 700;
    color: #0066cc !important;
    text-decoration: none;
    white-space: nowrap;
    margin-top: -2px;
    letter-spacing: 0.5px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Кнопка категории */
.category-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.category-btn:hover {
    background-color: #0052a3;
}

.category-btn i {
    font-size: 14px;
}

/* Навигация */
.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #0066cc;
}

.nav-link.active {
    color: #4A90E2;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4A90E2;
    border-radius: 1px;
}

/* Выпадающее меню */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.dropdown-toggle:hover {
    color: #bcaf8a;
}

.dropdown-toggle.active {
    color: #bcaf8a;
    font-weight: 600;
    position: relative;
}

.dropdown-toggle.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #bcaf8a;
    border-radius: 1px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 8px 0;
    backdrop-filter: blur(10px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Добавляем стрелочку к выпадающему меню */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
    z-index: 1001;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #e9ecef;
    z-index: 9999;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #faf7ee 0%, #efe7ce 100%);
    color: #7b6a3e;
    transform: translateX(4px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, #faf7ee 0%, #efe7ce 100%);
    color: #7b6a3e;
    font-weight: 600;
}

.dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #bcaf8a;
    border-radius: 0 2px 2px 0;
}

/* Правая часть шапки */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 140px;
}

.phone-number {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.phone-number:hover {
    color: #0066cc;
}

.working-hours {
    color: #666;
    font-size: 11px;
    white-space: nowrap;
    line-height: 1.2;
}

.address {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.2;
}

.address-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.address-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Кнопки действий пользователя */
.user-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-btn {
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    background-color: #f8f9fa;
    color: #0066cc;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.login-btn:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* Основной контент */
.main-content {
    min-height: auto;
    padding: 20px 0;
    clear: both;
    display: block;
}

/* Секция героя */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Секция каталога */
.catalog-section {
    margin-bottom: 20px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
}

/* Сетка каталога */
.catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 20px;
    width: 100%;
}

/* Карточки в каталоге должны быть компактными */
.catalog-grid .property-card-compact {
    width: 100%;
    max-width: none;
    flex: none;
}

/* Старая сетка каталога для больших карточек */
.catalog-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
}

/* Карточка недвижимости */
.property-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}



.card-content {
    padding: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.card-price {
    font-size: 16px;
    font-weight: 600;
    color: #0066cc;
    white-space: nowrap;
    margin-left: 12px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.card-location i {
    font-size: 12px;
    color: #999;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #0066cc;
}

.breadcrumb-separator {
    color: #999;
    font-size: 12px;
}

.breadcrumb-current {
    color: #999;
}

/* Блок "О компании" */
.about-section {
    margin: 40px 0 60px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #BEAF87 0%, #A19276 100%);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.about-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-tab {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.about-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.about-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.about-image {
    flex-shrink: 0;
    width: 380px;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
    margin-left: 40px;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0px;
    right: 40px;
    bottom: 20px;
    background: linear-gradient(45deg, #BEAF87, #A19276, #f8f9fa, #ffffff);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0.4;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

.about-image:hover::before {
    opacity: 0.6;
    transform: translate(10px, 10px);
    animation: gradientShift 1s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    filter: brightness(1.05) contrast(1.1);
    margin-left: 20px;
}

.about-image:hover img {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 1;
    padding-top: 0;
    padding-right: 40px;
}

.about-quote {
    font-size: 22px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 50px 0;
    font-style: normal;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.about-quote::before {
    content: '"';
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: -30px;
    left: -40px;
    font-family: 'Georgia', serif;
    font-weight: 300;
}

.about-quote::after {
    content: '"';
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: -60px;
    right: -40px;
    font-family: 'Georgia', serif;
    font-weight: 300;
}

.about-signature {
    margin-top: 50px;
    margin-right: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-signature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.about-signature:hover::before {
    left: 100%;
}

.about-signature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.signature-line {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.founder-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.founder-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.company-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.about-actions {
    margin-top: 40px;
    margin-right: 20px;
}

.about-actions .btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #BEAF87;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    color: #BEAF87;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(190, 175, 135, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.about-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.about-actions .btn:hover::before {
    left: 100%;
}

.about-actions .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(190, 175, 135, 0.4);
    background: linear-gradient(135deg, #BEAF87 0%, #A19276 100%);
    color: #ffffff;
    border-color: #BEAF87;
}

.about-actions .btn:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

.about-actions .btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.about-actions .btn:hover i {
    transform: translateX(4px);
}

/* Адаптивность для блока "О компании" */
@media (max-width: 1200px) {
    .about-content {
        gap: 60px;
        max-width: 1000px;
    }
    
    .about-image {
        width: 320px;
        margin-left: 30px;
    }
    
    .about-image::before {
        left: 0px;
        right: 30px;
    }
    
    .about-image img {
        height: 420px;
        margin-left: 15px;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .about-quote {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .about-section {
        margin: 60px 0 80px 0;
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    
    .about-image {
        width: 280px;
        margin: 0 auto;
        margin-left: 0;
    }
    
    .about-image::before {
        left: -20px;
        right: 20px;
    }
    
    .about-image img {
        height: 380px;
        margin-left: 0;
    }
    
    .about-title {
        font-size: 28px;
    }
    
    .about-quote {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-signature {
        margin-right: 0;
    }
    
    .about-actions {
        margin-right: 0;
    }
    
    .about-quote::before,
    .about-quote::after {
        font-size: 60px;
    }
    
    .about-quote::before {
        top: -20px;
        left: -30px;
    }
    
    .about-quote::after {
        bottom: -40px;
        right: -30px;
    }
    
    .about-signature {
        padding: 24px;
    }
    
    .signature-line {
        font-size: 24px;
    }
    
    .company-name {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .about-section {
        margin: 40px 0 60px 0;
        padding: 40px 0;
    }
    
    .about-header {
        margin-bottom: 50px;
    }
    
    .about-tab {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .about-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .about-image {
        width: 240px;
        margin-left: 0;
    }
    
    .about-image::before {
        left: -20px;
        right: 20px;
    }
    
    .about-image img {
        height: 320px;
        margin-left: 0;
    }
    
    .about-quote {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .about-quote::before,
    .about-quote::after {
        font-size: 50px;
    }
    
    .about-quote::before {
        top: -15px;
        left: -25px;
    }
    
    .about-quote::after {
        bottom: -35px;
        right: -25px;
    }
    
    .about-signature {
        padding: 20px;
        margin-top: 40px;
        margin-right: 0;
    }
    
    .about-actions {
        margin-right: 0;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .signature-line {
        font-size: 20px;
    }
    
    .founder-title {
        font-size: 14px;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .about-actions .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .about-section {
        margin: 30px 0 50px 0;
        padding: 30px 0;
        border-radius: 16px;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-image {
        width: 200px;
        margin-left: 0;
    }
    
    .about-image::before {
        left: -20px;
        right: 20px;
    }
    
    .about-image img {
        height: 280px;
        border-radius: 16px;
        margin-left: 0;
    }
    
    .about-title {
        font-size: 20px;
    }
    
    .about-quote {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .about-signature {
        padding: 16px;
        margin-top: 30px;
        border-radius: 12px;
    }
    
    .signature-line {
        font-size: 18px;
    }
    
    .founder-title {
        font-size: 12px;
    }
    
    .company-name {
        font-size: 14px;
    }
    
    .about-actions .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Форма обратной связи - универсальное решение */
.feedback-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0 0 160px 0;
    margin: 0;
    z-index: 300;
    clear: both;
    display: block;
    overflow: visible;
}

.feedback-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.feedback-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(190, 175, 135, 0.03) 0%, rgba(161, 146, 118, 0.03) 100%);
    pointer-events: none;
}

.feedback-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(190, 175, 135, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(120deg); }
    66% { transform: translate(30px, -60px) rotate(240deg); }
}

.feedback-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 100px;
}

@media (min-width: 1201px) {
    .feedback-container {
        margin-bottom: 160px;
    }
}



.feedback-header {
    text-align: center;
    position: relative;
}

.feedback-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(190, 175, 135, 0.15) 0%, rgba(161, 146, 118, 0.15) 100%);
    color: #BEAF87;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(190, 175, 135, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feedback-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.feedback-tag:hover::before {
    left: 100%;
}

.feedback-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
    line-height: 1.2;
    position: relative;
}

.feedback-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #BEAF87, #A19276);
    border-radius: 2px;
}

.feedback-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 auto;
    line-height: 1.7;
    max-width: 700px;
    text-align: center;
    font-weight: 400;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(190, 175, 135, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.feedback-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #BEAF87, #A19276, #BEAF87);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.feedback-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-input {
    padding: 20px 25px;
    border: 2px solid rgba(190, 175, 135, 0.2);
    border-radius: 15px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #1A1A1A;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.feedback-input::placeholder {
    color: #999;
    font-weight: 400;
}

.feedback-input:focus {
    outline: none;
    border-color: #BEAF87;
    box-shadow: 0 0 0 4px rgba(190, 175, 135, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid rgba(190, 175, 135, 0.2);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.phone-input-wrapper:focus-within {
    border-color: #BEAF87;
    box-shadow: 0 0 0 4px rgba(190, 175, 135, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.phone-prefix {
    padding: 20px 15px;
    background: linear-gradient(135deg, #BEAF87 0%, #A19276 100%);
    color: white;
    font-weight: 600;
    border-right: 1px solid rgba(190, 175, 135, 0.3);
    font-size: 16px;
}

.phone-input {
    border: none;
    border-radius: 0;
    background: transparent;
    flex: 1;
    padding: 20px 25px;
    font-size: 16px;
}

.phone-input:focus {
    outline: none;
    background: transparent;
}

.feedback-checkbox {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(190, 175, 135, 0.05);
    border: 1px solid rgba(190, 175, 135, 0.1);
}

.checkbox-label:hover {
    background: rgba(190, 175, 135, 0.1);
    transform: translateY(-1px);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(190, 175, 135, 0.3);
    border-radius: 6px;
    background: white;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-input:checked + .checkbox-custom {
    background: linear-gradient(135deg, #BEAF87 0%, #A19276 100%);
    border-color: #BEAF87;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(190, 175, 135, 0.4);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.checkbox-text {
    flex: 1;
    font-weight: 500;
}

.feedback-submit {
    padding: 22px 40px;
    background: linear-gradient(135deg, #BEAF87 0%, #A19276 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(190, 175, 135, 0.3);
}

.feedback-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feedback-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(190, 175, 135, 0.4);
}

.feedback-submit:hover::before {
    left: 100%;
}

.feedback-submit:active {
    transform: translateY(-1px) scale(0.98);
}

.feedback-links {
    text-align: center;
    margin-top: 25px;
}

.feedback-link {
    color: #666;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s ease;
}

.feedback-link:hover {
    color: #BEAF87;
}

.privacy-link {
    color: #BEAF87;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    color: #A19276;
    text-decoration: none;
}

/* Адаптивность для формы обратной связи */
@media (max-width: 1200px) {
    .feedback-wrapper {
        padding: 50px 0;
    }
    
    .feedback-section {
        padding: 50px 30px;
        margin: 0 auto;
    }
    
    .feedback-title {
        font-size: 36px;
    }
    
    .feedback-form {
        max-width: 500px;
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .feedback-wrapper {
        padding: 24px 0 56px 0;
    }
    
    .footer-transition {
        padding-top: 56px;
    }
    
    .feedback-section {
        padding: 40px 25px;
        margin: 0 auto;
        border-radius: 25px;
    }
    
    .feedback-container {
        gap: 35px;
    }
    
    .feedback-title {
        font-size: 28px;
    }
    
    .feedback-subtitle {
        font-size: 16px;
        max-width: 500px;
    }
    
    .feedback-form {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .feedback-input {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .phone-prefix {
        padding: 18px 12px;
        font-size: 15px;
    }
    
    .phone-input {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .feedback-submit {
        padding: 20px 30px;
        font-size: 16px;
    }
    
    .checkbox-label {
        font-size: 14px;
        padding: 12px;
    }
    
    .checkbox-custom {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 600px) {
    .feedback-wrapper {
        padding: 20px 0 44px 0;
    }
    
    .feedback-section {
        padding: 30px 20px;
        margin: 0 auto;
        border-radius: 20px;
    }
    
    .feedback-container {
        gap: 30px;
    }
    
    .feedback-title {
        font-size: 24px;
    }
    
    .feedback-subtitle {
        font-size: 15px;
        max-width: 400px;
    }
    
    .feedback-form {
        padding: 25px 20px;
        border-radius: 18px;
    }
    
    .feedback-input {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .phone-prefix {
        padding: 16px 10px;
        font-size: 14px;
    }
    
    .phone-input {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .feedback-submit {
        padding: 18px 25px;
        font-size: 15px;
    }
    
    .checkbox-label {
        font-size: 13px;
        padding: 10px;
        gap: 12px;
    }
    
    .checkbox-custom {
        width: 20px;
        height: 20px;
    }
    
    .feedback-tag {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .feedback-section {
        padding: 30px 20px;
    }
    
    .feedback-title {
        font-size: 20px;
    }
    
    .feedback-inputs {
        gap: 12px;
    }
    
    .feedback-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .phone-prefix {
        padding: 12px 10px;
    }
    
    .phone-input {
        padding: 12px 14px;
    }
}

/* Кнопка перехода в каталог */
.catalog-footer {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-outline:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Пагинация */
.pagination-container {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-btn {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #0066cc;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.pagination-btn:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-number {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.pagination-number:hover {
    background-color: #e9ecef;
}

.pagination-number.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
    cursor: default;
}

/* Состояния загрузки */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-size: 16px;
}

.no-complexes {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* Специальные стили для страницы каталога */
.catalog-section + .feedback-wrapper {
    margin-top: 60px;
}

/* Обеспечиваем правильное позиционирование формы на странице каталога */
.catalog-section .feedback-wrapper {
    position: relative;
    z-index: 1;
}

/* Дополнительное пространство для формы на странице каталога */
.catalog-section ~ .feedback-wrapper {
    margin-top: 80px;
}

/* Фильтры */
.filters-section {
    background: linear-gradient(135deg, rgba(190, 175, 135, 0.05) 0%, rgba(161, 146, 118, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(190, 175, 135, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(190, 175, 135, 0.03) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.filters-form {
    width: 100%;
    position: relative;
    z-index: 2;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
    align-items: end;
}

/* Альтернативная сетка с фиксированными колонками для предотвращения изменения размеров */
.filters-row.fixed-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Фиксируем размеры полей фильтров, чтобы они не менялись при показе/скрытии */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 70px; /* Минимальная высота для предотвращения изменения размеров */
}

/* Скрытые поля сохраняют свое место в сетке */
.filter-group[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

/* Альтернативный способ скрытия - через opacity и pointer-events */
.filter-group.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--c21-dark);
    margin-bottom: 2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--c21-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-select,
.filter-input {
    padding: 10px 12px;
    border: 2px solid rgba(190, 175, 135, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: var(--c21-dark);
}

.filter-select:hover,
.filter-input:hover {
    border-color: rgba(190, 175, 135, 0.4);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 175, 135, 0.15);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--c21-gold);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(190, 175, 135, 0.15), 0 8px 24px rgba(190, 175, 135, 0.2);
    transform: translateY(-2px);
}

/* Кнопки фильтра */
.button-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid rgba(190, 175, 135, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--c21-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(190, 175, 135, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--c21-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 175, 135, 0.25);
}

.filter-btn[data-active="true"] {
    background: linear-gradient(135deg, var(--c21-gold) 0%, var(--c21-gold-dark) 100%);
    color: white;
    border-color: var(--c21-gold);
    box-shadow: 0 6px 20px rgba(190, 175, 135, 0.3);
    transform: translateY(-2px);
}

.filter-btn[data-active="true"]::before {
    display: none;
}

/* Range Slider */
.range-container {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(190, 175, 135, 0.2);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-container:hover {
    border-color: rgba(190, 175, 135, 0.4);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 175, 135, 0.15);
}

.range-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(190, 175, 135, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(190, 175, 135, 0.15);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.range-display:hover {
    background: rgba(190, 175, 135, 0.12);
    border-color: rgba(190, 175, 135, 0.25);
}

.range-value {
    color: var(--c21-dark);
    font-size: 13px;
    font-weight: 500;
}

.range-value strong {
    color: var(--c21-gold);
    font-weight: 700;
    font-size: 14px;
}

.range-separator {
    color: var(--c21-gold);
    font-weight: 600;
    margin: 0 8px;
}

.range-slider {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(190, 175, 135, 0.1);
    border-radius: 10px;
    padding: 0 10px;
}

.range-slider-input {
    position: absolute;
    width: calc(100% - 20px);
    height: 4px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
    left: 10px;
}

.range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--c21-gold) 0%, var(--c21-gold-dark) 100%);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(190, 175, 135, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid white;
}

.range-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(190, 175, 135, 0.5);
}

.range-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--c21-gold) 0%, var(--c21-gold-dark) 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(190, 175, 135, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-slider-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(190, 175, 135, 0.5);
}

.range-track {
    position: absolute;
    width: calc(100% - 20px);
    height: 4px;
    background: rgba(190, 175, 135, 0.2);
    border-radius: 2px;
    z-index: 1;
    left: 10px;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--c21-gold) 0%, var(--c21-gold-dark) 100%);
    border-radius: 2px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Интерактивные поля для ручного ввода */
.range-display {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-display:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--c21-gold);
    box-shadow: 0 0 0 4px rgba(190, 175, 135, 0.15);
}

.filters-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(190, 175, 135, 0.2);
    position: relative;
}

.filters-actions::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c21-gold), transparent);
}

.results-count {
    color: var(--c21-gold);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-count::before {
    content: '🔍';
    font-size: 14px;
}

.clear-filters {
    color: var(--c21-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid rgba(190, 175, 135, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clear-filters:hover {
    color: var(--c21-gold);
    border-color: var(--c21-gold);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 175, 135, 0.25);
}

.clear-filters i {
    color: var(--c21-gold);
    transition: transform 0.3s ease;
}

.clear-filters:hover i {
    transform: rotate(90deg);
}

/* Секция управления */
.controls-section {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Контейнер для карты и списка */
.catalog-content {
    display: flex;
    flex-direction: column;
}

#map, #catalog-grid {
    flex-shrink: 0;
}

/* Сортировка слева */
.sorting-left {
    display: flex;
    align-items: center;
}

.sorting-dropdown {
    position: relative;
    min-width: 220px;
}

/* Кнопки переключения вида справа */
.view-toggle-right {
    display: flex;
    gap: 8px;
}

.view-toggle-right .view-btn {
    padding: 10px 16px;
    border: 2px solid rgba(190, 175, 135, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--c21-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-toggle-right .view-btn:hover {
    border-color: rgba(190, 175, 135, 0.6);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.view-toggle-right .view-btn.active {
    background: var(--c21-gold);
    border-color: var(--c21-gold);
    color: var(--c21-dark);
    box-shadow: 0 4px 12px rgba(190, 175, 135, 0.3);
}

.sorting-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(190, 175, 135, 0.2);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    min-width: 220px;
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sorting-options.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.sorting-option {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(190, 175, 135, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: var(--c21-dark);
    position: relative;
    overflow: hidden;
}

.sorting-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(190, 175, 135, 0.1), transparent);
    transition: left 0.5s ease;
}

.sorting-option:hover::before {
    left: 100%;
}

.sorting-option:last-child {
    border-bottom: none;
}

.sorting-option:hover {
    background: rgba(190, 175, 135, 0.08);
    color: var(--c21-gold);
    transform: translateX(4px);
}

.sorting-option.active {
    background: linear-gradient(135deg, var(--c21-gold) 0%, var(--c21-gold-dark) 100%);
    color: white;
}

.sorting-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(190, 175, 135, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: var(--c21-dark);
    position: relative;
    overflow: hidden;
}

.sorting-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(190, 175, 135, 0.1), transparent);
    transition: left 0.5s ease;
}

.sorting-active:hover::before {
    left: 100%;
}

.sorting-active:hover {
    border-color: var(--c21-gold);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(190, 175, 135, 0.25);
}

.sorting-active i:first-child {
    color: var(--c21-gold);
    margin-right: 10px;
    font-size: 14px;
}

.sorting-active i:last-child {
    color: var(--c21-gold);
    margin-left: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
}

.sorting-dropdown.active .sorting-active i:last-child {
    transform: rotate(180deg);
}

/* Стили для карты Leaflet */
.leaflet-control-zoom {
    z-index: 100 !important;
}

.leaflet-control-zoom a {
    z-index: 101 !important;
}

/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */

/* Сетка для главной страницы (3 в ряд) */
.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

/* Карточка ЖК для главной страницы */
.home-property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Изображение карточки */
.home-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.home-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-property-card:hover .home-card-image img {
    transform: scale(1.05);
}



/* Контент карточки */
.home-card-content {
    padding: 16px;
}

.home-card-header {
    margin-bottom: 12px;
}

.home-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.home-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.home-location-text {
    font-weight: 500;
}

.home-commute-time {
    color: #9ca3af;
}

.home-card-price {
    margin-top: 8px;
}

.home-price-text {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Адаптивность для главной страницы */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .home-card-image {
        height: 200px;
    }
    
    .home-card-content {
        padding: 12px;
    }
    
    .home-card-title {
        font-size: 16px;
    }
    
    .home-price-text {
        font-size: 14px;
    }
}

/* Альтернативные стили для совместимости */
.sorting-section {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
}

.sorting-dropdown {
    position: relative;
    min-width: 200px;
}

.sorting-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    min-width: 200px;
}

.sorting-options.active {
    display: block;
}

.sorting-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.sorting-option:last-child {
    border-bottom: none;
}

.sorting-option:hover {
    background-color: #f8f9fa;
}

.sorting-option.active {
    background-color: #e9ecef;
}

.sorting-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sorting-active:hover {
    border-color: #0066cc;
}

.sorting-active i:first-child {
    color: #666;
    margin-right: 8px;
}

.sorting-active i:last-child {
    color: #666;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.sorting-dropdown.active .sorting-active i:last-child {
    transform: rotate(180deg);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.2s ease;
}

.range-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.range-separator {
    color: #666;
    font-weight: 500;
}

/* Range Slider */
.range-container {
    position: relative;
}

.range-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px 4px 0 0;
    border: 1px solid #e9ecef;
    border-bottom: none;
    font-size: 12px;
}

.range-value {
    color: #333;
    font-size: 12px;
}

.range-value strong {
    color: #0066cc;
    font-weight: 600;
}

.range-slider {
    position: relative;
    height: 16px;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0 8px;
}

.range-slider-input {
    position: absolute;
    width: calc(100% - 16px);
    height: 3px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
    left: 8px;
}

.range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #0066cc;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.range-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-slider-input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #0066cc;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.range-slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.range-track {
    position: absolute;
    width: calc(100% - 16px);
    height: 3px;
    background: #e9ecef;
    border-radius: 1.5px;
    z-index: 1;
    left: 8px;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: #0066cc;
    border-radius: 1.5px;
    z-index: 1;
    transition: all 0.2s ease;
}

/* Интерактивные поля для ручного ввода */
.range-display {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.range-display:hover {
    background-color: #e9ecef;
}

.range-display:focus-within {
    background-color: #fff;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filters-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.results-count {
    color: #0066cc;
    font-weight: 500;
    font-size: 16px;
}

.clear-filters {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.clear-filters:hover {
    color: #0066cc;
}

.clear-filters i {
    color: #0066cc;
}

/* Результаты поиска */
.search-results {
    margin-bottom: 24px;
}

.search-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Детали карточек */
.card-details {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.detail-item {
    background-color: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Футер */
.footer {
    background-color: #333;
    color: #fff;
    padding: 28px 0 16px;
    margin-top: 0;
    position: relative;
    z-index: 25;
    clear: both;
}

/* Переход к футеру с бренд-логотипом */
.footer-transition{
    position: relative;
    margin-top: 0;
    padding-top: 90px;
    clear: both;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    z-index: 400;
}
/* убрали цветные полосы */
.footer-transition .ft-band{display:none}
/* центрированный логотип */
.deco-logo.on-dark{position:absolute; left:50%; top:50px; transform:translateX(-50%); height:150px; width:150px; background: transparent; display:flex; align-items:center; justify-content:center; box-shadow:none; z-index: 450;}
.deco-logo.on-dark svg{height:120px; width:120px; display:block; position:relative; z-index:451;}

/* Адаптивность для логотипа */
@media (max-width: 768px) {
    .deco-logo.on-dark {
        top: 8px;
        height: 96px;
        width: 96px;
    }
    .deco-logo.on-dark svg {
        height: 80px;
        width: 80px;
    }
    
    .footer-content { margin-top: 56px; }
}

@media (max-width: 480px) {
    .deco-logo.on-dark { top: 6px; height: 84px; width: 84px; }
    .deco-logo.on-dark svg {
        height: 68px;
        width: 68px;
    }
    .footer-content { margin-top: 44px; }
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 12px;
    margin-top: 72px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 14px 0;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #0066cc;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a { color: #ccc; text-decoration: none; font-size: 13px; transition: color 0.3s ease; }

.footer-links a:hover {
    color: #0066cc;
}

.footer-contacts {
    margin-bottom: 12px;
}

.contact-item { display:flex; align-items:center; gap:10px; margin-bottom:12px; font-size:13px; }

.contact-item i {
    width: 16px;
    color: #0066cc;
    font-size: 14px;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0066cc;
}

.contact-item span {
    color: #ccc;
}

/* Гарантируем светлый цвет ссылок в футере (перебиваем внешние стили) */
.footer .contact-item a,
.footer .contact-item span {
    color: #ccc !important;
}

.footer-gis {
    margin-top: 20px;
}

.gis-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--c21-gold);
    color: var(--c21-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
}

.gis-link:hover {
    background: var(--c21-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 175, 135, 0.3);
}

.gis-link i {
    font-size: 16px;
}



.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:14px; border-top:1px solid #444;  font-size:13px; }

/* Компактный футер на мобильных */
@media (max-width: 768px) {
    .footer { padding: 18px 0 10px; }
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; margin-bottom: 8px; }
    .footer-section { min-height: auto; }
    .footer-title { font-size: 14px; margin-bottom: 10px; }
    .footer-links a { font-size: 12px; }
    .footer-contacts { margin-bottom: 8px; }
    .footer-contacts .contact-item { font-size: 12px; gap: 8px; margin-bottom: 8px; }
    .footer-contacts .contact-item a,
    .footer-contacts .contact-item span { white-space: nowrap; }
    .gis-link { padding: 10px 14px; font-size: 13px; }
    .footer-bottom { padding-top: 8px; font-size: 12px; }
}

/* Десктоп: возвращаем большие отступы формы и перехода к футеру */
@media (min-width: 992px) {
    .feedback-wrapper { padding: 60px 0 180px; }
    .footer-transition { padding-top: 120px; }
}
@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; gap: 12px; }
    .footer { padding: 16px 0 10px; }
    .footer-contacts .contact-item { font-size: 12px; }
}

.footer-bottom p {
    margin: 0;
    color: #999;
}

.footer-bottom .privacy-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .privacy-link:hover {
    color: #0066cc;
}

.footer-bottom .franchise-link {
    color: #ccc;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom .franchise-link:hover {
    color: var(--c21-gold);
}

.footer-bottom .franchise-link i {
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .main-header .container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-top-left,
    .header-top-right {
        gap: 16px;
    }
    
    .main-header .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-left {
        justify-content: center;
    }
    
    .header-right {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }
    
    /* Адаптивность для выпадающего меню */
    .nav-dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 8px;
        margin-left: 16px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        margin-top: 12px;
    }
    
    .dropdown-item {
        padding: 10px 20px;
        font-size: 14px;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(188, 175, 138, 0.1);
        border-left-color: #bcaf8a;
        transform: translateX(4px);
    }
    
    .dropdown-item.active {
        background: rgba(188, 175, 138, 0.15);
        border-left-color: #bcaf8a;
        font-weight: 600;
    }
    
    /* Стили для стрелочки на мобильных */
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown:hover .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .contact-info {
        align-items: center;
        flex-direction: column;
        gap: 8px;
        min-width: auto;
    }
    
    .phone-number {
        font-size: 16px;
    }
    
    .address {
        font-size: 12px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .nav-link.active::after {
        bottom: -3px;
        height: 1px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo-text {
        font-size: 32px;
    }
    
    .logo-slogan {
        font-size: 10px;
        margin-top: -1px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .header-top-left,
    .header-top-right {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .breadcrumbs {
        font-size: 12px;
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .about-section {
        margin: 40px 0;
        padding: 40px 0;
    }
    
    .about-title {
        font-size: 24px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-quote {
        font-size: 16px;
    }
    
    .feedback-container {
        padding: 24px;
        margin: 0 16px;
    }
    
    .feedback-title {
        font-size: 22px;
    }
    
    .feedback-inputs {
        flex-direction: column;
        gap: 12px;
    }
    
    .phone-input-wrapper {
        flex-direction: row;
    }
    
    .feedback-submit {
        width: 100%;
        margin-top: 16px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .catalog-grid-large {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-content: center;
    }
    
    .property-card {
        max-width: 100%;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-price {
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Компактные карточки каталога (плитки) */
.property-card-compact {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Изображение компактной карточки */
.compact-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.compact-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card-compact:hover .compact-card-image img {
    transform: scale(1.05);
}

/* Контент компактной карточки */
.compact-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-card-header {
    margin-bottom: 12px;
    flex: 1;
}

.compact-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.compact-card-location i {
    color: var(--c21-gold);
    font-size: 12px;
}

.compact-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
}

.compact-detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.compact-detail-item i {
    color: var(--c21-gold);
    font-size: 11px;
}

.compact-card-price {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.compact-price-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--c21-gold);
    margin: 0;
}

/* Адаптивность для компактных карточек */
@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .compact-card-image {
        height: 200px;
    }
    
    .compact-card-content {
        padding: 14px;
    }
    
    .compact-card-title {
        font-size: 16px;
    }
    
    .compact-price-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .compact-card-image {
        height: 180px;
    }
    
    .compact-card-content {
        padding: 12px;
    }
    
    .compact-card-title {
        font-size: 15px;
    }
    
    .compact-card-details {
        gap: 8px;
        font-size: 12px;
    }
    
    .compact-price-text {
        font-size: 15px;
    }
}

/* Большие карточки ЖК (старые, для совместимости) */
.property-card-large {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.card-images {
    flex: 0 0 600px;
    position: relative;
}

.main-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    pointer-events: all;
}

.nav-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
    transform: scale(0.95);
}

.thumbnail-images {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
}

.thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.thumbnail.active {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.more {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.card-content-large {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-title-section {
    flex: 1;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.completion-info {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 12px;
}

.completed-badge {
    background: #28a745;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.card-price-section {
    text-align: right;
    min-width: 200px;
}

.main-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 8px;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #0066cc;
}

.price-currency {
    font-size: 16px;
    color: #0066cc;
    font-weight: 600;
}



.card-location-info {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.location-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}



.apartment-prices {
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-row:last-child {
    border-bottom: none;
}

.room-type {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.room-price {
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
}







/* Адаптивность для больших карточек */
@media (max-width: 1024px) {
    .property-card-large {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .card-images {
        flex: none;
    }
    
    .main-image {
        height: 300px;
    }
    
    .card-content-large {
        padding: 24px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .card-price-section {
        text-align: left;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .thumbnail-images {
        padding: 12px;
        gap: 6px;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .price-value {
        font-size: 28px;
    }
    

}

@media (max-width: 480px) {
    .main-image {
        height: 250px;
    }
    
    .card-content-large {
        padding: 16px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .thumbnail-images {
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
} 

/* Детальная страница ЖК */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero секция */
.detail-hero {
    position: relative;
    margin-bottom: 40px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Бейджи на изображении */
.hero-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.rating-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
}

.rating-badge .star {
    color: #ffd700;
}

.class-badge {
    background: #0066cc;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.verified-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Информационная панель поверх изображения */
.hero-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 20px 20px;
}

.complex-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.price-range {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.completion-info {
    font-size: 16px;
    opacity: 0.9;
}

.completed-indicator {
    color: #28a745;
    font-weight: 500;
}

/* Интерактивные кнопки */
.hero-actions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 10;
}

.action-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.action-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.action-item i {
    font-size: 16px;
    color: #666;
}

.photo-counter {
    position: relative;
    min-width: 60px;
    justify-content: center;
}

.photo-count {
    font-weight: 600;
    color: #333;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.photo-nav-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.photo-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.photo-nav-btn.prev {
    left: -30px;
}

.photo-nav-btn.next {
    right: -30px;
}

/* Кнопки в правом верхнем углу */
.hero-top-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.favorite-btn,
.share-btn,
.more-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover,
.share-btn:hover,
.more-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #ff4757;
    color: white;
}

.favorite-btn i,
.share-btn i,
.more-btn i {
    font-size: 16px;
    color: #666;
}

.favorite-btn.active i {
    color: white;
}

/* Основная информация */
.detail-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Левая панель с информацией */
.detail-info-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-section {
    margin-bottom: 24px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
}

.location-item i {
    color: #666;
    width: 16px;
}

.metro-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.metro-info i {
    color: #0066cc;
    width: 16px;
}

.specifications-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.spec-item i {
    color: #666;
    width: 20px;
    margin-top: 2px;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 14px;
    color: #666;
}

.spec-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.more-info-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.more-info-link:hover {
    color: #0052a3;
}

.promotions {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.promotions-count {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Средняя секция с рейтингом транспорта */
.transport-rating-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: fit-content;
    min-width: 160px;
}

.transport-icon {
    margin-bottom: 12px;
}

.transport-icon i {
    font-size: 24px;
    color: #dc3545;
}

.transport-score {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.transport-label {
    font-size: 14px;
    color: #666;
}

/* Правая панель с контактами */
.detail-contact-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.developer-info {
    margin-bottom: 20px;
}

.developer-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.developer-label {
    font-size: 14px;
    color: #666;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-btn:hover {
    background: #218838;
}

.mortgage-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mortgage-btn:hover {
    background: #5a6268;
}

.opening-time {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

/* Реклама */
.advertisement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ad-image {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ad-label {
    font-size: 12px;
    color: #666;
}

.ad-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Галерея изображений */
.detail-gallery {
    margin-bottom: 40px;
}

.detail-gallery h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item.active {
    border-color: #0066cc;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-item.main img {
    height: 200px;
}

/* Цены по типам квартир */
.detail-prices {
    margin-bottom: 40px;
}

.detail-prices h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.price-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-type {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.room-price {
    font-size: 16px;
    font-weight: 600;
    color: #0066cc;
}

/* Похожие ЖК */
.similar-complexes {
    margin-bottom: 40px;
}

.similar-complexes h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.similar-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.similar-image {
    height: 200px;
    overflow: hidden;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-card:hover .similar-image img {
    transform: scale(1.05);
}

.similar-content {
    padding: 20px;
}

.similar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.similar-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.similar-price {
    font-size: 16px;
    font-weight: 600;
    color: #0066cc;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .transport-rating-card {
        order: -1;
        min-width: auto;
    }
    
    .hero-actions {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .action-item {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 400px;
    }
    
    .complex-name {
        font-size: 24px;
    }
    
    .price-range {
        font-size: 16px;
    }
    
    .hero-actions {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
    
    .hero-top-actions {
        position: static;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .detail-container {
        padding: 0 15px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .complex-name {
        font-size: 20px;
    }
    
    .hero-info-overlay {
        padding: 20px 15px 15px;
    }
    
    .detail-info-panel,
    .detail-contact-panel {
        padding: 20px;
    }
    
    .specifications-grid {
        gap: 12px;
    }
    
    .spec-item {
        gap: 8px;
    }
    
    .spec-value {
        font-size: 14px;
    }
} 

/* Страница статей */
.articles-section {
    padding: 20px 0;
}

.articles-header {
    text-align: center;
    margin-bottom: 20px;
}

.articles-header .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.articles-header .section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Секции категорий статей */
.articles-category-section {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.show-all-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
}

.show-all-link:hover {
    color: #0052a3;
}

/* Сетка статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Карточка статьи */
.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-category {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.article-date {
    font-size: 14px;
    color: #666;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    flex: 1;
}

.article-title a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #4A90E2;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt p {
    margin: 0;
}

.article-excerpt strong,
.article-excerpt b {
    font-weight: 600;
}

.article-excerpt em,
.article-excerpt i {
    font-style: italic;
}

.article-excerpt ul,
.article-excerpt ol {
    margin: 0;
    padding-left: 20px;
}

.article-excerpt li {
    margin: 0;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.article-views {
    font-size: 14px;
    color: #999;
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.article-tags .tag-link {
    padding: 3px 8px;
    font-size: 11px;
    background: #F5F5F5;
    color: #4A90E2;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tags .tag-link:hover {
    background: #4A90E2;
    color: white;
}

/* ... existing code ... */

/* Блок "Читайте также" */
.read-also-section {
    background: #FFF9E6;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.read-also-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.read-also-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.read-also-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.read-also-bullet {
    width: 8px;
    height: 8px;
    background: #4A90E2;
    border-radius: 50%;
    flex-shrink: 0;
}

.read-also-link {
    color: #4A90E2;
    text-decoration: underline;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.read-also-link:hover {
    color: #2E5A8A;
}

/* Быстрые теги */
.article-tags {
    margin: 32px 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-link {
    display: inline-block;
    padding: 8px 16px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
    transform: translateY(-1px);
}





.feedback-disclaimer {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    margin: 20px 0 0 0;
}

.privacy-link {
    color: white;
    text-decoration: underline;
}

.privacy-link:hover {
    opacity: 0.8;
}

/* Обновленные похожие статьи */
.similar-articles {
    margin: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 24px 0;
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.similar-article-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.similar-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.similar-article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.similar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-article-card:hover .similar-article-image img {
    transform: scale(1.05);
}

.similar-article-content {
    padding: 20px;
}

.similar-article-category {
    display: inline-block;
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.similar-article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-article-date {
    font-size: 14px;
    color: #666;
}

/* Стили для детальной страницы статьи */
.article-detail-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin: 40px 0;
}

.article-main {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 32px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-category {
    background: #E3F2FD;
    color: #1976D2;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.article-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-stats i {
    font-size: 16px;
}

.article-updated {
    color: #FF9800;
}

.article-hero-image {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 40px 0 20px 0;
    padding-top: 20px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 32px 0 16px 0;
    padding-top: 16px;
}

.article-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 24px 0 12px 0;
}

.article-content p {
    margin: 0 0 20px 0;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin: 8px 0;
}

.article-content blockquote {
    background: #F5F5F5;
    border-left: 4px solid #4A90E2;
    padding: 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.article-content th {
    background: #4A90E2;
    color: white;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background: #F8F9FA;
}

/* Сайдбар */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.author-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.author-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.author-info {
    display: flex;
    gap: 16px;
}

.author-photo {
    flex-shrink: 0;
}

.author-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}

.author-position {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.author-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.author-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.author-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-of-contents {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.toc-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-item {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
    transition: all 0.2s ease;
}

.toc-item:hover {
    color: #4A90E2;
    padding-left: 8px;
}

.toc-h2 {
    font-weight: 600;
    color: #1A1A1A;
}

.toc-h3 {
    padding-left: 16px;
}

.toc-h4 {
    padding-left: 32px;
}

/* Блок "Читайте также" */
.read-also-section {
    margin: 40px 0;
    padding: 24px;
    background: #F8F9FA;
    border-radius: 12px;
}

.read-also-title {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.read-also-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.read-also-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.read-also-bullet {
    color: #4A90E2;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.read-also-link {
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.read-also-link:hover {
    color: #4A90E2;
}

/* Быстрые теги */
.quick-tags-section {
    margin: 40px 0;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-tag {
    background: #E3F2FD;
    color: #1976D2;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-tag:hover {
    background: #1976D2;
    color: white;
    transform: translateY(-2px);
}

/* Блок "Похожие статьи" */
.similar-articles-section {
    background: #F8F9FA;
    padding: 60px 0;
    margin: 60px 0;
}

.similar-articles-title {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A1A;
    text-align: center;
    margin: 0 0 40px 0;
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.similar-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.similar-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.similar-article-image {
    height: 200px;
    overflow: hidden;
}

.similar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-article-card:hover .similar-article-image img {
    transform: scale(1.05);
}

.similar-article-content {
    padding: 20px;
}

.similar-article-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.similar-article-category {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.similar-article-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-article-author {
    margin-bottom: 12px;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 2px;
}

.author-position {
    font-size: 11px;
    color: #666;
    display: block;
    line-height: 1.3;
}

.similar-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.similar-article-date {
    color: #999;
}

.similar-article-stats {
    display: flex;
    gap: 12px;
}

.similar-article-views,
.similar-article-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.similar-article-views::before {
    content: "👁";
    font-size: 14px;
}

.similar-article-likes::before {
    content: "👍";
    font-size: 14px;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #357ABD;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .article-detail-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 20px 0;
    }
    
    .article-main {
        padding: 24px;
    }
    
    .article-title {
        font-size: 28px;
        margin: 0 0 20px 0;
    }
    
    .article-stats {
        gap: 12px;
        font-size: 13px;
    }
    
    .article-content h2 {
        font-size: 24px;
        margin: 32px 0 16px 0;
    }
    
    .article-content h3 {
        font-size: 20px;
        margin: 24px 0 12px 0;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-photo {
        align-self: center;
    }
    
    .quick-tags {
        gap: 8px;
    }
    
    .quick-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .breadcrumbs {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 13px;
    }
    
    .similar-articles-section {
        padding: 40px 0;
        margin: 40px 0;
    }
    
    .similar-articles-title {
        font-size: 24px;
        margin: 0 0 24px 0;
    }
    
    .similar-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .similar-article-image {
        height: 180px;
    }
    
    .similar-article-content {
        padding: 16px;
    }
    
    .similar-article-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .feedback-wrapper {
        padding: 25px 0;
    }
    
    .footer-transition {
        padding-top: 55px;
    }
    
    .feedback-section {
        padding: 25px 15px;
        margin: 0 auto;
    }
    
    /* Дополнительные стили для очень маленьких экранов */
    .dropdown-menu {
        margin-left: 12px;
    }
    
    .dropdown-item {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .feedback-title {
        font-size: 20px;
    }
    
    .feedback-subtitle {
        font-size: 14px;
    }
    
    .feedback-input {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .feedback-submit {
        padding: 14px 24px;
        font-size: 14px;
    }
} 

/* =============================
   Century 21 Theme Overrides
   ============================= */
:root {
    --c21-gold: #BEAF87;        /* Relentless Gold */
    --c21-gold-dark: #A19276;   /* Dark Gold */
    --c21-dark: #252526;        /* Obsessed Grey */
    --c21-mid: #808285;         /* Medium Grey */
    --c21-light: #E6E7E8;       /* Light Grey */
}

body {
    color: var(--c21-dark);
    background-color: #fff;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.main-header {
    background-color: var(--c21-dark);
    box-shadow: none;
}

.logo-text {
    color: var(--c21-gold);
    letter-spacing: 1px;
}

.logo-slogan {
    color: var(--c21-gold) !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    font-size: 15px;
    font-weight: 700;
}

.main-nav .nav-link {
    color: var(--c21-light);
}

.main-nav .nav-link:hover {
    color: var(--c21-gold);
}

.main-nav .nav-link.active {
    color: var(--c21-gold);
}

.main-nav .nav-link.active::after {
    background: var(--c21-gold);
}

.header-right .phone-number,
.header-right .address {
    color: var(--c21-light);
}

.header-right .address-link:hover {
    color: var(--c21-gold);
}

/* Buttons */
.btn-primary {
    background-color: var(--c21-gold) !important;
    color: var(--c21-dark) !important;
}

.btn-primary:hover {
    background-color: var(--c21-gold-dark) !important;
    box-shadow: 0 4px 12px rgba(190, 175, 135, 0.35) !important;
}

.btn-secondary {
    background-color: var(--c21-light) !important;
    color: var(--c21-dark) !important;
}

.btn-secondary:hover {
    background-color: #d4d4d4 !important;
}

.btn-outline {
    background-color: transparent !important;
    color: var(--c21-gold) !important;
    border: 2px solid var(--c21-gold) !important;
}

.btn-outline:hover {
    background-color: var(--c21-gold) !important;
    color: var(--c21-dark) !important;
}



/* Accents */
.card-price,
.section-title .accent,
.about-quote::before,
.footer-title::after,
.contact-item i,
.pagination-number.active {
    color: var(--c21-gold) !important;
    background: none;
}

.breadcrumb-link:hover,
.article-title a:hover,
.tags-cloud .tag-link:hover,
.footer-links a:hover,
.footer-bottom .privacy-link:hover {
    color: var(--c21-gold) !important;
}

/* Footer */
.footer {
    background-color: var(--c21-dark) !important;
}

.footer-title { color: #fff; }
.footer-links a { color: #cfcfcf; }

/* Chips, badges */
.article-category,
.completed-badge {
    background: var(--c21-light) !important;
    color: var(--c21-dark) !important;
}

/* Якорные ссылки и прокрутка */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

#feedback-form {
    scroll-margin-top: 20px;
    scroll-behavior: smooth;
}

.feedback-title {
    scroll-margin-top: 20px;
}

/* Стили для кнопок якоря */
.anchor-feedback-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.anchor-feedback-btn:hover {
    transform: translateY(-1px);
}

/* Inputs focus */
input:focus, select:focus, textarea:focus {
    outline-color: var(--c21-gold);
    border-color: var(--c21-gold);
}

/* Range slider fills */
.area-fill,
.price-fill {
    background: var(--c21-gold) !important;
}

/* Links default */
a { color: var(--c21-dark); }
a:hover { color: var(--c21-gold); }

/* Century 21: Feedback form color cleanup */
.feedback-input {
    border: 2px solid var(--c21-mid) !important;
}

.feedback-input:focus {
    border-color: var(--c21-gold) !important;
    box-shadow: 0 0 0 3px rgba(190, 175, 135, 0.2) !important;
}

.phone-input-wrapper {
    border: 2px solid var(--c21-mid) !important;
}

.phone-input-wrapper:focus-within {
    border-color: var(--c21-gold) !important;
    box-shadow: 0 0 0 3px rgba(190, 175, 135, 0.2) !important;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--c21-gold) !important;
    border-color: var(--c21-gold) !important;
}

/* Ensure privacy link visible without hover */
.privacy-link {
    color: var(--c21-gold) !important;
    text-decoration: underline;
}

/* Phone prefix spacing tweak */
.phone-prefix {
    background: #F5F5F5;
    color: var(--c21-dark);
    font-weight: 600;
}

/* Грид для фильтров без пустот */
.filters-row-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 12px 20px;
    align-items: end;
}

/* Чипы-кнопки для категорий вторички */
.button-filter.chips {
    gap: 10px;
}

.filter-chip {
    display: inline-block;
    padding: 8px 14px;
    background: var(--c21-light);
    color: var(--c21-dark);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.filter-chip.active, .filter-chip:hover {
    background: var(--c21-dark);
    color: var(--c21-gold);
}

/* Brand color overrides to remove blue */
.header-link:hover,
.contact-link,
.location-link,
.nav-link:hover,
.phone-number:hover,
.breadcrumb-link:hover,
.footer-links a:hover,
.footer-bottom .privacy-link:hover {
    color: var(--c21-gold) !important;
}

.category-btn,
.btn-primary,
.filter-btn[data-active="true"],
.pagination-number.active,
.sorting-active,
.feedback-submit {
    background-color: var(--c21-gold) !important;
    color: var(--c21-dark) !important;
    border-color: var(--c21-gold) !important;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--c21-gold) !important;
    box-shadow: 0 0 0 3px rgba(190,175,135,0.2) !important;
}

.range-slider-input::-webkit-slider-thumb {
    background: var(--c21-dark);
}

.range-fill {
    background: var(--c21-gold) !important;
}

/* Offers section responsive tweaks */
@media (max-width: 1024px) {
    .offers-grid { grid-template-columns: repeat(2, 1fr); }
    .offer-card { grid-template-columns: 180px 1fr; }
}
@media (max-width: 768px) {
    .offers-grid { grid-template-columns: 1fr; }
    .offer-card { grid-template-columns: 1fr; }
    .offer-media img { height: 180px; }
    .offer-actions { justify-content: center; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .section-title { font-size: 24px; }
    .offer-title { font-size: 16px; }
    .offer-text { font-size: 14px; }
    .btn, .offer-more { padding: 10px 14px; font-size: 14px; }
}

/* Стили для отключенной кнопки карты */
.view-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #ccc !important;
    color: #666 !important;
    pointer-events: none !important;
}

.view-btn:disabled:hover {
    background-color: #ccc !important;
    color: #666 !important;
    transform: none !important;
}

/* Responsive fix for catalog filters */
@media (max-width: 1200px) {
    .filters-section {
        padding: 18px;
        margin-bottom: 20px;
    }
    
    .filters-row {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        gap: 14px;
    }
    
    .filter-group label {
        font-size: 13px;
    }
    
    .filter-select,
    .filter-input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .range-container {
        padding: 10px;
    }
    
    .range-display {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .range-slider {
        height: 18px;
        padding: 0 8px;
    }
    
    .range-slider-input::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .range-slider-input::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
    
    .sorting-active {
        padding: 12px 16px;
        min-width: 200px;
    }
    
    .sorting-options {
        min-width: 200px;
    }
    
    .sorting-option {
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .filters-section {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .filter-group {
        gap: 4px;
        min-height: 60px;
    }
    
    .filter-group label {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .filter-group label::before {
        width: 3px;
        height: 3px;
    }
    
    .filter-select,
    .filter-input {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .button-filter {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 45px;
        border-radius: 16px;
    }
    
    .range-container {
        padding: 10px;
        border-radius: 8px;
    }
    
    .range-display {
        padding: 6px 8px;
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .range-value {
        font-size: 11px;
    }
    
    .range-value strong {
        font-size: 12px;
    }
    
    .range-slider {
        height: 16px;
        padding: 0 6px;
    }
    
    .range-slider-input {
        height: 3px;
    }
    
    .range-slider-input::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
        border: 2px solid white;
    }
    
    .range-slider-input::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border: 2px solid white;
    }
    
    .filters-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 14px;
    }
    
    .results-count {
        font-size: 14px;
        justify-content: center;
    }
    
    .clear-filters {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .controls-section {
        margin-bottom: 24px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .sorting-left {
        justify-content: flex-start;
    }
    
    .view-toggle-right {
        justify-content: center;
    }
    
    .view-toggle-right .view-btn {
        flex: 1;
        text-align: center;
    }
    
    .sorting-dropdown {
        min-width: 100%;
    }
    
    .sorting-active {
        padding: 10px 14px;
        min-width: 100%;
        font-size: 14px;
    }
    
    .sorting-options {
        min-width: 100%;
        top: calc(100% + 6px);
    }
    
    .sorting-option {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .filters-section {
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .filters-row {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .filter-group {
        min-height: 55px;
    }
    
    .filter-group label {
        font-size: 11px;
    }
    
    .filter-select,
    .filter-input {
        padding: 6px 8px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 10px;
        min-width: 40px;
        border-radius: 14px;
    }
    
    .range-container {
        padding: 8px;
        border-radius: 6px;
    }
    
    .range-display {
        padding: 4px 6px;
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .range-value {
        font-size: 10px;
    }
    
    .range-value strong {
        font-size: 11px;
    }
    
    .range-slider {
        height: 14px;
        padding: 0 4px;
    }
    
    .range-slider-input {
        height: 2px;
    }
    
    .range-slider-input::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
        border: 2px solid white;
    }
    
    .range-slider-input::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border: 2px solid white;
    }
    
    .filters-actions {
        gap: 10px;
        padding-top: 12px;
    }
    
    .results-count {
        font-size: 13px;
    }
    
    .clear-filters {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .sorting-active {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .sorting-option {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Кнопка чата */
.chat-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--c21-gold), var(--c21-gold-dark));
    color: var(--c21-dark);
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(190, 175, 135, 0.4);
    transition: all 0.3s ease;
    animation: chatPulse 2s infinite;
}

.chat-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(190, 175, 135, 0.5);
    animation: none;
}

.chat-button i {
    font-size: 20px;
}

.chat-text {
    white-space: nowrap;
}

@keyframes chatPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(190, 175, 135, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(190, 175, 135, 0.6), 0 0 0 8px rgba(190, 175, 135, 0.1);
    }
}

@media (max-width: 768px) {
    .chat-button-container {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-button {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .chat-button i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .chat-button {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .chat-text {
        font-size: 13px;
    }
}

/* Виджет чата в углу */
.chat-modal {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 2000;
    display: none;
}

.chat-modal.active {
    display: block;
}

.chat-window {
    background: white;
    border-radius: 16px;
    width: 380px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.chat-header {
    background: var(--c21-dark);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.online-status {
    font-size: 14px;
    color: #4CAF50;
    margin-top: 4px;
    display: block;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.message-author {
    font-weight: 600;
    color: var(--c21-dark);
    font-size: 14px;
    margin-bottom: 4px;
}

.message-text {
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-action-btn {
    background: var(--c21-gold);
    color: var(--c21-dark);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--c21-gold-dark);
    transform: translateY(-1px);
}

.chat-input-section {
    border-top: 1px solid #eee;
    padding: 16px 20px;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    background: #f8f9fa;
}

.chat-input:disabled {
    background: #f0f0f0;
    color: #999;
}

.chat-send-btn {
    background: var(--c21-gold);
    color: var(--c21-dark);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-send-btn:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.chat-send-btn:not(:disabled):hover {
    background: var(--c21-gold-dark);
    transform: scale(1.05);
}

.chat-disclaimer {
    font-size: 12px;
    color: #999;
    text-align: center;
    font-style: italic;
}

@media (max-width: 768px) {
    .chat-modal {
        bottom: 80px;
        right: 20px;
    }
    
    .chat-window {
        width: 320px;
    }
}

@media (max-width: 480px) {
    .chat-modal {
        bottom: 80px;
        right: 10px;
        left: 10px;
    }
    
    .chat-window {
        width: 100%;
        max-width: none;
    }
    
    .chat-header {
        padding: 16px;
    }
    
    .chat-body {
        padding: 16px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .quick-action-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Стили для кнопки "Перейти в каталог ЖК" */
.btn-catalog {
    background: linear-gradient(135deg, var(--c21-gold) 0%, var(--c21-gold-dark) 100%);
    color: var(--c21-dark);
    border: 2px solid var(--c21-gold);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(190, 175, 135, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-catalog::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-catalog:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(190, 175, 135, 0.4);
    background: linear-gradient(135deg, var(--c21-gold-dark) 0%, var(--c21-gold) 100%);
}

.btn-catalog:hover::before {
    left: 100%;
}

.btn-catalog:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(190, 175, 135, 0.3);
}

.btn-catalog i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-catalog:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .btn-catalog {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .btn-catalog {
        padding: 12px 24px;
        font-size: 14px;
        gap: 10px;
    }
    
    .btn-catalog i {
        font-size: 16px;
    }
}

/* Стили для нового ипотечного калькулятора */
.mortgage-calculator {
    margin: 32px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(190, 175, 135, 0.1);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}

.calculator-settings {
    padding: 24px;
    background: #ffffff;
    border-right: 1px solid rgba(190, 175, 135, 0.1);
}

.calculator-header {
    margin-bottom: 20px;
    text-align: center;
}

.calculator-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--c21-dark);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculator-title i {
    color: var(--c21-gold);
    font-size: 18px;
}

.calculator-note {
    color: var(--c21-gold);
    font-weight: 600;
}

.calculator-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--c21-dark);
    margin: 0;
}

.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--c21-light);
    border-radius: 10px;
    background: #ffffff;
    color: var(--c21-dark);
    font-size: 15px;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--c21-gold);
    box-shadow: 0 0 0 3px rgba(190, 175, 135, 0.1);
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c21-gold);
    pointer-events: none;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--c21-light);
    border-radius: 10px;
    background: #ffffff;
    color: var(--c21-dark);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--c21-gold);
    box-shadow: 0 0 0 3px rgba(190, 175, 135, 0.1);
}

.form-input-small {
    width: 80px;
    text-align: center;
}

.input-currency,
.input-unit {
    position: absolute;
    right: 16px;
    color: var(--c21-gold);
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.range-wrapper {
    position: relative;
    margin-top: 8px;
}

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--c21-light);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c21-gold);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(190, 175, 135, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(190, 175, 135, 0.4);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c21-gold);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(190, 175, 135, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.range-percentage {
    position: absolute;
    right: 0;
    top: -8px;
    color: var(--c21-gold);
    font-weight: 700;
    font-size: 14px;
}

.calculator-results {
    padding: 24px;
    background: linear-gradient(135deg, var(--c21-gold) 0%, var(--c21-gold-dark) 100%);
    color: var(--c21-dark);
    display: flex;
    flex-direction: column;
}

.results-header {
    text-align: center;
    margin-bottom: 18px;
}

.results-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--c21-dark);
}

.results-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.main-result {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    margin: -4px 0 12px 0;
    border: none;
}

.result-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--c21-dark);
    opacity: 0.8;
}

.result-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--c21-dark);
}

.main-result .result-value {
    font-size: 24px;
    font-weight: 800;
}

.bank-logos {
    text-align: center;
    margin: 16px 0;
}

.bank-logos-img {
    height: 36px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.bank-logos-img:hover {
    opacity: 1;
}

.results-actions {
    margin-bottom: 12px;
}

.results-actions .btn-catalog {
    background: linear-gradient(135deg, var(--c21-dark) 0%, #2c2c2c 100%);
    color: #ffffff;
    border: 2px solid var(--c21-dark);
    box-shadow: 0 4px 16px rgba(44, 44, 44, 0.3);
}

.results-actions .btn-catalog:hover {
    background: linear-gradient(135deg, #2c2c2c 0%, var(--c21-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.4);
}

.results-actions .btn-catalog i {
    color: #ffffff;
}

.calculator-disclaimer {
    font-size: 12px;
    color: var(--c21-dark);
    opacity: 0.7;
    text-align: center;
    line-height: 1.4;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .calculator-settings {
        border-right: none;
        border-bottom: 1px solid rgba(190, 175, 135, 0.1);
    }
    
    .calculator-results {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mortgage-calculator {
        margin: 20px 0;
        border-radius: 16px;
    }
    
    .calculator-settings,
    .calculator-results {
        padding: 20px;
    }
    
    .calculator-title {
        font-size: 18px;
    }
    
    .settings-form {
        gap: 16px;
    }
    
    .form-input,
    .form-select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .result-value {
        font-size: 15px;
    }
    
    .main-result .result-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .calculator-settings,
    .calculator-results {
        padding: 16px;
    }
    
    .calculator-title {
        font-size: 16px;
        flex-direction: column;
        gap: 6px;
    }
    
    .settings-form {
        gap: 14px;
    }
    
    .form-input,
    .form-select {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .form-input-small {
        width: 65px;
    }
    
    .result-value {
        font-size: 13px;
    }
    
    .main-result .result-value {
        font-size: 18px;
    }
    
    .bank-logos-img {
        height: 28px;
    }
}

/* Каталог: подсветки карточек */