:root {
  color-scheme: light;
  --ink: #171816;
  --dark: #161716;
  --paper: #f4f4f1;
  --surface: #fff;
  --radius: .75rem;
  --banner-base: #090a09;
  --orange: #f8a548;
  --orange-ink: #91500d;
  --chalk: #f9f8f6;
  --line: #d8d9d6;
  --dark-line: #41413b;
  --gutter: clamp(1.2rem, 5.7vw, 5.8rem);
  --header: 76px;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}

:root[dir="rtl"] { font-family: Vazirmatn, Tahoma, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--dark); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: var(--dark); background: var(--orange); }
:focus-visible { outline: 2px solid #b96614; outline-offset: 4px; }
.dark :focus-visible { outline-color: var(--orange); }
.shell { width: min(calc(100% - 2 * var(--gutter)), 1450px); margin-inline: auto; }
.dark { background: var(--dark); color: var(--chalk); }
.light { background: var(--paper); color: var(--ink); }
.symbols, .sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; inset-block-start: 1rem; inset-inline-start: 1rem; background: var(--orange); padding: .6rem 1rem; }
.icon { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .direction-icon { transform: scaleX(-1); }
.eyebrow { display: flex; align-items: center; gap: .7rem; font-size: .83rem; font-weight: 730; letter-spacing: .075em; text-transform: uppercase; color: var(--orange-ink); }
.eyebrow > span:first-child { width: 1.35rem; height: 2px; background: currentColor; flex: none; }
.dark .eyebrow { color: var(--orange); }
:root[dir="rtl"] .eyebrow { letter-spacing: 0; }

.site-header { position: sticky; top: 0; height: var(--header); background: #fcfcfa; border-bottom: 1px solid #15181522; color: var(--ink); z-index: 7; }
.header-inner { height: 100%; display: flex; align-items: center; gap: clamp(1.15rem, 3vw, 3.3rem); }
.brand { display: inline-flex; align-items: center; gap: .66rem; flex-shrink: 0; }
.brand img { width: 2.4rem; height: 2.4rem; }
.brand span { display: grid; gap: .15rem; }
.brand strong { font-weight: 810; line-height: 1.2; font-size: 1rem; }
.brand small { font-family: Inter, sans-serif; font-size: .58rem; color: #bcbcb4; letter-spacing: .115em; font-weight: 700; line-height: 1.25; }
.site-header .brand small { color: #5d605d; }
:root[lang="en"] .brand small { display: none; }
.site-header nav { display: flex; justify-content: center; gap: clamp(1rem, 2.6vw, 2.5rem); flex: 1; }
.site-header nav a { color: #343734; white-space: nowrap; font-size: .91rem; font-weight: 650; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--orange-ink); }
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: .48rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.language { position: relative; flex: none; }
.language-trigger { display: flex; align-items: center; gap: .45rem; min-height: 2.65rem; padding: .3rem .6rem; border: 1px solid #d5d4ce; border-radius: .42rem; background: #fff; color: var(--ink); }
.language-trigger:is(:hover, [aria-expanded="true"]) { border-color: #b97b40; background: #fff8f0; }
.language-native:is([lang="fa"],[lang="ar"]) { font-family: Vazirmatn, Tahoma, sans-serif; }
.language-flag { width: 1.4rem; height: auto; border-radius: .14rem; box-shadow: 0 0 0 1px #17181624; }
.language-code { font: 760 .76rem/1 Inter, Arial, sans-serif; letter-spacing: .035em; }
.language-chevron { width: .84rem; height: .84rem; color: #676b67; transition: transform .18s ease; }
.language-trigger[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-panel { position: absolute; z-index: 1; inset-block-start: calc(100% + .55rem); inset-inline-end: 0; width: min(14.25rem,calc(100vw - 3rem)); padding: .45rem; border: 1px solid #d9d7d0; border-radius: 1rem; background: #fff; box-shadow: 0 16px 38px #19171329, 0 4px 10px #19171312; animation: language-open .16s ease both; }
@keyframes language-open { from { opacity: 0; transform: translateY(-.3rem); } }
.language-heading { padding: .38rem .63rem .48rem; color: #686961; font-size: .73rem; font-weight: 700; }
.language-list { display: grid; gap: .22rem; list-style: none; margin: 0; padding: 0; }
.language-list button { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .62rem; width: 100%; min-height: 2.7rem; padding: .34rem .53rem; border: 1px solid transparent; border-radius: .6rem; background: transparent; color: var(--ink); font-size: .91rem; font-weight: 690; text-align: start; }
.language-list button:hover { background: #f3f2ef; }
.language-list button[aria-current] { border-color: #f0d7b8; background: #fff0dd; }
.language-list button:focus-visible { outline-offset: -2px; }
.language-native { justify-self: start; }
.language-check { width: .95rem; height: .95rem; visibility: hidden; color: var(--orange-ink); stroke-width: 2.3; }
[aria-current] > .language-check { visibility: visible; }
.mobile-toggle { display: none; }
.read-progress { width: 100%; height: 2px; position: absolute; inset-block-end: -1px; inset-inline-start: 0; background: var(--orange); transform: scaleX(var(--read, 0)); transform-origin: left; pointer-events: none; }
[dir="rtl"] .read-progress { transform-origin: right; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .62rem; min-height: 3.13rem; padding: .67rem 1.15rem; border: 1px solid transparent; border-radius: .42rem; font-weight: 740; font-size: .93rem; line-height: 1.35; text-align: center; transition: background .18s, color .18s, border-color .18s; }
.button-small { min-height: 2.43rem; font-size: .85rem; padding: .45rem .8rem; white-space: nowrap; }
.button-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.button-primary:hover { background: #ffba74; border-color: #ffba74; }
.button-outline { color: var(--chalk); border-color: #66655c; background: transparent; }
.button-outline:hover { color: var(--orange); border-color: var(--orange); }
.button-ink { color: var(--ink); border-color: #a5a297; background: transparent; }
.button-ink:hover { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-button { padding: .5rem 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--ink); font-weight: 720; }
.text-button:hover { color: var(--orange-ink); }

.hero { --hero-stage-size: max(550px, calc(100svh - var(--header))); --hero-scroll: 132svh; --hero-edge: to right; position: relative; background: var(--banner-base); }
[dir="rtl"] .hero { --hero-edge: to left; }
.hero.film-enabled { min-height: calc(var(--hero-stage-size) + var(--hero-scroll)); }
.hero-anchor { position: absolute; inset-block-start: 0; width: 1px; height: 1px; pointer-events: none; }
.film-enabled .hero-anchor { inset-block-start: calc(var(--hero-scroll) * .36); }
.hero-stage { position: relative; isolation: isolate; min-height: var(--hero-stage-size); overflow: clip; display: grid; }
.film-enabled .hero-stage { position: sticky; top: var(--header); }
.hero-media { position: absolute; inset-block: 0; inset-inline-end: 0; width: 63%; z-index: -3; }
.hero-film, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-film { object-fit: cover; visibility: hidden; }
.hero-film.is-current { visibility: visible; }
.hero-shade { z-index: -2; background: linear-gradient(0deg,var(--banner-base) 0 2.3rem,#090a097a 20%,transparent 44%), linear-gradient(var(--hero-edge),var(--banner-base) 0 38%,#090a09c9 45%,#090a0950 54%,transparent 67%); }
.hero-inner { position: relative; display: grid; align-items: center; justify-items: start; padding-block: 2rem 5.5rem; }
.hero-content { width: min(47%,38rem); padding-block-end: 4rem; text-align: start; pointer-events: none; transform: translate3d(0,var(--copy-offset,0px),0); }
.hero-scenes { display: grid; align-items: center; }
.hero-copy { grid-area: 1/1; align-self: end; opacity: 0; visibility: hidden; }
.hero-copy.active { opacity: var(--copy-opacity,1); visibility: visible; }
.hero-copy .eyebrow { color: var(--orange); }
.hero :is(h1,.hero-title), section h2 { font-family: "Barlow Condensed", Impact, Inter, sans-serif; text-transform: uppercase; font-size: clamp(3.25rem, 7.35vw, 7.9rem); font-weight: 800; line-height: .92; letter-spacing: -.015em; }
:root[dir="rtl"] .hero :is(h1,.hero-title), :root[dir="rtl"] section h2 { font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.12; letter-spacing: -.067em; font-weight: 900; }
:root[dir="rtl"] .hero h1 { font-size: clamp(3.05rem, 5.8vw, 6.5rem); }
:root[lang="ru"] .hero :is(h1,.hero-title), :root[lang="ru"] section h2 { font-family: Inter, Arial, sans-serif; line-height: .98; font-size: clamp(3rem, 5.4vw, 6.5rem); letter-spacing: -.07em; }
.hero :is(h1,.hero-title) { margin-block: 1rem 1.2rem; text-shadow: 0 4px 18px #090a0975; }
.hero .hero-title { font-size: clamp(3.2rem, 5.95vw, 6.25rem); }
:root[dir="rtl"] .hero .hero-title { font-size: clamp(2.8rem, 4.85vw, 5.65rem); }
:root[lang="ru"] .hero .hero-title { font-size: clamp(2.45rem, 4.4vw, 4.85rem); }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-description { max-width: 39ch; font-size: clamp(1rem, 1.3vw, 1.18rem); color: #e5e3df; line-height: 1.75; }
.hero-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .56rem; margin-block-start: clamp(1rem, 3svh, 1.55rem); pointer-events: auto; }
.hero-products { min-height: 3.15rem; }
.metrics { background: var(--banner-base); }
.metric-grid { padding-block: .25rem 2.1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid > div { border-block-start: 1px solid var(--dark-line); padding: .95rem clamp(.65rem, 2.3vw, 2.2rem) .06rem; display: flex; flex-direction: column-reverse; gap: .27rem; }
.metric-grid > div:first-child { padding-inline-start: 0; }
.metric-grid > div + div { border-inline-start: 1px solid var(--dark-line); }
.metric-grid dt { color: #c2c0b7; font-size: .88rem; }
.metric-grid dd > span { font: 800 clamp(2.15rem, 3.3vw, 3.7rem)/1 "Barlow Condensed", Impact, sans-serif; color: var(--orange); display: inline-block; }
:root[dir="rtl"] .metric-grid dd > span { font-family: Vazirmatn, Tahoma, sans-serif; font-weight: 900; font-size: clamp(1.87rem, 2.65vw, 3.15rem); }
.metric-grid dd small { font-size: .84rem; color: #dfded6; }

.families, .products, .factory { padding-block: clamp(3.5rem, 7vw, 6.75rem); }
.families { background: #fcfcfa; }
.families-grid, .product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.8rem,1.65vw,1.45rem); }
.family-card, .product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.family-card { display: grid; grid-template-rows: auto 1fr; }
.family-card:is(:hover, :focus-visible), .product-card:is(:hover, :focus-visible) { border-color: #b47b43; box-shadow: 0 8px 26px #25231a14; }
.family-media { display: block; aspect-ratio: 2.05; overflow: hidden; background: #dedfdb; }
.family-media img, .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.family-card:hover img, .product-card:hover .card-image img { transform: scale(1.045); }
.family-meta { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .55rem; padding: clamp(.72rem,1.7vw,1.25rem); }
.family-meta > .icon { width: 2.42rem; height: 2.42rem; padding: .62rem; border-radius: 50%; color: var(--orange-ink); background: #f8ebdb; }
[dir="rtl"] :is(.family-meta, .card-action) .icon { transform: scaleX(-1); }
.family-card strong { display: block; font-size: clamp(1.02rem,1.8vw,1.47rem); line-height: 1.26; overflow-wrap: anywhere; }
.family-card small { display: block; margin-block-start: .25rem; color: #5a5b53; font-weight: 610; }
.production-preview { padding-block: clamp(1.8rem,4.7vw,4.5rem); background: #171815; }
.production-preview-layout { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); align-items: center; gap: clamp(1.1rem,5vw,5.75rem); }
.production-preview-layout h2 { margin: 0; }
.production-preview-media { position: relative; overflow: clip; border-radius: var(--radius); background: #0c0d0c; }
.production-preview-media video { width: 100%; height: auto; aspect-ratio: 960/412; }
.products { background: #efefec; border-block: 1px solid #e1e1dc; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; margin-block-end: 2rem; }
section h2 { font-size: clamp(2.6rem,4.6vw,4.9rem); margin-block-start: .6rem; }
:root[dir="rtl"] section h2 { font-size: clamp(2.2rem,4.2vw,4.45rem); }
:root[lang="ru"] section h2 { font-size: clamp(2.2rem,3.8vw,4.25rem); }
.company-page-title { margin-block-start: .6rem; font-size: clamp(2.35rem,5vw,5rem); font-weight: 850; line-height: 1.12; letter-spacing: -.05em; }
.catalogue-tools { display: flex; align-items: flex-start; gap: .85rem 1rem; padding: clamp(.7rem,1.5vw,1.1rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.filters { display: flex; gap: .38rem; flex-wrap: wrap; }
.filter { min-height: 2.75rem; border: 1px solid #d5d4cb; border-radius: .46rem; padding: .38rem .71rem; background: #fafaf8; color: #4d4b43; font-size: .86rem; font-weight: 700; }
.filter:hover { border-color: #9e9b90; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--chalk); border-color: var(--ink); box-shadow: inset 0 -2px var(--orange); }
.search { flex: 0 0 min(30%,20rem); width: min(100%,20rem); display: flex; align-items: center; gap: .5rem; border: 1px solid #a6a498; border-radius: .46rem; background: #fafaf8; padding-inline: .75rem; }
.search:focus-within { border-color: var(--orange-ink); outline: 1px solid var(--orange-ink); }
.search input { height: 2.68rem; outline: none; padding: .25rem 0; border: 0; background: transparent; width: 100%; min-width: 0; font-size: .88rem; color: var(--ink); }
.catalogue-results { margin-block: .95rem .6rem; color: #53554a; font-size: .86rem; font-weight: 690; }
.product-card { display: flex; flex-direction: column; text-align: start; padding: 0; }
.card-image { display: block; width: 100%; aspect-ratio: 1.75; overflow: hidden; background: #dedfdb; border-block-end: 1px solid var(--line); }
.card-image.contain img { object-fit: contain; background: #fff; padding: .35rem; }
.card-meta { display: grid; grid-template-rows: auto 1fr auto; flex: 1; gap: .3rem; width: 100%; padding: clamp(.8rem,1.6vw,1.2rem); }
.card-category { color: var(--orange-ink); font-size: .8rem; font-weight: 740; }
.card-name { font-size: clamp(1rem,1.5vw,1.4rem); line-height: 1.38; font-weight: 830; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-block-start: .65rem; padding-block-start: .65rem; border-block-start: 1px solid var(--line); color: #454639; font-size: .78rem; font-weight: 720; overflow-wrap: anywhere; }
.card-action .icon { width: .95rem; height: .95rem; color: var(--orange-ink); }
.product-card:hover .card-action { color: var(--orange-ink); }
.catalogue-bottom { margin-block-start: 1.45rem; display: flex; justify-content: center; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.empty { padding: 3rem 0; text-align: center; }
.empty p { margin-block-end: .7rem; }

.factory { padding-block-end: 0; background: #fcfcfa; }
.factory-layout { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); gap: clamp(1.6rem, 5.5vw, 6rem); align-items: center; }
.factory-figure { display: grid; grid-template-columns: 1.13fr .87fr; gap: .85rem; align-items: end; }
.factory-figure img { width: 100%; height: auto; aspect-ratio: .85; object-fit: cover; clip-path: polygon(0 0, calc(100% - 31px) 0, 100% 31px, 100% 100%, 0 100%); }
.factory-figure .factory-production { aspect-ratio: .72; border-block-end: .62rem solid var(--orange); }
.factory-figure figcaption { grid-column: 1/-1; font-weight: 670; font-size: .8rem; color: #59564c; }
.factory-copy > p:not(.eyebrow) { margin-block-start: 1rem; color: #47453e; line-height: 1.8; }
.factory-copy .factory-intro { font-weight: 630; }
.factory-copy .actions { margin-block-start: 1.25rem; }
.factory-film { --film-direction: to right; position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(20rem,41vw,38rem); margin-block-start: clamp(2.2rem,5vw,4.6rem); overflow: clip; background: #151612; }
[dir="rtl"] .factory-film { --film-direction: to left; }
.factory-film-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.factory-film::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#0b0c0bef,transparent 65%), linear-gradient(var(--film-direction),#0b0c0bba,transparent 65%); }
.factory-film-content { padding-block: 4.5rem clamp(3.5rem,7vw,6.6rem); }
section .factory-film-content :is(h2,h3), :root[dir="rtl"] section .factory-film-content h2, :root[lang="ru"] section .factory-film-content h2 { margin: 0 0 1.25rem; font-size: clamp(2rem,4.5vw,4rem); line-height: 1.15; font-weight: 850; letter-spacing: -.045em; }
.factory-film-content bdi { padding-inline-start: .55rem; border-inline-start: 1px solid #1e151856; font-size: .79rem; }
.factory-background-toggle { position: absolute; inset-block-end: 1rem; inset-inline-end: var(--gutter); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #fff9; border-radius: .42rem; background: #11130fe6; color: #fff; }
.factory-background-toggle:hover { background: #2a2b26; }
.factory-background-toggle .preview-pause, .factory-background-toggle[data-playing] .preview-play { display: none; }
.factory-background-toggle[data-playing] .preview-pause { display: block; }
.factory-film-modal { width: 100%; max-height: 74dvh; background: #000; }
.contact { padding-block: clamp(3.4rem, 7vw, 7rem); position: relative; isolation: isolate; background: #121412; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg,#292c28,transparent 64%); z-index: -1; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: clamp(1.6rem, 5vw, 5rem); align-items: center; }
.contact :is(h1,h2) { max-width: 12ch; }
:root[dir="rtl"] .contact :is(h1,h2) { max-width: 15ch; }
[data-page="contact"] .contact { min-height: calc(100svh - var(--header) - 6rem); display: grid; align-content: center; }
.contact-layout > div > p:not(.eyebrow) { margin-block: 1rem 1.45rem; max-width: 44ch; color: #d1cfc4; }
.contact-card { font-style: normal; border: 1px solid #494b40; border-block-start: 3px solid var(--orange); border-radius: var(--radius); padding: .45rem clamp(.8rem,2vw,1.35rem); background: #20221e; }
.contact-card > div { display: flex; align-items: flex-start; gap: .8rem; padding-block: .78rem; }
.contact-card > div + div { border-block-start: 1px solid var(--dark-line); }
.contact-card .icon { color: var(--orange); margin-top: .19rem; }
.contact-card strong { font-size: .93rem; }
.contact-card p { color: #c8c6bc; font-size: .88rem; overflow-wrap: anywhere; }
.contact-card a { display: inline-flex; min-height: 1.65rem; align-items: center; text-decoration: underline; text-decoration-color: #bfb7a45e; text-underline-offset: .22em; }
.contacts-list { display: flex; flex-wrap: wrap; gap: .15rem .7rem; justify-content: flex-start; }
[dir="rtl"] .contacts-list { justify-content: flex-end; }
.contact-card a:hover, .site-footer a:hover { color: var(--orange); }
.site-footer { border-block-start: 1px solid var(--dark-line); padding-block: clamp(1.2rem,4vw,2.4rem) 1rem; }
.footer-inner, .footer-meta { display: flex; justify-content: space-between; gap: .85rem 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 0 clamp(.9rem,2.3vw,2rem); flex-wrap: wrap; }
.footer-links a, .footer-meta a { display: inline-flex; min-height: 2.45rem; align-items: center; font-size: .87rem; }
.footer-meta { margin-block-start: 1rem; padding-block-start: .45rem; border-block-start: 1px solid var(--dark-line); color: #c8c6bc; }

dialog { padding: 0; background: var(--surface); color: var(--ink); border: 1px solid #b6b1a3; border-radius: var(--radius); width: min(1060px,calc(100% - 2rem)); max-height: min(92dvh,1050px); overscroll-behavior: contain; scroll-padding-block-start: 7rem; }
dialog::backdrop { background: #080906d0; backdrop-filter: blur(4px); }
.modal-top { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: .85rem clamp(.9rem,3vw,1.6rem); display: flex; align-items: center; justify-content: space-between; border-block-end: 1px solid var(--line); gap: .75rem; }
.modal-top h2 { font-size: clamp(1.25rem, 2.75vw, 2rem); font-weight: 850; line-height: 1.25; }
.modal-close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: transparent; border: 1px solid #a6a194; border-radius: .42rem; color: var(--ink); flex-shrink: 0; }
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-body { padding: clamp(.85rem,3vw,1.6rem); }
.detail-intro { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 1.2rem; align-items: start; }
.detail-intro > img { display: block; width: 100%; height: auto; aspect-ratio: 1.52; object-fit: cover; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); }
.detail-intro > .contain { object-fit: contain; }
.detail-intro h3, .sheet-view h3 { margin-block: .55rem; }
.detail-intro p { color: #44423a; line-height: 1.75; }
.detail-intro .eyebrow { color: var(--orange-ink); }
.detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: 1rem; }
.detail-codes { margin-block-start: .8rem; color: #584225; }
.detail-codes bdi { font-size: .88rem; }
.table-scroll { overflow: auto; margin-block-start: 1.35rem; max-height: 21rem; border-block-end: 1px solid var(--line); }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: start; }
.table-scroll caption { font-weight: 785; text-align: start; padding: .5rem 0; }
.table-scroll th, .table-scroll td { padding: .42rem .62rem; vertical-align: middle; text-align: start; white-space: nowrap; }
.table-scroll thead { background: var(--ink); color: var(--chalk); }
.table-scroll tbody tr:nth-child(odd) { background: #e9e6de; }
.sheet-view { margin-block-start: 1.45rem; border-block-start: 1px solid var(--line); }
.sheet-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-block: .75rem; }
.sheet-tools .button-small { min-width: 2.3rem; }
.sheet-tools [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sheet-scroll { overflow: auto; border: 1px solid var(--line); background: #fff; direction: ltr; }
.sheet-scroll img { width: 100%; max-width: none; height: auto; }
.sheet-scroll.zoomed img { width: 1680px; min-width: 100%; }
.viewer > .sheet-view { margin-block-start: 0; border: 0; }
.viewer select { min-height: 2.4rem; padding: .35rem 2rem .35rem .55rem; appearance: none; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171816' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .35rem center / 1.15rem; border: 1px solid #a5a297; }
[dir="rtl"] .viewer select { background-position: left .35rem center; padding: .35rem .55rem .35rem 2rem; }
@media (max-width: 1200px) {
  .header-inner { gap: 1.15rem; }
  .site-header nav { gap: .95rem; }
  .header-actions { gap: .4rem; }
}
@media (max-width: 1100px) {
  :root { --header: 66px; }
  .site-header nav { display: none; position: absolute; top: 100%; inset-inline: 0; max-height: calc(100dvh - var(--header)); overflow-y: auto; background: #fcfcfa; flex-direction: column; justify-content: flex-start; gap: 0; padding: .6rem var(--gutter); border-bottom: 1px solid var(--line); }
  .site-header nav.open { display: flex; }
  .site-header nav a { display: flex; min-height: 2.75rem; align-items: center; padding: .54rem 0; }
  .site-header nav a + a { border-block-start: 1px solid var(--line); }
  .header-contact { display: none; }
  .mobile-toggle { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid var(--line); border-radius: .42rem; background: none; color: var(--ink); }
}
@media (max-width: 800px) {
  .production-preview-layout { grid-template-columns: minmax(0,1fr); }
  .families-grid, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalogue-tools { flex-direction: column; }
  .search { flex: auto; width: 100%; }
  .factory-layout, .contact-layout { gap: 1.5rem; }
}
@media (max-width: 680px) {
  .header-inner { gap: .7rem; }
  .site-header .brand { flex-shrink: 1; min-width: 0; }
  .site-header .brand img { flex: none; }
  .site-header .brand small { font-size: .53rem; letter-spacing: .075em; }
  .header-actions { flex: none; gap: .55rem; }
  .hero { --hero-stage-size: max(630px, calc(100svh - var(--header))); --hero-scroll: 112svh; }
  .hero-inner { grid-template-columns: minmax(0,1fr); align-items: start; padding-block: clamp(19rem,41svh,23rem) 2.75rem; }
  .hero-content { width: 100%; padding-block-end: .6rem; }
  .hero-media { inset: 0 0 auto; width: 100%; height: 64%; }
  .hero-film { object-position: center 26%; }
  .hero-shade { background: linear-gradient(0deg,var(--banner-base) 0 38%,#090a09e0 49%,#090a0920 71%,transparent 81%); }
  .hero :is(h1,.hero-title), :root[dir="rtl"] .hero :is(h1,.hero-title), :root[lang="ru"] .hero :is(h1,.hero-title) { font-size: clamp(2.4rem,9.1vw,4rem); margin-block: .65rem .75rem; }
  .hero-description { max-width: 43ch; font-size: .95rem; line-height: 1.6; }
  .hero-controls .button { padding: .48rem .82rem; min-height: 2.75rem; font-size: .86rem; }
  .hero-products .icon { width: .9rem; }
  :root[lang="ru"] .hero :is(h1,.hero-title) { font-size: clamp(1.95rem,7.8vw,3.55rem); }
}
@media (max-width: 600px) {
  .factory-layout, .contact-layout { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding-block-end: 1.2rem; }
  .metric-grid > div { padding: .68rem .7rem; }
  .metric-grid > div:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .metric-grid dt { font-size: .78rem; }
  .metric-grid dd small { font-size: .73rem; }
  .section-top { align-items: stretch; flex-direction: column; margin-block-end: 1.2rem; gap: .78rem; }
  .section-top > :is(a, button) { align-self: flex-start; }
  :root[lang="ru"] section h2 { font-size: clamp(1.95rem,6.1vw,2.7rem); overflow-wrap: anywhere; }
  .family-media { aspect-ratio: 1.55; }
  .family-meta > .icon { width: 1.8rem; height: 1.8rem; padding: .4rem; }
  .product-grid { gap: .62rem; }
  .card-meta { padding: .65rem; }
  .card-meta :is(.card-category, .card-name) { overflow-wrap: anywhere; }
  .card-name { font-size: .97rem; }
  .card-category { font-size: .7rem; }
  .factory-copy { grid-row: 1; }
  .detail-intro { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .family-meta { grid-template-columns: minmax(0,1fr); }
  .family-meta > .icon { display: none; }
  .brand img { width: 1.95rem; height: 1.95rem; }
  .brand strong { font-size: .85rem; }
  .brand small { font-size: .47rem; }
  .site-header .brand small { display: none; }
  .language-trigger { gap: .32rem; padding-inline-end: .44rem; }
  .hero-controls { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); }
  .hero-controls .button { font-size: .8rem; padding-inline: .42rem; }
}
@media (max-width: 680px) and (max-height: 730px) {
  .hero { --hero-stage-size: max(560px,calc(100svh - var(--header))); }
  .hero-inner { padding-block: clamp(12.25rem,32svh,15rem) 2rem; }
  .hero-media { height: 61%; }
  .hero-film { object-position: center 42%; }
}
@media (min-width: 681px) {
  .hero-copy:not(.active) { display: none; }
}
@media (max-height: 620px) and (min-width: 681px) {
  .hero { --hero-stage-size: max(420px, calc(100svh - var(--header))); }
  .hero :is(h1,.hero-title), :root[dir="rtl"] .hero :is(h1,.hero-title), :root[lang="ru"] .hero :is(h1,.hero-title) { font-size: clamp(2.55rem, 7.7svh, 4.2rem); }
  .hero-content { padding-block: .55rem; }
  .hero-inner { padding-block: 1.6rem 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .language-panel { animation: none; }
}
