:root {
  --navy: #0f1566;
  --navy-2: #0b1050;
  --navy-3: #080c3e;
  --gold: #f2c92e;
  --gold-2: #e3b91c;
  --gold-soft: #f8f1cf;
  --ink: #1d2048;
  --muted: #4b4f7d;
  --line: #e6e8f1;
  --soft: #eef0f8;
  --bg: #f5f6fa;
  --ok: #15803d;
  --ok-bg: #e4f5ea;
  --bad: #b91c1c;
  --bad-bg: #fdecec;
  --warn: #8a4b08;
  --warn-bg: #fdf3dc;
  --wa: #128c4a;
  --wa-hover: #0f7a40;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Cairo", Tahoma, "Segoe UI", sans-serif;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 24px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  /* نفس لون الشريط العلوي والفوتر: أي فراغ أعلى أو أسفل الصفحة (تمرير زائد أو إضافة تحقن مسافة) يندمج معهما */
  background: var(--navy-3);
}

html.is-locked { overflow: hidden; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* إخفاء شريط ووردبريس قد يترك هامشاً أعلى الصفحة لبعض المتصفحات. */
html, body, body.admin-bar { margin-top: 0 !important; }
#wpadminbar { display: none !important; }

body > main { flex: 1 0 auto; }
body > .topbar, body > .site-header, body > .site-footer { flex: none; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.5; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--gold);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--navy);
  font-size: 1.5rem;
}

.icon-tile--navy { background: var(--navy); color: var(--gold); }
.icon-tile--gold { background: var(--gold); color: var(--navy); }
.icon-tile--wa { background: var(--wa); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.6rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active { transform: scale(0.98); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-2); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #1b2380; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--outline:hover { border-color: #c5c9e6; background: var(--soft); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.icon--nudge { transition: transform 0.2s; }
.btn:hover .icon--nudge { transform: translateX(-4px); }

.btn.is-loading { position: relative; pointer-events: none; }

.btn.is-loading::before {
  content: "";
  width: 1.1em;
  height: 1.1em;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0 0.8rem;
  border-radius: 99px;
  background: var(--gold-soft);
  color: #6b5400;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag--gold { background: var(--gold); color: var(--navy); }

.card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.alert {
  margin-block: 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.alert--error { background: var(--bad-bg); color: var(--bad); border: 1px solid #f3c2c2; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #ecdc95;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--ink);
  font-size: 0.95rem;
}

.callout .icon { margin-top: 0.3rem; color: var(--navy); }
.callout--ok { border-color: #bbe5c9; background: var(--ok-bg); color: #14532d; }
.callout--ok .icon { color: var(--ok); }
.callout--warn { color: var(--warn); }

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field__label {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  color: #3a3e70;
  font-size: 0.9rem;
  font-weight: 600;
}

.field__req { color: var(--bad); }
.field__hint { margin-top: 0.3rem; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.field__error { display: none; margin-top: 0.3rem; color: var(--bad); font-size: 0.85rem; font-weight: 600; line-height: 1.6; }
.field.has-error .field__error { display: block; }
.field.has-error .field__hint { display: none; }

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:hover { border-color: #c5c9e6; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 21, 102, 0.12); }
.input::placeholder { color: #8a8eb3; }
.input[aria-invalid="true"] { border-color: var(--bad); background-color: #fffafa; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15); }
.input--ltr { direction: ltr; text-align: right; }

input[type="date"].input { height: 52px; -webkit-appearance: none; appearance: none; text-align: start; }
input[type="date"].input::-webkit-date-and-time-value { text-align: start; }
.wa-float { -webkit-tap-highlight-color: transparent; }
html.is-locked .wa-float { display: none; }

select.input {
  padding-inline-end: 2.6rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1566' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.9rem center;
  background-size: 1.2rem;
}

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.form__submit { margin-top: 1.4rem; }
.form__status { margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; text-align: center; }
.form > .alert { margin-top: 1.1rem; margin-bottom: 0; }
.btn--block { width: 100%; }

.docs { min-width: 0; margin: 1.6rem 0 0; padding: 1.25rem 0 0; border: 0; border-top: 1px dashed #c9cde8; }
.docs__title { padding: 0; color: var(--navy); font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.docs__lead { margin: 0.1rem 0 1rem; color: var(--muted); font-size: 0.9rem; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: #fbfbfd;
  color: var(--navy);
  animation: preloader-out 0.5s ease 4.4s forwards;
}

.preloader.is-done { animation: preloader-out 0.4s ease forwards; }

@keyframes preloader-out { to { opacity: 0; visibility: hidden; } }

.preloader__logo { height: 66px; width: auto; }

.preloader__route {
  position: relative;
  flex: none;
  width: 320px;
  height: 120px;
  direction: ltr;
}

.preloader__route > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.preloader__path { fill: none; stroke: #cfd3ea; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }

.preloader__trail {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: preloader-draw 1.5s 0.2s cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
}

.preloader__start { fill: var(--navy); }
.preloader__end { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.preloader__place { position: absolute; color: #585c8a; font-size: 0.8rem; font-weight: 600; }
.preloader__place--start { right: 0; top: 104px; }
.preloader__place--end { left: 0; top: 42px; }

.preloader__plane {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  color: var(--navy);
  offset-path: path("M300 92C232 96 214 22 152 32S50 84 22 26");
  offset-rotate: auto 45deg;
  offset-distance: 0%;
  animation: preloader-fly 1.5s 0.2s cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
}

.preloader__plane svg { display: block; width: 100%; height: 100%; fill: currentColor; }

.preloader__coin {
  position: absolute;
  left: 34px;
  top: -18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-style: normal;
  font-weight: 700;
  transform: scale(0);
  animation: preloader-coin 0.4s 1.55s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}

.preloader__cloud { position: absolute; height: 14px; border-radius: 14px; background: #eceefa; animation: preloader-cloud 6s linear infinite; }
.preloader__cloud--a { width: 54px; top: 8px; left: 30%; }
.preloader__cloud--b { width: 38px; top: 78px; left: 55%; animation-delay: -3s; }
.preloader__tagline { color: var(--navy); font-size: 1.15rem; font-weight: 700; }

/* المتصفحات القديمة بدون offset-path: لا نعرض الطائرة في مكان خاطئ */
@supports not (offset-path: path("M0 0")) {
  .preloader__plane { display: none; }
}

@keyframes preloader-draw { to { stroke-dashoffset: 0; } }
@keyframes preloader-fly { to { offset-distance: 100%; } }
@keyframes preloader-coin { to { transform: scale(1); } }
@keyframes preloader-cloud {
  from { transform: translateX(26px); opacity: 0; }
  20%, 80% { opacity: 1; }
  to { transform: translateX(-26px); opacity: 0; }
}

.topbar { background: var(--navy-3); color: #d9dbf8; font-size: 0.875rem; }

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  min-height: 42px;
}

/* wa + instagram مجمّعين جنب بعض */
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.topbar__link { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.topbar__link:hover { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.site-header__brand img { width: auto; height: 54px; }

.site-nav { display: flex; align-items: center; gap: 0.5rem; }
.site-nav__list { display: flex; align-items: center; gap: 0.25rem; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  color: #555a88;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav__link:hover, .site-nav__link[aria-current="page"] { background: var(--soft); color: var(--navy); }
.site-nav__cta { min-height: 44px; margin-inline-start: 0.5rem; padding-block: 0.4rem; }

.nav-toggle { display: none; width: 48px; height: 48px; place-items: center; border-radius: var(--radius-sm); color: var(--navy); font-size: 1.6rem; }
.nav-toggle:hover { background: var(--soft); }

.hero {
  padding: 72px 0 84px;
  background: linear-gradient(135deg, #0e1363 0%, #171d7a 55%, #222a8e 100%);
  color: #fff;
}

.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(1.9rem, 3.8vw, 2.75rem); line-height: 1.6; text-wrap: balance; }
.hero__title em { color: var(--gold); font-style: normal; }
.hero__lead { max-width: 34em; margin: 1rem 0 1.5rem; color: #c8cbee; font-size: 1.05rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-bottom: 1.75rem; color: #dfe1f8; font-size: 0.95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__facts .icon { color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.calc {
  padding: 1.75rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 30, 0.5);
  color: var(--ink);
}

.calc__title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; font-size: 1.2rem; }

.calc__result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--soft);
}

.calc__result strong { color: var(--navy); font-size: 2rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.calc__hint { margin-bottom: 0.9rem; color: var(--muted); font-size: 0.85rem; }

.track-band { border-bottom: 1px solid var(--line); background: #fff; }
.track-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-block: 1.1rem; }
.track-band__text { display: flex; align-items: center; gap: 0.9rem; }
.track-band__text .icon-tile { width: 46px; height: 46px; font-size: 1.35rem; }
.track-band__title { color: var(--navy); font-size: 1.1rem; }
.track-band__text p { color: var(--muted); font-size: 0.95rem; }
.track-band__form { display: flex; gap: 0.6rem; }
.track-band__form .input { width: 220px; min-height: 48px; }

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: #454a7c;
  font-size: 0.9rem;
  font-weight: 500;
  direction: ltr;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
  will-change: transform;
}

.marquee__group { display: flex; flex: none; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 2rem;
  white-space: nowrap;
  direction: rtl;
}

.marquee__item .icon { color: #a98604; }

@keyframes marquee {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.section { padding: 80px 0; }
.section--white { background: #fff; }
.section--flush { padding-top: 0; padding-bottom: 0; }
.section__head { max-width: 640px; margin-bottom: 2.4rem; }
.section__head h2 { color: var(--navy); font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.section__head p { margin-top: 0.5rem; color: var(--muted); }

.services { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.1rem; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover { border-color: #cdd1e8; box-shadow: 0 6px 18px -10px rgba(15, 21, 102, 0.22); }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.service-card--wide { grid-column: span 2; }

.service-card--main {
  grid-row: span 2;
  gap: 0.8rem;
  padding: 2rem;
  border: 0;
  background: linear-gradient(150deg, #121870, #0b1050);
  color: #fff;
}

.service-card--main:hover { box-shadow: none; }
.service-card--main h3 { font-size: 1.75rem; }
.service-card--main p { color: #cbcdf6; }
.service-card__list { margin: 0.25rem 0 auto; }
.service-card__list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.service-card__list .icon { color: var(--gold); }
.service-card--main .btn { align-self: flex-start; margin-top: 0.75rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.steps__item { position: relative; padding-inline: 0.9rem; text-align: center; }

.steps__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.8rem;
  transition: background-color 0.2s, color 0.2s;
}

.steps__item:hover .steps__icon { background: var(--navy); color: var(--gold); }

.steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 34px;
  inset-inline-end: calc(-50% + 42px);
  width: calc(100% - 84px);
  border-top: 3px dashed #c9cde8;
}

.steps__item h3 { font-size: 1.05rem; }
.steps__item p { color: var(--muted); font-size: 0.9rem; }

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.reason {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.reason h3 { margin-bottom: 0.3rem; color: var(--navy); font-size: 1.2rem; }
.reason p { color: #3f436f; line-height: 1.8; }

.support {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3.5rem);
  border-radius: 28px;
  background: linear-gradient(150deg, #121870, #0b1050);
  color: #fff;
  box-shadow: 0 18px 52px rgba(8, 12, 62, 0.16);
}

.support::before { content: ""; position: absolute; inset-inline-end: -110px; top: -180px; width: 360px; aspect-ratio: 1; border: 1px solid rgba(242, 201, 46, 0.14); border-radius: 50%; box-shadow: 0 0 0 28px rgba(242, 201, 46, 0.035), 0 0 0 58px rgba(242, 201, 46, 0.025); pointer-events: none; }
.support > * { position: relative; z-index: 1; }
.support__eyebrow { display: inline-block; margin-bottom: 0.45rem; color: var(--gold); font-size: 0.9rem; font-weight: 700; }
.support h2 { max-width: 18ch; margin-bottom: 0.7rem; font-size: clamp(1.8rem, 3.3vw, 2.65rem); line-height: 1.45; }
.support p { max-width: 54ch; color: #cbcdf6; font-size: 1.05rem; line-height: 1.9; }
.support__book { margin-top: 1rem; gap: 0.6rem; }
.support__book .icon { width: 1.1rem; height: 1.1rem; }
.support__links { display: grid; gap: 0.75rem; }

.support__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: box-shadow 0.2s;
}

.support__link:hover { box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.5); }
.support__link > div { min-width: 0; }
.support__link small { display: block; color: var(--muted); line-height: 1.5; }
.support__link strong { display: block; font-size: 1.25rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.support__arrow { margin-inline-start: auto; color: var(--gold); font-size: 1.35rem; flex: none; }

.site-footer { margin-top: 80px; padding: 3rem 0 1.5rem; background: var(--navy-3); color: #c9cbf5; }
body.home .site-footer, body.front-page .site-footer { margin-top: 0; }
#contact .container { max-width: 1440px; }
#contact { padding: 56px 0 64px; }
#contact .support { margin: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer__about img { width: auto; height: 58px; margin-bottom: 0.75rem; }
.site-footer__title { margin-bottom: 0.5rem; color: var(--gold); font-size: 1rem; font-weight: 600; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.15rem 0; transition: color 0.2s; }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; text-align: center; }

.wa-float {
  position: fixed;
  z-index: 70;
  inset-inline-start: 18px;
  inset-block-end: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: 99px;
  background: var(--wa);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.9rem;
  transition: background-color 0.2s;
}

.wa-float:hover { background: var(--wa-hover); }
.wa-float .icon { margin-inline: 13px; }
.wa-float__label { max-width: 0; overflow: hidden; font-size: 0.95rem; font-weight: 600; white-space: nowrap; transition: max-width 0.35s, padding 0.35s; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 140px; padding-inline-end: 1rem; }

.toast {
  position: fixed;
  z-index: 130;
  inset-inline: 0;
  inset-block-end: calc(24px + env(safe-area-inset-bottom, 0px));
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin-inline: auto;
  padding: 0.8rem 1.5rem;
  border-inline-start: 6px solid var(--gold);
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.is-visible { opacity: 1; transform: none; }

.preview-ribbon {
  position: fixed;
  z-index: 140;
  inset-block-start: 0;
  inset-inline: 0;
  padding: 0.3rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.page { padding: 0; }
body.page .site-footer, body.error404 .site-footer { margin-top: 0; }
.page__container--narrow { max-width: 760px; }
.page__head { margin-bottom: 1.5rem; }
.page__title { display: flex; align-items: center; gap: 0.75rem; color: var(--navy); font-size: 2rem; }
.page__lead { margin-top: 0.4rem; color: var(--muted); }
.prose > * + * { margin-top: 1rem; }
.notfound { display: grid; justify-items: center; gap: 0.9rem; min-height: min(52vh, 460px); align-content: center; text-align: center; }
.notfound__code { color: var(--gold-2); font-size: clamp(4rem, 14vw, 7rem); font-weight: 700; line-height: 1; }

.stepper { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }

.stepper__item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.stepper__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.stepper__item.is-current { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 600; }
.stepper__item.is-current .stepper__num { background: var(--gold); color: var(--navy); }
.stepper__item.is-done { border-color: #c9cde8; background: #f6f7fc; color: var(--navy); }
.stepper__item.is-done .stepper__num { background: var(--navy); color: var(--gold); }

.booking__layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel__title { margin-bottom: 1rem; color: var(--navy); font-size: 1.35rem; }
.panel__title:focus { outline: none; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 0; overflow: hidden; }
.summary__title { padding: 1rem 1.5rem; background: var(--navy); color: #fff; font-size: 1.05rem; }
.summary__list { padding: 0.5rem 1.5rem 0; }
.summary__list--order { padding-top: 0; border-top: 1px dashed var(--line); }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.summary__row:last-child { border-bottom: 0; }
.summary__row dt { color: var(--muted); }
.summary__row dd { font-weight: 600; text-align: end; word-break: break-word; }
.summary__row--total {
  align-items: center;
  margin: 0.4rem -1.5rem 0;
  padding: 0.9rem 1.5rem;
  border-bottom: 0;
  background: var(--navy);
  color: #fff;
}

.summary__row--total dt { color: #fff; font-weight: 600; }
.summary__row--total dd { color: var(--gold); font-size: 1.35rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.summary__ok { color: var(--ok); }
.summary__assure { display: flex; align-items: center; gap: 0.6rem; margin: 0 1.5rem; padding-block: 0.3rem; color: var(--ok); font-size: 0.85rem; }
.summary__assure:last-child { margin-bottom: 1.2rem; }

.pay { display: grid; gap: 1.5rem; }
.pay .panel__title { margin-bottom: 0; }
.pay__review { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.pay__review .pay__subtitle { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.1rem; }
.pay__review .summary__list--order { padding: 0; border: 0; }
.pay__review .summary__row { gap: 0.6rem; font-size: 0.92rem; }

.pay-amount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #121870, #0b1050);
  color: #fff;
}

.pay-amount__label { display: block; color: #c8cbee; font-size: 0.85rem; line-height: 1.5; }

.pay-amount__value {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.pay-amount__value small { margin-inline-start: 0.5rem; color: #fff; font-size: 1rem; font-weight: 500; }

.pay-amount__ref {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.25rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pay-amount__ref .pay-amount__label { grid-column: 1 / -1; }
.pay-amount__code { color: #fff; font-size: 1.5rem; line-height: 1.4; letter-spacing: 0.04em; text-align: end; justify-self: start; }

.pay__block { display: grid; gap: 0.6rem; }
.pay__subtitle { color: var(--navy); font-size: 1.1rem; }
.pay__note { margin-top: -0.3rem; color: var(--muted); font-size: 0.9rem; }

.accounts { display: grid; gap: 0.75rem; margin-top: 0.4rem; }
.account { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.account__head { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.1rem; }
.account__head .icon-tile { width: 44px; height: 44px; font-size: 1.3rem; }
.account__name { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.4; }
.account__type { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.account__icon--bank { background: var(--navy); color: var(--gold); }
.account__icon--wallet { background: var(--gold); color: var(--navy); }
.account__icon--logo { border: 1px solid var(--line); background: #fff; }
.account__icon--logo img { width: 30px; height: 30px; }

.account__fields { border-top: 1px solid var(--line); background: var(--soft); }
.account__field { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1.1rem; }
.account__field + .account__field { border-top: 1px solid var(--line); }

.account__label { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.account__value { display: block; color: var(--navy); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.copy-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.copy-btn:hover { background: #1b2380; }
.copy-btn--light { background: rgba(255, 255, 255, 0.12); }
.copy-btn--light:hover { background: rgba(255, 255, 255, 0.2); }
.copy-btn.is-copied { background: var(--ok); color: #fff; }

.pay-steps { counter-reset: pay; display: grid; gap: 0.5rem; }

.pay-steps li {
  counter-increment: pay;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.pay-steps li::before {
  content: counter(pay);
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid #ecdc95;
  border-radius: var(--radius);
  background: var(--warn-bg);
}

.notice > .icon { margin-top: 0.2rem; color: var(--navy); font-size: 1.5rem; }
.notice__title { display: block; margin-bottom: 0.2rem; color: var(--navy); font-size: 1.05rem; }
.notice p { color: var(--ink); font-size: 0.95rem; line-height: 1.8; }

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  border: 2px dashed #b9bde3;
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background-color 0.2s;
}

.dropzone:hover, .dropzone.is-over { border-color: var(--navy); background: #fff; }
.dropzone:focus-within { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px var(--gold); }
.dropzone__hint { color: var(--muted); font-size: 0.85rem; }
.uploader.has-error .dropzone { border-color: var(--bad); background: #fffafa; }
.uploader.is-busy .dropzone { opacity: 0.7; pointer-events: none; }
.uploader .filecard { margin-top: 0.6rem; }
.uploader .field__hint { margin-top: 0.5rem; }

@media (hover: none) {
  .dropzone__drag { display: none; }
}

.filecard { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.filecard__image { width: 72px; height: 72px; flex: none; border-radius: 10px; background: var(--soft); object-fit: cover; }
.filecard__file { display: grid; flex: none; place-items: center; width: 72px; height: 72px; border-radius: 10px; background: var(--soft); color: var(--navy); font-size: 1.8rem; }
.filecard__name { min-width: 0; flex: 1; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: end; }
.filecard__remove { min-height: 44px; padding-inline: 1rem; }

.modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 62, 0.62); opacity: 0; transition: opacity 0.25s; }

.modal__box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow-y: auto;
  padding: 2rem 1.5rem 1.4rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 30, 0.6);
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.25s, transform 0.25s;
  overscroll-behavior: contain;
}

.modal__box:focus { outline: none; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__box .icon-tile { width: 64px; height: 64px; font-size: 2rem; border-radius: 50%; }
.modal__title { color: var(--navy); font-size: 1.35rem; line-height: 1.5; }
.modal__text { color: var(--muted); font-size: 0.98rem; }
.modal__steps { display: grid; gap: 0.5rem; width: 100%; margin: 0.2rem 0; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--soft); text-align: start; counter-reset: wa; }
.modal__steps li { counter-increment: wa; display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; }

.modal__steps li::before {
  content: counter(wa);
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.modal__actions { display: grid; gap: 0.6rem; width: 100%; }
.modal__later { min-height: 44px; color: var(--muted); font-weight: 600; }
.modal__later:hover { color: var(--navy); }
.modal__x { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); font-size: 1.3rem; }
.modal__x:hover { background: var(--soft); color: var(--navy); }

.done { display: grid; justify-items: center; gap: 0.9rem; text-align: center; }
.done .panel__title { margin-bottom: 0; }

.done__check {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 2.4rem;
}

.done__ref { padding: 0.2rem 1.5rem; border-radius: var(--radius-sm); background: var(--navy); color: var(--gold); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.04em; }
.done .callout { max-width: 520px; margin-top: 0; text-align: start; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }

.result { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.result__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.result__ref { display: block; color: var(--navy); font-size: 1.25rem; }
.result__meta { color: var(--muted); font-size: 0.9rem; }

.badge { display: inline-block; padding: 0.1rem 0.9rem; border-radius: 99px; font-size: 0.85rem; font-weight: 600; }
.badge--waiting { background: var(--soft); color: var(--navy); }
.badge--review { background: var(--gold-soft); color: #6b5400; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--no { background: var(--bad-bg); color: var(--bad); }
.badge--more { background: #ffedd5; color: var(--warn); }

.timeline { margin-top: 1.25rem; }
.timeline li { position: relative; padding: 0 2.4rem 1.4rem 0; color: var(--muted); }

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0;
  width: 20px;
  height: 20px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.timeline li::after { content: ""; position: absolute; top: 1.8rem; bottom: 0; right: 9px; border-inline-end: 3px solid var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { border-color: var(--navy); background: var(--navy); }
.timeline li.is-done::after { border-color: var(--navy); }
.timeline li.is-current { color: var(--navy); font-weight: 600; }
.timeline li.is-current::before { border-color: var(--gold); background: var(--gold); }
.timeline li.is-failed { color: var(--bad); font-weight: 600; }
.timeline li.is-failed::before { border-color: var(--bad); background: var(--bad); }

@media (max-width: 960px) {
  .hero__grid, .support, .site-footer__grid, .booking__layout { grid-template-columns: minmax(0, 1fr); }
  .hero__grid > *, .support > * { min-width: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .service-card--main { grid-column: 1 / -1; grid-row: auto; }
  .reasons { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 1.75rem; }
  .steps__item::before { display: none; }
  .summary { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 24px -16px rgba(0, 0, 40, 0.3);
  }

  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__link { padding: 0.7rem 1rem; }
  .site-nav__cta { margin-inline-start: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .site-header__brand img { height: 42px; }
  .topbar { font-size: 0.8rem; }
  .hero { padding: 36px 0 44px; }
  .hero__grid { gap: 1.75rem; }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .calc { padding: 1.4rem; }
  .track-band__text, .track-band__form { width: 100%; }
  .track-band__form .input { flex: 1; width: auto; min-width: 0; }
  .section { padding: 52px 0; }
  .section--flush { padding-top: 0; padding-bottom: 0; }
  .section__head { margin-bottom: 1.75rem; }
  .services { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: auto; }
  .service-card--main { padding: 1.5rem; }
  .service-card--main h3 { font-size: 1.5rem; }
  .steps { grid-template-columns: 1fr; row-gap: 1.1rem; }

  .steps__item {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1rem;
    align-items: center;
    padding: 0;
    text-align: start;
  }

  .steps__icon { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 1.5rem; }
  .reason { padding: 1.4rem; }
  .support { padding: 1.6rem 1.25rem; border-radius: 20px; }
  #contact { padding: 36px 0 44px; }
  .site-footer { margin-top: 0; padding-top: 2.25rem; }
  .page { padding-top: 1rem; }
  .page__title { font-size: 1.5rem; }
  .card { padding: 1.25rem; }
  .form__grid { grid-template-columns: 1fr; }
  .stepper { gap: 0.4rem; }
  .stepper__item { padding: 0.55rem 0.25rem; font-size: 0; }
  .stepper__item .stepper__num { font-size: 0.85rem; }
  .stepper__item.is-current { flex: 2.4; font-size: 0.85rem; }
  .pay-amount { grid-template-columns: 1fr; padding: 1.25rem; }
  .pay-amount .copy-btn, .pay-amount__ref .copy-btn { width: 100%; justify-content: center; }
  .pay-amount__ref { grid-template-columns: 1fr; }
  .pay-amount__code { text-align: start; }
  .account__field { flex-wrap: wrap; }
  .account__field > div { flex: 1 1 100%; }
  .account__field .copy-btn { width: 100%; justify-content: center; }
  .account__value { font-size: 1rem; letter-spacing: 0.02em; }
  .filecard { flex-wrap: wrap; }
  .filecard__name { flex: 1 1 100%; order: 3; text-align: start; }
  .filecard__remove { flex: 1 1 100%; justify-content: center; order: 4; }
  .done__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .wa-float { height: 52px; font-size: 1.7rem; inset-inline-start: 14px; inset-block-end: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-float .icon { margin-inline: 11px; }
  .site-footer { padding-bottom: calc(1.5rem + 64px); }
  .topbar__inner { justify-content: center; }
  .topbar__link { min-height: 40px; }
  .site-footer__links a { min-height: 44px; }
  .site-footer__links li { display: block; }
  .stepper__item.is-done .stepper__num { font-size: 0; }
  .stepper__item.is-done .stepper__num::before { content: "✓"; font-size: 0.9rem; }
  .modal__box { padding: 1.75rem 1.25rem 1.1rem; }
  .modal__title { font-size: 1.2rem; }
}

@media (max-width: 360px) {
  .preloader__route { transform: scale(0.82); }
  .support { padding: 1.4rem 1rem; }
  .support__link { gap: 0.6rem; padding: 0.7rem 0.8rem; }
  .support__link strong { font-size: 1.05rem; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 1.7rem; }
  .calc__result strong { font-size: 1.6rem; }
  .btn { padding-inline: 1rem; }
  .dropzone { padding: 1.25rem 0.75rem; }
  .summary__list, .summary__title { padding-inline: 1.1rem; }
  .summary__row--total { margin-inline: -1.1rem; padding-inline: 1.1rem; }
  .summary__assure { margin-inline: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
