/* ============================================================
   platemanage.net — modern-minimal × editorial-mag accent
   seed: BSJDR1DZ95 · class-prefix: pmn-
   ============================================================ */

@layer reset, base, layout, components, utilities, motion, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img, svg, video { display: block; max-width: 100%; height: auto; }
  button { font: inherit; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
  details summary { cursor: pointer; list-style: none; }
  details summary::-webkit-details-marker { display: none; }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
  table { border-collapse: collapse; }
}

@layer base {
  :root {
    --ink: #16181f;
    --ink-2: #2f323c;
    --ink-soft: #4a4f5e;
    --ink-mute: #7b8295;
    --paper: #fefefe;
    --paper-2: #f5f6f9;
    --paper-3: #ebedf2;
    --surface: #ffffff;
    --line: #d8dbe2;
    --line-soft: #e7e9f0;
    --brand: #43485b;
    --brand-dark: #2a2e3c;
    --brand-soft: #e2e5ec;
    --accent: #9ba0ad;
    --highlight: #f3e9c8;
    --ok: #2f7a4a;
    --warn: #a67414;
    --danger: #b51e2b;
    --radius-pill: 999px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-card: 0 1px 0 rgba(22,24,31,.04), 0 2px 6px rgba(22,24,31,.05), 0 12px 30px -12px rgba(22,24,31,.08);
    --shadow-lg: 0 4px 14px rgba(22,24,31,.08), 0 22px 60px -16px rgba(22,24,31,.16);
    --maxw: 1200px;
    --gut: 24px;
    --serif: "Playfair Display", "Source Serif Pro", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ar: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
    --ar-serif: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  }

  html { font-family: var(--sans); color: var(--ink); background: var(--paper); }
  html[dir="rtl"] { font-family: var(--ar); }
  body { font-size: 16px; line-height: 1.65; min-height: 100vh; }
  body.noscroll { overflow: hidden; }

  /* editorial italic-only headings */
  h1, h2, h3, h4 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.16;
    margin: 0;
    letter-spacing: -0.01em;
  }
  html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
    font-family: var(--ar-serif); font-style: normal; letter-spacing: 0;
  }
  h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 4.2rem); letter-spacing: -0.03em; line-height: 1.04; }
  h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.6rem); }
  h3 { font-size: clamp(1.18rem, 1rem + 0.6vw, 1.45rem); font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -0.005em; }
  html[dir="rtl"] h3 { font-family: var(--ar); font-style: normal; }
  h4 { font-size: 1.04rem; font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: 0.02em; }
  html[dir="rtl"] h4 { font-family: var(--ar); }

  p { margin: 0 0 1rem; max-width: 64ch; }
  p.lede { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.55; max-width: 56ch; }

  ::selection { background: var(--brand); color: #fff; }

  /* editorial highlighter accent — wraps key brand phrase */
  .pmn-hi {
    background-image: linear-gradient(120deg, transparent 0%, var(--highlight) 30%, var(--highlight) 70%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 38%;
    background-position: 0 86%;
    padding: 0 2px;
  }
  html[dir="rtl"] .pmn-hi { background-image: linear-gradient(240deg, transparent 0%, var(--highlight) 30%, var(--highlight) 70%, transparent 100%); }
}

@layer layout {
  .pmn-Container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
  .pmn-Container.-narrow { max-width: 880px; }
  .pmn-Container.-prose { max-width: 760px; }

  .pmn-Section { padding: 96px 0; position: relative; }
  .pmn-Section.-tight { padding: 56px 0; }
  .pmn-Section.-paper { background: var(--paper-2); }
  .pmn-Section.-ink { background: var(--ink); color: #fff; }
  .pmn-Section.-ink h1, .pmn-Section.-ink h2, .pmn-Section.-ink h3 { color: #fff; }
  .pmn-Section.-ink p { color: #c6c9d2; }

  /* editorial vertical section labels */
  .pmn-VLabel {
    position: absolute;
    inset-block-start: 96px;
    inset-inline-start: 18px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-mute);
    user-select: none;
    pointer-events: none;
  }
  html[dir="rtl"] .pmn-VLabel {
    font-family: var(--ar-serif); font-style: normal; letter-spacing: 0.12em;
    transform: rotate(0); writing-mode: vertical-lr; inset-inline-start: 18px;
  }

  .pmn-SectionHead { display: grid; gap: 14px; margin-bottom: 48px; max-width: 740px; }
  .pmn-SectionHead .eyebrow {
    font-family: var(--sans); font-style: normal; font-weight: 500;
    font-size: 0.78rem; color: var(--brand);
    letter-spacing: 0.18em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
  }
  html[dir="rtl"] .pmn-SectionHead .eyebrow { font-family: var(--ar); letter-spacing: 0.05em; }
  .pmn-SectionHead .eyebrow::before {
    content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor;
  }
  html[dir="rtl"] .pmn-SectionHead .eyebrow::before { transform: scaleX(-1); }
  .pmn-SectionHead p { color: var(--ink-soft); max-width: 60ch; }

  .pmn-Grid { display: grid; gap: 24px; }
  .pmn-Grid.-c2 { grid-template-columns: repeat(2, 1fr); }
  .pmn-Grid.-c3 { grid-template-columns: repeat(3, 1fr); }
  .pmn-Grid.-c4 { grid-template-columns: repeat(4, 1fr); }
}

@layer components {
  /* ============ top utility bar + announcement ============ */
  .pmn-Utility {
    background: var(--ink); color: #c6c9d2; font-size: 0.8rem;
    border-bottom: 1px solid #1f2128;
  }
  .pmn-Utility .row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; gap: 12px; flex-wrap: wrap;
  }
  .pmn-Utility .right { display: inline-flex; gap: 14px; align-items: center; }
  .pmn-Utility a { color: #c6c9d2; }
  .pmn-Utility a:hover { color: #fff; }
  .pmn-Utility .pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; background: rgba(255,255,255,.06);
    border-radius: 100px; font-size: 0.74rem; color: #d8dbe2;
  }
  .pmn-Utility .pill::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  }
  .pmn-Announce {
    background: var(--paper-2); color: var(--ink-soft); font-size: 0.86rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .pmn-Announce .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 12px; }
  .pmn-Announce .dismiss { background: none; border: 0; color: var(--ink-mute); font-size: 16px; padding: 4px 8px; }
  .pmn-Announce.-hidden { display: none; }

  /* ============ header ============ */
  .pmn-Header {
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    position: sticky; top: 0; z-index: 50;
    transition: transform .25s ease, box-shadow .15s;
  }
  .pmn-Header.-hidden { transform: translateY(-100%); }
  .pmn-Header.-scrolled { box-shadow: 0 4px 18px rgba(22,24,31,.06); }
  .pmn-Header .row {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    padding: 16px 0; gap: 20px;
  }
  .pmn-Header .center { display: flex; justify-content: center; }
  .pmn-Header .right { display: flex; gap: 12px; align-items: center; }

  .pmn-Logo { display: inline-flex; align-items: center; gap: 12px; }
  .pmn-Logo .mark { width: 34px; height: 34px; flex-shrink: 0; }
  .pmn-Logo .word {
    font-family: var(--serif); font-style: italic; font-weight: 700;
    font-size: 1.22rem; color: var(--ink); letter-spacing: -0.01em;
    line-height: 1;
  }
  .pmn-Logo .ar {
    font-family: var(--ar-serif); font-style: normal; font-weight: 600;
    font-size: 0.9rem; color: var(--ink-soft); line-height: 1; margin-top: 2px;
  }
  .pmn-Logo .col { display: flex; flex-direction: column; gap: 2px; }
  html[dir="rtl"] .pmn-Logo .word { font-family: var(--ar-serif); font-style: normal; }
  html[dir="rtl"] .pmn-Logo .ar { font-family: var(--serif); font-style: italic; }

  .pmn-Nav { display: flex; gap: 4px; }
  .pmn-Nav a {
    padding: 8px 14px; font-size: 0.92rem; color: var(--ink-soft);
    border-radius: var(--radius-pill); transition: background .15s, color .15s;
  }
  .pmn-Nav a:hover { color: var(--ink); background: var(--paper-2); }
  .pmn-Nav a[aria-current="page"] {
    color: var(--ink); background: var(--paper-2);
    box-shadow: inset 0 -2px 0 var(--brand);
  }

  .pmn-LangSwitch { position: relative; }
  .pmn-LangSwitch button {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid var(--line);
    padding: 8px 14px; border-radius: var(--radius-pill);
    font-size: 0.85rem; color: var(--ink); transition: border-color .15s;
  }
  .pmn-LangSwitch button:hover { border-color: var(--ink); }
  .pmn-LangSwitch .menu {
    position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-card); min-width: 140px;
    visibility: hidden; opacity: 0; transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility 0s linear .15s;
    z-index: 4;
  }
  .pmn-LangSwitch.-open .menu {
    visibility: visible; opacity: 1; transform: translateY(0);
    transition: opacity .15s, transform .15s, visibility 0s linear 0s;
  }
  .pmn-LangSwitch .menu a {
    display: block; padding: 10px 14px; font-size: 0.9rem; color: var(--ink-soft);
  }
  .pmn-LangSwitch .menu a:hover { background: var(--paper-2); color: var(--ink); }
  .pmn-LangSwitch .menu a[aria-current="true"] { color: var(--brand); font-weight: 600; }

  .pmn-Burger {
    display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill);
  }
  .pmn-Burger svg { width: 18px; height: 18px; stroke: var(--ink); }

  /* ============ mobile drawer ============ */
  .pmn-Drawer {
    position: fixed; inset: 0; z-index: 90;
    visibility: hidden; opacity: 0;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .pmn-Drawer[aria-hidden="false"] {
    visibility: visible; opacity: 1;
    transition: opacity .25s ease, visibility 0s linear 0s;
  }
  .pmn-Drawer .backdrop { position: absolute; inset: 0; background: rgba(22,24,31,.6); }
  .pmn-Drawer .panel {
    position: absolute; inset-block: 0; inset-inline-end: 0;
    width: min(380px, 88vw); background: var(--paper); padding: 24px;
    display: flex; flex-direction: column; gap: 20px;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
    box-shadow: -16px 0 40px rgba(22,24,31,.18);
  }
  html[dir="rtl"] .pmn-Drawer .panel { transform: translateX(-100%); }
  .pmn-Drawer[aria-hidden="false"] .panel { transform: translateX(0); }
  .pmn-Drawer .top {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 16px; border-bottom: 1px solid var(--line-soft);
  }
  .pmn-Drawer .close { background: none; border: 0; font-size: 24px; color: var(--ink); padding: 6px 10px; line-height: 1; }
  .pmn-Drawer nav { display: flex; flex-direction: column; gap: 2px; }
  .pmn-Drawer nav a {
    padding: 14px 12px; border-radius: var(--radius); color: var(--ink); font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .pmn-Drawer nav a:hover { background: var(--paper-2); }
  .pmn-Drawer nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
  .pmn-Drawer .bottom {
    margin-top: auto; display: flex; flex-direction: column; gap: 12px;
    font-size: 0.86rem; color: var(--ink-soft);
  }

  /* ============ buttons (pill shape, large default) ============ */
  .pmn-Btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px; border-radius: var(--radius-pill);
    font-size: 0.96rem; font-weight: 600; font-family: var(--sans);
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    min-height: 52px;
  }
  html[dir="rtl"] .pmn-Btn { font-family: var(--ar); }
  .pmn-Btn.-primary { background: var(--ink); color: #fff; }
  .pmn-Btn.-primary:hover { background: var(--brand); }
  .pmn-Btn.-brand { background: var(--brand); color: #fff; }
  .pmn-Btn.-brand:hover { background: var(--brand-dark); }
  .pmn-Btn.-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .pmn-Btn.-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
  .pmn-Btn.-link {
    background: none; padding: 6px 0; min-height: auto;
    color: var(--ink); border-radius: 0;
    border-bottom: 1px solid var(--ink); border-radius: 0;
    padding-bottom: 4px;
  }
  .pmn-Btn.-link:hover { color: var(--brand); border-color: var(--brand); }
  .pmn-Btn .arrow {
    display: inline-block; transition: transform .25s cubic-bezier(.4,.0,.2,1);
  }
  .pmn-Btn:hover .arrow { transform: translateX(4px); }
  html[dir="rtl"] .pmn-Btn:hover .arrow { transform: translateX(-4px); }
  .pmn-Btn.-sm { padding: 10px 18px; font-size: 0.88rem; min-height: 40px; }
  .pmn-Btn[disabled] { opacity: 0.5; cursor: not-allowed; }

  /* ============ hero (fullbleed minimal + editorial accent) ============ */
  .pmn-Hero {
    padding: 80px 0 96px;
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  }
  .pmn-Hero::before {
    content: ""; position: absolute;
    inset-block-start: -120px; inset-inline-end: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
    opacity: 0.5; pointer-events: none;
    z-index: 0;
  }
  .pmn-Hero .inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
  .pmn-Hero h1 { margin-bottom: 24px; }
  .pmn-Hero h1 .row1, .pmn-Hero h1 .row2 {
    display: block;
  }
  .pmn-Hero h1 .row2 { color: var(--brand); }
  .pmn-Hero .lede { font-size: 1.16rem; max-width: 52ch; color: var(--ink-soft); margin: 0 0 32px; line-height: 1.6; }
  .pmn-Hero .actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
  .pmn-Hero .trust {
    margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
    display: flex; gap: 28px; flex-wrap: wrap;
  }
  .pmn-Hero .trust .item {
    display: flex; flex-direction: column; gap: 4px;
  }
  .pmn-Hero .trust .item b { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); line-height: 1; }
  html[dir="rtl"] .pmn-Hero .trust .item b { font-family: var(--ar-serif); font-style: normal; }
  .pmn-Hero .trust .item span { font-size: 0.82rem; color: var(--ink-mute); }

  .pmn-HeroCard {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-lg); position: relative;
  }
  .pmn-HeroCard .ribbon {
    position: absolute; top: -10px; inset-inline-start: 24px;
    background: var(--brand); color: #fff; font-size: 0.7rem;
    padding: 4px 12px; border-radius: 3px; letter-spacing: 0.1em;
    text-transform: uppercase; font-weight: 500;
  }
  .pmn-HeroCard h3 { margin: 0 0 18px; font-size: 1.1rem; }
  .pmn-HeroCard .req {
    display: grid; gap: 14px; margin-bottom: 20px;
  }
  .pmn-HeroCard .req > li {
    display: grid; grid-template-columns: 32px 1fr; gap: 14px;
    font-size: 0.94rem; color: var(--ink-soft);
  }
  .pmn-HeroCard .req > li b { display: block; color: var(--ink); font-weight: 600; font-size: 0.96rem; margin-bottom: 2px; }
  .pmn-HeroCard .req .num {
    font-family: var(--serif); font-style: italic; font-size: 1.6rem;
    color: var(--brand); line-height: 1; padding-top: 2px;
  }
  html[dir="rtl"] .pmn-HeroCard .req .num { font-family: var(--ar-serif); font-style: normal; font-weight: 700; }

  /* ============ cards (elevated, modern-minimal) ============ */
  .pmn-Card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 30px; transition: border-color .15s, box-shadow .15s, transform .15s;
  }
  .pmn-Card.-elevated { box-shadow: var(--shadow-card); border-color: transparent; }
  .pmn-Card:hover { border-color: var(--ink); transform: translateY(-2px); }
  .pmn-Card.-pad-lg { padding: 40px; }
  .pmn-Card h3 { margin: 0 0 12px; }
  .pmn-Card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
  .pmn-Card .ico {
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; margin-bottom: 18px;
  }

  /* large numerals — editorial accent for steps */
  .pmn-Steps {
    display: grid; gap: 0;
  }
  .pmn-Step {
    display: grid; grid-template-columns: 140px 1fr; gap: 36px;
    padding: 40px 0; border-bottom: 1px solid var(--line-soft);
    align-items: start;
  }
  .pmn-Step:last-child { border-bottom: 0; }
  .pmn-Step .num {
    font-family: var(--serif); font-style: italic; font-weight: 700;
    font-size: 5.4rem; color: var(--brand); line-height: 0.9;
    letter-spacing: -0.04em;
  }
  html[dir="rtl"] .pmn-Step .num { font-family: var(--ar-serif); font-style: normal; }
  .pmn-Step .body h3 { margin: 0 0 10px; }
  .pmn-Step .body p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
  .pmn-Step .body .meta {
    margin-top: 12px; display: flex; gap: 18px; font-size: 0.82rem; color: var(--ink-mute);
  }

  /* ============ wizard (recharge form) ============ */
  .pmn-Wizard {
    background: var(--paper); border-radius: var(--radius-lg);
    border: 1px solid var(--line); box-shadow: var(--shadow-card);
    padding: 40px;
  }
  .pmn-Wizard .stages {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin-bottom: 36px; position: relative;
  }
  .pmn-Wizard .stage {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; border-block-end: 2px solid var(--line);
    position: relative; transition: border-color .2s;
  }
  .pmn-Wizard .stage.-active { border-block-end-color: var(--brand); }
  .pmn-Wizard .stage.-done { border-block-end-color: var(--ok); }
  .pmn-Wizard .stage .roman {
    font-family: var(--serif); font-style: italic; font-weight: 700;
    color: var(--brand); font-size: 1.6rem; line-height: 1; width: 36px;
    text-align: start;
  }
  html[dir="rtl"] .pmn-Wizard .stage .roman { font-family: var(--ar-serif); font-style: normal; }
  .pmn-Wizard .stage.-done .roman { color: var(--ok); }
  .pmn-Wizard .stage.-pending .roman { color: var(--ink-mute); }
  .pmn-Wizard .stage .label {
    font-family: var(--sans); font-weight: 500; font-size: 0.92rem; color: var(--ink);
  }
  html[dir="rtl"] .pmn-Wizard .stage .label { font-family: var(--ar); }
  .pmn-Wizard .stage.-pending .label { color: var(--ink-mute); }
  .pmn-Wizard .stage .check { width: 18px; height: 18px; color: var(--ok); display: none; }
  .pmn-Wizard .stage.-done .check { display: inline-block; }

  .pmn-Wizard .panel { display: none; }
  .pmn-Wizard .panel.-active { display: block; }
  .pmn-Wizard .panel h3 {
    font-family: var(--serif); font-style: italic; font-weight: 700;
    font-size: 1.6rem; margin: 0 0 6px;
  }
  html[dir="rtl"] .pmn-Wizard .panel h3 { font-family: var(--ar-serif); font-style: normal; }
  .pmn-Wizard .panel > p.intro { color: var(--ink-soft); margin: 0 0 26px; font-size: 0.96rem; }
  .pmn-Wizard .nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 28px; padding-top: 24px; border-block-start: 1px solid var(--line-soft);
    gap: 16px;
  }
  .pmn-Wizard .nav .progress {
    font-size: 0.82rem; color: var(--ink-mute);
    font-family: var(--serif); font-style: italic;
  }
  html[dir="rtl"] .pmn-Wizard .nav .progress { font-family: var(--ar-serif); font-style: normal; }

  /* ============ form fields ============ */
  .pmn-Form { display: grid; gap: 22px; }
  .pmn-FieldRow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .pmn-FieldRow.-c3 { grid-template-columns: 1fr 1fr 1fr; }
  .pmn-Field { display: grid; gap: 6px; }
  .pmn-Field > label {
    font-size: 0.9rem; font-weight: 500; color: var(--ink);
  }
  .pmn-Field > .hint { font-size: 0.78rem; color: var(--ink-mute); }
  .pmn-Field > .err {
    font-size: 0.82rem; color: var(--danger); display: none;
    aria-live: polite;
  }
  .pmn-Field.-invalid > .err { display: block; }
  .pmn-Field input, .pmn-Field select, .pmn-Field textarea {
    padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); color: var(--ink); width: 100%; font: inherit;
    transition: border-color .15s, box-shadow .15s, background .15s;
  }
  .pmn-Field input::placeholder, .pmn-Field textarea::placeholder { color: var(--ink-mute); }
  .pmn-Field input:focus, .pmn-Field select:focus, .pmn-Field textarea:focus {
    outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(67,72,91,.12);
  }
  .pmn-Field.-invalid input, .pmn-Field.-invalid select, .pmn-Field.-invalid textarea { border-color: var(--danger); }
  .pmn-Field select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2316181f' stroke-width='1.5' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
  }
  html[dir="rtl"] .pmn-Field select { background-position: left 14px center; padding-right: 14px; padding-left: 40px; }
  .pmn-Field select:disabled, .pmn-Field input:disabled {
    background: var(--paper-2); color: var(--ink-mute); cursor: not-allowed;
  }
  .pmn-Field textarea { min-height: 130px; resize: vertical; }

  .pmn-Field.-loading select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'><circle cx='12' cy='12' r='8' fill='none' stroke='%237b8295' stroke-width='2' stroke-linecap='round' stroke-dasharray='12 38'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/></circle></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
  }
  html[dir="rtl"] .pmn-Field.-loading select {
    background-position: left 14px center;
  }

  /* phone prefix */
  .pmn-Phone {
    display: grid; grid-template-columns: 80px 1fr; gap: 8px; align-items: stretch;
  }
  .pmn-Phone .prefix {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper-2); color: var(--ink-soft);
    font-feature-settings: 'tnum'; font-size: 0.96rem;
  }
  html[dir="rtl"] .pmn-Phone .prefix { direction: ltr; }

  /* preset amount chips (filled style, .is-on or :has) */
  .pmn-Amount { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
  .pmn-Amount > label {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); cursor: pointer; font-weight: 600; font-size: 1rem;
    color: var(--ink); transition: background .15s, border-color .15s, color .15s;
  }
  .pmn-Amount > label > input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .pmn-Amount > label.is-on,
  .pmn-Amount > label:has(input:checked) {
    background: var(--ink); color: #fff; border-color: var(--ink);
  }
  .pmn-Amount > label:hover:not(.is-on) { border-color: var(--ink); }

  .pmn-Review {
    background: var(--paper-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
  }
  .pmn-Review h4 {
    font-family: var(--serif); font-style: italic; font-weight: 700;
    margin: 0 0 14px; font-size: 1.05rem;
  }
  html[dir="rtl"] .pmn-Review h4 { font-family: var(--ar-serif); font-style: normal; }
  .pmn-Review dl {
    display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px;
    margin: 0; font-size: 0.94rem;
  }
  .pmn-Review dt { color: var(--ink-mute); font-weight: 400; }
  .pmn-Review dd { margin: 0; color: var(--ink); font-weight: 500; }
  .pmn-Review .total {
    margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .pmn-Review .total span { font-size: 0.86rem; color: var(--ink-mute); }
  .pmn-Review .total b {
    font-family: var(--serif); font-style: italic; font-weight: 700;
    font-size: 1.8rem; color: var(--ink); line-height: 1;
  }
  html[dir="rtl"] .pmn-Review .total b { font-family: var(--ar-serif); font-style: normal; }

  /* ============ redirect spinner overlay ============ */
  .pmn-Overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(255,255,255,.92); display: none;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
  }
  .pmn-Overlay.-shown { display: flex; }
  .pmn-Overlay .spinner {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid var(--line); border-top-color: var(--brand);
    animation: pmnSpin .8s linear infinite;
  }
  @keyframes pmnSpin { to { transform: rotate(360deg); } }

  /* ============ FAQ accordion ============ */
  .pmn-Faq { border-block-start: 1px solid var(--line); }
  .pmn-Faq details { border-block-end: 1px solid var(--line); padding: 0; }
  .pmn-Faq summary {
    padding: 22px 0; font-weight: 500; font-size: 1.04rem;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; color: var(--ink);
  }
  .pmn-Faq summary::after {
    content: ""; width: 14px; height: 14px; flex-shrink: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' width='14' height='14'><path d='M7 2v10M2 7h10' stroke='%2316181f' stroke-width='1.5' stroke-linecap='round'/></svg>") center/contain no-repeat;
    transition: transform .25s ease;
  }
  .pmn-Faq details[open] summary::after { transform: rotate(45deg); }
  .pmn-Faq .ans { padding: 0 0 24px; color: var(--ink-soft); font-size: 0.96rem; max-width: 70ch; }
  .pmn-Faq .ans p { margin: 0 0 10px; }
  .pmn-Faq .ans p:last-child { margin: 0; }

  /* ============ modal bottom-sheet ============ */
  .pmn-Modal {
    position: fixed; inset: 0; z-index: 100;
    visibility: hidden; opacity: 0;
    transition: opacity .22s ease, visibility 0s linear .22s;
  }
  .pmn-Modal[aria-hidden="false"] {
    visibility: visible; opacity: 1;
    transition: opacity .22s ease, visibility 0s linear 0s;
  }
  .pmn-Modal .backdrop { position: absolute; inset: 0; background: rgba(22,24,31,.55); }
  .pmn-Modal .panel {
    position: absolute; inset-inline: 0; inset-block-end: 0;
    background: var(--paper); border-radius: 18px 18px 0 0;
    padding: 36px 36px 28px;
    max-width: 720px; margin: 0 auto;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
  }
  .pmn-Modal[aria-hidden="false"] .panel { transform: translateY(0); }
  .pmn-Modal h3 { margin: 0 0 12px; font-size: 1.5rem; }
  .pmn-Modal p { color: var(--ink-soft); margin: 0 0 20px; }
  .pmn-Modal .closeX {
    position: absolute; top: 14px; inset-inline-end: 16px;
    background: none; border: 0; font-size: 24px; color: var(--ink-soft); padding: 8px 12px;
  }
  .pmn-Modal .handle {
    width: 44px; height: 4px; background: var(--line); border-radius: 2px;
    margin: 0 auto 22px;
  }
  @media (min-width: 720px) {
    .pmn-Modal .panel { inset-inline: auto; inset-block: auto; margin: 0; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 24px)); border-radius: var(--radius-lg); max-width: 480px; width: 92vw; }
    .pmn-Modal[aria-hidden="false"] .panel { transform: translate(-50%, -50%); }
  }

  /* ============ breadcrumbs (we use minimal text path) ============ */
  .pmn-Crumbs { font-size: 0.82rem; color: var(--ink-mute); padding: 14px 0 0; }
  .pmn-Crumbs ol { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .pmn-Crumbs li { display: flex; gap: 8px; align-items: center; }
  .pmn-Crumbs li + li::before { content: "/"; color: var(--ink-mute); }
  .pmn-Crumbs a { color: var(--ink-soft); }
  .pmn-Crumbs a:hover { color: var(--brand); }

  /* ============ prose (long-text pages) ============ */
  .pmn-Prose { max-width: 70ch; }
  .pmn-Prose h2 { margin: 40px 0 14px; font-size: 1.5rem; }
  .pmn-Prose h3 { margin: 28px 0 8px; font-size: 1.1rem; }
  .pmn-Prose p, .pmn-Prose li { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.72; }
  .pmn-Prose ul, .pmn-Prose ol { padding-inline-start: 22px; margin: 0 0 1rem; list-style: disc; }
  .pmn-Prose ol { list-style: decimal; }
  .pmn-Prose li { margin-bottom: 6px; }
  .pmn-Prose a { color: var(--brand); text-decoration: underline; text-decoration-style: dotted; }

  .pmn-Callout {
    border-inline-start: 3px solid var(--brand);
    background: var(--paper-2);
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
  }
  html[dir="rtl"] .pmn-Callout { border-radius: var(--radius) 0 0 var(--radius); }
  .pmn-Callout p:last-child { margin: 0; }
  .pmn-Callout strong { color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.05rem; }
  html[dir="rtl"] .pmn-Callout strong { font-family: var(--ar-serif); font-style: normal; }

  /* ============ footer ============ */
  .pmn-Footer { background: var(--ink); color: #c6c9d2; padding: 64px 0 32px; }
  .pmn-Footer .cols {
    display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 36px;
    padding-bottom: 36px; border-bottom: 1px solid #2a2d35;
  }
  .pmn-Footer h4 {
    font-family: var(--sans); font-style: normal; font-weight: 600;
    color: #fff; font-size: 0.8rem; letter-spacing: 0.14em;
    text-transform: uppercase; margin: 0 0 18px;
  }
  html[dir="rtl"] .pmn-Footer h4 { font-family: var(--ar); letter-spacing: 0.04em; }
  .pmn-Footer .col ul { display: flex; flex-direction: column; gap: 10px; }
  .pmn-Footer .col a { color: #c6c9d2; font-size: 0.9rem; }
  .pmn-Footer .col a:hover { color: #fff; }
  .pmn-Footer .brand { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
  .pmn-Footer .brand .name {
    color: #fff; font-family: var(--serif); font-style: italic; font-weight: 700;
    font-size: 1.2rem;
  }
  html[dir="rtl"] .pmn-Footer .brand .name { font-family: var(--ar-serif); font-style: normal; }
  .pmn-Footer .brand p { color: #9da3b3; font-size: 0.86rem; margin: 0; line-height: 1.55; }
  .pmn-Footer .wa {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px; background: #1f7e3a; color: #fff;
    border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 500;
    width: max-content;
  }
  .pmn-Footer .wa:hover { background: #196830; }
  .pmn-Footer .news {
    display: flex; gap: 8px; margin-top: 8px;
  }
  .pmn-Footer .news input {
    flex: 1; padding: 11px 14px; border: 1px solid #2a2d35;
    background: #1f2129; color: #fff; border-radius: var(--radius-pill);
    font-size: 0.88rem;
  }
  .pmn-Footer .news input::placeholder { color: #6e7384; }
  .pmn-Footer .news button {
    padding: 11px 18px; background: var(--paper); color: var(--ink);
    border: 0; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.86rem;
  }
  .pmn-Footer .bottom {
    display: flex; justify-content: space-between; gap: 16px; padding-top: 28px;
    flex-wrap: wrap; align-items: center;
  }
  .pmn-Footer .bottom p { font-size: 0.82rem; color: #9da3b3; margin: 0; max-width: none; }
  .pmn-Footer .badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .pmn-Footer .badges span {
    font-size: 0.68rem; color: #7d8290; letter-spacing: 0.1em;
    padding: 4px 10px; border: 1px solid #2a2d35; border-radius: 3px;
  }
  .pmn-Footer .visitors {
    font-size: 0.72rem; color: #6e7384; letter-spacing: 0.05em;
  }
  .pmn-Footer .visitors b { color: #c6c9d2; font-weight: 500; }
  .pmn-Footer .seal {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
    border: 1px dashed #2a2d35; border-radius: var(--radius);
    font-size: 0.74rem; color: #9da3b3;
  }
  .pmn-Footer .seal::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  }

  /* ============ cookies banner (simple) ============ */
  .pmn-Cookies {
    position: fixed; inset-inline: 16px; bottom: 16px; max-width: 540px;
    padding: 16px 18px; background: var(--ink); color: #fff;
    border-radius: var(--radius-lg); display: none; z-index: 80;
    box-shadow: var(--shadow-lg);
  }
  .pmn-Cookies.-shown {
    display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  }
  .pmn-Cookies p { margin: 0; font-size: 0.85rem; line-height: 1.55; color: #c6c9d2; }
  .pmn-Cookies button {
    background: var(--paper); color: var(--ink); border: 0;
    padding: 9px 20px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: 0.85rem;
  }
  .pmn-Cookies a { color: #fff; text-decoration: underline; text-decoration-style: dotted; }

  /* ============ scroll progress (top bar) ============ */
  .pmn-Progress {
    position: fixed; top: 0; inset-inline: 0; height: 2px;
    background: var(--brand); transform-origin: left;
    transform: scaleX(0); z-index: 70; pointer-events: none;
    transition: transform .1s linear;
  }
  html[dir="rtl"] .pmn-Progress { transform-origin: right; }

  /* ============ 404 ============ */
  .pmn-404 { padding: 120px 0; text-align: center; }
  .pmn-404 .code {
    font-family: var(--serif); font-style: italic; color: var(--brand);
    font-size: clamp(5rem, 14vw, 11rem); line-height: 1; margin-bottom: 18px;
    letter-spacing: -0.05em; font-weight: 700;
  }
  html[dir="rtl"] .pmn-404 .code { font-family: var(--ar-serif); font-style: normal; }

  /* ============ blog ============ */
  .pmn-Posts { display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); }
  .pmn-Post {
    display: flex; flex-direction: column; gap: 14px;
    padding-bottom: 24px; border-block-end: 1px solid var(--line-soft);
  }
  .pmn-Post .meta {
    font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase;
    font-family: var(--sans); font-style: normal;
  }
  html[dir="rtl"] .pmn-Post .meta { font-family: var(--ar); letter-spacing: 0; text-transform: none; }
  .pmn-Post h3 {
    font-family: var(--serif); font-style: italic; font-weight: 700;
    font-size: 1.3rem; margin: 0; line-height: 1.22;
  }
  html[dir="rtl"] .pmn-Post h3 { font-family: var(--ar-serif); font-style: normal; }
  .pmn-Post p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
  .pmn-Post a.read { color: var(--brand); font-weight: 500; font-size: 0.88rem; padding-top: 6px; }

  /* ============ map placeholder svg ============ */
  .pmn-Map {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
    height: 240px; display: flex; align-items: center; justify-content: center;
    color: var(--ink-mute); position: relative; overflow: hidden;
  }
  .pmn-Map .grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--line-soft) 1px, transparent 1px),
      linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
  }
  .pmn-Map .pin {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  }
  .pmn-Map .pin .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(67,72,91,.18); }
  .pmn-Map .pin span { font-size: 0.82rem; color: var(--ink-soft); }
}

@layer utilities {
  .muted { color: var(--ink-soft); }
  .mute2 { color: var(--ink-mute); }
  .small { font-size: 0.86rem; }
  .center { text-align: center; }
  .end { text-align: end; }
  .sronly { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .stack { display: flex; flex-direction: column; }
  .row-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .gap-12 { gap: 12px; }
  .gap-16 { gap: 16px; }
  .gap-24 { gap: 24px; }
  .mt-md { margin-top: 28px; }
  .mt-lg { margin-top: 48px; }
  .hide-mobile { }
  .hide-desk { display: none; }
}

@layer motion {
  .pmn-reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .pmn-reveal.-on { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .pmn-reveal { opacity: 1; transform: none; transition: none; }
  }
}

@layer responsive {
  @media (max-width: 1024px) {
    .pmn-Hero .inner { grid-template-columns: 1fr; gap: 40px; }
    .pmn-Footer .cols { grid-template-columns: 1.2fr repeat(2, 1fr); }
    .pmn-Grid.-c4 { grid-template-columns: repeat(2, 1fr); }
    .pmn-Posts { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 720px) {
    :root { --gut: 18px; }
    .pmn-Nav, .pmn-LangSwitch { display: none; }
    .pmn-Burger { display: inline-flex; }
    .pmn-Header .row { grid-template-columns: 1fr auto; }
    .pmn-Header .center { display: none; }
    .pmn-Section { padding: 64px 0; }
    .pmn-Section.-tight { padding: 36px 0; }
    .pmn-Hero { padding: 40px 0 56px; }
    .pmn-Grid.-c2, .pmn-Grid.-c3 { grid-template-columns: 1fr; }
    .pmn-Footer .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
    .pmn-Wizard { padding: 24px; }
    .pmn-Wizard .stages { gap: 6px; }
    .pmn-Wizard .stage { padding: 8px 0; gap: 8px; }
    .pmn-Wizard .stage .label { font-size: 0.82rem; }
    .pmn-Wizard .stage .roman { font-size: 1.2rem; width: 24px; }
    .pmn-Amount { grid-template-columns: repeat(2, 1fr); }
    .pmn-FieldRow, .pmn-FieldRow.-c3 { grid-template-columns: 1fr; }
    .pmn-Step { grid-template-columns: 84px 1fr; gap: 18px; padding: 26px 0; }
    .pmn-Step .num { font-size: 3.4rem; }
    .pmn-VLabel { display: none; }
    .pmn-SectionHead { margin-bottom: 32px; }
    .pmn-Card { padding: 22px; }
    .pmn-Card.-pad-lg { padding: 24px; }
    .pmn-HeroCard { padding: 24px; }
    .pmn-Posts { grid-template-columns: 1fr; }
    .pmn-Hero .trust { gap: 18px; padding-top: 22px; margin-top: 24px; }
    .pmn-Utility { font-size: 0.74rem; }
    .pmn-Utility .left, .pmn-Utility .right { width: 100%; justify-content: center; }
    .hide-mobile { display: none; }
    .hide-desk { display: initial; }
  }
  @media (max-width: 420px) {
    .pmn-Hero h1 { font-size: 2.1rem; }
  }
  @media print {
    .pmn-Header, .pmn-Footer, .pmn-Utility, .pmn-Announce, .pmn-Drawer, .pmn-Modal, .pmn-Overlay, .pmn-Cookies, .pmn-Progress { display: none; }
  }
}
