.incident-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 820px;
    margin: 28px auto 0;
}

.yfm a.incident-service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 106px;
    box-sizing: border-box;
    padding: 16px 20px;
    border-radius: 20px;
    background: #f4f4f4;
    color: #222 !important;
    text-align: left;
    text-decoration: none;
}

.yfm a.incident-service-card:hover,
.yfm a.incident-service-card:focus-visible,
.incident-service-card:hover strong,
.incident-service-card:focus-visible strong {
    color: #d00 !important;
}

.incident-service-card--tv {
    grid-column: 2;
}

.incident-service-card img {
    display: block;
    width: 40px;
    height: 40px !important;
    flex-shrink: 0;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}

.incident-service-card .incident-service-icon {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.incident-service-icon--plus { background-image: url("./service-plus.png"); }
.incident-service-icon--music { background-image: url("./service-music.png"); }
.incident-service-icon--kinopoisk { background-image: url("./service-kinopoisk.png"); }
.incident-service-icon--afisha { background-image: url("./service-afisha.png"); }
.incident-service-icon--books { background-image: url("./service-books.png"); }
.incident-service-icon--artists { background-image: url("./service-music-artists.png"); }
.incident-service-icon--igromir { background-image: url("./service-igromir.png"); }
.incident-service-icon--tv { background-image: url("./service-tv.png"); }

.incident-service-card strong {
    color: #222 !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .incident-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .incident-service-card--tv {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .incident-services-grid {
        grid-template-columns: 1fr;
    }
}


/* FAQ layout from the Plus help page. */
.faq-block {
    max-width: 100%;
    margin: 32px auto 0;
    padding: 0px 0 15px;
}

.faq-item {
    border-bottom: 1px solid #E1E3E8;
    position: relative;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-toggle {
    position: fixed !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: -1;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    gap: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-question h4 {
    font-size: 15px;
    font-weight: 500;
    color: #000000d9;
    line-height: 20px;
    margin: 0;
    flex: 1;
}

.faq-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-arrow::before {
    content: '';
    width: 14px;
    height: 8px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 8" fill="none" stroke="currentColor"><path d="M1 1L6.85858 6.85858C6.93668 6.93668 7.06332 6.93668 7.14142 6.85858L13 1" stroke-opacity="0.9" stroke-width="2" stroke-linecap="round"/></svg>') center/contain no-repeat;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.faq-answer p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.6);
}

.faq-answer a {
    color: #37948C;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.faq-answer a:hover {
    opacity: 0.7;
}

.faq-toggle:checked + .faq-question .faq-arrow {
    transform: rotate(180deg);
}

.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 0px;
}

/* ТЕМНАЯ ТЕМА - для g-root_theme_dark */
.g-root_theme_dark .faq-item {
    border-bottom-color: #404040;
}

.g-root_theme_dark .faq-question h4 {
    color: #ffffffd9;
}

.g-root_theme_dark .faq-question:hover {
    background-color: #3a3940;
}

.g-root_theme_dark .faq-answer p {
    color: #ffffffb3;
}

.g-root_theme_dark .faq-arrow::before {
    filter: invert(1);
}

.g-root_theme_dark .faq-answer a {
    color: #3d98f2;
}

@media (max-width: 719px) {
    .faq-block {
        padding: 0px 0 15px;
    }

    .faq-question {
        padding: 16px 0;
    }
}

.faq-toggle:focus-visible + .faq-question {
    outline: 2px solid #3d98f2;
    outline-offset: 2px;
}
