/* =========================================================
   RIPO — wire & cable machinery
   Design system: precision industrial / editorial
   ========================================================= */

@font-face {
    font-family: 'Sora';
    src: url('/assets/fonts/sora.woff2') format('woff2');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0A0B0D;
    --ink-2: #101216;
    --ink-3: #171A20;
    --paper: #F4F1EA;
    --paper-2: #EAE5DA;
    --white: #FFFFFF;
    --red: #D2132F;
    --red-2: #E8324A;
    --red-dark: #A50E24;
    --copper: #B98A5C;
    --text: #14161A;
    --muted: #666C76;
    --muted-2: #8B9099;
    --line: rgba(20, 22, 26, .13);
    --line-strong: rgba(20, 22, 26, .28);
    --line-light: rgba(255, 255, 255, .14);
    --line-light-strong: rgba(255, 255, 255, .3);
    --container: 1340px;
    --gutter: clamp(20px, 4.2vw, 56px);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --header-h: 82px;
    --font-head: 'Sora', 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-ar: 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Noto Kufi Arabic', 'Arial', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-ar); }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: 0;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; }

.h2 { font-size: clamp(1.9rem, 3.3vw, 3.25rem); }
.h3 { font-size: clamp(1.35rem, 1.9vw, 1.8rem); }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.65; color: var(--text); }
.muted { color: var(--muted); }

.eyebrow {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 22px;
    font-family: var(--font-head);
    font-size: 11px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted);
}
html[dir="rtl"] .eyebrow { letter-spacing: .06em; }
.eyebrow__num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 20px; padding: 0 6px;
    background: var(--red); color: #fff;
    font-size: 10px; letter-spacing: .08em;
}
.eyebrow--light { color: rgba(255,255,255,.62); }
.eyebrow--light .eyebrow__num { background: var(--red-2); }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    height: 50px; padding: 0 26px;
    font-family: var(--font-head);
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    border: 1px solid transparent;
    overflow: hidden;
    transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
    white-space: nowrap;
}
html[dir="rtl"] .btn { letter-spacing: .02em; }
.btn span { position: relative; z-index: 2; }
.btn svg { position: relative; z-index: 2; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary::before {
    content: ""; position: absolute; inset: 0;
    background: var(--ink); transform: translateY(101%);
    transition: transform .45s var(--ease);
}
.btn--primary:hover::before { transform: translateY(0); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light::before {
    content: ""; position: absolute; inset: 0; background: var(--red);
    transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn--light:hover { color: #fff; }
.btn--light:hover::before { transform: translateY(0); }

.btn--sm { height: 42px; padding: 0 20px; font-size: 11px; }
.btn--lg { height: 56px; padding: 0 32px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head);
    font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 8px;
    transition: color .3s, border-color .3s;
}
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--red); border-color: var(--red); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow--light { color: #fff; border-color: var(--line-light-strong); }
.link-arrow--light:hover { color: var(--red-2); border-color: var(--red-2); }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.66); font-size: 11.5px; letter-spacing: .06em; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.topbar__item:hover { color: #fff; }
.topbar__sep { width: 1px; height: 12px; background: rgba(255,255,255,.22); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 4px rgba(232,50,74,.16); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(244,241,234,.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 40px rgba(10,11,13,.08); }
.header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    height: var(--header-h);
    transition: height .35s var(--ease);
}
.site-header.is-scrolled .header__inner { height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__img { display: block; height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
    position: relative;
    font-family: var(--font-head);
    font-size: 13px; font-weight: 500; letter-spacing: .03em;
    padding: 6px 0;
    transition: color .25s;
}
.nav__link::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--red); transition: width .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--red); }

.header__actions { display: flex; align-items: center; gap: 16px; }

.lang { position: relative; }
.lang__btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 42px; padding: 0 12px;
    font-family: var(--font-head); font-size: 12px; letter-spacing: .06em;
    border: 1px solid var(--line); transition: border-color .25s, background .25s;
}
.lang__btn:hover { border-color: var(--ink); }
.lang__menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
    min-width: 168px; padding: 8px;
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(10,11,13,.14);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .28s var(--ease);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__item {
    display: block; padding: 10px 12px;
    font-size: 13px; border-bottom: 1px solid rgba(20,22,26,.06);
    transition: background .2s, color .2s;
}
.lang__item:last-child { border-bottom: 0; }
.lang__item:hover { background: var(--paper); }
.lang__item.is-current { color: var(--red); font-weight: 600; }

.burger { display: none; width: 44px; height: 44px; position: relative; border: 1px solid var(--line); }
.burger span {
    position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--ink);
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.drawer {
    position: fixed; inset: 0; z-index: 55;
    background: var(--ink); color: #fff;
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
    display: flex; align-items: flex-start;
    padding-top: 110px;
    overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__inner { width: 100%; padding: 0 var(--gutter) 48px; margin: auto 0; }
.drawer__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.drawer__nav a {
    display: flex; align-items: baseline; gap: 18px;
    padding: 18px 0; border-bottom: 1px solid var(--line-light);
    font-family: var(--font-head); font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 500;
    letter-spacing: -.02em;
}
.drawer__nav a span { font-size: 11px; letter-spacing: .14em; color: var(--red-2); }
.drawer__nav a.is-active { color: var(--red-2); }
.drawer__lang { display: flex; gap: 10px; margin-top: 28px; }
.drawer__lang a { padding: 8px 14px; border: 1px solid var(--line-light); font-size: 12px; letter-spacing: .06em; }
.drawer__lang a.is-current { background: #fff; color: var(--ink); }
.drawer__meta { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: clamp(620px, calc(100svh - 122px), 900px);
    display: flex; flex-direction: column; justify-content: flex-end;
    background: #08090B; color: #fff;
    overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(8,9,11,.92) 0%, rgba(8,9,11,.55) 46%, rgba(8,9,11,.18) 100%),
        linear-gradient(180deg, rgba(8,9,11,.55) 0%, rgba(8,9,11,.1) 35%, rgba(8,9,11,.92) 100%);
}
.hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 25% 100%;
    opacity: .6;
}
.hero__side {
    position: absolute; top: 50%; inset-inline-end: 24px;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
    color: rgba(255,255,255,.38);
}
.hero__inner { position: relative; padding-top: 120px; padding-bottom: 64px; width: 100%; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 26px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.7);
}
.hero__title { font-size: clamp(2.35rem, 6vw, 5.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; max-width: 17ch; }
.hero__line { display: block; }
.hero__line--accent { color: var(--red-2); }
.hero__lead {
    max-width: 56ch; margin: 28px 0 0;
    font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7;
    color: rgba(255,255,255,.76);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.34); }
.hero__actions .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__foot { position: relative; border-top: 1px solid var(--line-light); }
.hero__foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 22px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; flex: 1; }
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat strong { font-family: var(--font-head); font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; }
.hstat span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hero__scroll { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero__scroll i { display: block; width: 60px; height: 1px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--red-2); transform: translateX(-100%); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink-2); color: #fff; padding: 26px 0 0; overflow: hidden; }
.marquee__head { padding-bottom: 18px; }
.marquee__label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.marquee__track { overflow: hidden; border-top: 1px solid var(--line-light); }
.marquee__row { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__row:hover { animation-play-state: paused; }
.marquee__item {
    display: inline-flex; align-items: center; gap: 26px;
    padding: 16px 26px;
    font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.72);
}
.marquee__item i { width: 4px; height: 4px; background: var(--red-2); transform: rotate(45deg); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 132px); }
.section--caps { background: #fff; }
.section--featured { background: var(--ink); color: #fff; }
.section--facts { background: var(--paper); }
.section--commit { background: var(--paper-2); }
.section--gallery { background: #fff; }
.section--news { background: var(--paper); }
.section--story { background: var(--paper); }
.section--timeline { background: #fff; }
.section--values { background: var(--paper-2); }
.section--quality { background: var(--ink); color: #fff; }
.section--network { background: var(--paper); }
.section--catalog { background: var(--paper); }
.section--related { background: #fff; }
.section--contact { background: var(--paper); }
.section--404 { background: var(--paper); padding-block: clamp(90px, 12vw, 160px); }
.section--facts-tight { padding-block: clamp(56px, 6vw, 84px); }

.section-head {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 40px; align-items: end;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head__lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 46ch; }
.section-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.section-head--light .section-head__lead { color: rgba(255,255,255,.6); }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); }
.intro__aside { position: relative; }
.intro__wire { margin-top: 34px; color: var(--line-strong); }
.intro__wire svg { width: 120px; height: 320px; }
.intro__cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); margin: 30px 0 36px; }
.intro__cols p { margin: 0; }

/* ---------- Capabilities ---------- */
.caps { border-top: 1px solid var(--line); }
.cap {
    position: relative;
    display: grid; grid-template-columns: 72px minmax(0, 1fr) 130px 46px;
    gap: 24px; align-items: center;
    padding: 28px 20px;
    border-bottom: 1px solid var(--line);
    transition: background .45s var(--ease), color .45s var(--ease), padding .45s var(--ease);
}
.cap__num { font-family: var(--font-head); font-size: 12px; letter-spacing: .1em; color: var(--muted-2); transition: color .35s; }
.cap__title { font-size: clamp(1.15rem, 1.7vw, 1.5rem); margin-bottom: 8px; }
.cap__desc { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 62ch; transition: color .35s; }
.cap__meta { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); text-align: end; }
.cap__arrow { width: 40px; height: 40px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; justify-self: end; transition: all .35s var(--ease); }
.cap:hover { background: var(--ink); color: #fff; padding-inline: 30px; }
.cap:hover .cap__desc, .cap:hover .cap__num, .cap:hover .cap__meta { color: rgba(255,255,255,.55); }
.cap:hover .cap__arrow { background: var(--red); border-color: var(--red); color: #fff; transform: translateX(4px); }
html[dir="rtl"] .cap:hover .cap__arrow { transform: translateX(-4px) scaleX(-1); }

/* ---------- Product grid / cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard {
    display: flex; flex-direction: column;
    background: var(--ink-3);
    border: 1px solid rgba(255,255,255,.07);
    transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
    height: 100%;
}
.pcard__media { position: relative; overflow: hidden; background: #fff; aspect-ratio: 16 / 10; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__cat {
    position: absolute; inset-inline-start: 12px; bottom: 12px;
    padding: 5px 10px;
    font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
    background: var(--ink); color: #fff;
}
.pcard__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 18px 20px; }
.pcard__title { font-size: 14.5px; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; color: #fff; }
.pcard__arrow { flex: none; width: 30px; height: 30px; border: 1px solid var(--line-light); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all .35s var(--ease); }
.pcard:hover { transform: translateY(-6px); border-color: rgba(232,50,74,.5); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.pcard:hover .pcard__arrow { background: var(--red); border-color: var(--red); color: #fff; }

.pgrid:not(.pgrid--dark) .pcard { background: #fff; border-color: var(--line); }
.pgrid:not(.pgrid--dark) .pcard__title { color: var(--text); }
.pgrid:not(.pgrid--dark) .pcard__arrow { border-color: var(--line-strong); color: var(--text); }
.pgrid:not(.pgrid--dark) .pcard:hover { box-shadow: 0 24px 50px rgba(10,11,13,.10); }

.pgrid__cell { min-width: 0; }
.pgrid__cell[hidden] { display: none; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: 26px 24px 0 0; border-inline-end: 1px solid var(--line); }
.fact:last-child { border-inline-end: 0; }
.fact__num { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4.4vw, 4.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.fact__label { display: block; margin-top: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Commitments ---------- */
.commit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.commit__item { padding: 34px 34px 8px 0; border-inline-end: 1px solid var(--line); }
.commit__item:last-child { border-inline-end: 0; padding-inline-end: 0; }
.commit__num {
    display: block; font-family: var(--font-head); font-size: 54px; font-weight: 700;
    color: transparent; -webkit-text-stroke: 1px rgba(20,22,26,.22);
    line-height: 1; margin-bottom: 20px;
}
.commit__item h3 { font-size: 1.28rem; margin-bottom: 12px; }
.commit__item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

.brandsplit { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(50px, 6vw, 84px); border: 1px solid var(--line); }
.brandsplit__panel { padding: clamp(28px, 3.5vw, 54px); background: #fff; }
.brandsplit__panel--accent { background: var(--ink); color: #fff; }
.brandsplit__tag { display: inline-block; margin-bottom: 22px; padding: 6px 12px; border: 1px solid var(--line-strong); font-size: 10px; letter-spacing: .16em; }
.brandsplit__panel--accent .brandsplit__tag { border-color: rgba(255,255,255,.3); color: var(--red-2); }
.brandsplit__panel h3 { font-size: 1.5rem; margin-bottom: 14px; }
.brandsplit__panel p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.brandsplit__panel--accent p { color: rgba(255,255,255,.62); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 18px; }
.gallery__item { position: relative; overflow: hidden; background: var(--paper-2); min-height: 240px; }
.gallery__item--wide { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.045); }
.gallery__cap {
    position: absolute; inset-inline: 0; bottom: 0; padding: 40px 20px 16px;
    background: linear-gradient(180deg, transparent, rgba(8,9,11,.72));
    color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- News ---------- */
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); height: 100%; transition: transform .5s var(--ease), box-shadow .5s; }
.ncard:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(10,11,13,.09); }
.ncard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.ncard__date { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ncard__title { font-size: 1.16rem; line-height: 1.4; }
.ncard__excerpt { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.7; flex: 1; }
.ncard__more { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ncard__more svg { transition: transform .35s var(--ease); }
.ncard:hover .ncard__more { color: var(--red); }
.ncard:hover .ncard__more svg { transform: translateX(4px); }

.nfeature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); margin-bottom: 18px; }
.nfeature__media { overflow: hidden; min-height: 300px; }
.nfeature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.nfeature:hover .nfeature__media img { transform: scale(1.04); }
.nfeature__body { padding: clamp(26px, 3.5vw, 52px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.nfeature__meta { display: flex; align-items: center; gap: 14px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nfeature__tag { padding: 4px 9px; background: var(--paper); color: var(--red); }
.nfeature__title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.2; }
.nfeature__excerpt { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 52ch; }
.nfeature__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(64px, 8vw, 110px); border-top: 2px solid var(--red); }
.cta-band__bg {
    position: absolute; inset-inline-end: -2%; bottom: -22%;
    font-family: var(--font-head); font-size: clamp(10rem, 26vw, 24rem); font-weight: 700;
    letter-spacing: -.04em; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08);
    pointer-events: none; user-select: none;
}
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; }
.cta-band__title { font-size: clamp(2rem, 4.2vw, 3.8rem); letter-spacing: -.03em; max-width: 18ch; }
.cta-band__lead { margin: 22px 0 0; color: rgba(255,255,255,.62); max-width: 56ch; font-size: 15px; line-height: 1.75; }
.cta-band__action { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-band__mail { font-size: 13px; color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.24); padding-bottom: 4px; }
.cta-band__mail:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #08090B; color: rgba(255,255,255,.7); padding-top: clamp(56px, 7vw, 90px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .55fr)); gap: 40px; padding-bottom: 54px; }
.brand--footer { color: #fff; }
.brand--footer .brand__img { height: 46px; }
.footer__official { margin: 14px 0 0; font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.footer__about { margin: 22px 0 22px; font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.52); max-width: 44ch; }
.footer__markets { display: flex; flex-wrap: wrap; gap: 6px; }
.footer__markets span { padding: 4px 8px; border: 1px solid rgba(255,255,255,.12); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.44); }
.footer__title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; font-weight: 500; }
.footer__col a, .footer__col p { display: block; margin: 0 0 10px; font-size: 13.5px; color: rgba(255,255,255,.72); transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__label { margin-top: 14px !important; margin-bottom: 2px !important; font-size: 9.5px !important; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35) !important; }
.footer__giant { font-family: var(--font-head); font-size: clamp(5rem, 19vw, 17rem); font-weight: 700; letter-spacing: -.03em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.1); padding-top: 30px; margin-bottom: 10px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.4); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: #fff; }

.to-top {
    position: fixed; inset-inline-end: 22px; bottom: 94px; z-index: 50;
    width: 44px; height: 44px;
    background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--paper-2); padding-block: clamp(64px, 8vw, 108px) clamp(52px, 6vw, 80px); }
.page-hero__lines { position: absolute; inset: 0; display: flex; justify-content: space-between; padding-inline: var(--gutter); pointer-events: none; }
.page-hero__lines span { width: 1px; height: 100%; background: var(--line); opacity: .6; }
.page-hero__inner { position: relative; }
.page-hero__crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.page-hero__crumb a:hover { color: var(--red); }
.page-hero__title { font-size: clamp(2.3rem, 5.4vw, 4.9rem); letter-spacing: -.035em; max-width: 22ch; line-height: 1.03; }
html[dir="rtl"] .page-hero__title { line-height: 1.25; }
.page-hero__lead { margin: 26px 0 0; max-width: 62ch; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.75; color: var(--muted); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 84px); align-items: start; }
.story__media { position: relative; }
.story__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.story__badge { position: absolute; inset-inline-start: -1px; bottom: -1px; background: var(--red); color: #fff; padding: 20px 24px; }
.story__badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.story__badge span { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.story__body p { margin: 0 0 18px; }
.story__body .official-line { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .12em; color: var(--muted-2); }

/* ---------- Timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 120px 24px minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tl__year { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.tl__dot { width: 7px; height: 7px; margin-top: 9px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 5px rgba(210,19,47,.1); }
.tl__text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 72ch; }

/* ---------- Quality / partners ---------- */
.quality { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 70px); align-items: center; }
.quality .lead { color: rgba(255,255,255,.66); margin-top: 20px; }
.logos { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-chip { padding: 12px 18px; border: 1px solid rgba(255,255,255,.16); font-family: var(--font-head); font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.7); transition: all .3s; }
.logo-chip:hover { border-color: var(--red-2); color: #fff; }

/* ---------- Network ---------- */
.network { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.network__item { padding: 28px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: background .35s; }
.network__item:hover { background: #fff; }
.network__idx { font-size: 10px; letter-spacing: .14em; color: var(--red); }
.network__place { font-family: var(--font-head); font-size: 1.32rem; font-weight: 500; }
.network__type { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Catalog / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 16px; border: 1px solid var(--line); background: transparent;
    font-family: var(--font-head); font-size: 11.5px; letter-spacing: .05em;
    transition: all .3s var(--ease);
}
.filter span { font-size: 9.5px; color: var(--muted-2); }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.is-active span { color: rgba(255,255,255,.55); }
.catalog__empty { margin: 40px 0 0; color: var(--muted); }

/* ---------- Product detail ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 26px 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumb a:hover { color: var(--red); }
.crumb__current { color: var(--text); }
.product { background: var(--paper); padding-bottom: clamp(50px, 6vw, 80px); }
.product__main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.product__media { position: relative; background: #fff; border: 1px solid var(--line); }
.product__media img { width: 100%; height: auto; object-fit: contain; padding: 14px; }
.product__badge { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--ink); color: #fff; padding: 6px 11px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.product__title { font-size: clamp(1.9rem, 3.4vw, 3.1rem); letter-spacing: -.03em; margin-bottom: 20px; }
.product__desc { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 28px; }
.product__seo { margin: -10px 0 26px; font-size: 13.5px; line-height: 1.75; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product__note { margin: 22px 0 0; font-size: 12.5px; color: var(--muted-2); line-height: 1.7; }
.product__detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 60px); margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(34px, 4vw, 48px); border-top: 1px solid var(--line); }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; }
.feature-list li { position: relative; padding: 0 0 0 22px; margin-bottom: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.feature-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 10px; height: 1px; background: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 7px 12px; border: 1px solid var(--line-strong); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Article ---------- */
.article { padding-bottom: clamp(40px, 5vw, 70px); }
.article__head { max-width: 980px; padding-top: 0; }
.article__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article__title { font-size: clamp(2rem, 4.4vw, 3.8rem); letter-spacing: -.035em; max-width: 24ch; line-height: 1.1; }
html[dir="rtl"] .article__title { line-height: 1.35; }
.article__lead { margin: 24px 0 0; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.75; color: var(--muted); max-width: 64ch; }
.article__hero { margin: clamp(34px, 4vw, 54px) 0 0; }
.article__hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article__body { max-width: 780px; padding-top: clamp(34px, 4vw, 54px); }
.article__body p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.85; color: #2B3037; }
.article__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 34px 0; }
.article__gallery figure { margin: 0; overflow: hidden; }
.article__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article__video { margin: 34px 0; background: #000; }
.article__video video { width: 100%; height: auto; }

/* ---------- Company film ---------- */
.film { position: relative; background: #0b0c0e; border: 1px solid var(--line-strong); }
.film::before, .film::after {
    content: ""; position: absolute; width: 24px; height: 24px;
    border: 2px solid var(--red); z-index: 2; pointer-events: none;
}
.film::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.film::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.film [hidden] { display: none !important; }
.film__video { width: 100%; height: auto; display: block; background: #000; }
.film__poster { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,.15), rgba(10,11,13,.55)); transition: background .35s; }
.film__poster:hover .film__veil { background: linear-gradient(180deg, rgba(10,11,13,.28), rgba(10,11,13,.66)); }
.film__btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 78px; height: 78px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(210,19,47,.94); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 18px 50px rgba(10,11,13,.5);
    transition: transform .35s var(--ease), background .3s;
}
.film__btn::after {
    content: ""; position: absolute; inset: -9px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
    animation: fabRing 3s var(--ease-out) infinite;
}
.film__btn svg { margin-left: 4px; }
.film__poster:hover .film__btn { transform: translate(-50%, -50%) scale(1.08); background: var(--red); }
.film__hint {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    padding: 6px 12px; background: rgba(10,11,13,.55); color: #fff;
    font-family: var(--font-head); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
    white-space: nowrap; backdrop-filter: blur(6px);
    transition: opacity .3s;
}
.film__poster:hover .film__hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .film__btn::after { animation: none; }
}
.article__back { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 6vw, 90px); }
.contact__aside { display: flex; flex-direction: column; gap: 32px; }
.contact__item { border-top: 1px solid var(--line); padding-top: 20px; }
.contact__label { display: block; margin-bottom: 10px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.contact__label--sub { margin-top: 18px; }
.contact__item p { margin: 0 0 4px; font-size: 16px; }
.contact__item a { font-size: 16px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.contact__item a:hover { color: var(--red); border-color: var(--red); }
.contact__hint { display: block; margin-top: 8px; font-size: 12px; color: var(--muted-2); }
.contact__wire { margin-top: auto; color: var(--line-strong); }
.contact__form-wrap { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 46px); }
.contact__form-lead { margin: 10px 0 26px; font-size: 13px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field--full { width: 100%; }
.field__label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 0;
    background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
    font-size: 15px; transition: border-color .3s;
    border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #A8ACB3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 12px) 20px, calc(100% - 7px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
html[dir="rtl"] .field select { background-position: 12px 20px, 17px 20px; }
.form__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.form__privacy { margin: 0; font-size: 11.5px; color: var(--muted-2); max-width: 34ch; }
.form__msg { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; }
.form__msg.is-ok { color: #1B7A43; }
.form__msg.is-err { color: var(--red); }
.form.is-sending { opacity: .7; pointer-events: none; }

/* ---------- 404 ---------- */
.notfound { position: relative; max-width: 760px; }
.notfound__code { font-family: var(--font-head); font-size: clamp(6rem, 16vw, 13rem); line-height: .8; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--line-strong); display: block; margin-bottom: 20px; }
.notfound__title { font-size: clamp(1.8rem, 3.4vw, 3rem); margin-bottom: 18px; }
.notfound__text { color: var(--muted); max-width: 52ch; margin: 0 0 30px; }
.notfound__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.cap:nth-child(2), .pgrid__cell:nth-child(2), .ncard:nth-child(2) { transition-delay: .06s; }
.cap:nth-child(3), .pgrid__cell:nth-child(3), .ncard:nth-child(3) { transition-delay: .12s; }
.cap:nth-child(4), .pgrid__cell:nth-child(4) { transition-delay: .18s; }
.cap:nth-child(5), .pgrid__cell:nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- RTL ---------- */
html[dir="rtl"] .hero__side { writing-mode: vertical-rl; }
html[dir="rtl"] .cap { grid-template-columns: 72px minmax(0, 1fr) 130px 46px; }
html[dir="rtl"] .cap__meta { text-align: start; }
html[dir="rtl"] .cap__arrow { justify-self: start; transform: scaleX(-1); }
html[dir="rtl"] .cap:hover .cap__arrow { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .tl__dot { order: 0; }
html[dir="rtl"] .pcard__cat { inset-inline-start: 12px; }
html[dir="rtl"] .commit__item { padding-inline-end: 0; padding-inline-start: 34px; border-inline-end: 0; border-inline-start: 1px solid var(--line); }
html[dir="rtl"] .commit__item:first-child { padding-inline-start: 0; border-inline-start: 0; }
html[dir="rtl"] .hero__title { max-width: 20ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav { gap: 22px; }
    .header__cta { display: none; }
    .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__top { grid-template-columns: 1.2fr .6fr .6fr .7fr; gap: 30px; }
    .cap { grid-template-columns: 60px minmax(0, 1fr) 100px 42px; }
}

@media (max-width: 980px) {
    :root { --header-h: 72px; }
    .nav { display: none; }
    .burger { display: block; }
    .hero__side { display: none; }
    .hero__title { max-width: 20ch; }
    .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .hero__scroll { display: none; }
    .section-head { grid-template-columns: 1fr; gap: 20px; }
    .section-head__lead { max-width: 60ch; }
    .intro { grid-template-columns: 1fr; gap: 28px; }
    .intro__wire { display: none; }
    .intro__cols { grid-template-columns: 1fr; }
    .cap { grid-template-columns: 48px minmax(0, 1fr) 38px; padding: 24px 0; }
    .cap__meta { display: none; }
    .pgrid, .pgrid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:nth-child(2) { border-inline-end: 0; }
    .fact { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
    .commit { grid-template-columns: 1fr; }
    .commit__item { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
    .commit__item:last-child { border-bottom: 0; }
    .brandsplit { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .gallery__item--wide { grid-column: auto; grid-row: auto; min-height: 280px; }
    .gallery__item { min-height: 240px; }
    .ngrid { grid-template-columns: 1fr; }
    .nfeature { grid-template-columns: 1fr; }
    .nfeature__media { min-height: 240px; }
    .cta-band__inner { grid-template-columns: 1fr; align-items: start; }
    .story { grid-template-columns: 1fr; }
    .story__media img { aspect-ratio: 16 / 10; }
    .quality { grid-template-columns: 1fr; }
    .product__main { grid-template-columns: 1fr; }
    .product__detail { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
    .network { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .article__body { max-width: none; }
}

@media (max-width: 760px) {
    body { font-size: 15px; }
    .topbar__item--hide-sm { display: none; }
    .hero { min-height: calc(100svh - 108px); }
    .hero__inner { padding-top: 90px; padding-bottom: 40px; }
    .hero__lead { font-size: 15px; }
    .hero__actions .btn { flex: 1; min-width: 150px; }
    .hstat strong { font-size: 1.35rem; }
    .section { padding-block: 64px; }
    .pgrid, .pgrid--three { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr 1fr; }
    .fact__num { font-size: 2.2rem; }
    .form__row { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .article__gallery { grid-template-columns: 1fr; }
    .page-hero__title { font-size: clamp(2rem, 8vw, 3rem); }
    .tl { grid-template-columns: 1fr; gap: 8px; }
    .tl__dot { display: none; }
    .contact__form-wrap { padding: 22px; }
}

@media (max-width: 520px) {
    .topbar__right .topbar__item:last-child, .topbar__sep { display: none; }
    .brand__img { height: 32px; }
    .hero__stats { grid-template-columns: 1fr 1fr; }
    .hero__foot-inner { padding-block: 18px; }
}

/* ---------- Live chat ---------- */
.chat { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 80; font-family: var(--font-body); }
.chat [hidden] { display: none !important; }
html[dir="rtl"] .chat { font-family: var(--font-ar); }

.chat__fab {
    position: relative;
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--red-2), var(--red-dark)); color: #fff;
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(210,19,47,.38);
    transition: transform .35s var(--ease), box-shadow .3s;
}
.chat__fab::after {
    content: ""; position: absolute; inset: -5px;
    border-radius: 50%; border: 1px solid rgba(210,19,47,.45);
    animation: fabRing 3s var(--ease-out) infinite;
    pointer-events: none;
}
.chat__fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 44px rgba(210,19,47,.45); }
@keyframes fabRing {
    0% { transform: scale(.88); opacity: 0; }
    30% { opacity: .7; }
    70%, 100% { transform: scale(1.28); opacity: 0; }
}
.chat__badge {
    position: absolute; top: -3px; inset-inline-end: -3px;
    min-width: 20px; height: 20px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; border-radius: 10px;
    font-size: 10px; font-weight: 700; font-family: var(--font-head);
    border: 2px solid var(--paper);
    animation: badgePop .35s var(--ease-out);
}
@keyframes badgePop { from { transform: scale(.4); opacity: 0; } }

.chat__panel {
    position: absolute; inset-inline-end: 0; bottom: 62px;
    width: min(268px, calc(100vw - 32px));
    height: min(336px, calc(100dvh - 150px));
    display: flex; flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 0 0 1px rgba(10,11,13,.04), 0 16px 36px rgba(10,11,13,.14), 0 32px 80px rgba(10,11,13,.24);
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97);
    transform-origin: 100% 100%;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
    overflow: hidden;
}
html[dir="rtl"] .chat__panel { transform-origin: 0% 100%; }
.chat__panel.is-open { opacity: 1; visibility: visible; transform: none; }

.chat__mini {
    position: absolute; bottom: 4px; inset-inline-end: 68px;
    display: flex; align-items: center; gap: 9px;
    max-width: min(250px, calc(100vw - 110px));
    padding: 8px 12px 8px 8px;
    background: var(--ink); color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-inline-start: 2px solid var(--red);
    box-shadow: 0 14px 34px rgba(10,11,13,.3);
    text-align: start;
    animation: miniIn .35s var(--ease);
    transition: transform .25s var(--ease), background .25s;
}
.chat__mini:hover { background: var(--ink-3); transform: translateY(-2px); }
.chat__mini-avatar {
    width: 28px; height: 28px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--red-2), var(--red-dark));
    font-family: var(--font-head); font-weight: 700; font-size: 13px;
}
.chat__mini-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat__mini-body strong { font-size: 11.5px; letter-spacing: .02em; }
.chat__mini-body small { font-size: 9.5px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__mini-count {
    min-width: 18px; height: 18px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--red); border-radius: 9px; font-size: 10px; font-weight: 700; flex: none;
}
@keyframes miniIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.chat__head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 10px; background: linear-gradient(135deg, var(--ink-3), var(--ink)); color: #fff; flex: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -2px 0 var(--red);
}
.chat__id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat__avatar {
    width: 26px; height: 26px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--red-2), var(--red-dark)); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 12px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 2px 8px rgba(210,19,47,.35);
}
.chat__id strong { display: block; font-family: var(--font-head); font-size: 11.5px; letter-spacing: .02em; }
.chat__status { display: flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 9px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.chat__dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); flex: none; }
.chat__dot.is-on { background: #35C46A; box-shadow: 0 0 0 3px rgba(53,196,106,.18); animation: dotPulse 2.2s ease-in-out infinite; }
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(53,196,106,.18); }
    50% { box-shadow: 0 0 0 6px rgba(53,196,106,.05); }
}
.chat__close {
    width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
    transition: transform .3s var(--ease), color .2s, border-color .2s, background .2s;
}
.chat__close:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); transform: rotate(90deg); }

.chat__intro { padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.chat__intro-text { margin: 0; padding-inline-start: 9px; border-inline-start: 2px solid var(--red); font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.chat__field { display: flex; flex-direction: column; gap: 4px; }
.chat__field span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.chat__field input {
    padding: 6px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
    font-size: 12.5px; border-radius: 0;
    transition: border-color .25s;
}
.chat__field input::placeholder { color: var(--muted-2); }
.chat__field input:focus { outline: none; border-color: var(--red); }
.chat__start {
    margin-top: 0; height: 36px; background: var(--ink); color: #fff;
    font-family: var(--font-head); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    transition: background .3s, transform .25s var(--ease), box-shadow .3s;
}
.chat__start:hover { background: var(--red); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(210,19,47,.3); }
.chat__start:active { transform: translateY(0) scale(.985); box-shadow: none; }
.chat__privacy { margin: 0; font-size: 10px; color: var(--muted-2); line-height: 1.5; }
.chat__notice { margin: 0; min-height: 0; font-size: 11.5px; color: var(--red); }

.chat__body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat__msgs {
    flex: 1; overflow-y: auto; padding: 11px 10px;
    display: flex; flex-direction: column; gap: 7px; background: #F8F6F1;
    scroll-behavior: smooth;
    scrollbar-width: thin; scrollbar-color: rgba(20,22,26,.22) transparent;
}
.chat__msgs::-webkit-scrollbar, .chat__intro::-webkit-scrollbar { width: 5px; }
.chat__msgs::-webkit-scrollbar-track, .chat__intro::-webkit-scrollbar-track { background: transparent; }
.chat__msgs::-webkit-scrollbar-thumb, .chat__intro::-webkit-scrollbar-thumb { background: rgba(20,22,26,.16); border-radius: 3px; }
.chat__msgs::-webkit-scrollbar-thumb:hover, .chat__intro::-webkit-scrollbar-thumb:hover { background: rgba(20,22,26,.34); }
.cmsg { display: flex; flex-direction: column; max-width: 90%; animation: msgIn .32s var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cmsg--visitor { align-self: flex-end; align-items: flex-end; }
.cmsg--admin { align-self: flex-start; }
.cmsg--system { align-self: center; max-width: 96%; }
.cmsg__meta { font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.cmsg__bubble {
    padding: 7px 9px; font-size: 12px; line-height: 1.5;
    background: #fff; border: 1px solid var(--line);
    border-radius: 3px 3px 3px 0;
    box-shadow: 0 1px 3px rgba(10,11,13,.06);
    word-break: break-word;
}
.cmsg--visitor .cmsg__bubble {
    background: linear-gradient(135deg, var(--ink-2), var(--ink));
    color: #fff; border-color: var(--ink);
    border-radius: 3px 3px 0 3px;
    box-shadow: 0 2px 10px rgba(10,11,13,.22);
}
.cmsg--system .cmsg__bubble {
    background: transparent; border: 1px dashed var(--line-strong); color: var(--muted);
    font-size: 10.5px; text-align: center; padding: 5px 12px; border-radius: 999px;
    box-shadow: none;
}
.cmsg__time { margin-top: 2px; font-size: 8px; color: var(--muted-2); }
.cmsg--error { align-self: center; color: var(--red); font-size: 10.5px; animation: msgIn .32s var(--ease-out); }

.chat__form { display: flex; align-items: flex-end; gap: 5px; padding: 8px; border-top: 1px solid var(--line); background: var(--paper); flex: none; }
.chat__form textarea {
    flex: 1; resize: none; min-height: 34px; max-height: 80px;
    padding: 7px 8px; border: 1px solid var(--line); background: #fff;
    font-size: 12px; line-height: 1.45; border-radius: 0;
    transition: border-color .25s, box-shadow .25s;
}
.chat__form textarea::placeholder { color: var(--muted-2); }
.chat__form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(210,19,47,.1); }
.chat__send {
    width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--red-2), var(--red-dark)); color: #fff;
    box-shadow: 0 4px 12px rgba(210,19,47,.28);
    transition: background .25s, transform .25s var(--ease), box-shadow .25s;
}
.chat__send:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(210,19,47,.36); }
.chat__send:active { transform: scale(.9); box-shadow: none; }
.chat__send svg { transition: transform .25s var(--ease); }
.chat__send:hover svg { transform: translateX(2px); }
html[dir="rtl"] .chat__send:hover svg { transform: translateX(-2px); }
.chat__body .chat__privacy { padding: 0 8px 6px; font-size: 8.5px; }

@media (prefers-reduced-motion: reduce) {
    .chat__fab::after, .chat__dot.is-on, .chat__badge, .cmsg { animation: none !important; }
    .chat__msgs { scroll-behavior: auto; }
}

@media (max-width: 560px) {
    .chat { inset-inline-end: 14px; bottom: 14px; }
    .chat__fab { width: 52px; height: 52px; }
    .chat__panel {
        position: fixed; inset: auto 12px 74px 12px;
        width: auto; height: min(32dvh, 300px);
        border: 1px solid var(--line);
    }
    .chat__panel.is-open { transform: none; }
    .chat__mini { inset-inline-end: 62px; bottom: 4px; max-width: calc(100vw - 120px); }
    .to-top { bottom: 82px; inset-inline-end: 14px; }
}
