:root {
  color-scheme: light;
  --page: #f6f3eb;
  --surface: #fffcf6;
  --ink: #1b2620;
  --muted: #565f54;
  --line: #deddd0;
  --dark: #17241d;
  --dark-green: #22352a;
  --copper: #efa97f;
  --rust: #944624;
  --type: 'Golos Text', 'Segoe UI', Arial, sans-serif;
  --radius: 18px;
  --header-offset: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.53 var(--type); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
[hidden] { display: none !important; }
html:not(.js) [data-js] { display: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.042em; }
h2 { font-size: clamp(2rem, 3.65vw, 3.5rem); }
section[id], #product-grid { scroll-margin-block-start: var(--header-offset); }

.shell { width: min(100% - 88px, 1380px); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; transform: translateY(-160%); background: white; padding: 10px 14px; }
.skip-link:focus { transform: none; }
.header { position: sticky; inset-block-start: 0; z-index: 4; border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 43px; height: 43px; border-radius: 12px; background: var(--dark); display: grid; place-items: center; position: relative; }
.brand-mark i { position: absolute; width: 25px; height: 11px; border: 1.5px solid var(--copper); border-radius: 50%; transform: rotate(-31deg); }
.brand-mark i:first-child { translate: -2px -5px; }
.brand-mark i:last-child { translate: 2px 5px; }
.brand-type { color: var(--ink); font-size: 19px; font-weight: 750; line-height: 1.03; letter-spacing: -.035em; }
.brand-type span { display: block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .075em; margin-top: 5px; text-transform: uppercase; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 3.2vw, 47px); }
.header nav a { text-decoration: none; color: var(--muted); font-weight: 620; font-size: 14px; }
.header nav a:hover, .footer a:not(.brand):hover { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }

.button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; width: fit-content; min-height: 46px; border: 1px solid transparent; border-radius: 10px; padding: 11px 16px; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.27; text-align: center; }
.button span[aria-hidden] { font-size: 1.1em; }
.primary { background: var(--copper); color: #281910; }
.primary:hover { background: #f3bb98; }
.outline { border-color: #b7bcaa; background: transparent; color: var(--ink); }
.outline:hover { background: #e9ebdd; }
.header-request { background: var(--dark); color: #fffaf0; padding-inline: 16px; }
.header-request:hover { background: var(--dark-green); }
.basket-count { padding: 1px 5px; min-width: 19px; border-radius: 8px; background: var(--copper); color: var(--ink); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1fr); min-height: 470px; margin-block: 27px 52px; border-radius: 23px; overflow: hidden; background: var(--dark); color: #fcf8ed; isolation: isolate; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(38px, 5vw, 79px); container-type: inline-size; }
.hero h1 { font-size: clamp(2rem, 5vw, 5.5rem); font-size: clamp(1.75rem, 15.2cqi, 5.5rem); line-height: 1.02; letter-spacing: -.068em; }
.hero h1 span { display: block; color: var(--copper); text-wrap: balance; }
.hero-copy > p { max-width: 430px; margin-block: 25px 27px; color: #e0e5d7; font-size: clamp(1rem, 1.42vw, 1.22rem); line-height: 1.52; }
.hero .button { min-height: 52px; padding-inline: 19px; }
.hero-image { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 54% center; }

.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 22px; }
.section-heading p { color: var(--muted); font-size: 15px; }
.filter-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px; }
.category-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: -5px 0 16px; }
.category-links a { min-height: 52px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 15px; font-weight: 690; text-decoration: none; line-height: 1.25; }
.category-links a:hover { color: var(--rust); border-color: #b27b59; }
.family-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.family-button { min-height: 44px; display: inline-flex; gap: 9px; align-items: center; border: 1px solid #d5d9c9; border-radius: 8px; background: #f3f4ea; color: var(--ink); padding: 7px 12px; text-align: left; font-size: 14px; font-weight: 700; }
.family-button small { color: #5b654e; font-size: 12px; font-variant-numeric: tabular-nums; }
.family-button:hover { border-color: #6a7567; }
.family-button[aria-pressed='true'] { background: var(--dark-green); border-color: var(--dark-green); color: white; }
.family-button[aria-pressed='true'] small { color: #dbe3d3; }
.family-dot { --dot: #b2623b; width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 9px; background: var(--dot); }
.family-dot.fechral { --dot: #527256; }
.family-dot.stainless { --dot: #61798b; }
.family-dot.panch { --dot: #a23f52; }
.filters { display: grid; grid-template-columns: minmax(14rem, 1.7fr) minmax(8.5rem, 1fr) minmax(7.5rem, .75fr) minmax(8rem, 1fr); gap: 12px; margin-top: 17px; }
.filters > div { min-width: 0; }
.filter-panel > .filters:first-child { margin-top: 0; }
.filters label, #request-form label { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 700; font-size: 14px; }
input, select, textarea { border: 1px solid #bdc3b4; border-radius: 8px; background: #fffdf9; color: var(--ink); width: 100%; padding: 9px 11px; min-height: 45px; }
input::placeholder, textarea::placeholder { color: #5a6459; opacity: 1; }
input[aria-invalid='true'] { border-color: #a72727; }
.catalog-toolbar { min-height: 55px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
#catalog-status { color: var(--muted); font-size: 14px; }
.text-action { border: 0; background: transparent; padding: 8px 0 8px 8px; min-height: 44px; color: var(--rust); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; font-weight: 650; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 17px; }
.card:hover { border-color: #97a290; }
.card-image-link { display: block; margin: -6px -6px 13px; overflow: hidden; border-radius: 9px; background: var(--dark); }
.card-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.card-family { display: flex; align-items: center; gap: 8px; color: var(--muted); line-height: 1.35; font-weight: 650; font-size: 12px; }
.card h3 { margin-block: 11px 14px; font-size: clamp(1.16rem, 1.57vw, 1.55rem); line-height: 1.18; letter-spacing: -.032em; overflow-wrap: anywhere; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--rust); }
.card-specs { margin: auto 0 10px; display: grid; gap: 3px; font-size: 13px; }
.card-specs div { min-width: 0; display: grid; grid-template-columns: 78px 1fr; gap: 5px; }
.card-specs dt { color: var(--muted); }
.card-specs dd { margin: 0; font-weight: 660; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1px 11px; padding-top: 3px; border-top: 1px solid var(--line); }
.detail-link { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; font-weight: 730; }
.detail-link:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.add-item { min-height: 44px; border: 1px solid #d5c6b6; border-radius: 8px; background: #f7ede3; color: #6d371f; font-weight: 730; font-size: 13px; padding: 4px 10px; }
.add-item:hover:not(:disabled) { background: #f2dfd0; }
.add-item[aria-pressed='true'] { color: #31583a; background: #e6eee0; border-color: #c4d2bc; }
.catalog-empty { border: 1px dashed #9ba392; border-radius: 12px; padding: 27px; background: var(--surface); }
.catalog-empty p { margin: 10px 0 16px; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px 17px; align-items: center; justify-content: center; margin-top: 24px; color: var(--muted); font-size: 14px; }

.selection { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 26px; padding: clamp(21px, 4vw, 53px); background: #e8ebdd; border-radius: var(--radius); margin-top: 54px; }
.selection h2, .contact h2 { font-size: clamp(1.7rem, 3.14vw, 2.85rem); }
.selection > div > p, .contact p { color: var(--muted); max-width: 51ch; margin-top: 12px; }
.selection-details details { border-top: 1px solid #bcc3b3; }
.selection-details details:last-child { border-bottom: 1px solid #bcc3b3; }
summary { cursor: pointer; font-weight: 700; padding-block: 11px; min-height: 44px; }
.selection-details p, .reference summary { color: var(--muted); }
.selection-details p { padding-bottom: 14px; }
.contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 19px; border-top: 1px solid var(--line); margin-block: 32px 38px; padding-top: 32px; }
.contact-actions, .dialog-actions, .product-buttons { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.related-section { margin-top: 37px; }
.related-section h2 { font-size: clamp(1.7rem, 3.14vw, 2.85rem); }
.related-section ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 15px 0 0; padding: 0; list-style: none; }
.related-section li { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.related-section a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 730; text-underline-offset: 4px; }
.related-section p { color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding-block: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--muted); gap: 17px; }
.footer-inner > a:not(.brand) { text-decoration: none; }

.product-main { padding-block: 25px 64px; min-height: 70vh; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 7px 0 23px; }
.breadcrumbs a { text-underline-offset: 3px; }
.category-heading { margin: 0 0 25px; padding: clamp(25px, 4.5vw, 52px); background: var(--dark); color: #fff9ec; border-radius: var(--radius); }
.category-heading h1 { font-size: clamp(2.35rem, 5vw, 4.65rem); max-width: 19ch; }
.category-heading p { max-width: 70ch; margin-top: 13px; color: #e3e8dc; }
.size-directory { margin: 23px 0; padding: clamp(15px, 2.45vw, 30px); background: var(--surface); border-radius: 13px; border: 1px solid var(--line); }
.size-directory h2 { font-size: clamp(1.35rem, 2.55vw, 2rem); margin-bottom: 13px; }
.size-directory nav { display: flex; flex-wrap: wrap; gap: 8px; }
.size-directory a { background: #e9ebdd; text-decoration: none; padding: 8px 11px; border-radius: 7px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 680; font-variant-numeric: tabular-nums; }
.size-directory a:hover { color: var(--rust); background: #f0dfd2; }
.product-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0, .92fr); grid-template-areas: 'visual intro' 'visual specs'; gap: 16px; align-items: start; }
.product-visual { grid-area: visual; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-visual img { width: 100%; height: auto; }
.product-visual figcaption { padding: 9px 14px; color: var(--muted); font-size: 13px; }
.product-intro { grid-area: intro; padding: clamp(21px, 3.5vw, 42px); background: var(--dark); color: #fff9ec; border-radius: var(--radius); }
.product-intro h1 { font-size: clamp(2rem, 3.6vw, 3.55rem); overflow-wrap: anywhere; }
.product-lead { color: #e8e9df; margin-block: 18px 22px; }
.product-code { display: inline-block; }
.product-intro .outline { color: white; border-color: #9daea1; }
.product-intro .outline:hover { background: #2e4436; }
.product-intro :focus-visible, .hero :focus-visible { outline-color: #fff8f1; }
.spec-panel { grid-area: specs; min-width: 0; border-radius: var(--radius); padding: clamp(19px, 3vw, 35px); background: var(--surface); border: 1px solid var(--line); }
.spec-panel h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.spec-panel dl { margin: 19px 0 0; }
.spec-panel dl > div { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(0,1.25fr); gap: 10px; padding-block: 12px; border-top: 1px solid var(--line); }
.spec-panel dt { color: var(--muted); }
.spec-panel dd { margin: 0; font-weight: 660; overflow-wrap: anywhere; }
.reference { border-top: 1px solid var(--line); margin-top: 12px; }
.table-scroll { overflow-x: auto; margin-bottom: 10px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-scroll th, .table-scroll td { border: 1px solid var(--line); padding: 7px; text-align: left; }
.table-scroll th { background: #e8ebdd; }
.product-description { margin-top: 23px; padding: clamp(20px, 3.2vw, 41px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product-description h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); margin-bottom: 18px; }
.product-description h1 { margin-bottom: 15px; font-size: clamp(2rem, 4vw, 3.4rem); }
.product-description p { max-width: 79ch; margin: 0 0 14px; line-height: 1.65; }
.product-description p:last-child { margin-bottom: 0; }

dialog { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); width: min(calc(100vw - 24px), 540px); max-height: calc(100dvh - 26px); }
dialog::backdrop { background: #101b14ab; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.dialog-head h2 { font-size: clamp(1.52rem, 5vw, 2.05rem); }
.icon-button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #efefe4; color: var(--ink); font-size: 23px; line-height: 1; border-radius: 8px; }
dialog > p { margin-block: 5px 13px; color: var(--muted); }
.selected-products ul { list-style: none; margin: 0 0 15px; padding: 0 4px 0 0; max-height: 152px; overflow-y: auto; }
.selected-products li { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); gap: 10px; padding: 4px 0; font-size: 14px; }
.selected-products li button { flex-shrink: 0; }
.request-person { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.request-policy { margin: 3px 0 13px; font-size: 13px; color: var(--muted); }
.request-policy a { text-underline-offset: 3px; }
#request-form input, #request-form textarea { margin-bottom: 10px; }
#request-form textarea { resize: vertical; }
.mail-note { color: var(--muted); font-size: 13px; margin-top: 9px; }
.mail-note:empty { display: none; }
[data-manual-copy] { margin-top: 12px; }

@media (max-width: 980px) {
  .shell { width: calc(100% - 46px); }
  .hero { min-height: 405px; }
  .hero-copy { padding: 35px; }
  .filters { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .filter-search { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  :root { --header-offset: 111px; }
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 65px; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 9px 4px; }
  .header-inner nav { order: 2; width: 100%; justify-content: space-between; gap: 4px; overflow: auto; padding-inline: 3px; }
  .header nav a { min-height: 40px; display: flex; align-items: center; white-space: nowrap; }
  .brand { gap: 7px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-type { font-size: 17px; }
  .header-request { padding-inline: 10px; gap: 6px; }
  .hero { grid-template-columns: minmax(0,1fr); min-height: 0; margin-block: 16px 31px; border-radius: 17px; }
  .hero-copy { padding: 26px 20px 24px; }
  .hero-copy > p { margin-block: 16px 19px; }
  .hero-image { max-height: 230px; }
  .section-heading { margin-bottom: 16px; }
  .category-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-section ul { grid-template-columns: minmax(0, 1fr); }
  .filter-panel { padding: 11px; }
  .family-button { padding-inline: 8px; gap: 5px; }
  .filters { gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters > div:last-child { grid-column: 1 / -1; }
  .product-grid, .selection, .product-layout { grid-template-columns: minmax(0,1fr); }
  .product-layout { grid-template-areas: 'intro' 'visual' 'specs'; }
  .selection { margin-top: 34px; }
  .spec-panel dl > div { grid-template-columns: minmax(92px,.8fr) minmax(0,1.2fr); }
  .product-main { padding-bottom: 36px; }
}
@media (max-width: 440px) {
  .request-person { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dialog-actions { align-items: stretch; }
  .dialog-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
