.product-finder {
    --finder-blue: var(--front-red, #ee0000);
    --finder-blue-dark: var(--front-red-dark, #bd0000);
    --finder-ink: #14233d;
    --finder-muted: #6e7d93;
    --finder-line: #dce5f1;
    --finder-green: #16a466;
    position: relative;
    overflow: hidden;
    margin: 34px 0;
    border: 1px solid var(--finder-line);
    border-radius: 26px;
    background: #fff;
    color: var(--finder-ink);
    box-shadow: 0 18px 55px rgba(36, 61, 92, .07);
}

.product-finder::before {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 0, 0, .11), rgba(238, 0, 0, 0) 70%);
    content: "";
    pointer-events: none;
}

.product-finder .store-icon { width: 22px; height: 22px; }
.product-finder__hero { position: relative; display: grid; min-height: 310px; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); align-items: center; gap: 35px; padding: clamp(32px, 5vw, 58px); background: linear-gradient(120deg, #fffafa 0%, #fff1f1 53%, #fffafa 100%); }
.product-finder__hero-copy { position: relative; z-index: 2; }
.product-finder__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; padding: 6px 12px; border-radius: 999px; background: var(--finder-blue); color: #fff; font-size: 14px; font-weight: 900; }
.product-finder__eyebrow .store-icon { width: 17px; height: 17px; }
.product-finder__hero h2 { max-width: 780px; margin: 0; color: #10203a; font-size: clamp(26px, 3.3vw, 42px); line-height: 1.55; letter-spacing: -.04em; }
.product-finder__hero p { max-width: 790px; margin: 13px 0 0; color: #53657d; font-size: 14px; line-height: 2; }
.product-finder__benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 30px; }
.product-finder__benefits span { display: flex; align-items: center; gap: 9px; color: #334764; font-size: 14px; font-weight: 800; line-height: 1.8; }
.product-finder__benefits i { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #dcfce7; color: var(--finder-green); font-style: normal; }
.product-finder__benefits .store-icon { width: 15px; height: 15px; stroke-width: 2.7; }

.product-finder__visual { position: relative; display: grid; width: 270px; height: 270px; place-items: center; justify-self: center; }
.product-finder__visual-ring { position: absolute; inset: 17px; border: 1px dashed rgba(238, 0, 0, .34); border-radius: 50%; animation: finder-spin 28s linear infinite; }
.product-finder__visual-ring::before,.product-finder__visual-ring::after { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--finder-blue); content: ""; box-shadow: 0 0 0 7px rgba(238, 0, 0, .1); }
.product-finder__visual-ring::before { top: 14px; right: 34px; }
.product-finder__visual-ring::after { bottom: 20px; left: 28px; }
.product-finder__visual-core { position: relative; z-index: 2; display: grid; width: 150px; height: 150px; place-items: center; align-content: center; border: 1px solid rgba(238, 0, 0, .16); border-radius: 40px; background: rgba(255, 255, 255, .92); box-shadow: 0 24px 50px rgba(168, 24, 24, .14); transform: rotate(-3deg); }
.product-finder__visual-core > .store-icon { width: 44px; height: 44px; margin-bottom: 8px; color: var(--finder-blue); }
.product-finder__visual-core strong { font-size: 14px; }
.product-finder__visual-core small { margin-top: 3px; color: var(--finder-muted); font-size: 14px; }
.product-finder__visual-node { position: absolute; z-index: 3; display: grid; width: 53px; height: 53px; place-items: center; border: 1px solid #ffe1e1; border-radius: 17px; background: #fff; color: var(--finder-blue); box-shadow: 0 12px 28px rgba(128, 34, 34, .11); }
.product-finder__visual-node--shop { top: 13px; left: 45px; }
.product-finder__visual-node--chart { right: 2px; bottom: 60px; }
.product-finder__visual-node--users { bottom: 8px; left: 60px; }

.product-finder__wizard { padding: clamp(24px, 4vw, 44px); }
.product-finder__progress-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.product-finder__progress-head span { color: var(--finder-muted); font-size: 14px; font-weight: 800; white-space: nowrap; }
.product-finder__progress-head strong { overflow: hidden; color: #32445f; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.product-finder__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 6px; margin-bottom: 34px; }
.product-finder__progress span { overflow: hidden; border-radius: 999px; background: #e8edf4; }
.product-finder__progress span::before { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--finder-blue), #ff5757); content: ""; transition: width .35s ease; }
.product-finder__progress span.is-complete::before,.product-finder__progress span.is-active::before { width: 100%; }
.product-finder__progress span.is-active::before { animation: finder-progress .35s ease both; }
.product-finder__question[hidden] { display: none; }
.product-finder__question.is-active { animation: finder-rise .3s ease both; }
.product-finder__question > header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 25px; }
.product-finder__question > header > span { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 12px; background: #fff1f1; color: var(--finder-blue); font-size: 14px; font-weight: 900; }
.product-finder__question h3 { margin: 0; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.7; }
.product-finder__question p { margin: 2px 0 0; color: var(--finder-muted); font-size: 14px; }
.product-finder__options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.product-finder__question:nth-child(n+2) .product-finder__options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-finder__option { position: relative; display: flex; min-width: 0; min-height: 174px; align-items: center; flex-direction: column; justify-content: center; padding: 19px 15px; border: 1px solid var(--finder-line); border-radius: 18px; appearance: none; background: #fff; color: #344863; text-align: center; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.product-finder__option:hover,.product-finder__option:focus-visible { border-color: #ffb5b5; background: #fffafa; color: #26364d; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(174, 22, 22, .08); }
.product-finder__option > i { display: grid; width: 52px; height: 52px; margin-bottom: 12px; place-items: center; border: 1px solid #f9dada; border-radius: 16px; background: linear-gradient(145deg, #fff7f7, #ffeaea); color: var(--finder-blue); font-style: normal; box-shadow: 0 8px 18px rgba(174, 22, 22, .07); transition: background .2s ease, color .2s ease, transform .2s ease; }
.product-finder__option > i .store-icon { width: 27px; height: 27px; }
.product-finder__option > i .store-icon-accent,.product-finder__visual-node .store-icon-accent { stroke: var(--finder-blue-dark); }
.product-finder__option:hover > i,.product-finder__option:focus-visible > i { background: #ffe5e5; color: var(--finder-blue-dark); transform: translateY(-2px); }
.product-finder__option strong { color: inherit; font-size: 15px; line-height: 1.7; }
.product-finder__option small { margin-top: 6px; color: #596a80; font-size: 14px; line-height: 1.7; }
.product-finder__option:hover strong,.product-finder__option:focus-visible strong { color: #26364d; }
.product-finder__option:hover small,.product-finder__option:focus-visible small { color: #4d5f76; }
.product-finder__option > b { position: absolute; top: 8px; left: 8px; display: none; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--finder-blue); color: #fff; }
.product-finder__option > b .store-icon { width: 13px; height: 13px; stroke-width: 3; }
.product-finder__option.is-selected,.product-finder__option.is-selected:hover { border-color: var(--finder-blue); background: #fff7f7; color: var(--finder-blue-dark); box-shadow: 0 0 0 3px rgba(238, 0, 0, .08); }
.product-finder__option.is-selected strong,.product-finder__option.is-selected:hover strong { color: var(--finder-blue-dark); }
.product-finder__option.is-selected > i { background: #ffe1e1; color: var(--finder-blue); }
.product-finder__option.is-selected > b { display: grid; }
.product-finder__option:focus-visible,.product-finder__navigation button:focus-visible,.product-finder__answers button:focus-visible { outline: 3px solid rgba(238, 0, 0, .2); outline-offset: 3px; }

.product-finder__navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.product-finder__navigation button,.product-finder__results-head button,.product-finder__error button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 8px 17px; border: 1px solid var(--finder-line); border-radius: 11px; background: #fff; color: #60728b; font-size: 14px; font-weight: 900; cursor: pointer; }
.product-finder__navigation button:hover:not(.product-finder__next),.product-finder__results-head button:hover { background: #fff6f6; color: #26364d; }
.product-finder__navigation button .store-icon { width: 17px; height: 17px; }
.product-finder__next { border-color: var(--finder-blue) !important; background: var(--finder-blue) !important; color: #fff !important; }
.product-finder__next .store-icon { transform: none; }
.product-finder__previous .store-icon { transform: rotate(180deg); }
.product-finder__navigation button:disabled { opacity: .42; cursor: not-allowed; }

.product-finder__answers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #edf1f6; }
.product-finder__answers button { position: relative; display: grid; min-width: 0; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; gap: 1px 9px; padding: 11px; border: 1px solid #e5ebf3; border-radius: 12px; background: #fbfcfe; color: #4b5e78; text-align: right; cursor: pointer; }
.product-finder__answers button:hover,.product-finder__answers button:focus-visible { border-color: #ffcaca; background: #fff8f8; color: #344863; }
.product-finder__answers button > span { display: grid; width: 32px; height: 32px; grid-row: 1 / 3; place-items: center; border-radius: 10px; background: #eef3f8; color: #8492a5; font-size: 14px; font-weight: 900; }
.product-finder__answers small,.product-finder__answers strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-finder__answers small { font-size: 14px; }
.product-finder__answers strong { color: #7a899c; font-size: 14px; }
.product-finder__answers button.is-answered { border-color: #ffcaca; background: #fff8f8; }
.product-finder__answers button.is-answered > span { background: var(--finder-blue); color: #fff; }
.product-finder__answers button.is-answered strong { color: var(--finder-blue-dark); }

.product-finder__loading { display: grid; min-height: 350px; place-items: center; align-content: center; padding: 45px; background: linear-gradient(135deg, #fff8f8, #fff); text-align: center; }
.product-finder__loading[hidden] { display: none; }
.product-finder__loading-robot { display: block; width: 400px; height: auto; max-width: 100%; aspect-ratio: 1; margin: 0 auto 15px; object-fit: contain; }
.product-finder__loading strong { font-size: 17px; }
.product-finder__loading small { margin-top: 6px; color: var(--finder-muted); }

.product-finder__results { padding: clamp(26px, 4vw, 45px); border-top: 1px solid #d9f1e5; background: linear-gradient(145deg, #f7fffb, #f1fbf7); }
.product-finder__results[hidden] { display: none; }
.product-finder__results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.product-finder__results-head > div > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--finder-green); color: #fff; font-size: 14px; font-weight: 900; }
.product-finder__results-head > div > span .store-icon { width: 14px; height: 14px; }
.product-finder__results-head h3 { margin: 8px 0 2px; font-size: clamp(21px, 2.7vw, 30px); }
.product-finder__results-head p { margin: 0; color: #68788c; font-size: 14px; }
.product-finder__results-head button { color: #3f5876; white-space: nowrap; }
.product-finder__results-head button .store-icon { width: 17px; height: 17px; }
.product-finder__result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.finder-result-card { position: relative; }
.finder-result-card.is-primary { border-color: #ffb5b5; box-shadow: 0 0 0 3px rgba(238, 0, 0, .055), 0 18px 42px rgba(27,34,48,.09); }
.finder-result-card__media { isolation: isolate; }
.finder-result-card__media img { position: relative; z-index: 0; max-width: 100%; max-height: 100%; }
.finder-result-card__media > .finder-result-card__badge { right: 11px; z-index: 2; background: #fff; color: var(--front-red, #ee0000); }
.finder-result-card.is-primary .finder-result-card__media > .finder-result-card__badge { background: var(--front-red, #ee0000); color: #fff; }
.finder-result-card__match-badge { position: absolute; z-index: 2; top: 11px; left: 11px; padding: 4px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 14px; font-weight: 900; box-shadow: 0 5px 15px rgba(22,28,40,.08); }
.finder-result-card__reason { min-height: 39px; margin: -3px 0 9px; color: #7b8492; font-size: 14px; line-height: 1.9; }
.finder-result-card__seller .seller-store { min-width: 0; }
.finder-result-card__seller .seller-store__logo { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; }
.finder-result-card__seller .seller-store__text strong { max-width: 120px; }
.finder-result-card__seller .seller-rating__stars { display: inline-flex; direction: ltr; gap: 1px; }
.finder-result-card__seller .seller-rating__star { color: #dbe1ea; font-size: 14px; line-height: 1; }
.finder-result-card__seller .seller-rating__star.is-full { color: #f59e0b; }
.finder-result-card__price { margin-top: auto; }
.finder-result-card__price .home-product-card__price strong { color: #1f2734; }
.finder-result-card__arrow { color: #fff; font-size: 19px; line-height: 1; }
.product-finder__consultation { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-top: 18px; padding: 14px 17px; border: 1px solid #ccebdd; border-radius: 14px; background: rgba(255, 255, 255, .7); color: #355b49; }
.product-finder__consultation > .store-icon { width: 30px; height: 30px; color: var(--finder-green); }
.product-finder__consultation strong,.product-finder__consultation span { display: block; }
.product-finder__consultation strong { font-size: 14px; }
.product-finder__consultation span { margin-top: 2px; color: #6f8178; font-size: 14px; }
.product-finder__consultation a { color: #087947; font-size: 14px; font-weight: 900; white-space: nowrap; }
.product-finder__error { margin: 25px; padding: 15px; border: 1px solid #fecaca; border-radius: 12px; background: #fff1f2; color: #9f1239; text-align: center; }
.product-finder__error[hidden] { display: none; }
.product-finder__error button { margin-right: 10px; border-color: #fda4af; color: #9f1239; }
.product-finder__error button:hover { background: #ffe4e6; color: #881337; }

@keyframes finder-spin { to { transform: rotate(360deg); } }
@keyframes finder-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes finder-progress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
    .product-finder * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1050px) {
    .product-finder__hero { grid-template-columns: minmax(0, 1fr) 240px; }
    .product-finder__visual { width: 230px; height: 230px; }
    .product-finder__benefits { grid-template-columns: 1fr; gap: 8px; }
    .product-finder__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-finder__question:nth-child(n+2) .product-finder__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-finder__result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-finder__answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .product-finder { border-radius: 20px; }
    .product-finder__hero { min-height: 0; grid-template-columns: 1fr; }
    .product-finder__visual { display: none; }
    .product-finder__options,.product-finder__question:nth-child(n+2) .product-finder__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-finder__answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-finder__result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-finder__consultation { grid-template-columns: 38px minmax(0, 1fr); }
    .product-finder__consultation a { grid-column: 2; }
}

@media (max-width: 540px) {
    .product-finder { margin: 24px 0; border-radius: 17px; }
    .product-finder__hero,.product-finder__wizard,.product-finder__results { padding: 24px 16px; }
    .product-finder__hero h2 { font-size: 25px; }
    .product-finder__progress-head strong { display: none; }
    .product-finder__options,.product-finder__question:nth-child(n+2) .product-finder__options { grid-template-columns: 1fr; }
    .product-finder__option { min-height: 100px; align-items: center; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 13px; padding: 14px; text-align: right; }
    .product-finder__option > i { grid-row: 1 / 3; margin: 0; }
    .product-finder__option small { margin: 0; }
    .product-finder__answers { grid-template-columns: 1fr; }
    .product-finder__results-head { flex-direction: column; }
    .product-finder__results-head button { width: 100%; }
    .product-finder__result-grid { gap: 9px; }
    .finder-result-card__reason { display: none; }
    .product-finder__consultation { grid-template-columns: 1fr; text-align: center; }
    .product-finder__consultation > .store-icon { margin: auto; }
    .product-finder__consultation a { grid-column: auto; }
}
