:root {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --primary-color: #2E8B57;
    --primary-green: #2E8B57;
    --secondary-green: #3CB371;
    --light-green: #7fc09d;
    --secondary-color: #3CB371;
    --accent-color: #4CAF50;
    --light-green: #E0EEE0;
    --message-user-bg: #2E8B57;
    --message-support-bg: #E0EEE0;
    --chat-bg: #F8F9FD;
    --header-bg: #2E8B57;
    --text-light: #ffffff;
    --text-dark: #1a2c38;
    --footer-bg: #3CB371;
    --button-hover: #256E47;
    --border-color: #D1E0D5;
    --text-color: #000000;
    --secondary-text-color: #646464;
    --gradient-1: linear-gradient(135deg, #2E8B57 0%, #3CB371 100%);
    --gradient-primary: linear-gradient(135deg, #2E8B57 0%, #1a4731 100%);
    --gradient-accent: linear-gradient(135deg, #4CAF50 0%, #2E8B57 100%);
    --gradient-2: linear-gradient(135deg, #00D6A1 0%, #00C897 100%);
    --shadow-sm: 0 0.125rem 0.375rem rgba(39, 84, 255, 0.1);
    --shadow-lg: 0 0.5rem 1.5rem rgba(39, 84, 255, 0.12);
    --base-font-size: 1rem; /* Базовый размер шрифта */
    --primary: #2E8B57;
    --secondary: #3CB371;
    --accent: #98FB98;
    --bg-dark: #1a2c38;
    --bg-light: #f5f8f7;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #FF5252;
    --card-shadow: 0 8px 32px rgba(46, 139, 87, 0.15);
    --hover-shadow: 0 12px 48px rgba(46, 139, 87, 0.25);
    --text-color: #000000;
    --secondary-text-color: #646464;
    --profit: #00C851;
    --loss: #ff4444;
    --bg-light: #F8F9FD;
    --border: #E2E8F5;
    --error: #ff4444;
    --success: #00C851;
    --warning: #ffa900;
    --info: #33b5e5;
    /* Дополнительные переменные профиля */
    --profile-bg-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --profile-card-hover: rgba(46, 139, 87, 0.1);
    --profile-badge-bg: rgba(152, 251, 152, 0.2);
    --profile-item-hover: rgba(60, 179, 113, 0.05);
    --profile-separator: rgba(209, 224, 213, 0.5);
    --profile-chart-line: rgba(46, 139, 87, 0.8);
    --profile-progress-bg: rgba(152, 251, 152, 0.3);
    --profile-tooltip-bg: rgba(46, 139, 87, 0.95);
    --profile-scroll-thumb: rgba(46, 139, 87, 0.2);
    --profile-scroll-thumb-hover: rgba(46, 139, 87, 0.4);
    --profile-input-focus: rgba(46, 139, 87, 0.25);
    --profile-modal-overlay: rgba(0, 0, 0, 0.7);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: var(--base-font-size);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--profile-scroll-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--profile-scroll-thumb-hover);
}

/* Хедер */
.header {
    background: var(--header-bg);
    color: var(--text-light);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo:hover {
    color: var(--text-light);
    text-decoration: none;
}

/* Основной контент */
.main-content {
    padding: 3rem 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.faq-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* FAQ категории */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--text-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: var(--profile-card-hover);
    transform: translateY(-2px);
}

.category-button.active {
    background: var(--gradient-1);
    color: var(--text-light);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* Поиск */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--profile-input-focus);
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color);
}

/* FAQ аккордеон */
.faq-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-accordion {
    background-color: var(--text-light);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--text-light);
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: var(--profile-item-hover);
}

.question-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding-right: 2rem;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-question {
    background-color: var(--profile-badge-bg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background-color: var(--text-light);
}

.answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--secondary-text-color);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.support-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.support-link:hover {
    color: var(--secondary-color);
}

.support-link svg {
    margin-right: 0.3rem;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--secondary-text-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

/* Не нашли ответ секция */
.contact-section {
    text-align: center;
    background: var(--profile-bg-gradient);
    color: var(--text-light);
    padding: 3rem;
    border-radius: 12px;
    margin-top: 4rem;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-btn {
    display: inline-block;
    background-color: var(--text-light);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.contact-btn:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    text-decoration: none;
}

/* Подсказки */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--profile-tooltip-bg);
    color: var(--text-light);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-weight: normal;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--profile-tooltip-bg) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Индикатор загрузки */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    z-index: 9999;
    transform: translateX(-100%);
    animation: loading 2s ease infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Футер */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}

.footer-about {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--text-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Адаптивный дизайн */
@media (max-width: 992px) {
    .faq-title {
        font-size: 2.2rem;
    }
    .contact-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    .faq-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .question-text {
        font-size: 1rem;
    }
    .contact-section {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    .faq-title {
        font-size: 1.8rem;
    }
    .faq-subtitle {
        font-size: 1rem;
    }
    .category-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .question-text {
        font-size: 0.95rem;
    }
    .faq-question {
        padding: 1.2rem;
    }
    .answer-content {
        padding: 0 1.2rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Анимация для категорий */
.category-button {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

/* Анимация для FAQ элементов */
.faq-item {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

/* Добавим бейджи для новых вопросов */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-left: 0.8rem;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--profile-badge-bg);
    color: var(--primary-color);
}

.badge-updated {
    background-color: rgba(51, 181, 229, 0.2);
    color: var(--info);
}