/* Bezini — one stylesheet, no framework. Brand red sampled from the logo mark: #E70C18 (4.7:1 on white). */
:root {
  --red: #e70c18;
  --red-dark: #b80913;
  --ink: #121314;
  --muted: #55595e;
  --ground: #ffffff;
  --band: #f3f3f1;
  --tint: #fff1f1;
  --radius: 14px;
  --wrap: 1160px;
  --edge: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); /* where the content column starts */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: rgba(18, 19, 20, .35); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(6px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: auto; height: 40px; }
.brand span { font-weight: 850; letter-spacing: .14em; font-size: 1.15rem; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; white-space: nowrap; }
.main-nav a[aria-current] { color: var(--red); }
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 18px; padding-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 22px; border-radius: 10px; transition: background-color .2s, transform .2s; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: #ecece9; color: var(--ink); }
.btn-quiet:hover { background: #e0e0dc; color: var(--ink); }
.link-arrow { font-weight: 700; }
.link-arrow::after { content: " →"; }
.lede { font-size: 1.2rem; color: #2b2e31; max-width: 60ch; }
.prose p, .product p, .note, .split p, .prose-col p { max-width: 68ch; }

/* hero: on desktop the product photo holds the right half of the first screen */
.hero { display: grid; gap: 32px; padding: 40px 20px 64px; max-width: var(--wrap); margin: 0 auto; }
.hero-img img { border-radius: var(--radius); background: #dcdce0; }
@media (min-width: 900px) {
  .hero { max-width: none; margin: 0; padding: 0; gap: 0; grid-template-columns: 1fr 1fr; align-items: stretch;
    min-height: min(calc(100vh - 72px), 780px); }
  .hero-text { align-self: center; padding: 56px 64px 56px var(--edge); }
  .hero-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: #dfe0e3; }
  .hero-sub { min-height: min(calc(100vh - 120px), 640px); }
}

/* bands and two-column blocks */
.band { background: var(--band); padding: 72px 0; }
.band-dark { background: var(--ink); color: #f5f5f3; }
.band-dark a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.band-dark a:hover { color: #fff; text-decoration-color: #fff; }
.lines { display: grid; gap: 40px; }
@media (min-width: 800px) { .lines { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split { display: grid; gap: 40px; align-items: center; }
section.split { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split figure img { border-radius: var(--radius); }
.split-dark { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split-dark { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.facts-dark { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; margin: 0; font-size: 1.15rem; }
.facts-dark dt { color: #a9aaa7; }
.facts-dark dd { margin: 0; color: #fff; font-weight: 650; }
ul.plain { list-style: none; margin: 1em 0 0; padding: 0; }
ul.plain li a { display: block; padding: 9px 0; font-size: 1.08rem; text-decoration: none; }
ul.plain b, .card-code { color: var(--red-dark); }
ul.plain b { margin-right: .5em; letter-spacing: .02em; }
ul.ticks { list-style: none; padding: 0; margin: 1em 0 0; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: .8em; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--red); border-radius: 2px; }

/* photo rows */
.steps-sec { padding-top: 80px; }
.steps-sec + .steps-sec { padding-bottom: 80px; }
.photo-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 640px) { .photo-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .photo-steps { grid-template-columns: repeat(4, 1fr); } .photo-steps.three { grid-template-columns: repeat(3, 1fr); } }
.photo-steps li { counter-increment: s; }
.photo-steps img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 12px; }
.photo-steps figcaption { margin-top: 12px; font-size: .96rem; }
ol.photo-steps figcaption::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px;
  background: var(--ink); color: #fff; border-radius: 50%; font-weight: 700; font-size: .85rem; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* product listing */
.page-head { padding-top: 40px; padding-bottom: 24px; }
.products-list { padding-bottom: 80px; }
h2.sub { margin-top: 40px; font-size: 1.5rem; }
.cards { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--band); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease; }
.card a:hover { transform: translateY(-3px); color: var(--ink); }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.card-code { font-weight: 800; letter-spacing: .04em; padding: 16px 18px 0; }
.card-name { font-weight: 750; font-size: 1.1rem; padding: 2px 18px 0; }
.card-short { padding: 6px 18px 18px; font-size: 1rem; }
.kit { margin-top: 16px; }

/* product page: on desktop the product photo holds the left half of the first screen */
.product { padding-top: 8px; padding-bottom: 80px; }
.product-top { display: grid; gap: 32px; align-items: center; }
.product-img img { border-radius: var(--radius); background: var(--band); max-height: 70vh; width: auto; margin: 0 auto; }
@media (min-width: 900px) {
  .product-top { margin: 0 calc(50% - 50vw); grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
    min-height: min(calc(100vh - 120px), 760px); }
  .product-img { background: var(--band); }
  .product-img img { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
  .product-intro { align-self: center; padding: 48px var(--edge) 48px 64px; }
}
.product-body { display: grid; gap: 48px; margin-top: 64px; }
@media (min-width: 1000px) { .product-body { grid-template-columns: 1.1fr 1fr; } }
table.facts { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 12px 14px; }
table.facts th { width: 34%; font-weight: 650; }
table.facts tbody tr:nth-child(odd) { background: var(--band); }
table.facts thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
ol.num { padding-left: 1.3em; margin: 0; }
ol.num li { margin-bottom: .7em; padding-left: .3em; }
ol.num li::marker { color: var(--red); font-weight: 800; }
.note { background: var(--tint); border-radius: 12px; padding: 14px 18px; margin-top: 1.2em; }
.small { font-size: .92rem; color: var(--muted); }
.in-use { margin-top: 72px; }
.mates { margin-top: 64px; }
.iran { margin-top: 1.4em; }

/* prose pages */
.prose { padding-bottom: 80px; }
.prose h2, .prose-col h2 { margin-top: 1.4em; font-size: 1.45rem; }
.prose-col h2:first-child { margin-top: 0; }
.about-split { align-items: start; }
dl.contact { display: grid; grid-template-columns: 7em 1fr; gap: 10px 16px; font-size: 1.15rem; margin: 0 0 2em; }
dl.contact dt { font-weight: 700; }
dl.contact dd { margin: 0; }
ul.credits { padding-left: 1.2em; }
ul.credits li { margin-bottom: .8em; }

/* footer */
.site-foot { background: var(--ink); color: #d9d9d6; padding-top: 56px; font-size: .96rem; }
.site-foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand { color: #fff; font-weight: 850; letter-spacing: .14em; font-size: 1.2rem; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: .6em; }
.site-foot p { margin: 0 0 .5em; }
.foot-base { margin-top: 48px; padding-bottom: 32px; color: #a9aaa7; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .head-row { flex-wrap: wrap; gap: 6px 24px; padding-top: 10px; padding-bottom: 6px; }
  .main-nav { width: 100%; overflow-x: auto; gap: 22px; scrollbar-width: none; }
  .band, .steps-sec { padding-top: 56px; padding-bottom: 56px; }
  section.split { padding-top: 56px; padding-bottom: 56px; }
}

/* motion: the first screen settles in on load; blocks rise into place as they scroll in. Transform and opacity only. */
@keyframes rise { from { opacity: .35; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .product-intro { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-img, .product-img { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .12s both; }
  @supports (animation-timeline: view()) {
    .rise, main h2, .lines > div, ul.ticks li, table.facts tr, ol.num li, .mates p {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
