@font-face {
    font-family: "Exo 2 PartON";
    src: url("/assets/fonts/Exo2-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Exo 2 PartON";
    src: url("/assets/fonts/Exo2-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Exo 2 PartON";
    src: url("/assets/fonts/Exo2-800.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Exo 2 PartON";
    src: url("/assets/fonts/Exo2-900.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --proto-navy-950: #07182b;
    --proto-navy-900: #0b1f36;
    --proto-navy-800: #17324f;
    --proto-orange-600: #c94f00;
    --proto-orange-500: #ff6b00;
    --proto-orange-100: #fff1e7;
    --proto-slate-900: #17212f;
    --proto-slate-700: #3f4d5f;
    --proto-slate-600: #58677a;
    --proto-slate-200: #dce3eb;
    --proto-slate-100: #edf1f5;
    --proto-slate-50: #f6f8fa;
    --proto-surface: #ffffff;
    --proto-success: #147a4a;
    --proto-focus: #ff6b00;
    --proto-radius-card: 14px;
    --proto-radius-control: 10px;
    --proto-space-1: 4px;
    --proto-space-2: 8px;
    --proto-space-3: 12px;
    --proto-space-4: 16px;
    --proto-space-5: 20px;
    --proto-shadow-card: 0 8px 24px rgba(7, 24, 43, .055);
    --proto-duration: 170ms;
}

.parton-results-prototype-v1 {
    caret-color: var(--proto-orange-600);
    scrollbar-color: #8999aa var(--proto-slate-100);
    scrollbar-width: thin;
}

.parton-results-prototype-v1::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.parton-results-prototype-v1::-webkit-scrollbar-track {
    background: var(--proto-slate-100);
}

.parton-results-prototype-v1::-webkit-scrollbar-thumb {
    border: 3px solid var(--proto-slate-100);
    border-radius: 8px;
    background: #8999aa;
}

.prototype-results-toolbar h1,
.prototype-result-section-heading h2,
.prototype-result-title,
.prototype-result-brand,
.prototype-price,
.prototype-primary-action,
.prototype-disclosure {
    font-family: "Exo 2 PartON", "Segoe UI", sans-serif;
}

.parton-results-prototype-v1[data-route="search"] .storefront-hero {
    display: none;
}

.parton-results-prototype-v1[data-route="search"] .results-section {
    padding-top: 24px;
}

.parton-results-prototype-v1[data-route="search"] .container {
    width: min(calc(100% - 48px), 1280px) !important;
    max-width: 1280px !important;
}

.prototype-results-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    align-items: end;
    gap: 24px;
    width: 100%;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-card);
    background: var(--proto-surface);
    box-shadow: 0 5px 18px rgba(7, 24, 43, .04);
}

.prototype-results-heading {
    min-width: 0;
}

.prototype-results-toolbar h1 {
    margin: 0 0 5px;
    color: var(--proto-navy-950);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.prototype-results-toolbar #resultCount {
    display: block;
    color: var(--proto-slate-600);
    font-size: 14px;
}

.prototype-results-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.prototype-results-search input {
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #b9c5d2;
    border-radius: var(--proto-radius-control);
    color: var(--proto-slate-900);
    background: var(--proto-surface);
    font: inherit;
    font-size: 16px;
}

.prototype-results-search button,
.prototype-primary-action {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--proto-orange-600);
    border-radius: var(--proto-radius-control);
    color: #fff;
    background: var(--proto-orange-600);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: background-color var(--proto-duration) ease, border-color var(--proto-duration) ease, box-shadow var(--proto-duration) ease;
}

.prototype-results-search button:hover,
.prototype-primary-action:hover:not(:disabled) {
    border-color: #a94700;
    background: #a94700;
    box-shadow: 0 6px 16px rgba(200, 79, 0, .18);
}

.parton-results-prototype-v1 .result-header.prototype-results-toolbar {
    display: grid;
}

.parton-results-prototype-v1 .products {
    gap: 20px;
}

.prototype-result-section,
.prototype-result-list {
    display: grid;
    gap: 10px;
}

.prototype-result-section-heading {
    display: flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    gap: 10px;
    padding-inline: 4px;
}

.prototype-result-section-heading h2 {
    margin: 0;
    color: var(--proto-navy-950);
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -.015em;
}

.prototype-result-section-count {
    color: var(--proto-slate-600);
    font-size: 12px;
    font-weight: 750;
}

.prototype-result-card {
    overflow: hidden;
    border: 1px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-card);
    background: var(--proto-surface);
    box-shadow: var(--proto-shadow-card);
    transition: border-color var(--proto-duration) ease, box-shadow var(--proto-duration) ease;
}

.prototype-result-card:hover {
    border-color: #c9d3de;
    box-shadow: 0 12px 28px rgba(7, 24, 43, .075);
}

.prototype-result-main {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 292px;
    align-items: stretch;
    min-width: 0;
}

.prototype-media-button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 174px;
    padding: 26px 14px 14px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--proto-slate-100);
    border-radius: 0;
    color: inherit;
    background: var(--proto-slate-50);
    cursor: pointer;
    text-decoration: none;
}

.prototype-media-button img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    transition: transform 220ms ease;
}

.prototype-media-button:hover img {
    transform: scale(1.035);
}

.prototype-media-label {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 3px 6px;
    border-radius: 6px;
    color: var(--proto-slate-600);
    background: rgba(255, 255, 255, .92);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.25;
}

.prototype-result-identity {
    display: flex;
    min-width: 0;
    padding: 18px 22px;
    flex-direction: column;
    justify-content: center;
}

.prototype-result-badges {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.prototype-result-kind {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 7px;
    color: var(--proto-navy-800);
    background: #eaf0f6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.prototype-result-brand {
    margin-bottom: 3px;
    color: var(--proto-orange-600);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.prototype-result-title {
    margin: 0;
    color: var(--proto-navy-950);
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.18;
    letter-spacing: -.018em;
    text-wrap: pretty;
}

.prototype-product-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.prototype-product-link:hover {
    color: var(--proto-orange-600);
}

.prototype-result-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 10px;
}

.prototype-article {
    color: var(--proto-slate-700);
    font-size: 13px;
    font-weight: 750;
}

.prototype-article strong {
    color: var(--proto-navy-950);
    font-variant-numeric: tabular-nums;
}

.prototype-copy-article {
    display: inline-grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--proto-slate-200);
    border-radius: 8px;
    color: var(--proto-slate-700);
    background: var(--proto-surface);
    cursor: pointer;
}

.prototype-copy-article svg,
.prototype-disclosure svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.prototype-fulfilment {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    color: var(--proto-slate-600);
    font-size: 13px;
}

.prototype-availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--proto-success);
    font-weight: 800;
}

.prototype-availability::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(20, 122, 74, .11);
}

.prototype-delivery::before {
    content: "·";
    margin-right: 6px;
    color: var(--proto-slate-400);
}

.prototype-purchase {
    display: grid;
    min-width: 0;
    padding: 18px 20px;
    align-content: center;
    border-left: 1px solid var(--proto-slate-100);
    background: #fbfcfd;
}

.prototype-price-caption {
    color: var(--proto-slate-600);
    font-size: 12px;
    font-weight: 700;
}

.prototype-price {
    margin-top: 1px;
    color: var(--proto-navy-950);
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.025em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.prototype-primary-action {
    width: 100%;
    margin-top: 12px;
}

.prototype-primary-action:disabled,
.prototype-offer-action:disabled {
    border-color: #ccd4dd;
    color: #687789;
    background: #e8edf2;
    box-shadow: none;
    cursor: not-allowed;
}

.prototype-disclosure {
    display: flex;
    min-height: 44px;
    margin-top: 4px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 8px;
    color: var(--proto-navy-800);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.prototype-disclosure:hover {
    color: var(--proto-orange-600);
    background: var(--proto-orange-100);
}

.prototype-disclosure svg {
    transition: transform var(--proto-duration) ease;
}

.prototype-disclosure[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.prototype-offers-panel {
    border-top: 1px solid var(--proto-slate-200);
    background: var(--proto-surface);
}

.prototype-offers-panel[hidden] {
    display: none;
}

.prototype-offers-inner {
    max-height: 430px;
    padding: 12px 20px 16px 132px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.prototype-offer-head,
.prototype-offer-row {
    display: grid;
    grid-template-columns: minmax(132px, .7fr) minmax(180px, 1.2fr) minmax(110px, .7fr) 104px;
    align-items: center;
    gap: 12px;
}

.prototype-offer-head {
    position: sticky;
    top: -12px;
    z-index: 1;
    padding: 0 12px 7px;
    color: var(--proto-slate-600);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
    background: var(--proto-surface);
}

.prototype-offer-row {
    min-height: 58px;
    padding: 7px 9px 7px 12px;
    border-top: 1px solid var(--proto-slate-100);
    font-size: 13px;
}

.prototype-offer-row:first-of-type {
    border-top-color: var(--proto-slate-200);
}

.prototype-offer-row > strong {
    color: var(--proto-navy-950);
}

.prototype-offer-delivery,
.prototype-offer-availability {
    color: var(--proto-slate-600);
}

.prototype-offer-price {
    color: var(--proto-navy-950);
    font-size: 17px;
    font-weight: 900;
    text-align: left;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.prototype-offer-action {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--proto-orange-600);
    border-radius: 8px;
    color: var(--proto-orange-600);
    background: var(--proto-surface);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.prototype-offer-action:hover:not(:disabled) {
    color: #fff;
    background: var(--proto-orange-600);
}

.prototype-offer-contract-note {
    margin: 10px 12px 0;
    color: var(--proto-slate-600);
    font-size: 12px;
    line-height: 1.45;
}

.parton-results-prototype-v1 ::selection {
    color: #fff;
    background: var(--proto-orange-600);
}

.prototype-results-search input:focus-visible,
.prototype-results-search button:focus-visible,
.prototype-media-button:focus-visible,
.prototype-product-link:focus-visible,
.prototype-copy-article:focus-visible,
.prototype-primary-action:focus-visible,
.prototype-disclosure:focus-visible,
.prototype-offer-action:focus-visible {
    outline: 3px solid #bf4b00;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .prototype-result-main {
        grid-template-columns: 96px minmax(0, 1fr) 250px;
    }

    .prototype-result-identity {
        padding-inline: 16px;
    }

    .prototype-purchase {
        padding-inline: 16px;
    }

    .prototype-offers-inner {
        padding-left: 112px;
    }
}

@media (max-width: 700px) {
    .parton-results-prototype-v1[data-route="search"] .container {
        width: min(calc(100% - 24px), 1280px) !important;
    }

    .parton-results-prototype-v1[data-route="search"] .results-section {
        padding-top: 12px;
    }

    .prototype-results-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 12px;
        padding: 14px;
    }

    .prototype-results-toolbar h1 {
        font-size: 22px;
    }

    .prototype-result-main {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .prototype-result-section-heading {
        flex-wrap: wrap;
    }

    .prototype-result-section-heading h2 {
        font-size: 17px;
    }

    .prototype-media-button {
        min-height: 142px;
        padding: 24px 8px 10px;
    }

    .prototype-media-button img {
        width: 60px;
        height: 60px;
    }

    .prototype-media-label {
        max-width: calc(100% - 12px);
        top: 7px;
        left: 6px;
        padding-inline: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .prototype-media-button[data-media-kind="placeholder"] .prototype-media-label {
        font-size: 0;
    }

    .prototype-media-button[data-media-kind="placeholder"] .prototype-media-label::after {
        content: "Типовое";
        font-size: 9px;
    }

    .prototype-result-identity {
        min-height: 142px;
        padding: 13px 12px;
    }

    .prototype-result-badges {
        margin-bottom: 5px;
    }

    .prototype-result-kind,
    .prototype-compatibility-state {
        min-height: 21px;
        font-size: 9px;
    }

    .prototype-result-brand {
        font-size: 11px;
    }

    .prototype-result-title {
        display: -webkit-box;
        overflow: hidden;
        font-size: 17px;
        line-height: 1.2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .prototype-product-link {
        min-height: 44px;
    }

    .parton-results-prototype-v1 .logo,
    .parton-results-prototype-v1 .footer-logo {
        min-width: 44px;
        min-height: 44px;
    }

    .parton-results-prototype-v1 .storefront-header .logo {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }

    .parton-results-prototype-v1 .footer-pickup-link {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    .prototype-result-meta {
        margin-top: 7px;
    }

    .prototype-copy-article {
        width: 44px;
        height: 44px;
        margin-block: -6px;
    }

    .prototype-fulfilment {
        gap: 4px 10px;
        margin-top: 7px;
        font-size: 12px;
    }

    .prototype-purchase {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 11px 12px 12px;
        border-top: 1px solid var(--proto-slate-100);
        border-left: 0;
    }

    .prototype-price-caption,
    .prototype-price {
        grid-column: 1;
    }

    .prototype-price-caption {
        grid-row: 1;
    }

    .prototype-price {
        grid-row: 2;
        font-size: 25px;
    }

    .prototype-primary-action {
        grid-column: 2;
        grid-row: 1 / 3;
        width: auto;
        min-width: 122px;
        margin: 0;
        align-self: center;
    }

    .prototype-disclosure {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 7px;
        border-top: 1px solid var(--proto-slate-100);
        border-radius: 0;
    }

    .prototype-offers-inner {
        max-height: min(520px, 68vh);
        padding: 6px 12px 12px;
    }

    .prototype-offer-head {
        display: none;
    }

    .prototype-offer-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 10px;
        min-height: 0;
        padding: 12px 0;
    }

    .prototype-offer-price {
        grid-column: 1;
        grid-row: 1;
    }

    .prototype-offer-availability,
    .prototype-offer-delivery {
        grid-column: 1;
        font-size: 12px;
    }

    .prototype-offer-availability {
        grid-row: 2;
    }

    .prototype-offer-delivery {
        grid-row: 3;
    }

    .prototype-offer-action {
        grid-column: 2;
        grid-row: 2 / 4;
        min-width: 104px;
        min-height: 44px;
    }

    .prototype-offer-contract-note {
        margin-inline: 0;
    }
}

@media (pointer: coarse) {
    .prototype-copy-article,
    .prototype-offer-action,
    .prototype-disclosure,
    .parton-results-prototype-v1 .logo,
    .parton-results-prototype-v1 .footer-logo,
    .parton-results-prototype-v1 .footer-pickup-link {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 380px) {
    .prototype-results-search {
        grid-template-columns: minmax(0, 1fr);
    }

    .prototype-primary-action {
        min-width: 112px;
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prototype-result-card,
    .prototype-media-button img,
    .prototype-results-search button,
    .prototype-primary-action,
    .prototype-disclosure svg {
        transition: none;
    }
}
