/**
 * Modern Home Page Styles
 * Современные стили для главной страницы
 */

/* ============================================
   HERO SECTION MODERN
   ============================================ */

.hero-modern {
    position: relative;
    min-height: 90vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.3), rgba(52, 73, 94, 0.4)),
                url("../images/prostobau_hero_bg.jpg") !important;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    color: white !important;
    padding: 80px 20px;
    margin-bottom: 0;
    margin-top: 0;
    overflow: visible;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Декоративные элементы для создания эффекта строительной площадки */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 184, 1, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Анимированные частицы */
.hero-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
    contain: layout style paint;
    /* Оптимизация: отключить на слабых устройствах через media query */
}

@keyframes float-particle {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-100px, 100px, 0) scale(1.2);
    }
}

/* Оптимизация: отключить анимацию частиц на слабых устройствах */
@media (prefers-reduced-motion: reduce) {
    .hero-modern::after {
        animation: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.8) 0%, rgba(44, 62, 80, 0.5) 50%, rgba(44, 62, 80, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-content-modern {
    position: relative !important;
    z-index: 100 !important;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    color: white !important;
}

/* Обеспечиваем, что контент поверх overlay */
.hero-content-modern > * {
    position: relative;
    z-index: 101;
    opacity: 1;
    visibility: visible;
}

.hero-title-modern,
.hero-subtitle-modern,
.hero-categories-grid,
.hero-cta-buttons {
    position: relative;
    z-index: 101;
    opacity: 1 !important;
    visibility: visible !important;
    color: white;
}

/* Убедиться, что элементы hero видны даже до инициализации AOS */
.hero-modern [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

.hero-modern .hero-title-modern,
.hero-modern .hero-subtitle-modern,
.hero-modern .hero-categories-grid,
.hero-modern .hero-cta-buttons,
.hero-modern .hero-category-card {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

/* Убедиться, что все элементы hero видны */
.hero-modern h1,
.hero-modern h2,
.hero-modern h3,
.hero-modern p,
.hero-modern a,
.hero-modern div,
.hero-modern span,
.hero-modern section {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Убедиться, что hero-секция не перекрывается header */
.hero-modern {
    margin-top: 0 !important;
    padding-top: 80px !important;
    position: relative !important;
    z-index: 1 !important;
}

.hero-logo {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
}

.hero-logo i {
    font-size: 40px;
    color: var(--primary-orange);
}

.hero-title-modern {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.hero-highlight {
    color: var(--primary-orange);
    font-weight: 700;
}

.hero-subtitle-modern {
    font-size: 22px;
    margin-bottom: 60px;
    opacity: 1 !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    color: white !important;
    visibility: visible !important;
    display: block !important;
}

/* Category Grid in Hero */
.hero-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    z-index: 10;
    will-change: transform, box-shadow;
    contain: layout style paint;
}

.hero-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    background: white;
}

.hero-category-card i {
    font-size: 56px;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    will-change: transform;
    contain: layout style paint;
}

.hero-category-card:hover i {
    transform: scale(1.1);
}

.hero-category-card span {
    font-weight: 600;
    font-size: 14px;
    display: block;
    color: var(--text-dark);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex !important;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-hero-primary {
    background: var(--primary-orange);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 10;
}

.btn-hero-primary:hover {
    background: #FF8C42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-hero-secondary {
    background: var(--dark-gray);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.btn-hero-secondary:hover {
    background: #34495E;
    transform: translateY(-2px);
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* ============================================
   ANNOUNCEMENTS SECTION
   ============================================ */

.announcements-section {
    padding: 80px 0;
    background: white;
}

.section-title-large {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #757575;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.announcement-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.announcement-card i {
    font-size: 64px;
    color: var(--primary-orange);
    margin-bottom: 20px;
    display: block;
}

.announcement-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.announcement-card p {
    color: #757575;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 60px;
}

.btn-announcement {
    background: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-announcement:hover {
    background: #FF8C42;
    transform: translateX(5px);
    color: white;
}

/* ============================================
   SEPARATOR SECTION
   ============================================ */

.separator-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.separator-text {
    font-size: 20px;
    color: var(--dark-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* ============================================
   FOUNDER SECTION
   ============================================ */

.founder-section {
    padding: 80px 0;
    background: white;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.founder-image-wrapper {
    position: relative;
}

.founder-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(247, 184, 1, 0.9)),
                linear-gradient(to bottom, rgba(44, 62, 80, 0.3), rgba(52, 73, 94, 0.5)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FF6B35;stop-opacity:1" /><stop offset="100%" style="stop-color:%23F7B801;stop-opacity:1" /></linearGradient></defs><rect width="400" height="600" fill="url(%23grad)"/><path d="M200,150 Q250,100 300,150 T400,150" stroke="rgba(255,255,255,0.2)" stroke-width="2" fill="none"/></svg>') center/cover;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.founder-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.founder-image-placeholder i {
    font-size: 120px;
    color: rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
}

.founder-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.founder-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.founder-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.founder-text p {
    color: #757575;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.founder-quote {
    border-left: 4px solid var(--primary-orange);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 20px;
    color: var(--dark-gray);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 22px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: background 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-number {
    font-size: 18px;
    color: var(--primary-orange);
    font-weight: 700;
    min-width: 30px;
}

.faq-text {
    flex: 1;
    font-size: 16px;
}

.faq-arrow {
    font-size: 20px;
    color: var(--primary-orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer {
    padding: 0;
}

.faq-answer p {
    padding: 0 25px 20px 70px;
    color: #757575;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 60px 0;
    background: white;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .hero-title-modern {
        font-size: 36px;
    }
    
    .hero-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .announcements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .founder-content {
        grid-template-columns: 1fr;
    }
}

/* Container уже определен в style.css, но переопределяем для главной страницы если нужно */

@media (max-width: 768px) {
    .hero-modern {
        min-height: auto;
        padding: 30px 15px;
        margin-bottom: 0;
    }
    
    .hero-content-modern {
        padding: 0;
    }
    
    .hero-title-modern {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-subtitle-modern {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .hero-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .hero-category-card {
        padding: 20px 15px;
        min-height: 110px;
    }
    
    .hero-category-card i {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .hero-category-card span {
        font-size: 12px;
        margin-top: 5px;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .announcements-section {
        padding: 40px 0;
    }
    
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title-large {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .founder-content {
        gap: 30px;
    }
    
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-answer p {
        padding-left: 25px;
        font-size: 14px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-card h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-modern {
        padding: 20px 12px;
    }
    
    .hero-title-modern {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle-modern {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .hero-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .hero-category-card {
        padding: 15px 10px;
        min-height: 100px;
    }
    
    .hero-category-card i {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .hero-category-card span {
        font-size: 11px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title-large {
        font-size: 20px;
        text-align: center;
    }
}

/* ============================================
   HERO SEARCH SECTION
   ============================================ */

.hero-search-container {
    max-width: 1100px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 102;
}

.hero-search-form {
    /* Fallback background для слабых устройств */
    background: rgba(255, 255, 255, 0.95);
    /* Оптимизация: backdrop-filter может грузить UI, используем только на мощных устройствах */
    /* Отключение на слабых устройствах происходит через JS (animation-optimizer.js) */
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
    padding: 35px;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-search-form:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.hero-search-main-row {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr auto;
    gap: 15px;
    align-items: stretch;
    margin-bottom: 20px;
}

/* Search Input */
.hero-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 0 20px;
    transition: all var(--transition-normal);
    min-height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero-search-input-wrapper:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 4px 12px rgba(255, 107, 53, 0.2);
    transform: translateY(-1px);
}

.hero-search-icon {
    font-size: 24px;
    color: var(--primary-orange);
    margin-right: 15px;
    flex-shrink: 0;
    opacity: 0.8;
}

.hero-search-input-main {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    padding: 18px 0;
    color: var(--text-dark);
    outline: none;
    font-weight: 500;
    font-family: inherit;
}

.hero-search-input-main::placeholder {
    color: #9E9E9E;
    font-weight: 400;
    font-size: 17px;
}

.hero-search-clear-btn {
    background: var(--light-gray);
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 10px;
    width: 32px;
    height: 32px;
}

.hero-search-clear-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: scale(1.1);
}

/* Category Select */
.hero-search-category-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 0 20px;
    transition: all var(--transition-normal);
    cursor: pointer;
    min-height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero-search-category-wrapper:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.hero-search-category-wrapper:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 4px 12px rgba(255, 107, 53, 0.2);
}

.hero-category-icon {
    font-size: 22px;
    color: var(--primary-orange);
    margin-right: 15px;
    flex-shrink: 0;
    opacity: 0.8;
}

.hero-search-category-select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    padding: 18px 40px 18px 0;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.hero-select-arrow {
    position: absolute;
    right: 20px;
    font-size: 16px;
    color: var(--primary-orange);
    pointer-events: none;
    transition: transform var(--transition-normal);
    opacity: 0.8;
}

.hero-search-category-wrapper:focus-within .hero-select-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Search Button */
.hero-search-submit-btn {
    background: linear-gradient(135deg, var(--primary-orange), #FF8C42);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    font-family: inherit;
    position: relative;
}

/* Add Listing Button */
.btn-add-listing {
    background: linear-gradient(135deg, var(--primary-orange), #FF8C42);
    color: white !important;
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    text-decoration: none;
    margin-top: 20px;
}

.btn-add-listing:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #FF8C42, var(--primary-orange));
    color: white !important;
    text-decoration: none;
}

.btn-add-listing i {
    font-size: 20px;
}
    overflow: hidden;
    min-height: 60px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-search-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-search-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-search-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #FF8C42, var(--primary-orange));
}

.hero-search-submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.hero-search-submit-btn i {
    font-size: 22px;
    position: relative;
    z-index: 1;
}

.hero-search-btn-text {
    position: relative;
    z-index: 1;
}

/* Advanced Filters Toggle */
.hero-search-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    color: var(--primary-orange);
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    border-top: 2px solid var(--border-color);
    margin-top: 15px;
    transition: all var(--transition-normal);
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-search-filters-toggle:hover {
    background: var(--light-gray);
    color: #FF8C42;
}

.hero-toggle-arrow {
    transition: transform var(--transition-normal);
    font-size: 14px;
}

.hero-search-filters-toggle.active .hero-toggle-arrow {
    transform: rotate(180deg);
}

/* Filters Panel */
.hero-search-filters-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hero-filter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-filter-label i {
    color: var(--primary-orange);
    font-size: 18px;
}

.hero-filter-select,
.hero-filter-input {
    width: 100%;
    padding: 14px 16px;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-dark);
    background: var(--white);
    transition: all var(--transition-normal);
    outline: none;
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero-filter-select:focus,
.hero-filter-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 4px 12px rgba(255, 107, 53, 0.2);
    transform: translateY(-1px);
}

.hero-filter-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6B35' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-search-container {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .hero-search-form {
        padding: 25px;
        border-radius: 12px;
    }
    
    .hero-search-main-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-search-input-wrapper,
    .hero-search-category-wrapper {
        padding: 0 18px;
        min-height: 56px;
    }
    
    .hero-search-input-main,
    .hero-search-category-select {
        padding: 16px 0;
        font-size: 16px; /* Предотвращает zoom на iOS */
    }
    
    .hero-search-icon,
    .hero-category-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .hero-search-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
        font-size: 16px;
        min-height: 56px;
    }
    
    .hero-filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-filter-select,
    .hero-filter-input {
        padding: 14px 16px;
        font-size: 16px; /* Предотвращает zoom на iOS */
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .hero-search-container {
        padding: 0 10px;
    }
    
    .hero-search-form {
        padding: 20px;
    }
    
    .hero-search-main-row {
        gap: 12px;
    }
    
    .hero-search-input-wrapper,
    .hero-search-category-wrapper {
        padding: 0 15px;
        min-height: 52px;
    }
    
    .hero-search-submit-btn {
        padding: 14px 24px;
        min-height: 52px;
    }
    
    .hero-search-filters-toggle {
        font-size: 13px;
        padding: 12px;
    }
}


/* ============================================
   CUSTOM ANNOUNCEMENTS BLOCK (EXACT PROSTOBAU COPY)
   ============================================ */

/* Reset styles to prevent conflicts */
.custom-announcements-block * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.custom-announcements-block a,
.custom-announcements-block div,
.custom-announcements-block h2,
.custom-announcements-block h3,
.custom-announcements-block p {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.custom-announcements-block .custom-announcements-container {
    max-width: 1200px !important;
    margin: 50px auto !important;
    padding: 0 20px !important;
}

.custom-announcements-block .custom-announcements-header {
    text-align: center !important;
    margin-bottom: 50px !important;
}

.custom-announcements-block .custom-announcements-title {
    font-size: 2.2rem !important;
    color: black !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
    position: relative !important;
    display: inline-block !important;
}

.custom-announcements-block .custom-announcements-title:after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #085055, #0c7077) !important;
    border-radius: 2px !important;
}

.custom-announcements-block .custom-announcements-description {
    font-size: 1.2rem !important;
    color: black !important;
    max-width: 700px !important;
    margin: 25px auto 0 !important;
    line-height: 1.6 !important;
}

/* Стиль для дополнительного текста */
.custom-announcements-block .custom-additional-text {
    font-size: 1.2rem !important;
    color: black !important;
    max-width: 700px !important;
    margin: 30px auto 0 !important; /* Отступ сверху для отделения от карточек */
    line-height: 1.6 !important;
    text-align: center !important;
    font-weight: 500 !important;
}

.custom-announcements-block .custom-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
}

.custom-announcements-block .custom-category-card {
    background: white !important; /* Цвет фона изменен на белый */
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(8, 80, 85, 0.15) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.custom-announcements-block .custom-category-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(8, 80, 85, 0.25) !important;
}

.custom-announcements-block .custom-card-header {
    padding: 25px 25px 15px !important;
    text-align: center !important;
    background: white !important; /* Цвет фона изменен на белый */
    color: black !important;
}

.custom-announcements-block .custom-card-title {
    font-size: 1.6rem !important;
    margin: 15px 0 10px !important;
    font-weight: 600 !important;
    color: black !important;
}

.custom-announcements-block .custom-card-icon {
    font-size: 3.5rem !important;
    margin-bottom: 10px !important;
    color: #FF5B05 !important; /* Цвет иконки изменен на оранжевый */
}

.custom-announcements-block .custom-card-icon .fas,
.custom-announcements-block .custom-card-icon .fa,
.custom-announcements-block .custom-card-btn .fas,
.custom-announcements-block .custom-card-btn .fa {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.custom-announcements-block .custom-card-content {
    padding: 25px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.custom-announcements-block .custom-card-text {
    color: black !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    flex-grow: 1 !important;
}

.custom-announcements-block .custom-card-btn {
    display: inline-block !important;
    background: #FF5B05 !important;
    color: black !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.95rem !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.custom-announcements-block .custom-card-btn:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #9C9C9C !important; /* Изменен цвет фона при наведении на #9C9C9C */
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: -1 !important;
}

.custom-announcements-block .custom-card-btn:hover {
    color: black !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(255, 91, 5, 0.4) !important;
}

.custom-announcements-block .custom-card-btn:hover:before {
    opacity: 1 !important;
}

.custom-announcements-block .custom-card-btn:active:before {
    opacity: 1 !important;
}

.custom-announcements-block .custom-card-btn i {
    margin-left: 8px !important;
    transition: transform 0.3s ease !important;
}

.custom-announcements-block .custom-card-btn:hover i {
    transform: translateX(5px) !important;
}

/* Responsive design */
@media (max-width: 992px) {
    .custom-announcements-block .custom-announcements-container {
        margin: 30px auto !important; /* Уменьшен отступ сверху */
    }
    .custom-announcements-block .custom-announcements-header {
        margin-bottom: 30px !important; /* Уменьшен отступ снизу */
    }
    .custom-announcements-block .custom-additional-text {
        margin: 20px auto 0 !important; /* Уменьшены отступы */
    }
    .custom-announcements-block .custom-categories-grid {
        grid-template-columns: 1fr !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 576px) {
    .custom-announcements-block .custom-announcements-title {
        font-size: 2.2rem !important;
    }
    
    .custom-announcements-block .custom-announcements-description,
    .custom-announcements-block .custom-additional-text {
        font-size: 1rem !important;
    }
    
    .custom-announcements-block .custom-card-title {
        font-size: 1.4rem !important;
    }
    
    .custom-announcements-block .custom-card-btn {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    }
}

/* Der Gründer Section Styles (ProstoBau Copy) */
.founder-wrapper-elementor {
    background-color: #E2E2E2;
    padding: 60px 20px;
    margin: 60px 0;
}

.founder-container-elementor {
    max-width: 1000px;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    margin: 0 auto;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.founder-content-elementor {
    display: flex;
    align-items: stretch;
    min-height: 320px;
}

.founder-image-elementor {
    flex: 0 0 35%;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    border-right: 1px solid #eaeaea;
    overflow: hidden;
}

.founder-image-elementor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.year-badge-elementor {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF5B05;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    z-index: 2;
}

.founder-text-elementor {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-heading-elementor {
    font-size: 22px !important;
    font-weight: 400;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.2;
}

.divider-elementor {
    width: 50px;
    height: 2px;
    background: #FF5B05;
    margin: 8px 0 15px;
}

.founder-name-elementor {
    font-size: 18px !important;
    font-weight: 600;
    color: #FF5B05;
    margin-bottom: 12px;
}

.founder-description-elementor {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.founder-link-container-elementor {
    text-align: center;
    margin-top: 15px;
}

.founder-link-elementor {
    display: inline-block;
    padding: 8px 20px;
    background: #FF5B05;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-radius: 2px;
    transition: all 0.3s;
    width: auto;
    text-align: center;
}

.founder-link-elementor:hover {
    background: #e05204;
    color: #fff !important;
}

@media (max-width: 768px) {
    .founder-wrapper-elementor {
        padding: 40px 15px;
        margin: 40px 0;
    }
    
    .founder-content-elementor {
        flex-direction: column;
        min-height: auto;
    }
    
    .founder-image-elementor {
        flex: 0 0 180px;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
    
    .founder-text-elementor {
        padding: 20px;
    }
    
    .founder-heading-elementor {
        font-size: 20px !important;
    }
    
    .founder-name-elementor {
        font-size: 16px !important;
    }
}

@media (max-width: 576px) {
    .founder-wrapper-elementor {
        padding: 30px 10px;
        margin: 30px 0;
    }
    
    .founder-text-elementor {
        padding: 15px;
    }
    
    .founder-heading-elementor {
        font-size: 18px !important;
    }
    
    .founder-description-elementor {
        font-size: 13px;
    }
}