/* ==========================================================================
   منصة إحقاق — النظام البصري (الإصدار الثاني)
   مستوحى من شاشة الدخول: لوحة تركوازية صلبة، زوايا مدوّرة، خط Tajawal، بلا صور.
   الرئيسية: مقدمة بيضاء ونصفان متباينان للمسارين.
   الصفحات الداخلية: ترويسة وبطل تركوازيان، وورقة بيضاء عائمة، وأقسام بعناوين في المنتصف.
   ========================================================================== */

:root {
  --paper:     #FFFFFF;
  --ground:    #F2F6F7;
  --field:     #EFF3F4;   /* لون الحقول والبطاقات على الأقسام البيضاء (كشاشة الدخول) */
  --tint:      #E6F2F3;

  --ink:       #0C1F24;
  --ink-2:     #3A5459;
  --ink-3:     #4C6A70;

  --line:      rgba(12, 31, 36, .10);
  --line-2:    rgba(12, 31, 36, .18);

  --teal:      #21919C;   /* علامة الشعار — للخطوط والزخارف */
  --teal-deep: #176E77;   /* الأسطح والنصوص والأزرار */
  --teal-light: #A9DDE2;  /* نصوص وخطوط فاتحة فوق الأسطح التركوازية */

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --content: 1296px;
  --pad: max(72px, calc((100% - var(--content)) / 2));
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* DIN Next LT Arabic (خط أبشر) تجاري؛ يُستخدم تلقائيًا إن أُضيفت ملفاته المرخّصة */
  /* مقياس خط مرن: يصغر تدريجيًا من الحاسوب إلى الجوال */
  --fs-body:  clamp(14.5px, 13px + .3vw, 17px);
  --fs-lead:  clamp(15px, 13.4px + .35vw, 18px);
  --fs-small: clamp(14px, 13px + .2vw, 15.5px);
  --fs-h1:    clamp(25px, 17px + 2.2vw, 50px);
  --fs-h2:    clamp(22px, 16px + 1.5vw, 38px);
  --fs-h3:    clamp(16.5px, 15px + .3vw, 19px);

  --f: 'Tajawal', 'DIN Next LT Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--fs-body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--f); font-weight: 700; margin: 0; line-height: 1.35; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* محاذاة النص من الجانبين في كل فقرات الموقع: يبدأ كل سطر وينتهي عند حافتي صندوقه */
p, .list li > span {
  text-align: justify; text-justify: inter-word;
}
/* التسميات القصيرة والأسطر المفردة تبقى بمحاذاتها الطبيعية */
p.kicker, .form__foot p, .proc-empty { text-align: start; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal); }
button { font-family: inherit; }
.mono { font-variant-numeric: tabular-nums; }

:where(a, button, input, textarea, [tabindex]):focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -60px; inset-inline-start: 16px; z-index: 300;
  background: var(--teal-deep); color: #fff; padding: 12px 20px; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.shell > main { flex: 1 0 auto; display: flex; flex-direction: column; }

/* زخرفة الدوائر من شاشة الدخول */
.circuit { position: relative; overflow: hidden; isolation: isolate; }
.circuit::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: -140px; inset-inline-start: -60px; width: 600px; height: 560px;
  background: url(../images/brand-circuit.png) no-repeat bottom right / contain; opacity: .15;
}
[dir="ltr"] .circuit::before { transform: scaleX(-1); }

/* ------------------------------------------------------------- bits ----- */

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--teal-deep);
}
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--teal); flex: none; }
.kicker--plain::before { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--f); font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--teal-deep); color: #fff; }
.btn--primary:hover { background: #125A62; color: #fff; }
.btn--ghost { background: var(--paper); color: var(--teal-deep); border-color: rgba(23,110,119,.35); }
.btn--ghost:hover { border-color: var(--teal-deep); background: var(--tint); color: var(--teal-deep); }
.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { background: var(--tint); color: var(--teal-deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn svg { flex: none; transition: transform .25s var(--ease); }
[dir="ltr"] .btn svg { transform: scaleX(-1); }

.chip {
  display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap;
  background: var(--tint); color: var(--teal-deep);
}
.chip--reorg { background: #F3EAD3; color: #6E5620; }
.chip--data  { background: var(--field); color: var(--ink-3); }

.ring {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--teal-deep);
  font-size: 18px; font-weight: 800; line-height: 1;
}
.ring svg { width: 24px; height: 24px; }

.notice {
  background: var(--tint); color: var(--teal-deep); border-radius: var(--r-sm);
  padding: 14px 20px; font-size: var(--fs-small); line-height: 1.85;
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink-3); font-size: 14px; font-weight: 700; line-height: 1;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lang-switch:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.lang-switch svg { flex: none; }
.lang-switch span { white-space: nowrap; }

/* =========================================================== HOME ======= */

.topbar { background: var(--paper); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--pad); }
.topbar__brand { display: flex; align-items: center; gap: 22px; }
.logo { flex: none; display: block; }
.logo img, .site-footer__brand img { max-width: none; width: auto; object-fit: contain; }
.topbar__brand { min-width: 0; }
.topbar__brand .logo img { height: 44px; }
.topbar__tag { font-size: 14px; color: var(--ink-3); padding-inline-start: 22px; border-inline-start: 1px solid var(--line-2); }

.intro {
  background: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  padding: 56px var(--pad) 52px;
}
.intro h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.25; margin-top: 14px; }
.intro__lead {
  margin-top: 44px; color: var(--ink-2); font-size: var(--fs-lead); line-height: 2;
  border-inline-start: 3px solid var(--teal); padding-inline-start: 22px;
}

/* المساران: نصفان من الحافة إلى الحافة كما في التصميم.
   على الشاشات الأعرض من 1440 يتوقفان عند عرض المحتوى نفسه ويتوسّطان،
   فيبقى نصهما محاذيًا للشعار والمقدمة (المحتوى 1296 + 72 من كل جهة). */
.paths {
  flex: 1 0 auto; display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; max-width: calc(var(--content) + 144px); margin-inline: auto;
}
.path {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 72px 72px; color: var(--ink);
}
.path--teal { background: var(--teal-deep); color: #fff; }
.path--teal:hover { color: #fff; }
.path--pale { background: var(--field); }
.path--pale:hover { color: var(--ink); }
.path--teal::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  bottom: -140px; inset-inline-start: -60px; width: 560px; height: 520px;
  background: url(../images/brand-circuit.png) no-repeat bottom right / contain; opacity: .16;
}
[dir="ltr"] .path--teal::before { transform: scaleX(-1); }


.path__body { position: relative; display: flex; flex-direction: column; gap: 16px; }
.path .kicker { font-size: 14.5px; }
.path--teal .kicker { color: var(--teal-light); }
.path h2 { font-size: clamp(22px, 2.6vw, 38px); font-weight: 800; white-space: nowrap; }
.path--pale h2 { color: var(--teal-deep); }
/* العبارة العربية في سطر واحد بطلب العميل؛ الإنجليزية أطول فتلتف */
[dir="ltr"] .path h2 { white-space: normal; }
.path p { font-size: var(--fs-lead); line-height: 2; max-width: 56ch; }
.path--teal p { color: rgba(255,255,255,.9); }
.path--pale p { color: var(--ink-2); }
.path .btn { align-self: flex-start; margin-top: 12px; min-height: 56px; padding: 0 28px; }

/* الحركة كما في التصميم: يرتفع النصف قليلًا عند المرور */
@media (prefers-reduced-motion: no-preference) {
  .path { transition: transform .3s ease; }
  .path:hover { transform: translateY(-3px); }
}

/* على الشاشات الأعرض من الحد: النصفان كتلة واحدة بزوايا مدوّرة */
@media (min-width: 1441px) {
  .paths { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 40px; }
  .intro { padding-bottom: 56px; }
}

/* شاشات الحاسوب القصيرة (مثل 1366×768 و1440×900 مع شريط المتصفح):
   تصغير المسافات العمودية والخط قليلًا حتى تظهر الأزرار دون تمرير */
@media (min-width: 1101px) and (max-height: 940px) {
  .topbar__in { padding-block: 12px; }
  .topbar__brand .logo img { height: 40px; }
  .intro {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 40px;
    padding-block: clamp(24px, 4.5vh, 36px) clamp(22px, 4vh, 32px);
  }
  .intro h1 { font-size: min(var(--fs-h1), 40px); margin-top: 10px; }
  .intro__lead { margin-top: 32px; font-size: 15.5px; line-height: 1.85; }
  .path { padding-block: clamp(32px, 5.6vh, 56px) clamp(30px, 5vh, 44px); }
  .path__body { gap: 12px; }
  .path h2 { font-size: min(clamp(22px, 2.6vw, 38px), 34px); }
  .path p { font-size: 15.5px; line-height: 1.85; }
  .path .btn { margin-top: 6px; min-height: 50px; }
  .mini-footer { padding-block: 12px; }
}

/* الرئيسية على امتداد الأبيض */
.topbar ~ main { background: var(--paper); }

.mini-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: 20px var(--pad); background: var(--ground); color: var(--ink-3); font-size: 13.5px;
}

/* ===================================================== INNER PAGES ===== */

/* الترويسة — بيضاء كترويسة الرئيسية */
.masthead { position: sticky; top: 0; z-index: 100; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding: 0 var(--pad); }
.masthead__start, .masthead__end { display: flex; align-items: center; gap: 20px; }
.masthead__end { gap: 12px; }
.masthead .logo img { height: 40px; }
.masthead__start { min-width: 0; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 700; white-space: nowrap; }
.nav a:hover { color: var(--teal-deep); }
.nav .nav__extra { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--field); flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--teal-deep); transition: transform .25s ease, opacity .25s ease; }
.masthead.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.masthead.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.masthead.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* البطل — لوحة تركوازية: النص في جهة وبطاقة المزايا في الأخرى */
.hero {
  background: var(--teal-deep); color: #fff; padding: 72px var(--pad);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center;
}
.hero .kicker { color: var(--teal-light); }
.hero .kicker::before { background: var(--teal-light); }
.hero h1 { font-size: min(var(--fs-h1), 48px); font-weight: 800; line-height: 1.3; margin-top: 16px; }
.hero__in > p { margin-top: 20px; font-size: var(--fs-lead); line-height: 2; color: rgba(255,255,255,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* بطاقة المزايا */
.sheet {
  background: var(--paper); color: var(--ink); border-radius: 18px; padding: 8px 28px;
  box-shadow: 0 24px 56px rgba(0,0,0,.18);
}
.sheet__item { display: flex; align-items: center; gap: 16px; padding: 18px 0; font-size: var(--fs-body); font-weight: 700; line-height: 1.75; }
.sheet__item + .sheet__item { border-top: 1px solid var(--line); }
.sheet .ring { width: 50px; height: 50px; }
.sheet .ring svg { width: 22px; height: 22px; }

/* الأقسام */
.section { padding: 88px var(--pad); display: flex; flex-direction: column; gap: 40px; }
.section--white { background: var(--paper); }
.section__head { max-width: 780px; display: grid; justify-items: start; gap: 12px; }
.section__head h2 { font-size: var(--fs-h2); font-weight: 800; }
.section__head p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 2; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { background: var(--paper); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.section--white .card { background: var(--field); }
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.9; }
.step__n { font-size: clamp(32px, 26px + 1.2vw, 44px); font-weight: 800; line-height: 1; color: var(--teal); }

/* دليل البوابات */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.filter[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.filter .mono { opacity: .75; }

.proc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proc {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 18px; align-content: start;
  background: var(--paper); border-radius: var(--r); padding: 26px;
}
.section--white .proc { background: var(--field); }
.proc[hidden] { display: none; }
.proc__logo {
  grid-row: span 3; width: 76px; height: 76px; padding: 10px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.proc__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.proc__kind { justify-self: start; }
.proc__name { font-size: var(--fs-h3); font-weight: 700; line-height: 1.5; }
.proc__desc { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.85; }
.proc__ref { grid-column: 2; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.proc .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
.proc-empty { grid-column: 1 / -1; text-align: center; padding: 32px; color: var(--ink-3); }

/* قائمة مرقّمة بجانب عنوانها */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.duo .section__head { position: sticky; top: 112px; }
.duo__side { display: grid; gap: 16px; }
.list { display: grid; gap: 12px; }
.list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border-radius: 12px; padding: 18px 22px; font-size: var(--fs-body); line-height: 1.8;
}
.section--white .list li { background: var(--field); }
.list b { color: var(--teal-deep); font-weight: 800; flex: none; min-width: 26px; }

/* شريط الدعوة */
.band {
  margin: 88px var(--pad); border-radius: 20px; background: var(--teal-deep); color: #fff;
  padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.band h2 { font-size: min(var(--fs-h2), 34px); font-weight: 800; }
.band p { margin-top: 10px; max-width: 64ch; color: rgba(255,255,255,.9); font-size: var(--fs-lead); line-height: 2; }
.band .btn { flex: none; }

/* التذييل */
.site-footer { background: var(--paper); padding: 64px var(--pad) 24px; display: grid; gap: 40px; }
.site-footer__cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.95; max-width: 46ch; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer__col a { color: var(--ink-2); }
.site-footer__col a:hover { color: var(--teal-deep); }
.site-footer__h { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.site-footer__meta, .site-footer__lic { color: var(--ink-2); line-height: 1.85; }
.site-footer__lic { color: var(--ink-3); font-size: 14px; }
.site-footer__bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  border-top: 1px solid var(--line); padding-top: 20px; color: var(--ink-3); font-size: 14px;
}
.site-footer__bar nav { display: flex; gap: 20px; }
.site-footer__bar a { color: var(--ink-3); }

/* ------------------------------------------------------------- modal ---- */

.modal {
  position: fixed; inset: 0; z-index: 200; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 30, 34, .6); visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__box {
  width: 100%; max-width: 880px; max-height: calc(100dvh - 48px); overflow-y: auto;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(12,31,36,.25);
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 36px 40px 8px; }
.modal__head h2 { font-size: min(var(--fs-h2), 28px); font-weight: 800; margin-top: 12px; }
.modal__head p { margin-top: 10px; font-size: 16px; color: var(--ink-3); }
.modal__close {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: var(--field);
}
.modal__notice { padding: 16px 40px 0; }

.form { padding: 24px 40px 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: span 2; }
.field label { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field textarea {
  min-height: 54px; padding: 14px 18px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--field); color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.7;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8BA2A8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-deep); background: #fff; box-shadow: 0 0 0 3px rgba(33,145,156,.16); }
.form__foot { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 6px; }
.form__foot p { font-size: 14px; color: var(--ink-3); }
.form__foot .btn { padding: 0 40px; }

/* ========================================================== responsive === */

@media (max-width: 1240px) {
  :root { --pad: 48px; }
  .path { padding-inline: 48px; }
  .masthead__end .btn--ghost { display: none; }
  .nav .nav__extra:not(.btn) { display: inline; }
  .cards--4, .cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .masthead__end .btn { display: none; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 20px; background: var(--paper);
    box-shadow: 0 18px 30px rgba(12,31,36,.14);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .masthead.is-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav a { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:hover { color: var(--teal-deep); }
  .nav .nav__extra { display: block; }
  .nav .nav__extra.btn { display: flex; margin-top: 16px; border: 0; color: #fff; }
  .masthead .chip { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .sheet { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .sheet__item:nth-child(2) { border-top: 0; }
  .cards, .proc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .duo .section__head { position: static; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }

  .intro { grid-template-columns: 1fr; gap: 20px; }
  .intro__lead { margin-top: 0; }
  .paths { grid-template-columns: 1fr; }
  .path { padding: 72px var(--pad) 56px; }
  .path h2 { white-space: normal; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 80px; }

  .topbar__in { padding-block: 14px; }
  .topbar__brand .logo img { height: 34px; }
  .btn { min-height: 50px; padding: 0 20px; font-size: 15px; }
  .btn--sm { min-height: 42px; font-size: 14px; }
  .path .btn { min-height: 52px; }
  .kicker { font-size: 13.5px; }
  .path .kicker { font-size: 13.5px; }
  .card h3, .proc__name { line-height: 1.45; }
  .list li { padding: 14px 16px; gap: 12px; }
  .ring { width: 46px; height: 46px; font-size: 16px; }
  .topbar__tag { display: none; }
  .intro { padding-block: 36px 32px; }
  .intro__lead { padding-inline-start: 16px; line-height: 1.9; }
  .path { padding: 48px var(--pad) 40px; }
  .path:hover { transform: none; }
  .path .btn { align-self: stretch; justify-content: space-between; }
  .path--teal::before { width: 380px; height: 350px; bottom: -100px; }

  .masthead__in { min-height: 68px; }
  .masthead .logo img { height: 32px; }
  .masthead__end .lang-switch { min-height: 40px; padding: 0 12px; }
  .hero { padding: 40px var(--pad) 44px; gap: 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .circuit::before { width: 380px; height: 350px; bottom: -100px; }

  .sheet { padding: 4px 18px; grid-template-columns: 1fr; }
  .sheet__item:nth-child(2) { border-top: 1px solid var(--line); }
  .sheet__item { padding: 14px 0; }
  .sheet .ring { width: 46px; height: 46px; }

  .section { padding: 56px var(--pad); gap: 28px; }
  .cards, .cards--4, .cards--5, .proc-list { grid-template-columns: 1fr; gap: 14px; }
  .card, .proc { padding: 22px; }
  .proc { grid-template-columns: 64px minmax(0, 1fr); }
  .proc__logo { width: 64px; height: 64px; }
  .proc .btn { grid-column: 1 / -1; justify-self: stretch; }
  .band { margin: 56px var(--pad); padding: 36px 24px; flex-direction: column; align-items: stretch; gap: 24px; }

  .site-footer { padding: 48px var(--pad) 24px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 28px; }

  .modal { padding: 12px; }
  .modal__head { padding: 26px 22px 4px; }
  .modal__notice { padding: 14px 22px 0; }
  .form { grid-template-columns: 1fr; padding: 20px 22px 26px; }
  .field--wide, .form__foot { grid-column: auto; }
  .form__foot { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
