/* FAQ Section Styles */
.faq-section {
    padding: 80px 0;
    
    position: relative;
    overflow: hidden;
}

.faq-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="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.faq-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.faq-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f23a2e, #da6961);
    border-radius: 2px;
}

.faq-section .section-subtitle {
    font-size: 1.1rem;
    color: #7d706c;
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.faq-accordion {
    background: var(--background-color);
    border-radius: 20px;
    box-shadow: 0 1px 10px rgba(230, 13, 13, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
}

.faq-accordion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    backdrop-filter: blur(10px);
    z-index: -1;
}

.faq-item {
    border-bottom: 1px solid rgba(239, 233, 233, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 38, 0, 0.15);
}

.faq-item.active {
  
}

.faq-header {
    background: transparent;
    position: relative;
}

.faq-button {
    
    width: 100%;
    background: none;
    border: none;
    padding: 28px 35px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 38, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.faq-button:hover::before {
    left: 100%;
}

.faq-button:hover {
    background: rgba(250, 248, 248, 0.349);
    transform: translateX(5px);
}

.faq-button:focus {
    outline: none;
    
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    flex: 1;
    padding-right: 25px;
    transition: color 0.3s ease;
}

.faq-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f23a2e, #da6961);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    color: #fff;
    font-size: 12px;
}

.faq-icon .fa-plus {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-icon .fa-minus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-button[aria-expanded="true"] .faq-icon {
    background: linear-gradient(135deg, #f23a2e, #da6961);
    transform: scale(1.1);
}

.faq-button[aria-expanded="true"] .fa-plus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.faq-button[aria-expanded="true"] .fa-minus {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-body {
    padding: 10px 35px 28px 55px;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    animation: slideDown 0.4s ease-out;
    position: relative;
}

.faq-body::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #f23a2e, #da6961);
    border-radius: 2px;
}

.faq-button[aria-expanded="true"] {
    background: var(--background-color);
}

.faq-button[aria-expanded="true"] .faq-question {
    color: var(--text-color);
}

/* Анимации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.6s ease-out 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; }

/* Hover эффекты для иконок */
.faq-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 30, 0, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-section .section-title {
        font-size: 2rem;
    }
    
    .faq-section .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .faq-button {
        padding: 22px 25px;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-body {
        padding: 0 25px 22px 55px;
    }
    
    .faq-body::before {
        left: 25px;
    }
}

@media (max-width: 576px) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-section .section-title {
        font-size: 1.8rem;
    }
    
    .faq-section .section-title::after {
        width: 50px;
        height: 3px;
    }
    
    .faq-button {
        padding: 20px 20px;
    }
    
    .faq-question {
        font-size: 0.95rem;
    }
    
    .faq-body {
        padding: 0 20px 20px 50px;
        font-size: 0.9rem;
    }
    
    .faq-body::before {
        left: 20px;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
    }
    
    .faq-icon i {
        font-size: 10px;
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .faq-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .faq-section .section-title {
        color: #ffffff;
    }
    
    .faq-section .section-subtitle {
        color: #b0b0b0;
    }
    
    .faq-accordion {
        background: var(--background-color);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .faq-item {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    
    
    .faq-body {
        color: #b0b0b0;
    }
    
    .faq-button:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .faq-item.active {
        background: linear-gradient(135deg, #2e1e1a 0%, #3e1916 100%);
    }
}

/* Анимация для мобильных устройств */
@media (max-width: 768px) {
    .faq-item {
        animation: fadeInUp 0.4s ease-out forwards;
    }
    
    .faq-item:nth-child(1) { animation-delay: 0.05s; }
    .faq-item:nth-child(2) { animation-delay: 0.1s; }
    .faq-item:nth-child(3) { animation-delay: 0.15s; }
    .faq-item:nth-child(4) { animation-delay: 0.2s; }
    .faq-item:nth-child(5) { animation-delay: 0.25s; }
    .faq-item:nth-child(6) { animation-delay: 0.3s; }
}

.faq-search-container {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 3;
}

.faq-search {
    padding-left: 45px;
    padding-right: 45px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search:focus {
    border-color: #dc3545; 
    box-shadow: 0 0 0 0.2rem rgba(255, 51, 0, 0.25);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color:rgb(125, 110, 108);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.faq-controls {
    margin-bottom: 30px;
}

.faq-controls .btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-additional-info {
    padding: 30px;
    
    border-radius: 5px;
   
}

.faq-additional-info .btn {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 500;
}

/* Адаптивность для поиска */
@media (max-width: 768px) {
    .faq-search {
        font-size: 0.9rem;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .search-input-wrapper .search-icon {
        left: 12px;
    }
    
    .search-clear {
        right: 12px;
    }
    
    .faq-controls .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .faq-additional-info {
        padding: 20px;
    }
}
