/**
 * Modern Home Page Styles
 * Современные стили для главной страницы
 */

/* ============================================
   HERO SECTION MODERN
   ============================================ */

.hero-modern {
    position: relative;
    min-height: 90vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    background-repeat: no-repeat !important;
    color: white !important;
    padding: 80px 20px;
    margin-bottom: 0;
    margin-top: 0;
    overflow: visible;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Декоративные элементы убраны — фон задаётся в hero-background.css */

/* Анимированные частицы */
/* REMOVED: Floating particle animation - causes pulsating spot
.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;
}

@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: #ffffff;
}

.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: #ffffff;
}

.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, но переопределяем для главной страницы если нужно */

/* Удален дублирующийся блок - все стили перенесены в основной блок Mobile Responsive */

@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;
    width: 100%;
    box-sizing: border-box;
}

.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;
    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 Section */
    .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 Search */
    .hero-search-container {
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .hero-search-form {
        padding: 18px;
        border-radius: 12px;
    }
    
    .hero-search-main-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: stretch;
    }
    
    .hero-search-input-wrapper {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 50px;
        padding: 0 16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        background: white;
        margin-bottom: 10px;
    }
    
    .hero-search-category-wrapper {
        width: 100%;
        min-height: 50px;
        padding: 0 16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        background: white;
    }
    
    .hero-search-input-main,
    .hero-search-category-select {
        padding: 14px 0;
        font-size: 16px;
        width: 100%;
        border: none;
        background: transparent;
        outline: none;
    }
    
    .hero-search-icon,
    .hero-category-icon {
        font-size: 18px;
        margin-right: 12px;
        flex-shrink: 0;
        color: #FF6B35;
    }
    
    .hero-search-submit-btn {
        min-height: 50px;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 600;
        justify-content: center;
        box-sizing: border-box;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
    
    .hero-search-btn-text {
        display: inline-block;
    }
    
    /* Hero Categories */
    .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 */
    .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;
    }
    
    /* Other sections */
    .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;
    }
    
    .hero-search-filters-toggle {
        padding: 12px 16px;
        font-size: 14px;
        margin-top: 12px;
        border-top: 1px solid #e0e0e0;
    }
    
    .hero-search-filters-panel {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .hero-filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-filter-item {
        gap: 8px;
    }
    
    .hero-filter-label {
        font-size: 13px;
        gap: 8px;
    }
    
    .hero-filter-label i {
        font-size: 16px;
    }
    
    .hero-filter-select,
    .hero-filter-input {
        padding: 12px 14px;
        font-size: 16px; /* Предотвращает zoom на iOS */
        border-width: 2px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-search-container {
        padding: 0 10px;
    }
    
    .hero-search-form {
        padding: 15px;
        border-radius: 10px;
    }
    
    .hero-search-main-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-search-input-wrapper {
        grid-column: auto;
        margin-bottom: 0;
        min-height: 48px;
        padding: 0 14px;
    }
    
    .hero-search-category-wrapper {
        min-height: 48px;
        padding: 0 14px;
    }
    
    .hero-search-input-main,
    .hero-search-category-select {
        padding: 12px 0;
        font-size: 16px;
    }
    
    .hero-search-icon,
    .hero-category-icon {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .hero-search-submit-btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        font-size: 14px;
        font-weight: 600;
    }
    
    .hero-search-input-main,
    .hero-search-category-select {
        padding: 12px 0;
        font-size: 16px;
    }
    
    .hero-search-icon,
    .hero-category-icon {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .hero-search-submit-btn {
        padding: 12px 20px;
        min-height: 48px;
        font-size: 15px;
    }
    
    .hero-search-filters-toggle {
        font-size: 13px;
        padding: 10px 14px;
        margin-top: 10px;
    }
    
    .hero-search-filters-panel {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .hero-filters-grid {
        gap: 10px;
    }
    
    .hero-filter-label {
        font-size: 12px;
        gap: 6px;
    }
    
    .hero-filter-label i {
        font-size: 14px;
    }
    
    .hero-filter-select,
    .hero-filter-input {
        padding: 10px 12px;
        font-size: 16px;
        min-height: 42px;
    }
}

