:root {
    --primary: #005eff;
    --primary-hover: #0044bf;
    --bg: #111827;
    --text: #ffffff;
    --muted: #6b7280;
    --card-bg: #ffffff;
    --secondary: #6c757d;
    --card-text: #0b1220;
    --border: #e5e7eb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: background-color 0.2s ease, color 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
main{
    margin-bottom: 200px;
    margin-top: 130px;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    line-height: 1.2;
}

.page-subtitle {
    color: var(--muted);
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.5;
}

.faq-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--card-text);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 94, 255, 0.05);
}

.faq-question::after {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23005eff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.24s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
    will-change: height;
    contain: layout paint;
}

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

.faq-answer-content {
    color: var(--card-text);
    line-height: 1.6;
    font-size: 0.95rem;
    padding: 0 18px 18px;
}

.faq-answer-content p {
    margin-bottom: 12px;
}

.faq-answer-content ul, .faq-answer-content ol {
    padding-left: 20px;
    margin: 12px 0;
}

.faq-answer-content li {
    margin-bottom: 8px;
    color: var(--card-text);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {

    .page-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 16px 14px;
        font-size: 0.95rem;
        align-items: flex-start;
    }

    .faq-question::after {
        margin-top: 3px;
    }

    .faq-answer-content {
        font-size: 0.9rem;
        padding: 0 16px 16px;
    }

    .faq-answer-content ul, .faq-answer-content ol {
        padding-left: 18px;
    }
}

@media (max-width: 360px) {
    .page-title {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 14px 12px;
        font-size: 0.9rem;
    }

    .faq-answer-content {
        font-size: 0.88rem;
        padding: 0 14px 14px;
    }

    .faq-answer-content ul, .faq-answer-content ol {
        padding-left: 16px;
    }
}

/* Улучшения для очень маленьких экранов */
@media (max-width: 320px) {
    .back-link {
        font-size: 13px;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }
}

/* Портретная ориентация на мобильных */
@media (max-height: 500px) and (orientation: portrait) {
    .page-header {
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-question::after {
        transition: none;
    }
}
