/* ==========================================================================
   KNK — Khosh Noosh Kavir design system
   Industrial-modern. Bilingual (RTL/LTR). Custom, no framework.
   ========================================================================== */

/* Vazirmatn — modern Persian typeface (variable weight, Arabic + Latin subsets) */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Inter — Latin UI typeface for the English site */
@font-face {
  font-family: "InterVar";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand palette (from logo) */
  --brand:        #0B3B66;   /* deep corporate blue */
  --brand-dark:   #072A4A;
  --brand-800:    #0A2C4D;
  --accent:       #16A6DE;   /* teal-blue swoosh — decorative fills only */
  --accent-ink:   #127BAE;   /* same hue, darkened for text/buttons (AA on white) */
  --accent-light: #63C7EC;
  --accent-soft:  #E3F3FB;

  --ink:     #10202E;        /* headings */
  --body:    #33475B;        /* body text */
  --steel:   #5B6B7B;
  --muted:   #6E8093;
  --line:    #E4EAF0;
  --line-2:  #D3DCE6;

  --bg:       #FFFFFF;
  --bg-soft:  #F4F7FA;
  --bg-soft2: #EDF2F7;
  --bg-dark:  #0A1B29;

  --white: #fff;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(16,32,46,.06), 0 1px 2px rgba(16,32,46,.05);
  --shadow:    0 6px 22px rgba(16,32,46,.09);
  --shadow-lg: 0 18px 50px rgba(16,32,46,.16);

  --container: 1200px;
  --header-h: 74px;

  --font-fa: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-en: "InterVar", "Inter", "Segoe UI", Arial, sans-serif;
  --font: var(--font-fa);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="en"] body { --font: var(--font-en); line-height: 1.65; }

img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* ---- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #C6D4E0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--steel); margin-top: 12px; font-size: 1.05rem; }

.lead { font-size: 1.15rem; color: var(--steel); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent-ink); color: #fff; box-shadow: 0 8px 20px rgba(18,123,174,.30); }
.btn--primary:hover { background: #1391c2; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(22,166,222,.36); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.2); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 26px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 9px; font-weight: 600; color: var(--ink);
  font-size: .97rem; transition: color .18s, background .18s;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--accent-ink); background: var(--accent-soft); }
.nav__link .caret { width: 13px; height: 13px; opacity: .6; }

.submenu {
  position: absolute; inset-inline-start: 0; top: calc(100% + 6px);
  min-width: 218px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s var(--ease); z-index: 20;
}
.nav__item:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 13px; border-radius: 8px; font-size: .93rem; color: var(--body); font-weight: 600; }
.submenu a:hover { background: var(--bg-soft); color: var(--accent-ink); }

.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px;
  border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700;
  font-size: .85rem; color: var(--ink);
}
.lang-switch:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--brand); font-size: .92rem; direction: ltr; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 85% 0%, #0E4676 0%, var(--brand-dark) 55%, #05203a 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("/img/hero-pattern.svg") center/cover no-repeat; opacity: .18; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 560px; padding: 70px 0; }
.hero__content { max-width: 620px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__tagline { color: var(--accent-light); font-weight: 800; letter-spacing: .04em; margin-bottom: 16px; display: block; font-size: 1.05rem; }
.hero__sub { color: #B9CBDC; font-size: 1.18rem; margin-bottom: 34px; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; }
.hero__visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 30px 22px; text-align: center; }
.stat__num { font-size: 2.5rem; font-weight: 900; color: var(--brand); line-height: 1; }
.stat__num span { color: var(--accent-ink); }
.stat__label { color: var(--steel); font-weight: 600; margin-top: 8px; font-size: .95rem; }

/* ---- Product cards ----------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__media { aspect-ratio: 4/3; background: linear-gradient(160deg, var(--bg-soft), var(--bg-soft2)); display: grid; place-items: center; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__tag { align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; }
.product-card h3 { font-size: 1.2rem; }
.product-card p { color: var(--steel); font-size: .95rem; flex: 1; }
.product-card__link { color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.product-card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.product-card:hover .product-card__link svg { transform: translateX(var(--arrow-dir, -4px)); }
html[lang="en"] .product-card__link svg { --arrow-dir: 4px; }

/* ---- News cards -------------------------------------------------------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__date { font-size: .82rem; color: var(--muted); font-weight: 600; }
.news-card h3 { font-size: 1.12rem; }
.news-card p { color: var(--steel); font-size: .93rem; flex: 1; }

/* ---- Spec table -------------------------------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: start; font-size: .97rem; }
.spec-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; width: 40%; }
.spec-table tr + tr td, .spec-table tr + tr th { border-top: 1px solid var(--line); }

/* ---- FAQ --------------------------------------------------------------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-item summary { padding: 17px 20px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-ink); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 20px 18px; color: var(--steel); }

/* ---- Breadcrumb -------------------------------------------------------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); padding: 18px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .home-ico { width: 15px; height: 15px; opacity: .85; margin-inline-end: 2px; }

/* ---- Page header ------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(135% 160% at 100% 0%, #14618f 0%, var(--brand) 46%, var(--brand-dark) 100%);
  padding: 34px 0 42px;
}
/* diagonal-line texture */
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/img/hero-pattern.svg") right -30px top -50px / 340px no-repeat;
  opacity: .13; pointer-events: none;
}
/* concentric-ring accent on the trailing side */
.page-hero__deco {
  position: absolute; inset-inline-end: -70px; top: 50%; transform: translateY(-50%);
  width: 240px; height: 240px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 34px rgba(255,255,255,.045), inset 0 0 0 34px rgba(255,255,255,.05);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.page-hero p { color: #C9D8E6; margin-top: 9px; max-width: 620px; font-size: 1.02rem; }

.breadcrumb--hero { padding: 0 0 12px; color: #9FBEDB; font-weight: 600; }
.breadcrumb--hero a { color: #CBDAE8; }
.breadcrumb--hero a:hover { color: #fff; }
.breadcrumb--hero .sep { opacity: .5; }
.breadcrumb--hero .current { color: #fff; }

/* ---- Content prose ----------------------------------------------------- */
.prose { font-size: 1.06rem; color: var(--body); }
.prose p { margin-bottom: 1.1em; }
.prose h2, .prose h3 { margin: 1.4em 0 .5em; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose a { color: var(--accent-ink); text-decoration: underline; }

/* ---- Certificates strip ------------------------------------------------ */
.cert-strip { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.cert-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-weight: 700; color: var(--brand); box-shadow: var(--shadow-sm); }
.cert-chip svg { width: 20px; height: 20px; color: var(--accent-ink); }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { background: linear-gradient(110deg, var(--brand), var(--accent-ink)); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 26px; max-width: 560px; margin-inline: auto; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--bg-dark); color: #9FB2C2; padding: 62px 0 26px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 52px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: .93rem; max-width: 300px; }
.footer-links a { display: block; padding: 5px 0; font-size: .93rem; transition: color .18s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s; }
.footer-social a:hover { background: var(--accent-ink); }
.footer-social svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: #7E93A5; }

/* ---- Contact ----------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.alert--success { background: #E7F7EE; color: #1B7A45; border: 1px solid #B6E6C9; }

.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-list__item { display: flex; gap: 14px; align-items: flex-start; }
.info-list__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.info-list__icon svg { width: 20px; height: 20px; }
.info-list__item b { color: var(--ink); display: block; margin-bottom: 2px; }

/* ---- Gallery ----------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* ---- About sidebar nav ------------------------------------------------- */
.about-nav { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 4px; }
.about-nav__link { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; color: var(--body); border: 1px solid transparent; transition: all .18s; }
.about-nav__link:hover { background: var(--bg-soft); color: var(--accent-ink); }
.about-nav__link.is-active { background: var(--accent-soft); color: var(--brand); border-color: var(--accent-light); }

/* ---- Lightbox ---------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,20,33,.9); display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; inset-inline-end: 26px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

.text-danger { color: #C0392B; font-size: .88rem; }

/* ---- Utilities --------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
/* Reveal-on-scroll is progressive enhancement: content is visible by default and
   only hidden once JS marks the document (.js), so it never stays blank. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid[style*="250px"] { grid-template-columns: 1fr !important; }
  .about-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow-lg); margin: 0;
  }
  .nav.is-open .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-inline-start: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---- Status / error page ------------------------------------------------ */
.status-page { padding: clamp(60px, 10vw, 120px) 0; }
.status-page__inner { max-width: 620px; margin-inline: auto; text-align: center; }
.status-page__code {
  display: block; font-size: clamp(72px, 16vw, 148px); line-height: 1;
  font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.status-page h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 12px; }
.status-page .lead { color: var(--steel); margin-bottom: 30px; }
.status-page__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- Variant table (product SKU list inside prose) ---------------------- */
.table-scroll { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.prose table, .table-scroll table {
  width: 100%; min-width: 560px; border-collapse: collapse;
  border: 1px solid var(--line); font-size: .95rem;
}
.prose thead th, .table-scroll thead th {
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 12px 14px; text-align: start; white-space: nowrap;
}
.prose tbody td, .table-scroll tbody td {
  padding: 11px 14px; border-top: 1px solid var(--line); text-align: start;
  vertical-align: middle;
}
.prose tbody tr:nth-child(even), .table-scroll tbody tr:nth-child(even) { background: var(--bg-soft); }
.prose tbody td:first-child, .table-scroll tbody td:first-child { font-weight: 600; color: var(--ink); }

/* ---- Certificate cards --------------------------------------------------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cert-card__media { display: block; background: var(--bg-soft); line-height: 0; }
.cert-card__media img {
  width: 100%; height: 260px; object-fit: contain; padding: 14px;
  transition: transform .3s ease;
}
.cert-card__media:hover img { transform: scale(1.03); }
.cert-card__body { padding: 16px 18px 20px; text-align: center; }
.cert-card__body h3 { font-size: .98rem; line-height: 1.55; color: var(--ink); }
.cert-card__year { color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* ---- Article photo set --------------------------------------------------- */
.article-shots { margin-top: 44px; }
.article-shots__title { font-size: 1.3rem; margin-bottom: 18px; }
.article-shots .gallery-item { display: block; margin: 0; }
.article-shots figcaption {
  margin-top: 8px; font-size: .9rem; color: var(--steel); line-height: 1.6;
}
.lightbox__caption {
  position: absolute; inset-inline: 0; bottom: 24px; margin: 0 auto; max-width: 760px;
  padding: 0 20px; text-align: center; color: #fff; font-size: .95rem; line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
