.faq-modern {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    min-height: 100vh;
}

.faq-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding: 0 20px;
}

.faq-header::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    border-radius: 3px;
    opacity: 0.8;
}

.faq-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 15px 0;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 18px;
    color: #6b7280;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.faq-stat {
    text-align: center;
    padding: 15px 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #be1919;
}

.faq-stat-number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.faq-stat-label {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 70px;
}

.faq-item {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item.active {
    border-color: #be1919;
    box-shadow: 0 12px 40px rgba(190, 25, 25, 0.15);
}

.faq-item.active::before {
    opacity: 1;
}

.faq-question {
    padding: 28px 35px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item.active .faq-question {
    border-bottom-color: transparent;
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(190, 25, 25, 0.3);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-number {
    transform: scale(1.05);
    background: linear-gradient(90deg, #dd5656 0%, rgba(190, 25, 25, 1) 100%);
}

.faq-question-text {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    flex: 1;
}

.faq-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.faq-tag {
    padding: 4px 12px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.faq-tag:hover {
    background: #be1919;
    color: white;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.faq-item.active .faq-icon {
    background: transparent;
    transform: rotate(180deg) scale(1.1);
}

.faq-item.active .faq-icon::after {
    opacity: 1;
}

.faq-item.active .faq-icon .icon-chevron {
    color: white;
}

.icon-chevron {
    color: #6b7280;
    transition: all 0.4s ease;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
}

.faq-answer-content {
    padding: 35px;
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer-content p {
    margin: 0 0 25px 0;
    font-size: 17px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: #1f2937;
    font-weight: 600;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.faq-answer-content li {
    margin-bottom: 10px;
    color: #4b5563;
}

.faq-answer-content code {
    background: #f3f4f6;
    color: #be1919;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 15px;
}

.faq-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.faq-links-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-links-title::before {
    content: '';
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    border-radius: 1px;
}

.faq-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.faq-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #be1919;
    text-decoration: none;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    font-weight: 500;
}

.faq-link:hover {
    background: #be1919;
    color: white;
    border-color: #be1919;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(190, 25, 25, 0.3);
}

.faq-link svg {
    flex-shrink: 0;
    color: currentColor;
}

.faq-date {
    padding: 20px 35px;
    border-top: 2px solid #e5e7eb;
    font-size: 14px;
    color: #9ca3af;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-date::before {
    content: '🕒';
    font-size: 16px;
}

.faq-pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.faq-pagination .modern-page-navigation {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-pagination a,
.faq-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 18px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
}

.faq-pagination a:hover {
    background: #be1919;
    color: white;
    border-color: #be1919;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.faq-pagination .current {
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(190, 25, 25, 0.3);
}

.faq-contact {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    color: white;
    padding: 50px;
    border-radius: 24px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.faq-contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from {
        transform: translateX(0) translateY(0);
    }
    to {
        transform: translateX(-20px) translateY(-20px);
    }
}

.faq-contact-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.faq-contact-icon svg {
    width: 40px;
    height: 40px;
}

.faq-contact-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.faq-contact-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.faq-contact-content p {
    font-size: 18px;
    margin: 0 0 25px 0;
    opacity: 0.9;
    line-height: 1.6;
}

.faq-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: white;
    color: #be1919;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.faq-contact-button::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.6s ease;
}

.faq-contact-button:hover::before {
    left: 100%;
}

.faq-contact-button:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.faq-empty {
    text-align: center;
    padding: 100px 20px;
    background: #ffffff;
    border-radius: 24px;
    border: 2px dashed #e5e7eb;
    margin: 50px 0;
}

.faq-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 800;
    box-shadow: 0 15px 40px rgba(190, 25, 25, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.faq-empty h3 {
    font-size: 32px;
    color: #1f2937;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.faq-empty p {
    font-size: 18px;
    color: #6b7280;
    margin: 0 0 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.faq-empty-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.faq-empty-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(190, 25, 25, 0.4);
}

/* Анимация появления элементов */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }
.faq-item:nth-child(9) { animation-delay: 0.9s; }
.faq-item:nth-child(10) { animation-delay: 1.0s; }

/* Адаптивность */
@media (max-width: 768px) {
    .faq-modern {
        padding: 30px 15px;
    }
    
    .faq-title {
        font-size: 36px;
    }
    
    .faq-subtitle {
        font-size: 16px;
    }
    
    .faq-question {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .faq-question-content {
        width: 100%;
        gap: 15px;
    }
    
    .faq-answer-content {
        padding: 20px;
    }
    
    .faq-question-text {
        font-size: 18px;
    }
    
    .faq-contact {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }
    
    .faq-contact-icon {
        width: 70px;
        height: 70px;
    }
    
    .faq-contact-content h3 {
        font-size: 24px;
    }
    
    .faq-contact-content p {
        font-size: 16px;
    }
    
    .faq-question-content {
        gap: 15px;
    }
    
    .faq-number {
        min-width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .faq-icon {
        width: 40px;
        height: 40px;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .faq-stats {
        gap: 15px;
    }
    
    .faq-stat {
        min-width: 120px;
        padding: 12px 15px;
    }
    
    .faq-stat-number {
        font-size: 24px;
    }
    
    .faq-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 28px;
    }
    
    .faq-question {
        padding: 18px;
    }
    
    .faq-question-text {
        font-size: 16px;
    }
    
    .faq-answer-content {
        padding: 18px;
        font-size: 15px;
    }
    
    .faq-number {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .faq-contact-button {
        padding: 14px 25px;
        font-size: 15px;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #dd5656 0%, rgba(190, 25, 25, 1) 100%);
}

/* Футер */
.faq-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

.faq-footer a {
    color: #be1919;
    text-decoration: none;
    font-weight: 500;
}

.faq-footer a:hover {
    text-decoration: underline;
}

/* Дополнительные стили для улучшения UX */
.faq-search {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 18px 25px 18px 50px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: white;
    color: #1f2937;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-search input:focus {
    outline: none;
    border-color: #be1919;
    box-shadow: 0 6px 25px rgba(190, 25, 25, 0.15);
}

.faq-search::before {
    content: '🔍';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9ca3af;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-category {
    padding: 12px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-category:hover,
.faq-category.active {
    background: linear-gradient(90deg, rgba(190, 25, 25, 1) 0%, #dd5656 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 25, 25, 0.3);
}

.faq-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.faq-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-share-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.faq-print {
    text-align: center;
    margin-top: 40px;
}

.faq-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-print-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}