/* ===== 8. FAQ · layout + «Классика»: photo bleeding to the left edge, bold questions with chevrons ===== */
.hm-faq { overflow-x: clip; }
.hm-faq__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: ". head" "media list";
    column-gap: clamp(24px, 3vw, 48px);
    align-items: start;
}
/* Without a photo the list sits centered under the heading */
.hm-faq__inner:not(:has(.hm-faq__media)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list"; }
.hm-faq__inner:not(:has(.hm-faq__media)) .hm-faq__list { width: 100%; max-width: 860px; margin-inline: auto; }

.hm-faq__head { grid-column: 1 / -1; grid-row: 1; justify-self: end; width: 100%; max-width: 820px; margin: 0 0 clamp(40px, 6vw, 84px); }
.hm-faq__eyebrow { display: none; }
.hm-faq__title em { font-style: normal; }
.hm-faq__lead { max-width: 760px; font-size: var(--hm-fs-small); color: var(--hm-c-text); }

.hm-faq__media {
    --_bleed: calc(max(0px, (100vw - var(--hm-container) - 2 * var(--hm-gutter)) / 2) + var(--hm-gutter));
    grid-area: media;
    margin: 0 0 0 calc(var(--_bleed) * -1);
    aspect-ratio: 522 / 560;
    overflow: hidden;
    background: rgba(0, 0, 0, .06);
}
.hm-faq__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }

.hm-faq__list { grid-area: list; max-width: 600px; }
.hm-faq__q { margin: 0; font: inherit; }
.hm-faq__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 18px 0 26px;
    border: 0;
    border-bottom: 1px solid var(--hm-c-text);
    background: none;
    color: inherit;
    font-family: var(--hm-font-head);
    font-size: clamp(17px, 1.45vw, 20px);
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: color var(--hm-dur) var(--hm-ease);
}
.hm-faq__btn:hover { color: var(--hm-c-accent); }
.hm-faq__icon {
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--hm-dur) var(--hm-ease);
}
.hm-faq__item.is-open .hm-faq__icon { transform: translateY(2px) rotate(-135deg); }

/* Height animation: grid rows 0fr ↔ 1fr; closed panels are hidden from assistive tech */
.hm-faq__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows var(--hm-dur) var(--hm-ease), visibility 0s;
}
.hm-faq--ready .hm-faq__item:not(.is-open) .hm-faq__panel {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--hm-dur) var(--hm-ease), visibility 0s var(--hm-dur);
}
.hm-faq__panel-inner { min-height: 0; overflow: hidden; }
.hm-faq__answer { padding: 20px 32px 6px 0; font-size: var(--hm-fs-body); }

@media (max-width: 1023px) {
    .hm-faq__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
}
@media (max-width: 767px) {
    .hm-faq__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "list"; }
    .hm-faq__head { grid-area: head; justify-self: stretch; margin-bottom: 28px; }
    .hm-faq__media { margin: 0 calc(var(--hm-gutter) * -1) 12px; aspect-ratio: 4 / 3; }
    .hm-faq__list { max-width: none; }
    .hm-faq__btn { padding: 18px 0 20px; gap: 16px; }
    .hm-faq__answer { padding-right: 0; }
}
.hm-faq__inner:not(:has(.hm-faq__media)) .hm-faq__head { justify-self: center; }
.hm-faq__lead a { white-space: nowrap; }
