/* Dayan Navid Incheh Borun — plain corporate layout. Logical properties, so one file serves RTL (fa) and LTR (en). */
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --navy: #0d3b66; --navy-2: #0a2e50; --navy-3: #082440;
  --accent: #f4a52a; --accent-2: #e8941a;
  --ink: #1f2933; --muted: #5b6672; --line: #dde3ea; --bg: #ffffff; --bg-2: #f3f6f9; --ok: #1e7a46; --bad: #b42318;
  --r: 6px; --shadow: 0 1px 3px rgba(13, 59, 102, .08), 0 4px 14px rgba(13, 59, 102, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.85; color: var(--ink); background: var(--bg); }
body.ltr { line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ic--big { width: 34px; height: 34px; color: var(--accent-2); }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; line-height: 1.6; white-space: nowrap; }
.btn .ic { width: 17px; height: 17px; }
.btn--accent { background: var(--accent); color: var(--navy-3); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--navy-3); }
.btn--line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--bg-2); color: var(--navy); }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* top bar */
.topbar { background: var(--navy-3); color: #d6e2ee; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a, .topbar span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent); }
.topbar__contact, .topbar__meta { display: flex; gap: 18px; align-items: center; }
.topbar .ic { width: 15px; height: 15px; color: var(--accent); }
.topbar__lang { border-inline-start: 1px solid rgba(255,255,255,.2); padding-inline-start: 14px; }

/* header */
.header { background: #fff; border-bottom: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.05); position: relative; z-index: 20; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: 52px; }
.brand strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.4; }
.brand small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav ul a { display: block; padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--r); }
.nav ul a:hover { color: var(--navy); background: var(--bg-2); }
.nav ul a[aria-current="page"] { color: var(--navy); background: #e6eef6; }
.burger { display: none; align-items: center; gap: 6px; background: var(--navy); color: #fff; border: 0; border-radius: var(--r); padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.burger .ic { width: 22px; height: 22px; }

/* page head with breadcrumbs */
.pagehead { background: var(--navy) url("/static/img/pattern.svg?v=2"); color: #fff; padding: 26px 0 20px; }
.pagehead h1 { font-size: 24px; margin: 0 0 6px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 13px; color: #b8cadb; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* slider */
.slider { position: relative; background: var(--navy) url("/static/img/pattern.svg?v=2"); color: #fff; min-height: 360px; overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; background-size: cover; background-position: center; }
.slide.is-on { opacity: 1; visibility: visible; position: relative; min-height: 360px; }
.slide--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,36,64,.85), rgba(8,36,64,.45)); }
.rtl .slide--img::before { background: linear-gradient(270deg, rgba(8,36,64,.85), rgba(8,36,64,.45)); }
.slide__in { position: relative; padding-block: 56px 72px; }
.slide__title { font-size: 34px; font-weight: 800; margin: 0 0 12px; max-width: 760px; line-height: 1.45; }
.slide__text { font-size: 18px; color: #dbe6f0; max-width: 680px; margin-bottom: 22px; }
.slider__nav { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: 14px; }
.slider__nav > button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.rtl .slider__nav > button { transform: scaleX(-1); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.slider__dots button[aria-current] { background: var(--accent); width: 26px; border-radius: 5px; }

/* features strip */
.features { background: #fff; border-bottom: 1px solid var(--line); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feat { display: flex; gap: 12px; align-items: center; padding: 20px 14px; border-inline-start: 1px solid var(--line); }
.feat:first-child { border-inline-start: 0; }
.feat h2 { font-size: 15px; margin: 0; color: var(--navy); }
.feat p { margin: 0; font-size: 13px; color: var(--muted); }
.feat a { text-decoration: none; }

/* sections */
.section { padding: 44px 0; }
.section--alt { background: var(--bg-2); }
.stitle { text-align: center; margin-bottom: 26px; }
.stitle h2 { font-size: 24px; color: var(--navy); display: inline-block; padding-bottom: 8px; border-bottom: 3px solid var(--accent); margin-bottom: 12px; }
.stitle p { color: var(--muted); max-width: 720px; margin: 0 auto; }
.stitle--start { text-align: start; }
.lead { color: var(--muted); }

/* product cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 22px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: 0 6px 22px rgba(13,59,102,.14); }
.pcard__img { display: block; aspect-ratio: 4 / 3; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 16px 16px 6px; flex: 1; }
.pcard h3 { font-size: 17px; margin: 0 0 4px; }
.pcard h3 a { text-decoration: none; color: var(--navy); }
.pcard__sub { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.pcard__origin { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.pcard__origin .ic { width: 15px; height: 15px; color: var(--ok); }
.pcard__price { border-top: 1px dashed var(--line); padding-top: 10px; }
.pcard__actions { display: flex; gap: 8px; padding: 12px 16px 16px; }
.pcard__actions .btn { flex: 1; justify-content: center; }
.price { color: var(--ink); font-size: 14px; }
.price b { font-size: 22px; color: var(--bad); font-weight: 800; }
.price small { color: var(--muted); font-size: 13px; }
.price--req { color: var(--muted); }
.pnote { font-size: 13px; color: var(--muted); margin-top: 18px; padding-inline-start: 10px; border-inline-start: 3px solid var(--accent); }

/* drawing placeholder (not a photo) */
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg, #f6f8fa 0 12px, #eef2f6 12px 24px); color: #8a99a8; text-align: center; padding: 12px; }
.ph svg { width: 42%; max-width: 130px; fill: none; stroke: #7d93aa; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ph span { font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; }
.ph--big { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r); }

/* about + registration table */
.about2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.regtable, .spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.regtable caption { background: var(--navy); color: #fff; font-weight: 700; padding: 10px 14px; text-align: start; border-radius: var(--r) var(--r) 0 0; }
.regtable th, .regtable td, .spec th, .spec td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.regtable th, .spec th { background: var(--bg-2); color: var(--navy); width: 38%; font-weight: 600; }

/* call-to-action band */
.ctaband { background: var(--navy-2) url("/static/img/pattern.svg?v=2"); color: #fff; padding: 26px 0; }
.ctaband__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ctaband p { margin: 0; font-size: 18px; font-weight: 600; }
.ctaband div { display: flex; gap: 10px; flex-wrap: wrap; }

/* contacts */
.contact2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin-bottom: 30px; }
.cboxes { display: grid; gap: 12px; align-content: start; }
.cbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; }
.cbox .ic--big { grid-row: span 2; }
.cbox h3 { font-size: 15px; color: var(--navy); margin: 0; }
.cbox p, .cbox a { margin: 0; font-size: 14px; color: var(--ink); }
.cbox a { text-decoration: none; font-weight: 600; justify-self: start; }
.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; }
.map iframe { width: 100%; flex: 1; min-height: 320px; border: 0; display: block; background: #e9eef3; }
.map__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* boxes, forms */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 24px; box-shadow: var(--shadow); }
.box--flat { box-shadow: none; }
.box__title { font-size: 19px; color: var(--navy); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); position: relative; }
.box__title::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 70px; height: 3px; background: var(--accent); }
.iform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.iform label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--navy); }
.iform input, .iform select, .iform textarea { font: inherit; font-weight: 400; font-size: 15px; color: var(--ink); padding: 9px 12px; border: 1px solid #c5ced8; border-radius: var(--r); background: #fff; width: 100%; }
.rtl .iform input[dir="ltr"] { text-align: right; }
.iform input:focus, .iform select:focus, .iform textarea:focus { border-color: var(--navy); outline: 2px solid rgba(13,59,102,.15); }
.iform [aria-invalid="true"] { border-color: var(--bad); }
.iform .span2 { grid-column: 1 / -1; }
.req { color: var(--bad); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iform__status { min-height: 1.5em; margin: 12px 0; font-size: 14px; }
.iform__status.bad { color: var(--bad); }
.notice { border-radius: var(--r); padding: 14px 16px; }
.notice--ok { background: #e8f5ee; border: 1px solid #b7dfc8; color: var(--ok); }
.inq { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.plinks { list-style: none; padding: 0; margin: 0 0 10px; }
.plinks li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.plinks a { font-weight: 600; text-decoration: none; }
.plinks .price b { font-size: 16px; }

/* product page */
.pdetail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; margin-bottom: 26px; align-items: start; }
.pdetail__name { font-size: 24px; color: var(--navy); }
.pdetail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.spec .price b { font-size: 20px; }
.gal__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); }
.gal__thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gal__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; cursor: pointer; background: none; width: 72px; }
.gal__thumbs button[aria-current] { border-color: var(--accent); }

/* footer */
.footer { background: var(--navy-3); color: #c6d4e2; font-size: 14px; margin-top: 10px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr 1fr; gap: 28px; padding-block: 36px 26px; }
.footer h2 { color: #fff; font-size: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.footer a { color: #e3ecf5; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.flinks { list-style: none; margin: 0; padding: 0; }
.flinks li { padding: 3px 0; }
.flinks a::before { content: "‹"; margin-inline-end: 8px; color: var(--accent); }
.ltr .flinks a::before { content: "›"; }
.finfo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finfo li { display: flex; gap: 10px; align-items: flex-start; }
.finfo .ic { color: var(--accent); margin-top: 4px; }
.fsocial { display: flex; gap: 12px; margin-top: 12px; }
.freg { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.freg dt { color: #94a9be; }
.freg dd { margin: 0; color: #fff; font-weight: 600; }
.footer__bottom { background: #061a2e; padding: 12px 0; font-size: 13px; color: #94a9be; text-align: center; }

/* responsive */
@media (max-width: 980px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(3) { border-inline-start: 0; }
  .feat { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about2, .contact2, .pdetail, .inq { grid-template-columns: 1fr; }
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 3px solid var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 11px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin-top: 12px; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hide-sm { display: none !important; }
  .topbar__in { justify-content: center; padding-block: 4px; gap: 4px 14px; }
  .topbar__meta { gap: 12px; }
  .header__in { min-height: 70px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 11px; }
  .burger span { display: none; }
  .slider, .slide.is-on { min-height: 300px; }
  .slide__in { padding-block: 36px 70px; }
  .slide__title { font-size: 24px; }
  .slide__text { font-size: 15px; }
  .features__grid { grid-template-columns: 1fr; }
  .feat { border-inline-start: 0; padding: 14px 4px; }
  .section { padding: 30px 0; }
  .stitle h2 { font-size: 21px; }
  .iform__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .pagehead h1 { font-size: 20px; }
  .box { padding: 16px; }
  .ctaband p { font-size: 16px; }
  .map iframe { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
