:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #eef1f4;
    --text: #161b22;
    --muted: #5d6875;
    --line: #d9dee5;
    --accent: #e64522;
    --accent-2: #ff7a1a;
    --ok: #157347;
    --warn: #b15f00;
    --bad: #8b1e1e;
    --shadow: 0 14px 34px rgba(31, 36, 43, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, select, textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.topline,
.site-search,
.site-footer,
.page,
.section,
.hero,
.narrow-page {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.topline {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 14px;
}

.main-nav {
    display: flex;
    gap: 16px;
    justify-content: center;
    color: var(--muted);
    white-space: nowrap;
}

.main-nav a:hover,
.section-head a:hover,
.footer-nav a:hover,
.footer-contacts a:hover { color: var(--accent); }

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.account-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
}

.logout-form {
    margin: 0;
}

.logout-form button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 9px 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
}

.account-link:hover,
.logout-form button:hover {
    color: var(--accent);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    background: var(--surface);
}

.cart-link strong {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-size: 13px;
}

.site-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 0 0 14px;
}

.site-search input,
.filters-panel input,
.filters-panel select,
.buy-box input,
.quick-order input,
.quick-order textarea,
.checkout-form input,
.checkout-form textarea,
.delivery-form input,
.delivery-form textarea,
.auth-form input,
.account-form input,
.listing-toolbar select,
.cart-row input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
}

.site-search input { min-height: 44px; }

.search-field {
    position: relative;
    min-width: 0;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 40;
    max-height: min(520px, 68vh);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(31, 36, 43, .18);
}

.search-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 8px;
    border-bottom: 1px solid #edf0f3;
}

.search-suggestion:hover,
.search-suggestion.is-active {
    background: #f7f8fa;
}

.suggestion-link {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.suggestion-link img {
    width: 52px;
    height: 52px;
    border: 1px solid #edf0f3;
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
}

.suggestion-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.suggestion-copy strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-copy > small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-offer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
}

.suggestion-offer b {
    font-size: 13px;
}

.suggestion-offer small {
    color: var(--ok);
    font-size: 11px;
    font-weight: 700;
}

.site-search .suggestion-cart {
    min-height: 36px;
    border: 1px solid #f1c9bd;
    padding: 7px 10px;
    color: #a93218;
    background: #fff4f0;
    font-size: 12px;
}

.site-search .suggestion-cart:hover {
    border-color: var(--accent);
    filter: none;
}

.search-all-results {
    display: block;
    padding: 10px 12px;
    color: var(--accent);
    background: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.search-all-results:hover {
    background: #fff7f4;
}

.button,
.site-search button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.button-primary,
.site-search button {
    color: #fff;
    background: var(--accent);
}

.button-light {
    color: var(--text);
    background: var(--surface-2);
}

.button:hover,
.site-search button:hover { filter: brightness(.97); }

.button:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.flash {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 700;
}

.flash-success { background: #e8f5ed; color: var(--ok); }
.flash-error { background: #fdeceb; color: var(--bad); }

.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 32px;
    align-items: center;
    padding: 42px 0 28px;
}

.hero-copy h1,
.page-title h1,
.catalog-heading h1,
.narrow-page h1 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0;
    font-weight: 800;
}

.hero-copy h1 { font-size: clamp(34px, 7vw, 62px); max-width: 820px; }
.hero-copy p { max-width: 700px; color: var(--muted); }

.hero-copy,
.section-head-wide > div,
.home-category-grid,
.category-grid-catalog,
.category-card-icon {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-panel {
    min-height: 390px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(230, 69, 34, .12), rgba(255, 122, 26, .05)),
        #fff;
    box-shadow: var(--shadow);
}

.part-orbit {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 14px;
    width: min(360px, 85%);
}

.part-orbit span {
    min-height: 92px;
    display: grid;
    place-items: center;
    border: 1px dashed #c7cdd4;
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    font-weight: 900;
    font-size: 24px;
}

.section,
.page,
.narrow-page {
    padding: 26px 0;
}

.section-head,
.catalog-heading,
.page-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.section-head h2,
.detail-section h2,
.detail-columns h2,
.quick-order h2,
.order-summary h2 {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.18;
    font-weight: 800;
}

.section-head a { color: var(--muted); font-weight: 700; }

.category-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.category-tile,
.category-card,
.product-card,
.filters-panel,
.empty-state,
.order-summary,
.checkout-form,
.quick-order,
.detail-section,
.detail-columns > div,
.cart-table {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(31, 36, 43, .04);
}

.category-tile {
    min-height: 92px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.category-tile span,
.category-card strong,
.product-title {
    font-weight: 750;
}

.category-tile small,
.category-card small,
.product-meta,
.stock,
.breadcrumbs,
.footer-contact,
.quick-order small {
    color: var(--muted);
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    min-height: 190px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
}

.category-card p { margin: 0; color: var(--muted); }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.catalog-heading {
    align-items: start;
}

.catalog-heading p,
.page-title p {
    max-width: 720px;
    color: var(--muted);
}

.filter-open {
    display: none;
    margin-bottom: 14px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.filters-panel {
    position: sticky;
    top: 128px;
    padding: 16px;
}

.filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.filters-head button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.filters-panel form,
.checkout-form,
.quick-order,
.buy-box {
    display: grid;
    gap: 12px;
}

.filters-panel label span,
.checkout-form label span,
.quick-order label span,
.buy-box label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 360 / 260;
    background: #f0f2f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badges b {
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff;
    color: var(--accent);
    font-size: 12px;
}

.product-card-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.product-title {
    min-height: 48px;
    line-height: 1.28;
    font-size: 15.5px;
    color: #121820;
    overflow-wrap: anywhere;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.3;
}

.product-price,
.detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-price strong,
.detail-price strong {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
}

del { color: var(--muted); }

.stock-in_stock { color: var(--ok); }
.stock-preorder { color: var(--warn); }
.stock-out_of_stock { color: var(--bad); }

.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.pagination a.active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

.empty-state,
.narrow-page {
    padding: 28px;
}

.empty-state h2,
.narrow-page h1 {
    margin-top: 0;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 22px;
    align-items: start;
}

.detail-media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f0f2f5;
}

.detail-media img {
    width: 100%;
    aspect-ratio: 720 / 520;
    object-fit: contain;
}

.product-gallery {
    min-width: 0;
}

.product-thumbnails {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    margin-top: 10px;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
}

.product-thumbnail {
    flex: 0 0 92px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 3px;
    background: #fff;
}

.product-thumbnail.is-active {
    border-color: var(--accent);
}

.product-thumbnail img {
    width: 84px;
    height: 64px;
    border-radius: 5px;
    object-fit: contain;
    background: #f0f2f5;
}

.detail-info {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(31, 36, 43, .04);
}

.detail-info h1 {
    margin: 0;
    line-height: 1.15;
    font-size: 34px;
}

.detail-short-description {
    margin: 0;
    color: #37414d;
}

.buy-box {
    grid-template-columns: 120px 1fr;
    align-items: end;
}

.quick-order {
    padding: 16px;
}

.detail-section,
.detail-columns {
    margin-top: 20px;
}

.detail-section {
    padding: 20px;
}

.detail-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 18px;
}

.detail-columns-single {
    grid-template-columns: minmax(0, 1fr);
}

.detail-columns > div {
    padding: 20px;
}

.spec-list {
    display: grid;
    grid-template-columns: minmax(130px, .45fr) 1fr;
    gap: 8px 14px;
}

.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; }

.spec-subsection {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.spec-subsection h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.2;
}

.product-warranty-note {
    margin: 16px 0 0;
    border: 1px solid #d7e7dc;
    border-radius: 8px;
    padding: 10px 12px;
    color: #0c5a33;
    background: #edf8f2;
    font-weight: 800;
}

.compat-list p {
    display: grid;
    gap: 2px;
    margin: 0 0 10px;
}

.cart-table {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.cart-account-note {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    color: var(--muted);
}

.cart-account-note a {
    color: var(--accent);
    font-weight: 800;
}

.cart-row {
    display: grid;
    grid-template-columns: 90px 1fr 120px 96px 120px auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

.cart-row img {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f2f5;
}

.cart-row a {
    display: block;
    font-weight: 800;
}

.cart-row small {
    color: var(--muted);
}

.text-button {
    background: transparent;
    color: var(--bad);
    padding-inline: 0;
}

.cart-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.cart-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-totals {
    display: grid;
    gap: 12px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.checkout-layout > * {
    min-width: 0;
}

.checkout-form,
.order-summary {
    padding: 20px;
}

.order-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.vat-summary {
    display: grid;
    gap: 0;
    width: 100%;
}

.order-summary .vat-summary {
    display: grid;
}

.vat-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.vat-summary-total {
    font-size: 20px;
}

.vat-summary > small {
    padding-top: 8px;
    color: var(--muted);
}

.success-order-summary {
    max-width: 420px;
    margin: 22px 0;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.delivery-product-button {
    width: 100%;
}

.delivery-selected-summary {
    display: grid;
    gap: 10px;
    border: 1px solid #d6e2ef;
    border-radius: 8px;
    padding: 12px;
    background: #f7fbff;
}

.delivery-selected-summary > div {
    display: grid;
    gap: 2px;
}

.delivery-selected-summary span,
.delivery-selected-summary small {
    color: var(--muted);
    font-size: 12px;
}

.delivery-selected-summary strong {
    line-height: 1.25;
}

.delivery-selected-summary .button {
    width: fit-content;
}

.delivery-selected-summary.is-empty {
    border-color: var(--line);
    background: #fafbfc;
}

.delivery-modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

.delivery-modal[hidden] {
    display: none;
}

.delivery-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
}

.delivery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 27, 34, .48);
}

.delivery-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(20, 27, 35, .28);
}

.delivery-dialog-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 18px;
    background: #fff;
}

.delivery-dialog-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.16;
}

.delivery-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 28px;
    line-height: 1;
}

.delivery-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.delivery-form label {
    display: grid;
    gap: 6px;
}

.delivery-form label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.delivery-form label span small {
    font-size: 11px;
    font-weight: 600;
}

.delivery-span-2 {
    grid-column: 1 / -1;
}

.delivery-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.delivery-steps li {
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    border-radius: 8px;
    padding: 7px 9px;
    color: #7b858e;
    background: #f3f5f7;
    font-size: 12px;
    font-weight: 800;
}

.delivery-step-number {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #dfe4e8;
}

.delivery-step-label {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    flex-shrink: 1;
}

.delivery-steps li.is-active {
    color: #174d38;
    background: #eaf8f0;
}

.delivery-steps li.is-active .delivery-step-number,
.delivery-steps li.is-complete .delivery-step-number {
    color: #fff;
    background: #16855b;
}

.delivery-city-field {
    position: relative;
    min-width: 0;
}

.delivery-city-field label > small {
    color: var(--muted);
    line-height: 1.35;
}

.delivery-city-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    z-index: 5;
    display: grid;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 12px 30px rgb(20 27 35 / 14%);
}

.delivery-city-suggestions[hidden] {
    display: none;
}

.delivery-calculate-button[hidden] {
    display: none;
}

.delivery-city-suggestions button {
    border: 0;
    border-radius: 6px;
    padding: 10px 11px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.delivery-city-suggestions button:hover,
.delivery-city-suggestions button:focus-visible {
    background: #f1fbf5;
}

.delivery-provider-chooser,
.delivery-provider-list {
    display: grid;
    gap: 10px;
}

.delivery-provider-chooser[hidden],
.delivery-selected-provider[hidden] {
    display: none;
}

.delivery-provider-chooser h3,
.delivery-point-picker h3 {
    margin: 2px 0 0;
    font-size: 16px;
}

.delivery-provider-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: center;
    border: 1px solid #b8ddc8;
    border-radius: 10px;
    padding: 13px;
    background: #f7fcf9;
}

.delivery-provider-card > div:first-child {
    display: grid;
    gap: 3px;
}

.delivery-provider-card h4 {
    margin: 0;
    font-size: 18px;
}

.delivery-provider-card span {
    color: var(--muted);
    font-size: 13px;
}

.delivery-provider-badges {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.delivery-provider-badges small {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 8px;
    color: #0d6b43;
    background: #e3f4ea;
    font-size: 11px;
    font-weight: 800;
}

.delivery-provider-card > .button {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.delivery-selected-provider {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid #d4e2ec;
    border-radius: 8px;
    padding: 9px 11px;
    background: #f6f9fb;
}

.delivery-selected-provider p {
    margin: 0;
}

.delivery-method-chooser {
    display: grid;
    gap: 8px;
}

.delivery-method-chooser[hidden] {
    display: none;
}

.delivery-method-chooser h3 {
    margin: 2px 0 0;
    font-size: 16px;
}

.delivery-method-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.delivery-method-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    white-space: normal;
    cursor: pointer;
}

.delivery-method-tabs button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.delivery-method-tabs button:hover,
.delivery-method-tabs button.is-active {
    border-color: #16855b;
    color: #0d6b43;
    background: #f1fbf5;
    box-shadow: 0 0 0 2px rgb(22 133 91 / 10%);
}

.delivery-method-help {
    color: #3d5365;
    font-size: 13px;
}

.delivery-method-help[hidden] {
    display: none;
}

.delivery-method-help summary,
.delivery-info summary,
.delivery-other-methods > summary {
    width: fit-content;
    cursor: pointer;
    color: #245f88;
    font-weight: 800;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.delivery-method-help p,
.delivery-info p {
    margin: 7px 0 0;
    border: 1px solid #d9e4ed;
    border-radius: 8px;
    padding: 9px 11px;
    background: #f7fafc;
}

.delivery-courier-fields {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 100px minmax(130px, 1fr) minmax(130px, 1fr);
    gap: 12px;
}

.delivery-courier-comment {
    grid-column: 1 / -1;
}

.delivery-courier-fields[hidden] {
    display: none;
}

.delivery-point-picker[hidden] {
    display: none;
}

.delivery-point-picker {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.delivery-selected-point {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #b8ddc8;
    border-radius: 8px;
    padding: 11px 12px;
    background: #f1fbf5;
}

.delivery-selected-point[hidden],
[data-delivery-point-browser][hidden] {
    display: none;
}

.delivery-selected-point > div,
[data-delivery-point-browser] {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.delivery-selected-point span,
.delivery-selected-point small {
    color: #52616c;
}

.delivery-selected-point .button {
    width: fit-content;
}

.delivery-point-status {
    color: #67717a;
    font-size: 13px;
}

.delivery-point-list {
    display: grid;
    gap: 8px;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px;
}

.delivery-point-option {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start !important;
    gap: 10px !important;
    padding: 11px 12px;
    border: 1px solid #dce2e7;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.delivery-point-option:has(input:checked) {
    border-color: #16855b;
    box-shadow: 0 0 0 2px rgb(22 133 91 / 12%);
}

.delivery-point-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.delivery-point-option > span {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: #2f363c;
    font-weight: 400;
}

.delivery-point-option small {
    color: #68737c;
}

.delivery-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
    margin: 0 18px 14px;
    border: 1px solid #cfdde9;
    border-radius: 8px;
    padding: 10px 12px;
    color: #354757;
    background: #f3f8fc;
    font-weight: 750;
}

.delivery-status[hidden] {
    display: none;
}

.delivery-retry-button {
    flex: 0 0 auto;
}

.delivery-status.is-error {
    border-color: #e9bebe;
    color: var(--bad);
    background: #fff1f1;
}

.delivery-results {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}

.delivery-results h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.delivery-empty-result,
.delivery-main-card,
.delivery-other-methods {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.delivery-main-card {
    display: grid;
    gap: 8px;
    border-color: #b8ddc8;
    background: #f1fbf5;
}

.delivery-main-price {
    color: #163f2e;
    font-size: 26px;
    line-height: 1;
}

.delivery-main-term {
    margin: 0;
    color: var(--muted);
}

.delivery-main-point {
    display: grid;
    gap: 2px;
    margin: 3px 0;
    border-left: 3px solid #16855b;
    padding: 7px 10px;
    background: #fff;
}

.delivery-main-point span {
    color: var(--muted);
    font-size: 12px;
}

.delivery-primary-action {
    width: fit-content;
}

.delivery-info {
    color: #3d5365;
    font-size: 13px;
}

.delivery-other-methods {
    background: #fafbfc;
}

.delivery-other-method-list {
    display: grid;
    gap: 6px;
    margin-top: 9px;
}

.delivery-other-method-list button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 0;
    border-radius: 7px;
    padding: 9px 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.delivery-other-method-list button:hover {
    background: #f1fbf5;
}

.delivery-other-method-list strong {
    flex: 0 0 auto;
}

.delivery-empty-result {
    display: grid;
    gap: 8px;
    border-color: #f0d8a8;
    background: #fff9eb;
}

.delivery-empty-result p {
    margin: 0;
}

.auth-page {
    max-width: 520px;
}

.auth-page > p,
.auth-switch,
.muted {
    color: var(--muted);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 800;
}

.auth-form,
.account-form {
    display: grid;
    gap: 12px;
}

.auth-form label span,
.account-form label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.auth-form label .required-mark,
.account-form label .required-mark,
.checkout-form label .required-mark,
.quick-order label .required-mark,
.required-note .required-mark {
    display: inline;
    margin: 0 0 0 3px;
    color: #e53935;
    font-weight: 800;
    white-space: nowrap;
}

.required-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.required-note .required-mark {
    margin-left: 0;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.account-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 20px;
    box-shadow: 0 8px 22px rgba(31, 36, 43, .04);
}

.account-panel h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.18;
}

.account-panel p {
    margin: 0;
}

.account-wide {
    margin-top: 18px;
}

.account-table {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.account-row:last-child {
    border-bottom: 0;
}

.account-row span:first-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.account-row small {
    color: var(--muted);
}

.account-row:hover {
    background: #fafbfc;
}

.seo-text {
    margin-top: 26px;
    color: var(--muted);
}

.site-footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.35fr) minmax(280px, .9fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    margin-top: 22px;
    min-height: 196px;
    border: 1px solid rgba(196, 202, 209, .9);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #f5f6f7;
    box-shadow: 0 -8px 28px rgba(31, 36, 43, .05);
}

.site-footer p {
    margin: 5px 0 0;
}

.footer-brand,
.footer-side {
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: grid;
    align-content: center;
    padding: 24px 10px 24px 24px;
}

.footer-brand-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    font-size: 15px;
    font-weight: 900;
}

.footer-brand strong {
    font-size: 18px;
}

.footer-brand p {
    max-width: 280px;
    margin-top: 12px;
    color: #46515e;
    font-size: 14px;
    line-height: 1.45;
}

.footer-art {
    position: relative;
    height: 194px;
    min-width: 0;
    overflow: hidden;
}

.footer-art::before,
.footer-art::after {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 54px;
    content: "";
    pointer-events: none;
}

.footer-art::before {
    left: 0;
    background: linear-gradient(90deg, #f5f6f7, rgba(245, 246, 247, 0));
}

.footer-art::after {
    right: 0;
    background: linear-gradient(270deg, #f5f6f7, rgba(245, 246, 247, 0));
}

.footer-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 76%;
}

.footer-side {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 12px;
    padding: 22px 24px 22px 10px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    gap: 7px 20px;
    color: #37414d;
    font-size: 14px;
    font-weight: 750;
}

.footer-legal-nav {
    display: flex;
    max-width: 360px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 12px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.3;
}

.footer-legal-nav a:hover {
    color: var(--accent);
}

.footer-cookie-button {
    border: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-order {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 8px 14px;
    color: #fff;
    background: var(--accent);
    font-size: 13.5px;
    font-weight: 800;
}

.footer-order:hover {
    background: var(--accent-dark);
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 14px;
    color: var(--muted);
    font-size: 13px;
}

.footer-note {
    color: var(--muted);
    font-size: 13px;
}

.legal-page {
    max-width: 900px;
    padding-block: 34px 48px;
}

.error-page {
    padding-block: 70px;
}

.error-details {
    margin-top: 24px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    color: var(--bad);
    white-space: pre-wrap;
}

.legal-page-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.legal-page-header h1 {
    max-width: 780px;
    margin: 3px 0 8px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}

.legal-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.legal-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    color: #3d4753;
    font-size: 13px;
    font-weight: 700;
}

.legal-nav a:hover,
.legal-page section a {
    color: var(--accent);
}

.legal-page section {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.legal-page section:last-child {
    border-bottom: 0;
}

.legal-page section h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.legal-page section h3 {
    margin: 18px 0 5px;
    font-size: 17px;
}

.legal-page section p {
    margin: 8px 0;
    color: #37414d;
}

.legal-page section a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-product-preview-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
    margin-bottom: 14px;
    border: 1px solid #f0c6a2;
    border-radius: 8px;
    padding: 10px 12px;
    color: #6c3a0c;
    background: #fff7ec;
}

.admin-product-preview-banner strong {
    display: block;
    font-size: 14px;
}

.admin-product-preview-banner span {
    color: #81521f;
    font-size: 12.5px;
}

.admin-product-preview-banner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-product-preview-banner .button {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 13px;
}

.product-description {
    white-space: normal;
}

.return-policy-intro strong {
    color: var(--accent);
}

.return-request-form {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.return-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.return-form-grid label,
.return-consent {
    display: grid;
    gap: 6px;
}

.return-form-grid label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.return-form-grid b {
    color: var(--bad);
}

.return-form-grid input,
.return-form-grid select,
.return-form-grid textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
}

.return-form-grid small {
    color: var(--muted);
    font-size: 12px;
}

.return-span-2 {
    grid-column: 1 / -1;
}

.return-consent {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    color: #37414d;
    font-size: 13px;
}

.return-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.return-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.legal-requisites {
    display: grid;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.legal-requisites div {
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
    gap: 18px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.legal-requisites div:last-child {
    border-bottom: 0;
}

.legal-requisites dt {
    color: var(--muted);
    font-weight: 700;
}

.legal-requisites dd {
    margin: 0;
}

.legal-consents {
    display: grid;
    gap: 9px;
    margin: 2px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    background: #fafbfc;
}

.legal-consents legend {
    padding: 0 5px;
    font-size: 13px;
    font-weight: 800;
}

.legal-consents .legal-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: #37414d;
    cursor: pointer;
}

.legal-consents .legal-consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

.legal-consents .legal-consent > span {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.42;
}

.legal-consent a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-consent-optional {
    opacity: .85;
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    width: min(560px, calc(100% - 36px));
    border: 1px solid #cbd2da;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(20, 27, 35, .2);
}

.cookie-banner-copy strong {
    font-size: 18px;
}

.cookie-banner-copy p {
    margin: 6px 0 14px;
    color: var(--muted);
    font-size: 13.5px;
}

.cookie-banner-copy a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cookie-text-button {
    border: 0;
    padding: 8px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.cookie-settings {
    display: grid;
    gap: 10px;
}

.cookie-settings[hidden],
.cookie-actions[hidden] {
    display: none !important;
}

.cookie-settings label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.cookie-settings input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.cookie-settings span {
    display: grid;
}

.cookie-settings small {
    color: var(--muted);
}

.site-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    max-width: min(360px, calc(100% - 36px));
    border: 1px solid #b9dfcb;
    border-radius: 8px;
    padding: 11px 14px;
    color: #0c5a33;
    background: #edf9f2;
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 750;
}

.site-toast.is-error {
    border-color: #ebc0c0;
    color: var(--bad);
    background: #fff1f1;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 14px 34px rgba(31, 36, 43, .18);
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    opacity: .94;
    transition: transform .16s ease, opacity .16s ease, filter .16s ease;
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover {
    filter: brightness(.98);
    opacity: 1;
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(230, 69, 34, .32);
    outline-offset: 3px;
}

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

    .back-to-top {
        transition: none;
    }
}

@media (max-width: 980px) {
    .topline {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero,
    .product-detail,
    .checkout-layout,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cart-summary > .button {
        justify-self: start;
    }

    .hero-panel {
        min-height: 260px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filter-open {
        display: inline-flex;
    }

    .filters-panel {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 40;
        width: min(380px, 92vw);
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform .18s ease;
        border-radius: 0;
        box-shadow: -16px 0 40px rgba(31, 36, 43, .16);
    }

    .filters-panel.is-open {
        transform: translateX(0);
    }

    .filters-head button {
        display: block;
    }

    .cart-row {
        grid-template-columns: 74px 1fr 82px;
    }

    .cart-row strong,
    .cart-row input,
    .cart-row .text-button {
        grid-column: 2 / -1;
    }

    .detail-columns {
        grid-template-columns: 1fr;
    }

    .product-thumbnails {
        max-width: 100%;
    }

    .account-row {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
    }

    .footer-art {
        height: 170px;
    }

    .footer-side {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        justify-items: start;
        padding: 14px 20px;
        border-top: 1px solid rgba(196, 202, 209, .75);
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .footer-legal-nav {
        justify-content: flex-start;
    }

    .footer-order {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .footer-contacts {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .topline {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-block: 10px;
    }

    .brand {
        grid-row: 1;
        min-width: 0;
    }

    .header-actions {
        grid-row: 2;
        justify-content: flex-start;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .header-actions > * {
        flex: 0 0 auto;
    }

    .main-nav {
        grid-row: 3;
        grid-column: 1;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .main-nav a[href="/cart"] {
        display: none;
    }

    .topline,
    .site-search,
    .section-head,
    .catalog-heading,
    .page-title,
    .buy-box,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .topline,
    .section-head,
    .catalog-heading,
    .page-title,
    .site-footer {
        display: grid;
        align-items: start;
    }

    .site-search {
        display: grid;
    }

    .site-search input,
    .site-search button {
        width: 100%;
        min-height: 44px;
    }

    .search-label {
        min-width: 0;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .cart-link {
        justify-self: start;
    }

    .header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero {
        min-height: auto;
        padding-top: 26px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .listing-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-info h1 {
        font-size: 28px;
    }

    .detail-info {
        padding: 14px;
    }

    .detail-media img {
        max-height: 62vh;
    }

    .spec-list {
        grid-template-columns: 1fr;
        gap: 3px 0;
    }

    .spec-list dd {
        margin-bottom: 8px;
    }

    .product-thumbnail {
        flex-basis: 82px;
    }

    .product-thumbnail img {
        width: 74px;
        height: 58px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }

    .footer-side {
        grid-column: auto;
        grid-template-columns: 1fr;
        justify-items: stretch;
        padding: 17px 18px 20px;
    }

    .footer-nav,
    .footer-contacts {
        justify-content: flex-start;
    }

    .footer-order {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Homepage/catalog design refresh */
.site-header {
    position: relative;
    top: auto;
    z-index: 10;
    background: #fff;
    box-shadow: 0 2px 18px rgba(31, 36, 43, .05);
}

.site-search {
    align-items: end;
}

.search-label {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.site-search {
    padding-bottom: 12px;
}

.hero-shop {
    min-height: 168px;
    grid-template-columns: minmax(0, 630px);
    align-items: center;
    gap: 0;
    overflow: hidden;
    margin-top: 12px;
    border-radius: 8px;
    padding: 16px 24px;
    background-color: #f8fafc;
    background-image:
        linear-gradient(90deg,
            rgba(248, 250, 252, .98) 0%,
            rgba(248, 250, 252, .94) 34%,
            rgba(248, 250, 252, .60) 62%,
            rgba(248, 250, 252, .18) 100%
        ),
        url('/assets/img/hero/hero-desktop-top.webp');
    background-position: center right;
    background-size: cover;
    box-shadow: 0 10px 28px rgba(31, 36, 43, .06);
}

.hero-shop .hero-copy h1 {
    max-width: 610px;
    font-size: clamp(22px, 2.35vw, 29px);
}

.hero-shop .hero-copy p {
    max-width: 470px;
    margin: 8px 0 0;
    color: #3f4853;
    font-size: 14.5px;
    line-height: 1.35;
}

.home-catalog-section {
    padding-top: 6px;
    padding-bottom: 14px;
}

.home-catalog-section .section-head {
    margin-bottom: 10px;
}

.section-head-wide {
    align-items: start;
}

.section-head-wide p {
    max-width: 720px;
    margin: 4px 0 0;
    color: var(--muted);
}

.home-category-grid,
.category-grid-catalog {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.category-card-icon {
    position: relative;
    min-height: 130px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 90px minmax(28px, auto);
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 6px 7px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(31, 36, 43, .045);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.category-card-icon::before {
    display: none;
}

.category-card-icon > * {
    position: relative;
    z-index: 1;
}

.category-card-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 69, 34, .35);
    background: #fff;
    box-shadow: 0 12px 26px rgba(31, 36, 43, .1);
}

.category-card-compact {
    min-height: 130px;
    padding: 6px 7px;
}

.category-card-icon strong {
    max-width: 100%;
    min-height: 30px;
    display: block;
    align-self: start;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.12;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.category-picture {
    width: 118px;
    height: 90px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.category-icon-img {
    width: 118px;
    height: 90px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(31, 36, 43, .14));
}

.catalog-page .category-card {
    min-height: 126px;
}

.catalog-title {
    align-items: center;
}

.product-grid-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
    gap: 10px;
}

.home-catalog-section + .section,
.home-catalog-section + .section + .section {
    padding-top: 14px;
}

.product-card {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 69, 34, .28);
    box-shadow: 0 16px 34px rgba(31, 36, 43, .1);
}

.product-image {
    aspect-ratio: 360 / 220;
    background: linear-gradient(135deg, #f3f5f7, #fff);
}

.badges {
    top: 8px;
    left: 8px;
    gap: 5px;
}

.badges b {
    padding: 3px 7px;
    font-size: 11.5px;
}

.product-card-body {
    gap: 7px;
    padding: 10px;
}

.product-title {
    min-height: 38px;
    font-size: 14.5px;
    line-height: 1.22;
}

.product-meta,
.stock {
    font-size: 12.5px;
    line-height: 1.25;
}

.product-price strong {
    font-size: 20px;
}

.card-actions {
    gap: 6px;
}

.product-card .button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .home-category-grid,
    .category-grid-catalog {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero-shop {
        grid-template-columns: 1fr;
        min-height: 156px;
        padding-inline: 20px;
    }

    .product-grid-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-search {
        grid-template-columns: 1fr;
    }

    .legal-page {
        padding-block: 24px 38px;
    }

    .legal-requisites div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .admin-product-preview-banner {
        grid-template-columns: 1fr;
    }

    .admin-product-preview-banner nav {
        grid-row: auto;
        justify-content: flex-start;
    }

    .return-form-grid {
        grid-template-columns: 1fr;
    }

    .return-span-2 {
        grid-column: auto;
    }

    .cookie-banner {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 14px;
    }

    .cookie-actions .button {
        width: 100%;
    }

    .delivery-modal {
        align-items: center;
        padding: 10px;
    }

    .delivery-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        overscroll-behavior: contain;
        border-radius: 10px;
    }

    .delivery-dialog-head,
    .delivery-form,
    .delivery-results {
        padding-inline: 14px;
    }

    .delivery-form,
    .delivery-courier-fields,
    .delivery-selected-point,
    .delivery-provider-card {
        grid-template-columns: 1fr;
    }

    .delivery-provider-card > .button,
    .delivery-provider-badges {
        grid-column: 1;
        grid-row: auto;
    }

    .delivery-provider-card > .button {
        width: 100%;
    }

    .delivery-steps {
        gap: 5px;
    }

    .delivery-steps li {
        gap: 4px;
        padding: 6px;
        font-size: 11px;
    }

    .delivery-method-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .delivery-status {
        margin-inline: 14px;
    }

    .delivery-retry-button {
        width: 100%;
    }

    .delivery-primary-action,
    .delivery-calculate-button,
    .delivery-selected-summary .button,
    .delivery-selected-point .button {
        width: 100%;
    }

    .delivery-primary-action {
        position: sticky;
        bottom: 8px;
        z-index: 1;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .delivery-point-list {
        max-height: 180px;
    }

    .delivery-other-method-list button {
        align-items: start;
    }

    .delivery-info p,
    .delivery-main-point strong,
    .delivery-other-method-list span {
        overflow-wrap: anywhere;
    }

    .delivery-selected-provider {
        align-items: start;
    }

    .delivery-selected-provider .button {
        flex: 0 0 auto;
    }

    .search-suggestions {
        max-height: min(430px, 62vh);
    }

    .search-suggestion {
        gap: 6px;
        padding: 7px 6px;
    }

    .suggestion-link {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 8px;
    }

    .suggestion-link img {
        width: 46px;
        height: 46px;
    }

    .suggestion-copy strong {
        font-size: 13px;
    }

    .site-search .suggestion-cart {
        min-height: 38px;
        padding-inline: 8px;
    }

    .site-footer {
        margin-top: 10px;
        padding: 0;
        min-height: 0;
    }

    .footer-brand {
        padding: 18px;
    }

    .footer-brand p {
        max-width: 100%;
        margin-top: 9px;
        font-size: 13.5px;
    }

    .footer-art {
        height: 132px;
        border-top: 1px solid rgba(196, 202, 209, .6);
        border-bottom: 1px solid rgba(196, 202, 209, .6);
    }

    .footer-art::before,
    .footer-art::after {
        width: 24px;
    }

    .footer-art img {
        object-position: center bottom;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        font-size: 14px;
    }

    .footer-order {
        width: 100%;
        min-height: 42px;
        margin-top: 2px;
    }

    .site-toast {
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .hero-shop {
        min-height: 112px;
        margin-top: 8px;
        padding: 8px 10px;
        background-image:
            linear-gradient(180deg,
                rgba(248, 250, 252, .95) 0%,
                rgba(248, 250, 252, .86) 52%,
                rgba(248, 250, 252, .78) 100%
            ),
            url('/assets/img/hero/hero-mobile-top.webp');
        background-position: center center;
        background-size: cover;
    }

    .hero-shop .eyebrow {
        margin-bottom: 4px;
        font-size: 9.5px;
    }

    .hero-shop .hero-copy h1 {
        font-size: clamp(16px, 4.7vw, 18.5px);
        line-height: 1.12;
        overflow-wrap: normal;
    }

    .hero-shop .hero-copy p {
        max-width: 95%;
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.25;
    }

    .home-catalog-section {
        padding-top: 6px;
    }

    .home-catalog-section .section-head {
        margin-bottom: 6px;
    }

    .catalog-section-description {
        display: none;
    }

    .home-category-grid,
    .category-grid-catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .category-card-compact {
        min-height: 114px;
    }

    .catalog-page .category-card {
        min-height: 114px;
    }

    .category-card-icon {
        min-height: 114px;
        grid-template-rows: 72px minmax(28px, auto);
        gap: 3px;
        padding: 5px 4px;
    }

    .category-card-icon strong {
        font-size: 12.2px;
        line-height: 1.12;
    }

    .category-picture {
        width: 76px;
        height: 70px;
    }

    .category-icon-img {
        width: 76px;
        height: 70px;
    }

    .section,
    .page,
    .narrow-page {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .product-grid,
    .product-grid-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-card-body {
        gap: 6px;
        padding: 8px;
    }

    .product-title {
        min-height: 42px;
        font-size: 13px;
    }

    .product-meta,
    .stock {
        font-size: 11.5px;
    }

    .product-price strong {
        font-size: 17px;
    }

    .product-card .button {
        min-height: 34px;
        padding: 7px 6px;
        font-size: 12.5px;
    }
}

@media (max-width: 360px) {
    .delivery-modal {
        padding: 6px;
    }

    .delivery-dialog {
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
    }

    .delivery-steps li {
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }

    .delivery-selected-provider {
        display: grid;
    }

    .delivery-selected-provider .button {
        width: 100%;
    }
}

@media (max-width: 340px) {
    .delivery-steps {
        gap: 4px;
        overflow: visible;
    }

    .delivery-steps li {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        min-height: 48px;
        padding: 5px 2px;
        overflow: visible;
        font-size: 11px;
    }

    .delivery-step-label {
        display: block;
        align-self: stretch;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        margin-inline: 4px;
        padding-inline: 4px;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        text-align: center;
        line-height: 1.2;
        font-size: 11px;
    }
}
.checkout-payment-methods {
    border: 1px solid var(--border, #d8dde3);
    border-radius: 14px;
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 16px;
}

.checkout-payment-option {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.checkout-payment-option input {
    flex: 0 0 auto;
    margin-top: 4px;
    width: auto;
}

.checkout-payment-option span {
    display: grid;
    gap: 3px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.checkout-payment-option small {
    color: var(--muted, #667085);
}

.payment-result .hero-actions form {
    margin: 0;
}
