.yb-faq-pop-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 14, 0.62);
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    opacity: 0;
    transition: opacity 280ms var(--ease);
}
.yb-faq-pop-overlay[hidden] { display: none !important; }
.yb-faq-pop-overlay--active { opacity: 1; }

.yb-faq-pop-box {
    max-width: min(1100px, calc(100vw - 48px));
    width: 100%;
    max-height: min(92vh, 820px);
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--c-white);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.22), 0 2px 0 rgba(0, 0, 0, 0.02);
    position: relative;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.97) translateY(6px);
    transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1), transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}
.yb-faq-pop-overlay--active .yb-faq-pop-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@media (max-width: 1100px) {
    .yb-faq-pop-box { max-width: calc(100vw - 24px); border-radius: 16px; max-height: min(95vh, 820px); }
    .yb-faq-pop-overlay { padding: 12px; }
}

.yb-faq-pop-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--c-white);
    color: var(--c-black);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.yb-faq-pop-close svg { width: 14px; height: 14px; }
.yb-faq-pop-close:hover {
    background: var(--c-black);
    color: var(--c-white);
    border-color: var(--c-black);
    transform: rotate(90deg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.yb-faq-pop-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 40px 48px 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.yb-faq-pop-body::-webkit-scrollbar { display: none; width: 0; height: 0; }

@media (max-width: 720px) {
    .yb-faq-pop-body { padding: 28px 22px 24px; }
}

.yb-faq-pop-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding-right: 60px;
    max-width: 780px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 420ms 80ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms 80ms cubic-bezier(0.22, 1, 0.36, 1);
}
.yb-faq-pop-overlay--active .yb-faq-pop-head { opacity: 1; transform: translateY(0); }

.yb-faq-pop-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--c-accent);
    font-size: 11px;
    font-weight: var(--w-black);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-muted);
    align-self: flex-start;
}

.yb-faq-pop-title {
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: var(--w-black);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--c-black);
    margin: 0;
    text-wrap: balance;
}

.yb-faq-pop-lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-muted);
    margin: 2px 0 0;
    max-width: 640px;
}
.yb-faq-pop-lead:empty { display: none; margin: 0; }

.yb-faq-pop-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0 16px;
    background: #FAFAFA;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    height: 48px;
    width: 100%;
    max-width: 480px;
    transition: border-color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}
.yb-faq-pop-search:focus-within {
    border-color: var(--c-black);
    background: var(--c-white);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}
.yb-faq-pop-search svg {
    width: 16px;
    height: 16px;
    color: var(--c-muted);
    flex-shrink: 0;
}
.yb-faq-pop-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: var(--w-regular);
    color: var(--c-black);
    padding: 0;
    height: 100%;
}
.yb-faq-pop-search input::placeholder {
    color: var(--c-muted);
    font-weight: var(--w-regular);
}

.yb-faq-pop-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--c-border);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 420ms 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.yb-faq-pop-overlay--active .yb-faq-pop-list { opacity: 1; transform: translateY(0); }

.yb-faq-pop-item {
    border-bottom: 1px solid var(--c-border);
    position: relative;
}
.yb-faq-pop-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--c-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0 2px 2px 0;
}
.yb-faq-pop-item--open::before { transform: scaleY(1); }

.yb-faq-pop-item-q {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 8px 20px 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: var(--w-black);
    color: var(--c-black);
    letter-spacing: -0.015em;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: color 180ms var(--ease), padding-left 260ms cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1.35;
}
.yb-faq-pop-item-q:hover { color: #3A3A3C; padding-left: 18px; }
.yb-faq-pop-item--open .yb-faq-pop-item-q { padding-left: 18px; }

.yb-faq-pop-item-q-text mark {
    background: var(--c-accent);
    color: var(--c-black);
    padding: 0 3px;
    border-radius: 3px;
    font-weight: var(--w-black);
}

.yb-faq-pop-item-chev {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-black);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms var(--ease);
    border-radius: 50%;
}
.yb-faq-pop-item-chev svg { width: 15px; height: 15px; }
.yb-faq-pop-item-q:hover .yb-faq-pop-item-chev { background: rgba(0, 0, 0, 0.05); }
.yb-faq-pop-item--open .yb-faq-pop-item-chev { transform: rotate(180deg); }

.yb-faq-pop-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.yb-faq-pop-item--open .yb-faq-pop-item-body { max-height: 1800px; }

.yb-faq-pop-item-body-inner {
    padding: 2px 14px 24px 18px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 320ms 120ms var(--ease), transform 320ms 120ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 720px) {
    .yb-faq-pop-item-body-inner {
        grid-template-columns: 1fr;
        padding: 2px 8px 20px 14px;
    }
}
.yb-faq-pop-item--open .yb-faq-pop-item-body-inner { opacity: 1; transform: translateY(0); }

.yb-faq-pop-item-a {
    font-size: 14px;
    line-height: 1.65;
    color: #2B2B2F;
    margin: 0;
    letter-spacing: -0.005em;
}
.yb-faq-pop-item-a mark {
    background: rgba(252, 225, 22, 0.45);
    color: var(--c-black);
    padding: 0 3px;
    border-radius: 3px;
}

.yb-faq-pop-item-img {
    margin: 0;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #F5F5F7 0%, #EBEBED 100%);
    border-radius: 12px;
    overflow: hidden;
}
.yb-faq-pop-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 720px) {
    .yb-faq-pop-item-img { max-width: 320px; }
}

.yb-faq-pop-empty {
    padding: 48px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--c-muted);
    text-align: center;
}
.yb-faq-pop-empty svg {
    width: 42px;
    height: 42px;
    opacity: 0.5;
}
.yb-faq-pop-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.yb-faq-pop-foot {
    margin-top: 28px;
    padding: 24px 26px;
    background: #FAFAFA;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
@media (max-width: 720px) {
    .yb-faq-pop-foot {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 20px;
    }
}

.yb-faq-pop-foot-intro h3 {
    font-size: 17px;
    font-weight: var(--w-black);
    color: var(--c-black);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.yb-faq-pop-foot-intro p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--c-muted);
    margin: 0;
}

.yb-faq-pop-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

.yb-faq-pop-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.yb-faq-pop-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: var(--w-regular);
    color: var(--c-black);
    outline: none;
    transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.yb-faq-pop-input::placeholder {
    color: var(--c-muted);
}
.yb-faq-pop-input:hover { border-color: #c9c9ce; }
.yb-faq-pop-input:focus {
    border-color: var(--c-black);
    background: var(--c-white);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.yb-faq-pop-field--err .yb-faq-pop-input {
    border-color: #E03131;
    box-shadow: 0 0 0 4px rgba(224, 49, 49, 0.08);
}

.yb-faq-pop-hint {
    font-size: 11.5px;
    line-height: 1.35;
    color: #C02020;
    font-weight: var(--w-bold);
    letter-spacing: -0.005em;
    min-height: 0;
    transition: opacity 160ms var(--ease);
}
.yb-faq-pop-hint:empty { display: none; }
.yb-faq-pop-hint--consent {
    grid-column: 1 / -1;
    margin-top: -2px;
}

.yb-faq-pop-submit {
    grid-column: 1 / -1;
    height: 46px;
    padding: 0 22px;
    background: var(--c-accent);
    color: var(--c-black);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: var(--w-black);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 180ms var(--ease), transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms var(--ease);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
    position: relative;
}
.yb-faq-pop-submit:hover:not(:disabled) {
    background: var(--c-accent-h);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(252, 225, 22, 0.35), 0 2px 0 rgba(0, 0, 0, 0.04);
}
.yb-faq-pop-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}
.yb-faq-pop-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}
.yb-faq-pop-submit-spin {
    width: 16px;
    height: 16px;
    display: none;
    animation: fqSpin 700ms linear infinite;
}
.yb-faq-pop-form--loading .yb-faq-pop-submit-label { opacity: 0.6; }
.yb-faq-pop-form--loading .yb-faq-pop-submit-spin { display: inline-block; }
@keyframes fqSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.yb-faq-pop-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--c-muted);
    user-select: none;
    margin-top: 2px;
}
.yb-faq-pop-consent input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.yb-faq-pop-consent-box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--c-border);
    background: var(--c-white);
    border-radius: 4px;
    position: relative;
    margin-top: 1px;
    transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.yb-faq-pop-consent-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--c-black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.yb-faq-pop-consent input:checked + .yb-faq-pop-consent-box {
    background: var(--c-accent);
    border-color: var(--c-accent);
}
.yb-faq-pop-consent input:checked + .yb-faq-pop-consent-box::after {
    transform: rotate(45deg) scale(1);
}
.yb-faq-pop-consent input:focus-visible + .yb-faq-pop-consent-box {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}
.yb-faq-pop-consent-text a {
    color: var(--c-black);
    font-weight: var(--w-bold);
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.25);
    text-underline-offset: 2px;
    transition: text-decoration-color 160ms var(--ease);
}
.yb-faq-pop-consent-text a:hover {
    text-decoration-color: var(--c-black);
}
.yb-faq-pop-consent--err .yb-faq-pop-consent-box {
    border-color: #E03131;
    box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.1);
}

.yb-faq-pop-done {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0;
    animation: fqDoneIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fqDoneIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.yb-faq-pop-done-ico {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2D7F3A;
    color: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.yb-faq-pop-done-ico svg { width: 18px; height: 18px; }
.yb-faq-pop-done h3 {
    font-size: 17px;
    font-weight: var(--w-black);
    color: var(--c-black);
    margin: 0;
    letter-spacing: -0.02em;
}
.yb-faq-pop-done p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--c-muted);
    margin: 0;
}
.yb-faq-pop-done p b {
    color: var(--c-black);
    font-weight: var(--w-black);
}
.yb-faq-pop-done p a {
    color: var(--c-black);
    font-weight: var(--w-bold);
    text-decoration: none;
    white-space: nowrap;
}

.yb-faq-pop-close:focus-visible,
.yb-faq-pop-item-q:focus-visible,
.yb-faq-pop-search:focus-within {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(252, 225, 22, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .yb-faq-pop-overlay,
    .yb-faq-pop-box,
    .yb-faq-pop-head,
    .yb-faq-pop-list,
    .yb-faq-pop-item-body-inner,
    .yb-faq-pop-item-chev {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
