/* FAQ — список вопросов */
.faq-cards {
    display: grid;
    grid-template-columns: none;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 60px;
}

.faq-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all .2s ease;
    width: 100%;
}

.faq-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.faq-card:hover .faq-card__title {
    color: var(--c-primary);
}

.faq-card__icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e6007e;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
}

/* FAQ — детальная страница */
.faq-answer {
    /*background: #fff;*/
    /*border-radius: 16px;*/
    /*padding: 32px;*/
    /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);*/
    /*line-height: 1.6;*/
    /*font-size: 16px;*/
    /*color: #333;*/
    /*margin-top: 20px;*/
}

/* Форма "Задайте свой вопрос" */
.faq-ask-form {
    background: #155ea3;
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0 60px;
    color: #fff;
}

.faq-ask-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.faq-ask-form .faq-field {
    margin-bottom: 14px;
}

.faq-ask-form input[type="text"],
.faq-ask-form input[type="email"],
.faq-ask-form textarea {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}

.faq-ask-form textarea {
    min-height: 110px;
    resize: vertical;
}

.faq-ask-form .faq-error {
    color: #ffd7e6;
    font-size: 13px;
    margin-top: 4px;
}

.faq-ask-form .faq-consent {
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0;
}

.faq-ask-form .faq-consent a {
    color: #fff;
    text-decoration: underline;
}

.faq-ask-form button[type="submit"] {
    background: #e6007e;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.faq-ask-form button[type="submit"]:hover {
    background: #c40068;
}

@media (max-width: 767px) {
    .faq-cards {
        grid-template-columns: 1fr;
    }
    .faq-ask-form,
    .faq-answer {
        padding: 20px;
    }
}

.faq-thanks {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.faq-thanks__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #155ea3;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-thanks p {
    margin: 0;
    font-size: 16px;
}



.faq-comments {
    margin-top: 24px;
}

.faq-comments-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}



/* Звёздный рейтинг в форме */
.faq-field__label {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
}

.faq-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 4px;
}

.faq-rating input {
    display: none;
}

.faq-rating label {
    font-size: 30px;
    line-height: 1;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: color .15s ease;
}

.faq-rating input:checked ~ label,
.faq-rating label:hover,
.faq-rating label:hover ~ label {
    color: #ffc400;
}

/* Комментарии */
.faq-comment {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-comment__stars {
    color: #ffc400;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.faq-comment__text {
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    margin-bottom: 12px;
}

.faq-comment__meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.faq-comment__author {
    font-weight: 600;
    color: #333;
}

.faq-comment__votes {
    display: flex;
    gap: 10px;
}

.faq-vote {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #f1f3f5;
    color: #444;
    transition: background .15s ease;
}

.faq-vote--up:hover { background: #e3f7e8; }
.faq-vote--down:hover { background: #fdeaea; }
.faq-vote:disabled { opacity: .6; cursor: default; }