:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --red: #d82225;
  --muted: #66615f;
  --line: #dedbd8;
  --soft: #f5f2f0;
  --soft-red: #fff1f1;
  --max: 1240px;
  --pad: 32px;
  --sans: "B Yekan", "B Roya", Tahoma, Arial, sans-serif;
  --latin: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body, button, input, textarea, select { font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
img, svg { display: block; }
main { overflow: hidden; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: var(--latin); }
.container { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 94px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; direction: rtl; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 154px; }
.brand-logo { width: 76px; height: 82px; object-fit: contain; }
.brand-caption { display: grid; gap: 5px; line-height: 1; white-space: nowrap; }
.brand-caption strong { font-family: var(--latin); font-size: 13px; letter-spacing: .14em; }
.brand-caption small { color: var(--muted); font-family: var(--latin); font-size: 8px; letter-spacing: .08em; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2vw, 26px); }
.main-nav a { position: relative; padding: 34px 0 31px; color: #2f2c2b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 23px; width: 0; height: 2px; background: var(--red); transition: width .2s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switcher { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; direction: ltr; }
.language-switcher a { padding: 6px 7px; color: var(--muted); border-radius: 999px; font-family: var(--latin); font-size: 9px; font-weight: 800; }
.language-switcher a.active { color: var(--paper); background: var(--ink); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 0 17px; border: 1px solid var(--ink); font-size: 12px; font-weight: 800; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.header-cta { color: var(--paper); background: var(--red); border-color: var(--red); }
.header-cta:hover, .button-red:hover { color: var(--red); background: var(--paper); border-color: var(--red); }
.menu-button { display: none; width: 40px; height: 40px; padding: 10px; background: var(--paper); border: 1px solid var(--line); }
.menu-button span { display: block; height: 1.5px; margin: 4px 0; background: var(--ink); }
.mobile-menu { display: none; position: absolute; inset: 94px 0 auto; padding: 16px var(--pad) 24px; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: 0 16px 30px rgba(10,10,10,.12); }
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: grid; gap: 0; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 700; }
.mobile-menu .header-cta { margin-top: 17px; width: 100%; }

/* Shared */
.eyebrow { margin: 0 0 17px; color: var(--red); font-family: var(--latin); font-size: 10px; font-weight: 800; letter-spacing: .15em; line-height: 1.5; }
.section { padding: 100px 0; }
.section-soft { background: var(--soft); }
.section-red-soft { background: var(--soft-red); }
.section-black { color: var(--paper); background: var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 46px; }
.section-head h2 { max-width: 650px; margin: 0; font-size: clamp(31px, 4.2vw, 57px); line-height: 1.18; letter-spacing: -.05em; }
.section-head p { max-width: 370px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.section-black .section-head p { color: rgba(255,255,255,.65); }
.button { color: var(--paper); background: var(--ink); }
.button:hover { color: var(--ink); background: var(--paper); }
.button-red { color: var(--paper); background: var(--red); border-color: var(--red); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.button-ghost:hover { color: var(--paper); background: var(--ink); }
.arrow { display: inline-block; font-family: var(--latin); font-size: 18px; line-height: 0; }
.muted { color: var(--muted); }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.9; }

/* Home hero */
.hero { padding: 92px 0 84px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: 76px; direction: rtl; }
.hero-copy h1 { max-width: 680px; margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: 1.1; letter-spacing: -.07em; }
.hero-copy .lead { max-width: 620px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 42px; color: var(--muted); font-size: 11px; }
.hero-note b { color: var(--ink); font-family: var(--latin); font-size: 18px; }
.hero-note i { width: 34px; height: 1px; background: var(--red); }
.route-board { position: relative; min-height: 445px; padding: 28px; color: var(--paper); background: var(--ink); overflow: hidden; }
.route-board::before { content: "MAYA / EXPORT NETWORK"; position: absolute; top: 25px; left: 28px; color: var(--red); font-family: var(--latin); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.route-grid { position: absolute; inset: 82px 42px 54px; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 52px 52px; }
.route-line { position: absolute; height: 1px; background: rgba(255,255,255,.5); transform-origin: left center; }
.route-line.red { height: 2px; background: var(--red); }
.route-line.one { width: 35%; top: 55%; left: 14%; transform: rotate(0deg); }
.route-line.two { width: 35%; top: 55%; left: 50%; transform: rotate(0deg); }
.route-line.three { width: 29%; top: 36%; left: 49%; transform: rotate(-90deg); }
.route-line.four { width: 29%; top: 74%; left: 49%; transform: rotate(90deg); }
.route-node { position: absolute; display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: var(--paper); font-family: var(--latin); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-align: center; }
.route-node.core { width: 116px; height: 116px; color: var(--paper); background: var(--red); border: 0; font-size: 15px; }
.route-node.producer { top: 44%; left: 4%; }
.route-node.core { top: 39%; left: 41%; }
.route-node.buyer { top: 44%; right: 4%; }
.route-node.market { top: 5%; left: 41%; }
.route-node.execute { bottom: 5%; left: 41%; }
.route-caption { position: absolute; bottom: 24px; left: 28px; right: 28px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.62); font-family: var(--latin); font-size: 10px; }
.route-caption strong { color: var(--paper); font-weight: 700; }

/* Paths and grids */
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.path-card { min-height: 252px; display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--line); background: var(--paper); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.path-card:hover { border-color: var(--red); transform: translateY(-4px); }
.path-card.featured { color: var(--paper); background: var(--red); border-color: var(--red); }
.path-card .number { color: var(--red); font-family: var(--latin); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.path-card.featured .number { color: var(--paper); }
.path-card h3 { margin: 43px 0 10px; font-size: 23px; line-height: 1.35; }
.path-card p { max-width: 270px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.path-card.featured p { color: rgba(255,255,255,.8); }
.path-card .card-link { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 24px; color: var(--red); font-size: 12px; font-weight: 800; }
.path-card.featured .card-link { color: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.24); border-right: 1px solid rgba(255,255,255,.24); }
.service-card { min-height: 205px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border-left: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); transition: background .2s ease; }
.service-card:hover { background: var(--red); }
.service-card .number { color: var(--red); font-family: var(--latin); font-size: 11px; font-weight: 800; }
.service-card:hover .number { color: var(--paper); }
.service-card h3 { max-width: 240px; margin: 0; font-size: 21px; line-height: 1.45; }
.service-card p { max-width: 250px; margin: 0; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.8; }
.service-card:hover p { color: rgba(255,255,255,.85); }

/* Process and product */
.two-col { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: 82px; align-items: start; direction: rtl; }
.two-col > * { min-width: 0; }
.section-copy h2 { margin: 0; font-size: clamp(32px,4vw,57px); line-height: 1.18; letter-spacing: -.05em; }
.section-copy .lead { max-width: 490px; margin: 22px 0 28px; color: var(--muted); font-size: 16px; line-height: 2; }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; padding-top: 20px; border-top: 2px solid var(--red); }
.journey-step { min-height: 120px; padding: 0 12px 0 0; border-left: 1px solid var(--line); }
.journey-step:last-child { border-left: 0; }
.journey-step b { color: var(--red); font-family: var(--latin); font-size: 11px; }
.journey-step strong { display: block; margin-top: 31px; font-size: 14px; line-height: 1.7; }
.product-layout { display: grid; grid-template-columns: 180px 1fr; gap: 45px; align-items: start; direction: ltr; }
.product-mark { color: var(--red); font-family: var(--latin); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.product-groups { display: grid; border-top: 1px solid var(--ink); }
.product-group { display: grid; grid-template-columns: 1.05fr 1fr auto; align-items: center; gap: 18px; min-height: 78px; padding: 15px 0; border-bottom: 1px solid var(--line); direction: rtl; }
.product-group strong { font-size: 17px; }
.product-group span { color: var(--muted); font-family: var(--latin); font-size: 12px; }
.product-group .arrow { color: var(--red); }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { display: inline-flex; align-items: center; min-height: 35px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); font-size: 12px; }
.pill:hover { color: var(--red); border-color: var(--red); }

/* Intelligence / partners */
.intel-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(255,255,255,.25); }
.intel-item { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border-left: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.intel-item:nth-child(2n) { border-left: 0; }
.intel-item:nth-last-child(-n+2) { border-bottom: 0; }
.intel-item b { color: var(--red); font-family: var(--latin); font-size: 10px; letter-spacing: .12em; }
.intel-item strong { font-size: 14px; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.55); border-right: 1px solid rgba(255,255,255,.55); }
.partner-type { min-height: 72px; display: flex; align-items: center; padding: 14px; border-left: 1px solid rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.55); font-family: var(--latin); font-size: 12px; font-weight: 800; }

/* Internal pages */
.page-hero { padding: 78px 0 68px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 70px; align-items: end; direction: rtl; }
.page-hero h1 { max-width: 760px; margin: 0; font-size: clamp(42px,6vw,76px); line-height: 1.1; letter-spacing: -.07em; }
.page-hero p { max-width: 430px; margin: 0; color: var(--muted); font-size: 16px; line-height: 2; }
.page-body { padding: 86px 0; }
.cards-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.outline-card { min-height: 235px; padding: 25px; border: 1px solid var(--line); }
.outline-card .number { color: var(--red); font-family: var(--latin); font-size: 11px; font-weight: 800; }
.outline-card h2 { margin: 47px 0 10px; font-size: 22px; line-height: 1.4; }
.outline-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.list-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 45px; border-top: 1px solid var(--ink); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 59px; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-row span { color: var(--red); font-family: var(--latin); font-size: 10px; }
.process-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.process-card { min-height: 160px; padding: 20px; border-top: 2px solid var(--red); background: var(--soft); }
.process-card b { color: var(--red); font-family: var(--latin); font-size: 11px; }
.process-card strong { display: block; margin-top: 36px; font-size: 16px; }
.product-table { display: grid; gap: 10px; }
.product-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; align-items: center; gap: 15px; min-height: 70px; padding: 13px 18px; border: 1px solid var(--line); }
.product-row strong { font-size: 15px; }
.product-row span { color: var(--muted); font-family: var(--latin); font-size: 11px; }
.status { color: var(--red); font-size: 11px; font-weight: 800; }
.timeline { display: grid; gap: 0; border-top: 2px solid var(--red); }
.timeline-row { display: grid; grid-template-columns: 100px 1fr; gap: 22px; min-height: 92px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline-row b { color: var(--red); font-family: var(--latin); font-size: 13px; }
.timeline-row p { margin: 0; font-size: 15px; line-height: 1.8; }
.contact-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 70px; align-items: start; direction: rtl; }
.contact-card-large { padding: 30px; color: var(--paper); background: var(--ink); }
.contact-card-large h2 { margin: 0; font-size: 31px; line-height: 1.35; }
.contact-list { display: grid; gap: 0; margin-top: 30px; }
.contact-list a { display: grid; gap: 5px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.contact-list small { color: rgba(255,255,255,.55); font-size: 11px; }
.contact-list strong { font-family: var(--latin); font-size: 15px; font-weight: 700; }
.inquiry-box { padding: 30px; background: var(--soft); border: 1px solid var(--line); }
.inquiry-box h2 { margin: 0 0 10px; font-size: 26px; }
.inquiry-box p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); outline: 0; font-size: 13px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 17px; }

/* Footer */
.footer { padding: 45px 0 24px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 42px; align-items: start; direction: rtl; }
.footer-brand { display: grid; gap: 9px; }
.footer-brand strong { font-family: var(--latin); font-size: 17px; letter-spacing: .1em; }
.footer-brand span { color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer-links { display: grid; gap: 9px; min-width: 150px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--red); }
.footer-contact { display: grid; gap: 8px; direction: rtl; }
.footer-contact span { color: var(--muted); font-family: var(--latin); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 42px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--latin); font-size: 10px; }
.wa-float { position: fixed; z-index: 25; right: 22px; bottom: 22px; display: grid; place-items: center; width: 48px; height: 48px; color: var(--paper); background: var(--red); border-radius: 50%; box-shadow: 0 10px 28px rgba(216,34,37,.25); }
.wa-float svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) {
  :root { --pad: 24px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 11px; }
  .header-inner { gap: 16px; }
  .header-cta { padding: 0 12px; }
  .hero-grid, .two-col, .contact-layout { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --pad: 22px; }
  .main-nav, .header-actions .header-cta { display: none; }
  .header-inner { min-height: 80px; grid-template-columns: auto 1fr auto; }
  .brand-logo { width: 64px; height: 68px; }
  .menu-button { display: block; }
  .mobile-menu { inset: 80px 0 auto; }
  .hero-grid, .two-col, .page-hero-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .route-board { min-height: 380px; }
  .path-grid, .cards-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-card:last-child { grid-column: 1 / -1; }
  .smart-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; grid-template-columns: repeat(2,auto); }
}

@media (max-width: 620px) {
  :root { --pad: 18px; }
  .section { padding: 70px 0; }
  .header-inner { gap: 8px; }
  .brand { min-width: 0; gap: 5px; }
  .brand-logo { width: 49px; height: 56px; }
  .brand-caption strong { font-size: 11px; }
  .brand-caption small { display: none; }
  .header-actions { gap: 6px; }
  .language-switcher a { padding: 5px 4px; font-size: 8px; }
  .hero { padding: 54px 0 62px; }
  .hero-copy h1 { font-size: clamp(39px, 12vw, 59px); }
  .hero-copy .lead { font-size: 15px; line-height: 1.95; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-note { margin-top: 28px; font-size: 9px; }
  .route-board { min-height: 305px; padding: 18px; }
  .route-board::before { top: 17px; left: 18px; font-size: 8px; }
  .route-grid { inset: 62px 22px 43px; background-size: 32px 32px; }
  .route-node { width: 52px; height: 52px; font-size: 7px; }
  .route-node.core { width: 77px; height: 77px; font-size: 10px; }
  .route-caption { left: 18px; right: 18px; bottom: 17px; font-size: 8px; }
  .section-head { display: grid; gap: 16px; margin-bottom: 30px; }
  .section-head h2 { font-size: 35px; }
  .section-head p { max-width: none; font-size: 13px; }
  .path-grid, .service-grid, .cards-3, .smart-grid, .process-cards { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .path-card { min-height: 225px; padding: 22px; }
  .path-card h3 { margin-top: 36px; font-size: 21px; }
  .service-card { min-height: 180px; }
  .two-col { gap: 38px; }
  .section-copy h2 { font-size: 35px; }
  .journey { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .journey-step { min-height: 100px; padding-right: 8px; }
  .journey-step strong { margin-top: 23px; font-size: 12px; }
  .product-layout { grid-template-columns: 1fr; gap: 18px; }
  .product-group { grid-template-columns: 1fr auto; gap: 6px 12px; min-height: 72px; }
  .product-group strong { font-size: 15px; }
  .product-group span { grid-column: 1; grid-row: 2; }
  .product-group .arrow { grid-column: 2; grid-row: 1 / 3; }
  .page-hero { padding: 58px 0 50px; }
  .page-hero h1 { font-size: 43px; }
  .page-hero p { margin-top: 22px; font-size: 14px; }
  .page-body { padding: 64px 0; }
  .list-columns { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .product-row span { grid-column: 1; }
  .product-row .status { grid-column: 1 / -1; }
  .timeline-row { grid-template-columns: 68px 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-contact { grid-column: auto; grid-template-columns: 1fr; }
  .footer-bottom { display: grid; gap: 8px; }
  .wa-float { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
