:root {
    --paper: #f3f0e7;
    --paper-deep: #e8e2d5;
    --surface: #fffdf8;
    --surface-soft: #f8f5ed;
    --ink: #19332f;
    --ink-soft: #526662;
    --line: rgba(25, 51, 47, 0.14);
    --line-strong: rgba(25, 51, 47, 0.24);
    --accent: #e96d3f;
    --accent-dark: #c94f27;
    --accent-soft: #fde1d5;
    --green: #204c45;
    --green-soft: #dce9df;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(31, 54, 49, 0.08);
    --shadow-lg: 0 28px 80px rgba(31, 54, 49, 0.14);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #f7f4ec 0%, var(--paper) 44%, #ede8dc 100%);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    content: "";
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(25, 51, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 51, 47, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.page-glow {
    position: fixed;
    z-index: -2;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.page-glow--one {
    top: -220px;
    right: -100px;
    background: radial-gradient(circle, rgba(233, 109, 63, 0.22), rgba(233, 109, 63, 0));
}

.page-glow--two {
    top: 430px;
    left: -280px;
    background: radial-gradient(circle, rgba(67, 131, 118, 0.17), rgba(67, 131, 118, 0));
}

.site-shell {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    min-height: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.topbar__intro {
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    align-items: end;
    gap: 3px;
    width: 32px;
    height: 32px;
    padding: 7px;
    color: var(--surface);
    border-radius: 10px;
    background: var(--green);
    box-shadow: 0 8px 18px rgba(32, 76, 69, 0.2);
}

.brand__mark span {
    display: block;
    width: 5px;
    border-radius: 4px;
    background: currentColor;
}

.brand__mark span:nth-child(1) {
    height: 8px;
}

.brand__mark span:nth-child(2) {
    height: 16px;
    color: #f3a17f;
}

.brand__mark span:nth-child(3) {
    height: 12px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__text strong {
    font-size: 15px;
    letter-spacing: 0.16em;
}

.brand__text small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.catalog-state {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 9px;
    padding: 9px 13px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.58);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.catalog-state__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c69136;
    box-shadow: 0 0 0 4px rgba(198, 145, 54, 0.12);
}

.catalog-state--ready .catalog-state__dot {
    background: #3d9873;
    box-shadow: 0 0 0 4px rgba(61, 152, 115, 0.12);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(38px, 7vw, 94px);
    align-items: start;
    min-height: 0;
    padding: 42px 0 58px;
}

.hero__content {
    position: relative;
    z-index: 4;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: currentColor;
}

.topbar__eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
}

.topbar__intro h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(28px, 3.1vw, 42px);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.topbar__intro h1 span {
    position: relative;
    display: inline-block;
    color: var(--accent);
}

.topbar__intro h1 span::after {
    position: absolute;
    right: 1px;
    bottom: -5px;
    left: 3px;
    height: 7px;
    content: "";
    border-radius: 50%;
    border-top: 2px solid rgba(233, 109, 63, 0.38);
    transform: rotate(-1deg);
}

.topbar__lead {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.search {
    position: relative;
    z-index: 12;
    width: min(100%, 680px);
}

.search__label {
    display: block;
    margin: 0 0 9px 2px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
}

.search__control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 68px;
    border: 1px solid var(--line-strong);
    border-radius: 19px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 16px 42px rgba(31, 54, 49, 0.12);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search__control:focus-within {
    border-color: rgba(233, 109, 63, 0.72);
    box-shadow: 0 0 0 4px rgba(233, 109, 63, 0.1), 0 22px 48px rgba(31, 54, 49, 0.14);
    transform: translateY(-1px);
}

.search__icon {
    position: absolute;
    left: 21px;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: var(--ink-soft);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.search__input {
    width: 100%;
    min-width: 0;
    height: 66px;
    padding: 0 94px 0 59px;
    color: var(--ink);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 17px;
    font-weight: 560;
    appearance: none;
}

.search__input::-webkit-search-cancel-button {
    display: none;
}

.search__input::placeholder {
    color: #8b9995;
    font-weight: 450;
    opacity: 1;
}

.search__clear {
    position: absolute;
    right: 15px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--ink-soft);
    border: 0;
    border-radius: 50%;
    background: var(--paper-deep);
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.search__clear:hover {
    color: var(--ink);
    background: var(--accent-soft);
    transform: rotate(3deg);
}

.search__clear:focus-visible {
    outline: 3px solid rgba(233, 109, 63, 0.3);
    outline-offset: 2px;
}

.search__clear svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.search__spinner {
    position: absolute;
    right: 64px;
    display: none;
    width: 19px;
    height: 19px;
    border: 2px solid rgba(32, 76, 69, 0.16);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.search--loading .search__spinner {
    display: block;
}

.search__dropdown {
    position: absolute;
    top: calc(100% - 19px);
    right: 0;
    left: 0;
    z-index: 20;
    max-height: 430px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(255, 253, 248, 0.985);
    box-shadow: var(--shadow-lg);
    scrollbar-color: rgba(32, 76, 69, 0.28) transparent;
    scrollbar-width: thin;
}

.search__results {
    padding: 0;
    margin: 0;
    list-style: none;
}

.search-option {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 68px;
    padding: 9px 12px;
    border-radius: 13px;
    cursor: pointer;
    outline: none;
    transition: background 120ms ease, transform 120ms ease;
}

.search-option + .search-option {
    margin-top: 2px;
}

.search-option:hover,
.search-option--active {
    background: #f0ece1;
}

.search-option--active {
    transform: translateX(2px);
}

.search-option__thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    color: var(--green);
    border: 1px solid rgba(32, 76, 69, 0.1);
    border-radius: 12px;
    background: var(--green-soft);
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-option__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-option__body {
    min-width: 0;
}

.search-option__name,
.search-option__meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-option__name {
    color: var(--ink);
    font-size: 14px;
    font-weight: 720;
    line-height: 1.35;
}

.search-option__meta {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 12px;
}

.search-option__price {
    padding-left: 8px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.search__message {
    padding: 24px 18px;
    color: var(--ink-soft);
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.search__hint {
    margin: 10px 0 0 2px;
    color: #778783;
    font-size: 12px;
}

.summary {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 27px;
    color: #f8f6ef;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 5%, rgba(237, 127, 79, 0.35), transparent 36%),
        linear-gradient(145deg, #254f48, #173934);
    box-shadow: 0 28px 70px rgba(22, 57, 51, 0.24);
    transform: rotate(1.1deg);
}

.summary::after {
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 210px;
    height: 210px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.025), 0 0 0 52px rgba(255, 255, 255, 0.018);
}

.summary__intro {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.summary__kicker {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.summary__intro svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: #f5a080;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.summary__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 20px;
}

.stat {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(5px);
}

.stat--wide {
    grid-column: 1 / -1;
}

.stat strong,
.stat span {
    display: block;
}

.stat strong {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 720;
    line-height: 1;
    letter-spacing: -0.045em;
}

.stat span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.summary__note {
    position: relative;
    z-index: 1;
    margin: 20px 3px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.55;
}

.product-stage {
    position: relative;
    z-index: 1;
    margin: 0 0 34px;
    padding: clamp(25px, 4vw, 46px);
    border: 1px solid rgba(25, 51, 47, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 248, 0.76);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.section-heading {
    display: flex;
    align-items: end;
    gap: 22px;
    margin-bottom: 26px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section-heading__line {
    flex: 1;
    height: 1px;
    margin-bottom: 6px;
    background: var(--line);
}

.empty-state {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 180px;
    padding: 28px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    background: rgba(243, 240, 231, 0.66);
}

.empty-state__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 74px;
    height: 74px;
    color: #7c918c;
    border-radius: 23px;
    background: var(--green-soft);
}

.empty-state__icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state h3 {
    margin: 0;
    font-size: 19px;
}

.empty-state p {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.product-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.5fr);
    gap: clamp(28px, 5vw, 62px);
    align-items: stretch;
    animation: card-in 280ms ease both;
}

.product-card__visual {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(32, 76, 69, 0.04), rgba(233, 109, 63, 0.06)),
        var(--surface-soft);
}

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #72837f;
}

.photo-placeholder::before,
.photo-placeholder::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(32, 76, 69, 0.07);
    border-radius: 50%;
}

.photo-placeholder::before {
    width: 240px;
    height: 240px;
}

.photo-placeholder::after {
    width: 180px;
    height: 180px;
}

.photo-placeholder svg {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    fill: none;
    stroke: #82948f;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-placeholder span {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.product-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    background: var(--surface);
}

.product-card__content {
    min-width: 0;
    padding: 4px 0;
}

.product-card__topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.product-card__id {
    color: #85938f;
    letter-spacing: 0.07em;
}

.product-card__title {
    margin: 14px 0 25px;
    font-size: clamp(27px, 3.4vw, 45px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.product-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.product-data__row {
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(248, 245, 237, 0.75);
}

.product-data__row--full {
    grid-column: 1 / -1;
}

.product-data__row--accent {
    border-color: rgba(233, 109, 63, 0.22);
    background: var(--accent-soft);
}

.product-data dt,
.product-data dd {
    margin: 0;
}

.product-data dt {
    margin-bottom: 6px;
    color: #71817d;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.product-data dd {
    color: var(--ink);
    font-size: 14px;
    font-weight: 680;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.product-data__row--accent dd {
    color: var(--accent-dark);
    font-size: 18px;
    font-weight: 820;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 96px;
    color: #70807c;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.footer p {
    margin: 0;
}

.footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.footer a span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: transform 140ms ease, background 140ms ease;
}

.footer a:hover span {
    background: var(--accent-soft);
    transform: translateY(-2px);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .site-shell {
        width: min(100% - 34px, 760px);
    }

    .topbar {
        grid-template-columns: 1fr auto;
        gap: 18px 24px;
        padding: 20px 0 24px;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .topbar__intro {
        grid-column: 1 / -1;
        grid-row: 2;
        width: min(100%, 720px);
        justify-self: center;
    }

    .catalog-state {
        grid-column: 2;
        grid-row: 1;
    }

    .topbar__intro h1 {
        font-size: clamp(32px, 5.5vw, 42px);
    }

    .topbar__lead {
        max-width: 650px;
        font-size: 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: 0;
        padding: 40px 0 56px;
    }

    .search {
        width: 100%;
    }

    .summary {
        width: min(100%, 620px);
        transform: none;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .product-card__visual {
        min-height: 390px;
    }
}

@media (max-width: 600px) {
    .site-shell {
        width: min(100% - 24px, 560px);
    }

    .topbar {
        gap: 16px 14px;
        min-height: 0;
        padding: 16px 0 20px;
    }

    .catalog-state {
        padding: 8px 10px;
        font-size: 11px;
    }

    .catalog-state span:last-child {
        max-width: 105px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero {
        gap: 30px;
        padding: 32px 0 44px;
    }

    .topbar__eyebrow {
        margin-bottom: 10px;
    }

    .topbar__intro h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .topbar__lead {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.5;
    }

    .search__control {
        min-height: 62px;
        border-radius: 17px;
    }

    .search__input {
        height: 60px;
        padding-right: 84px;
        padding-left: 54px;
        font-size: 15px;
    }

    .search__icon {
        left: 19px;
        width: 21px;
        height: 21px;
    }

    .search__clear {
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .search__spinner {
        right: 56px;
    }

    .search__dropdown {
        max-height: 360px;
        padding: 7px;
    }

    .search-option {
        grid-template-columns: 42px minmax(0, 1fr);
        min-height: 61px;
        padding: 8px;
    }

    .search-option__thumb {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .search-option__price {
        grid-column: 2;
        padding: 0;
        margin-top: -6px;
        font-size: 12px;
    }

    .summary {
        padding: 22px;
        border-radius: 27px;
    }

    .stat {
        padding: 14px;
    }

    .product-stage {
        padding: 22px 16px 16px;
        border-radius: 27px;
    }

    .section-heading {
        margin: 0 4px 22px;
    }

    .section-heading__line {
        display: none;
    }

    .empty-state {
        align-items: flex-start;
        min-height: 0;
        padding: 20px;
    }

    .empty-state__icon {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    .empty-state__icon svg {
        width: 31px;
        height: 31px;
    }

    .product-card {
        gap: 26px;
    }

    .product-card__visual {
        min-height: 280px;
        border-radius: 21px;
    }

    .product-card__content {
        padding: 0 4px 4px;
    }

    .product-data {
        grid-template-columns: 1fr;
    }

    .product-data__row,
    .product-data__row--full {
        grid-column: 1;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 26px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
