/* =========================================================
   بتن شیمی خاورمیانه | BETON CHIMIE Middle East
   Brand: red #B42126 and green #327244, taken from the logo
   Shape system: sharp. Radius 2px on every interactive element and card.
   ========================================================= */

:root {
  /* sampled from the Beton Chimie logo */
  --red: #B42126;
  --red-strong: #93161C;
  --red-ink: #A51E23;
  --red-soft: #FBECEC;
  --green: #327244;
  --green-strong: #245533;
  --green-ink: #2A663B;
  --green-soft: #E7F0E9;

  --bg: #F4F5F4;
  --surface: #FFFFFF;
  --surface-2: #E9ECEA;
  --ink: #131816;
  --ink-2: #333B37;
  --muted: #58615C;
  --line: #D7DCD9;
  --line-strong: #AEB6B1;
  --header-bar: #B42126;
  --logo-gap: #FFFFFF;
  --shadow: 0 18px 50px -24px rgba(19, 24, 22, 0.28);

  --radius: 2px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1320px;
  --gutter: 16px;

  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-latin: "Montserrat", "Vazirmatn", "Segoe UI", sans-serif;

  --z-content: 1;
  --z-teaser: 5;
  --z-header: 40;
  --z-mega: 50;
  --z-preloader: 60;
  --z-skip: 70;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #C9343A;
    --red-strong: #A8252B;
    --red-ink: #FF8A8E;
    --red-soft: #2B1719;
    --green: #3D8A55;
    --green-strong: #2F6F43;
    --green-ink: #7CCB93;
    --green-soft: #132219;
    --bg: #0E1211;
    --surface: #151A18;
    --surface-2: #1B2220;
    --ink: #E8ECEA;
    --ink-2: #C4CBC7;
    --muted: #9AA39E;
    --line: #28312D;
    --line-strong: #46504B;
    --header-bar: #A51E23;
    --logo-gap: #151A18;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --red: #C9343A;
  --red-strong: #A8252B;
  --red-ink: #FF8A8E;
  --red-soft: #2B1719;
  --green: #3D8A55;
  --green-strong: #2F6F43;
  --green-ink: #7CCB93;
  --green-soft: #132219;
  --bg: #0E1211;
  --surface: #151A18;
  --surface-2: #1B2220;
  --ink: #E8ECEA;
  --ink-2: #C4CBC7;
  --muted: #9AA39E;
  --line: #28312D;
  --line-strong: #46504B;
  --header-bar: #A51E23;
  --logo-gap: #151A18;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  transition: background-color .3s ease, color .3s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection { background: var(--red); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Typography ---------- */
.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.section-title--lg {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--red-ink);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

/* split-word wrappers generated by JS (Persian must split by word, never by letter) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .2s var(--ease-out);
}
.btn i { font-size: 1.15em; transition: transform .35s var(--ease-out); }
.btn:hover i.ph-arrow-left { transform: translateX(-5px); }
.btn:active { transform: scale(.98); }

.btn--red { --btn-bg: var(--red); --btn-fg: #fff; }
.btn--red:hover { --btn-bg: var(--red-strong); }

.btn--light { --btn-bg: #fff; --btn-fg: #A3141F; }
.btn--light:hover { --btn-bg: #F3E3E4; }

.btn--ghost-light {
  --btn-bg: rgba(10, 14, 12, .28);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: #131816; border-color: #fff; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }

.btn--whatsapp { --btn-bg: #1E7E4A; --btn-fg: #fff; }
.btn--whatsapp:hover { --btn-bg: #17663B; }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 1.1rem; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red-ink);
}
.text-link i { transition: transform .3s var(--ease-out); }
.text-link:hover i { transform: translateX(-5px); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.25rem;
  transition: background-color .2s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); }
.icon-btn:active { transform: scale(.96); }
.icon-btn--ink { color: var(--ink); }
.icon-btn--ink:hover { background: var(--surface-2); }

/* ---------- Preloader ---------- */
.preloader { display: none; }

.js .preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: grid;
  place-items: center;
  background: var(--bg);
  /* fail-safe: never trap the page if a script is blocked */
  animation: preloader-failsafe 0s 7s forwards;
}
@keyframes preloader-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.preloader__mark {
  position: relative;
  width: 92px;
  aspect-ratio: 474 / 512;
}
.preloader__mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* the logo "fills up" like the flask it depicts */
.preloader__mark-ghost { opacity: .12; filter: grayscale(1); }
.preloader__mark-fill { clip-path: inset(100% 0 0 0); }
.preloader__name {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.4;
}
.preloader__name span { color: var(--green-ink); font-weight: 600; }
.preloader__bar {
  width: 160px;
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
}
.preloader__curtain {
  position: absolute;
  inset: 0;
  transform: translateY(101%);
}
.preloader__curtain--red { background: var(--red); }
.preloader__curtain--green { background: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: transform .45s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-bar {
  background: var(--header-bar);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.header-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  padding: 0 14px;
  /* the logo always sits on white, like the Sika logo block */
  background: #fff;
  color: #131816;
  flex-shrink: 0;
}
.logo-tile .logo-sub { color: #327244; }
.logo-tile .logo-en { color: #58615C; }
/* the tab hanging under the bar, like the Sika logo block */
.logo-tile::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto 0;
  height: 22px;
  background: inherit;
  transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.site-header.is-scrolled .logo-tile::after { transform: scaleY(0); }

.logo-mark {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}
.logo-text { display: grid; line-height: 1.15; }
.logo-name { font-size: 1.2rem; font-weight: 900; }
.logo-sub { font-size: .92rem; font-weight: 600; color: var(--green-ink); }
.logo-en {
  margin-top: 3px;
  font-family: var(--font-latin);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  direction: ltr;
  text-align: right;
}

.latin { font-family: var(--font-latin); }

.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-inline-start: 8px;
}
.main-nav a {
  position: relative;
  padding: 8px 12px;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 12px 2px 12px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.main-nav a:hover::after,
.main-nav a.is-current::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.header-cta { display: none; margin-inline: 8px; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}
.menu-btn:hover { background: #fff; color: #A3141F; }
.menu-btn__lines { display: grid; gap: 5px; width: 18px; }
.menu-btn__lines span { height: 2px; background: currentColor; transition: transform .3s var(--ease-out); }
.menu-btn__lines span:last-child { width: 70%; }
.menu-btn:hover .menu-btn__lines span:last-child { transform: scaleX(1.43); transform-origin: right; }

@media (max-width: 520px) {
  .logo-en { display: none; }
  .logo-mark { width: 34px; }
  .logo-name { font-size: 1.05rem; }
  .header-actions [data-theme-toggle] { display: none; }
  .menu-btn > span:last-child { display: none; }
}
@media (min-width: 760px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1140px) {
  .main-nav { display: flex; }
}

/* ---------- Mega menu ---------- */
.mega {
  position: fixed;
  inset: 0;
  z-index: var(--z-mega);
  background: rgba(8, 11, 10, .5);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mega[hidden] { display: none; }
.mega__panel {
  min-height: 100dvh;
  background: var(--bg);
  border-top: 6px solid var(--red);
  padding-bottom: 48px;
}
.mega__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.mega-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 18px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.mega-search:focus-within { border-color: var(--red); }
.mega-search i { font-size: 1.35rem; color: var(--muted); }
.mega-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  outline: none;
}
.mega-search input::placeholder { color: var(--muted); opacity: 1; }
.mega-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.mega__results { padding-top: 28px; }
.search-results { display: grid; gap: 2px; }
.search-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  transition: background-color .2s ease;
}
.search-results a:hover { background: var(--red-soft); }
.search-results .res-name { font-weight: 700; }
.search-results .res-cat { font-size: .9rem; color: var(--muted); }
.search-results .res-code { font-family: var(--font-latin); font-size: .85rem; font-weight: 800; color: var(--red-ink); margin-inline-start: 6px; }
.search-results .res-all { justify-content: center; font-weight: 800; color: var(--red-ink); }
.search-empty { padding: 24px 0; color: var(--muted); }
.search-empty a { color: var(--red-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.mega__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 24px;
  padding-top: 40px;
}
.mega__title {
  margin-bottom: 14px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--red-ink);
}
.mega__col li + li { margin-top: 4px; }
.mega__col a {
  display: inline-block;
  padding: 4px 0;
  font-size: 1.12rem;
  font-weight: 600;
  background: linear-gradient(var(--red), var(--red)) no-repeat right bottom / 0 2px;
  transition: background-size .35s var(--ease-out), color .2s ease;
}
.mega__col a:hover { background-size: 100% 2px; color: var(--red-ink); }

.mega__feature {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
}
.mega__feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.mega__feature:hover img { transform: scale(1.06); }
.mega__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 11, 10, .85), rgba(8, 11, 10, .05) 70%);
}
.mega__feature-text {
  position: absolute;
  inset: auto 20px 18px 20px;
  z-index: 1;
  display: grid;
  line-height: 1.5;
}
.mega__feature-text strong { font-size: 1.3rem; font-weight: 800; }

@media (min-width: 900px) {
  .mega__grid { grid-template-columns: repeat(4, 1fr) 1.4fr; }
  .mega__feature { grid-column: auto; min-height: 280px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 120px;
  color: #fff;
  overflow: hidden;
  background: #1a201d;
}
.hero__media { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 14, 12, .82) 0%, rgba(10, 14, 12, .35) 45%, rgba(10, 14, 12, .15) 100%),
    linear-gradient(to left, rgba(10, 14, 12, .45), transparent 65%);
}

.hero__content { position: relative; z-index: var(--z-content); }
.hero__title {
  max-width: 11.5em;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  font-weight: 900;
  line-height: 1.22;
  text-wrap: balance;
}
.hero__lead {
  max-width: 36ch;
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, .9);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__controls {
  position: relative;
  z-index: var(--z-content);
  margin-top: 48px;
}
.hero__dots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
}
.hero__dots--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; }
@media (max-width: 600px) {
  .hero__dots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
}
.hero__dot {
  display: grid;
  gap: 8px;
  text-align: right;
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
  font-weight: 600;
  transition: color .3s ease;
}
.hero__dot.is-active,
.hero__dot:hover { color: #fff; }
.hero__dot-track {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}
.hero__dot-fill {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
}
.hero__dot.is-done .hero__dot-fill { transform: scaleX(1); }

@media (max-width: 600px) {
  .hero__dot-label { font-size: .78rem; line-height: 1.5; }
  .hero { padding-bottom: 96px; }
}

/* ---------- Teaser tiles ---------- */
.teasers {
  position: relative;
  z-index: var(--z-teaser);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: -64px;
}
.teaser {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 0 24px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.teaser > i:first-child { font-size: 1.6rem; }
.teaser__arrow { margin-inline-start: auto; font-size: 1.3rem; transition: transform .35s var(--ease-out); }
.teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .16);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.teaser:hover::before { transform: scaleX(1); }
.teaser:hover .teaser__arrow { transform: translateX(-6px); }
.teaser--red { background: var(--red); }
.teaser--ink { background: #1B2320; }
.teaser--green { background: var(--green); }

@media (min-width: 860px) {
  .teasers { grid-template-columns: repeat(3, 1fr); }
  .teaser { min-height: 112px; font-size: 1.2rem; }
}

/* ---------- Help ---------- */
.help { padding: 88px 0 72px; }
.help__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.help__list a,
.help__list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  height: 100%;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  text-align: right;
  line-height: 1.6;
  transition: border-color .25s ease, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.help__list i {
  font-size: 1.9rem;
  color: var(--red-ink);
  transition: transform .4s var(--ease-out);
}
.help__list a:hover,
.help__list button:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.help__list a:hover i,
.help__list button:hover i { transform: scale(1.12) rotate(-6deg); }
.help__list li:last-child { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .help__list { grid-template-columns: repeat(5, 1fr); }
  .help__list li:last-child { grid-column: auto; }
}

/* ---------- Products bento ---------- */
.products { padding: 72px 0 104px; }
.products .section-title { max-width: 18em; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 14px;
  margin-top: 40px;
}
.bento__cell {
  position: relative;
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
}
.bento__media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
}
.bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.bento__cell:hover .bento__media img { transform: scale(1.06); }
.bento__cell:has(.bento__media) { border: 0; color: #fff; }
.bento__cell:has(.bento__media)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 14, 12, .88) 0%, rgba(10, 14, 12, .35) 50%, rgba(10, 14, 12, 0) 80%);
}
/* red wipe line on hover */
.bento__cell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.bento__cell:hover::after { transform: scaleX(1); }

.bento__body { position: relative; max-width: 44ch; }
.bento__body h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.45;
}
.bento__body p {
  margin-top: 8px;
  font-size: .98rem;
  line-height: 1.8;
  opacity: .88;
}
.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
}
.bento__link i { transition: transform .3s var(--ease-out); }
.bento__cell:hover .bento__link i { transform: translateX(-6px); }

.bento__count {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  background: var(--red);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  border-radius: var(--radius);
}

/* packshot cell: product packaging on a light panel instead of a photo */
.bento__cell--pack {
  background: var(--green-soft);
  border: 0;
  color: var(--ink);
  justify-content: space-between;
  gap: 20px;
}
.bento__pack {
  display: flex;
  justify-content: center;
  gap: 8px;
  height: 150px;
}
.bento__pack img {
  height: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .6s var(--ease-out);
}
.bento__cell--pack:hover .bento__pack img:first-child { transform: translateY(-6px) rotate(-3deg); }
.bento__cell--pack:hover .bento__pack img:last-child { transform: translateY(-6px) rotate(3deg); }
:root[data-theme="dark"] .bento__pack img { mix-blend-mode: normal; border-radius: var(--radius); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bento__pack img { mix-blend-mode: normal; border-radius: var(--radius); }
}

.bento--cats { grid-auto-rows: minmax(250px, auto); }
@media (min-width: 640px) {
  .bento--cats .bento__cell { grid-column: span 6; }
  .bento--cats .cat-a { grid-column: span 12; min-height: 380px; }
}
@media (min-width: 1024px) {
  .bento--cats .cat-a { grid-column: span 5; grid-row: span 2; min-height: 520px; padding: 36px; }
  .bento--cats .cat-b { grid-column: span 4; }
  .bento--cats .cat-c { grid-column: span 3; }
  .bento--cats .cat-d { grid-column: span 3; }
  .bento--cats .cat-e { grid-column: span 4; }
  .bento--cats .cat-f { grid-column: span 3; }
  .bento--cats .cat-g { grid-column: span 5; }
  .bento--cats .cat-h { grid-column: span 4; }
  .bento--cats .cat-i { grid-column: span 6; flex-direction: row; align-items: center; }
  .bento--cats .cat-i .bento__pack { order: 2; height: 180px; }
  .bento--cats .cat-j { grid-column: span 6; }
}

.products__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}

/* ---------- About ---------- */
.about {
  padding: 104px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.about__grid {
  display: grid;
  gap: 56px;
}
.about__text > p {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.about__text > p:first-of-type { margin-top: 24px; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column-reverse; gap: 2px; }
.stat dt { color: var(--muted); font-weight: 600; }
.stat dd {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__plus { color: var(--red-ink); }

.about__media {
  position: relative;
  padding-bottom: 60px;
}
.about__img { overflow: hidden; border-radius: var(--radius); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main {
  width: 84%;
  aspect-ratio: 4 / 5;
  margin-inline-start: auto;
}
.about__img--small {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 44%;
  aspect-ratio: 1;
  border: 8px solid var(--surface);
  box-shadow: var(--shadow);
}
.about__badge {
  position: absolute;
  top: 28px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  padding: 14px 18px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  line-height: 1.55;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__badge i { font-size: 1.8rem; flex-shrink: 0; }

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Marquee ---------- */
.marquee {
  direction: ltr; /* the track loops leftwards; RTL alignment would push it off-screen */
  padding: 56px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  width: max-content;
  direction: ltr;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
  direction: rtl;
}
.marquee__group span {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink);
}
.marquee__group span.is-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
}
.marquee__group i {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  color: var(--green);
}

/* ---------- Projects (horizontal pan) ---------- */
.projects {
  background: var(--surface-2);
  overflow: hidden;
}
.projects__pin {
  padding: 96px 0;
}
.projects__track {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 20px;
}
.projects__intro {
  flex: 0 0 min(86vw, 400px);
  scroll-snap-align: start;
  align-self: center;
}
.projects__intro > p:not(.eyebrow) {
  margin: 18px 0 28px;
  color: var(--ink-2);
  max-width: 36ch;
}
.project {
  flex: 0 0 min(80vw, 460px);
  scroll-snap-align: start;
}
.project--tall { flex-basis: min(72vw, 360px); }
.project__img {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--line);
}
.project--tall .project__img { aspect-ratio: 3 / 4; }
.project__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1s var(--ease-out);
}
.project:hover .project__img img { scale: 1.06; }
.has-pan .project__img img {
  width: 124%;
  max-width: none;
  margin-inline-start: -12%;
}
.project__link { display: block; }
.project__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--red-ink);
}
.project__more i { transition: transform .3s var(--ease-out); }
.project__link:hover .project__more i { transform: translate(-4px, -4px); }
.project h3 { margin-top: 16px; }
.project__meta {
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--red-ink);
}
.project h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.5; }
.project__use { margin-top: 4px; color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* JS enables the pinned pan on wide screens */
.has-pan .projects__pin {
  height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 40px;
}
.has-pan .projects__track {
  width: max-content;
  overflow: visible;
  scroll-snap-type: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  gap: 48px;
  align-items: center;
  padding-bottom: 0;
}
.has-pan .project { flex-basis: 440px; }
.has-pan .project--tall { flex-basis: 340px; }
.has-pan .projects__intro { flex-basis: 400px; }

/* ---------- News ---------- */
.news { padding: 104px 0; }
.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.news__grid { display: grid; gap: 32px; }
.news__cat {
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-ink);
}
.news time { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); }

.news-feature__link { display: block; }
.news-feature__img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}
.news-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.news-feature__link:hover img { transform: scale(1.05); }
.news-feature__body { padding-top: 22px; max-width: 60ch; }
.news-feature__body h3 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.5;
  transition: color .25s ease;
}
.news-feature__body p:not(.news__cat) { margin-top: 10px; color: var(--ink-2); }
.news-feature__link:hover h3 { color: var(--red-ink); }

.news__side { display: grid; gap: 4px; align-content: start; }
.news-item a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child a { padding-top: 0; }
.news-item__img {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius);
}
.news-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.news-item a:hover img { transform: scale(1.08); }
.news-item h3 {
  margin-top: 4px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
  transition: color .25s ease;
}
.news-item a:hover h3 { color: var(--red-ink); }

@media (min-width: 1024px) {
  .news__grid { grid-template-columns: 7fr 5fr; gap: 56px; }
  .news-item a { grid-template-columns: 140px 1fr; }
}

/* ---------- Form card ---------- */
.signup {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.signup__title { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent);
}
.field input[dir="ltr"] { text-align: left; }
.field__help { font-size: .85rem; color: var(--muted); }
.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--red-ink);
}
.field__error[hidden] { display: none; }
.field.is-invalid input,
.field.is-invalid select { border-color: var(--red); }

.btn__loading {
  display: none;
  width: 72px;
  height: 3px;
  background: rgba(255, 255, 255, .35);
  position: relative;
  overflow: hidden;
}
.btn__loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: loadbar 1s var(--ease-out) infinite;
}
.signup.is-sending .btn__label { display: none; }
.signup.is-sending .btn__loading { display: block; }
.signup.is-sending button[type="submit"] { pointer-events: none; }

@keyframes loadbar {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.signup__success {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  background: var(--green-soft);
  border-radius: var(--radius);
  color: var(--ink);
}
.signup__success[hidden] { display: none; }
.signup__success i { font-size: 1.8rem; color: var(--green-ink); flex-shrink: 0; }
.signup__success p { margin-top: 4px; color: var(--ink-2); font-size: .95rem; }

@media (min-width: 1024px) {
  .signup { padding: 40px; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #121715;
}
.cta__bg { position: absolute; inset: -12% 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(10, 14, 12, .92), rgba(10, 14, 12, .74));
}
.cta__inner { position: relative; z-index: var(--z-content); padding-block: 112px; }
.cta h2 {
  max-width: 13em;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.3;
  text-wrap: balance;
}
.cta p { max-width: 50ch; margin-top: 20px; color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}
.cta__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.cta__mail:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-2);
  padding-top: 80px;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}
.footer__brand { grid-column: 1 / -1; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #131816;
  border-radius: var(--radius);
}
.footer-logo .logo-sub { color: #327244; }
.footer-logo .logo-en { color: #58615C; }
.footer__brand > p { max-width: 36ch; margin-top: 16px; color: var(--ink-2); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1.25rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .3s var(--ease-out);
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }

.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h2 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.footer__col a { color: var(--ink-2); width: fit-content; transition: color .2s ease; }
.footer__col a:hover { color: var(--red-ink); }
.footer__contact { grid-column: 1 / -1; }
.footer__contact p { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.footer__contact i { color: var(--red-ink); font-size: 1.15rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  position: relative;
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: .92rem;
  color: var(--muted);
}
.footer__bottom::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto var(--gutter);
  height: 1px;
  background: var(--line-strong);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--ink); }

.footer__word {
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter) 12px;
  overflow: hidden;
}
.footer__word span {
  display: block;
  font-size: clamp(2.6rem, 10.4vw, 11rem);
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--red);
}

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1.5fr; gap: 40px; }
  .footer__brand, .footer__contact { grid-column: auto; }
}

/* ---------- About: reach ---------- */
.reach {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.reach li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: var(--radius);
}
.reach i { font-size: 1.5rem; color: var(--green-ink); margin-top: 2px; }
.reach strong { display: block; font-weight: 800; }
.reach span { color: var(--ink-2); }
@media (min-width: 640px) { .reach { grid-template-columns: 1fr 1fr; } }

.marquee__group span.latin { font-family: var(--font-latin); font-weight: 800; letter-spacing: -.01em; }

/* ---------- Standards & honors ---------- */
.standards { padding: 104px 0; }
.standards__grid { display: grid; gap: 56px; }
.certs {
  display: grid;
  gap: 2px;
  margin-top: 32px;
}
.certs li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.6;
  transition: transform .35s var(--ease-out), background-color .2s ease;
}
.certs li:hover { transform: translateX(-6px); background: var(--green-soft); }
.certs i { flex-shrink: 0; font-size: 1.4rem; color: var(--green-ink); }

.honors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}
.honor { display: grid; gap: 12px; }
.honor__frame {
  overflow: hidden;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.honor__frame img {
  width: 100%;
  height: auto;
  transition: transform .8s var(--ease-out);
}
.honor:hover .honor__frame img { transform: scale(1.04); }
.honor figcaption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.6;
}
.honor figcaption i { color: var(--red-ink); font-size: 1.2rem; margin-top: 2px; }
.honor--tall { grid-row: span 2; align-self: start; }
.honor--plaque .honor__frame { background: #EDEDED; }
.honor--plaque .honor__frame img { max-width: 170px; margin-inline: auto; }

@media (min-width: 1024px) {
  .standards__grid { grid-template-columns: 6fr 5fr; gap: 80px; align-items: start; }
}

/* ---------- Team ---------- */
.team { padding: 104px 0; background: var(--surface); border-block: 1px solid var(--line); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin-top: 40px;
}
.member strong { display: block; margin-top: 14px; font-size: 1.05rem; font-weight: 800; line-height: 1.5; }
.member span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.member__img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.member__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .5s ease, transform .8s var(--ease-out);
}
.member:hover .member__img img { filter: grayscale(0); transform: scale(1.05); }
@media (min-width: 700px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .team__grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Cooperation ---------- */
.coop { padding: 104px 0; background: var(--green-soft); }
.coop__lead { max-width: 56ch; margin-top: 16px; color: var(--ink-2); }
.coop__grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.coop-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 36px 32px;
  min-height: 260px;
  align-content: end;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.coop-card > i { position: absolute; top: 28px; right: 30px; font-size: 2.6rem; color: var(--green-ink); }
.coop-card h3 { font-size: 1.5rem; font-weight: 900; line-height: 1.4; }
.coop-card p { color: var(--ink-2); max-width: 40ch; }
.coop-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 800; color: var(--green-ink); }
.coop-card__go i { transition: transform .3s var(--ease-out); }
.coop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.coop-card:hover .coop-card__go i { transform: translateX(-6px); }
.coop-card--red { background: var(--red); color: #fff; }
.coop-card--red > i,
.coop-card--red .coop-card__go { color: #fff; }
.coop-card--red p { color: rgba(255, 255, 255, .9); }

.coop-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 1.05rem;
  transition: background-color .25s ease;
}
.coop-strip > i:first-child { font-size: 1.8rem; color: var(--green-ink); }
.coop-strip > i:last-child { margin-inline-start: auto; transition: transform .3s var(--ease-out); }
.coop-strip:hover { background: var(--surface-2); }
.coop-strip:hover > i:last-child { transform: translateX(-6px); }
@media (min-width: 900px) {
  .coop__grid { grid-template-columns: 1.15fr 1fr; }
  .coop-strip { grid-column: 1 / -1; }
}

/* =========================================================
   INNER PAGES
   ========================================================= */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 46vh;
  padding: calc(var(--header-h) + 56px) 0 48px;
  color: #fff;
  background: #1a201d;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 12, .9), rgba(10, 14, 12, .5));
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.3;
  text-wrap: balance;
}
.page-hero p { max-width: 56ch; margin-top: 12px; color: rgba(255, 255, 255, .9); font-size: 1.05rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .82);
}
.crumbs a { color: #fff; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs i { font-size: .8rem; opacity: .7; }

/* ---------- Catalog ---------- */
.catalog { padding: 32px 0 104px; }
.catalog__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 12px;
  padding: 16px 0 12px;
  background: var(--bg);
  transition: top .45s var(--ease-out);
}
body:has(.site-header:not(.is-hidden)) .catalog__bar { top: var(--header-h); }
.catalog__search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.catalog__search:focus-within { border-color: var(--red); }
.catalog__search > i { color: var(--muted); font-size: 1.25rem; }
.catalog__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1rem;
}
.catalog__search input::placeholder { color: var(--muted); opacity: 1; }
.catalog__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.catalog__clear { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); border-radius: var(--radius); }
.catalog__clear[hidden] { display: none; }
.catalog__clear:hover { background: var(--surface-2); color: var(--ink); }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chips[hidden] { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .93rem;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip small {
  min-width: 22px;
  padding: 0 6px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip[aria-pressed="true"] small { background: rgba(255, 255, 255, .22); }
.chips--sub .chip { height: 34px; font-size: .86rem; background: transparent; }
.chips--sub .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.catalog__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: .95rem;
}
.catalog__meta strong { color: var(--ink); }

.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.pcard:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__img {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
}
.pcard__img img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transition: transform .7s var(--ease-out);
}
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__img--empty { background: var(--green-soft); }
.pcard__img--empty img { width: 36%; height: 36%; opacity: .5; }
.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 16px 16px 18px;
}
.pcard__code {
  align-self: flex-start;
  direction: ltr;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: .8rem;
  color: var(--red-ink);
}
.pcard h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.55; }
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__sub { font-size: .82rem; color: var(--green-ink); font-weight: 600; }
.pcard__short {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--muted);
}
.pcard__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  font-size: .9rem;
}
.pcard__go i { transition: transform .3s var(--ease-out); }
.pcard:hover .pcard__go { color: var(--red-ink); }
.pcard:hover .pcard__go i { transform: translateX(-5px); }
@media (max-width: 520px) {
  .pcard__short { display: none; }
  .pcard__body { padding: 12px; }
  .pcard h3 { font-size: .92rem; }
}

.catalog__more { display: flex; justify-content: center; margin-top: 36px; }
.catalog__more[hidden] { display: none; }
.catalog__empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 64px 16px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.catalog__empty[hidden] { display: none; }
.catalog__empty > i { font-size: 2.6rem; color: var(--muted); }
.catalog__empty strong { font-size: 1.2rem; }
.catalog__empty p { color: var(--muted); max-width: 44ch; }
.catalog__empty .btn { margin-top: 8px; }

/* ---------- Product detail ---------- */
.pd { padding: calc(var(--header-h) + 36px) 0 64px; }
.pd .crumbs { color: var(--muted); }
.pd .crumbs a { color: var(--ink); }
.pd__top { display: grid; gap: 36px; }
.pd__gallery {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.pd__gallery img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  transition: transform .5s var(--ease-out);
  transform-origin: var(--zx, 50%) var(--zy, 50%);
}
.pd__gallery.is-zoom img { transform: scale(1.8); }
.pd__gallery--empty { background: var(--green-soft); cursor: default; }
.pd__gallery--empty img { width: 34%; height: 34%; opacity: .45; }
.pd__cat { display: flex; flex-wrap: wrap; gap: 8px; }
.pd__cat a {
  padding: 4px 10px;
  font-size: .85rem;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green-ink);
  border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease;
}
.pd__cat a:hover { background: var(--green); color: #fff; }
.pd__title { margin-top: 14px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 900; line-height: 1.35; }
.pd__code {
  display: inline-block;
  margin-top: 6px;
  direction: ltr;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--red-ink);
}
.pd__short { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.pd__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pd__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.spec {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.spec dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.spec dd { margin-top: 4px; font-weight: 800; line-height: 1.6; unicode-bidi: plaintext; }

.pd__body { display: grid; gap: 40px; margin-top: 72px; }
.pd__toc { display: none; }
.pd__toc h2 { font-size: .95rem; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.pd__toc a {
  display: block;
  padding: 8px 14px;
  border-inline-start: 2px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease;
}
.pd__toc a:hover,
.pd__toc a.is-current { color: var(--red-ink); border-color: var(--red); }

.pd-section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.pd-section:first-child { border-top: 0; padding-top: 0; }
.pd-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.5;
}
.pd-section h2::before { content: ""; width: 10px; height: 10px; background: var(--green); flex-shrink: 0; }

.prose { max-width: 72ch; color: var(--ink-2); overflow-x: auto; }
.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + ol,
.prose ol + p { margin-top: 12px; }
.prose ul,
.prose ol { display: grid; gap: 8px; }
.prose ul li {
  position: relative;
  padding-inline-start: 22px;
  line-height: 1.85;
}
.prose ul li::before {
  content: "";
  position: absolute;
  top: .8em;
  right: 2px;
  width: 7px;
  height: 7px;
  background: var(--red);
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-inline-start: 30px; }
.prose ol li::before { content: counter(n, persian); position: absolute; right: 0; font-weight: 800; color: var(--red-ink); }
.prose strong { color: var(--ink); }
.prose h3 { margin: 18px 0 8px; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .95rem; }
.prose th,
.prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: right; }
.prose th { background: var(--surface-2); color: var(--ink); }

.pd__note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--green-soft);
  border-radius: var(--radius);
}
.pd__note i { font-size: 1.6rem; color: var(--green-ink); }
.pd__note a { font-weight: 800; color: var(--green-ink); text-decoration: underline; text-underline-offset: 4px; }

.related { padding: 72px 0 104px; background: var(--surface-2); }
.related__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.related__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70vw, 260px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.related__track .pcard { scroll-snap-align: start; }

.pd-missing { display: grid; justify-items: start; gap: 16px; padding: 48px 0 32px; }
.pd-missing h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
.pd-missing p { color: var(--muted); }

@media (min-width: 900px) {
  .pd__top { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .pd__gallery { position: sticky; top: calc(var(--header-h) + 24px); }
  .pd__specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd__body { grid-template-columns: 240px 1fr; gap: 64px; }
  .pd__toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------- Contact page ---------- */
.contact { padding: 72px 0 32px; }
.contact__grid { display: grid; gap: 16px; }
.ccard {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.ccard > i { font-size: 2rem; color: var(--red-ink); }
.ccard h2 { font-size: 1.2rem; font-weight: 900; }
.ccard p,
.ccard li { color: var(--ink-2); line-height: 1.8; }
.ccard ul { display: grid; gap: 4px; }
.ccard a { font-weight: 700; }
.ccard a:hover { color: var(--red-ink); }
.ccard--wide { background: var(--green-soft); border-color: transparent; }
.ccard--wide > i { color: var(--green-ink); }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: repeat(6, 1fr); }
  .ccard--office,
  .ccard--factory { grid-column: span 3; }
  .ccard--phones,
  .ccard--mobile,
  .ccard--mail { grid-column: span 2; }
  .ccard--wide { grid-column: 1 / -1; }
}

.cform { padding: 72px 0; scroll-margin-top: var(--header-h); }
.cform__grid { display: grid; gap: 40px; }
.cform__intro > p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); max-width: 48ch; }
.cform__intro ul { display: grid; gap: 10px; margin-top: 24px; }
.cform__intro li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.cform__intro li i { color: var(--green-ink); font-size: 1.2rem; margin-top: 4px; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field textarea {
  width: 100%;
  min-height: 130px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent); }
.field .optional { color: var(--muted); font-weight: 500; font-size: .85rem; }
.form-actions { display: grid; gap: 10px; }
@media (min-width: 640px) { .form-actions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cform__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }

.faq { padding: 72px 0 104px; }
.faq__list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  text-align: right;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.6;
  transition: color .2s ease;
}
.faq__q:hover { color: var(--red-ink); }
.faq__q i { margin-inline-start: auto; flex-shrink: 0; font-size: 1.2rem; transition: transform .4s var(--ease-out); }
.faq__q[aria-expanded="true"] { color: var(--red-ink); }
.faq__q[aria-expanded="true"] i { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { padding-bottom: 22px; color: var(--ink-2); max-width: 70ch; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .preloader { display: none; }
}
