/* ============================================================
   NOL Card Recharge — RTA-style official portal redesign
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand / accent — RTA red */
  --brand: #e41a14;
  --brand-dark: #b81410;
  --brand-light: #ff3b34;
  --brand-tint: #fdecec;

  /* Dubai gov accent (deep green) */
  --gov: #1b6e3c;

  /* Neutrals — official portal look */
  --bg: #f4f6f8;
  --bg-2: #ffffff;
  --bg-3: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --border: #d9dee3;
  --border-strong: #b8c0c8;
  --border-soft: #e7ebef;

  --text: #1a2530;
  --text-muted: #54616e;
  --text-dim: #8794a0;

  --ok: #1b6e3c;
  --ok-tint: #e6f4ea;
  --warn: #b8761b;
  --error: #c8102e;
  --error-tint: #fdecef;

  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 8px;
  --container: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Roboto Condensed', 'Inter', sans-serif;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow: 0 2px 8px rgba(16,24,40,.08);
  --shadow-lg: 0 8px 24px rgba(16,24,40,.1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; font-size: 15px; }
ul { list-style: none; }
svg { display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; letter-spacing: 0;
  transition: background .18s var(--ease), box-shadow .18s, transform .08s, color .18s;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 4px 12px rgba(228,26,20,.3); }

/* ---------- Header ---------- */
.header {
  background: #fff;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.header__gov, .header__rta { display: flex; align-items: center; text-decoration: none; }
.header__gov:hover, .header__rta:hover { text-decoration: none; }
.header__gov-logo { height: 57px; width: auto; display: block; object-fit: contain; }
.rta-mark { display: flex; align-items: center; color: #0a2240; }
.rta-logo { color: #0a2240; }
.rta-logo--light { color: #fff; }
.header__actions { display: flex; align-items: center; gap: 10px; }

/* Burger */
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); transition: transform .25s, opacity .15s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sub header nav ---------- */
.mainnav { background: #fff; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border-soft); position: sticky; top: 100px; z-index: 90; }
.mainnav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mainnav__links { display: flex; align-items: center; height: 100%; }
.mainnav__link {
  position: relative; color: var(--text); padding: 0 17px; height: 100%;
  display: flex; align-items: center; font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: color .15s;
}
.mainnav__link::after {
  content: ''; position: absolute; bottom: -1px; left: 17px; right: 17px; height: 3px;
  background: var(--brand); transform: scaleX(0); transition: transform .2s var(--ease);
}
.mainnav__link:hover { color: var(--brand); text-decoration: none; }
.mainnav__link:hover::after, .mainnav__link.active::after { transform: scaleX(1); }
.mainnav__link.active { color: var(--brand); }
.mainnav__tools { display: flex; align-items: center; gap: 8px; height: 100%; }
.mainnav__tool, .mainnav__login { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; padding: 0 10px; height: 100%; }
.mainnav__tool:hover, .mainnav__login:hover { color: var(--brand); text-decoration: none; }
.mainnav__cta-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 36px 0 60px; position: relative; border-bottom: 1px solid var(--border); }
.hero__pattern {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs__current { color: var(--text); font-weight: 500; }
.service-tag {
  display: inline-block; padding: 4px 12px; background: var(--brand-tint);
  color: var(--brand); border: 1px solid var(--brand-light); border-radius: 100px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px;
}
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: -.01em; }
.hero__lead { font-size: 1.05rem; color: var(--text-muted); max-width: 580px; margin-bottom: 28px; }
.hero__facts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; max-width: 560px; }
.fact { display: flex; align-items: flex-start; gap: 12px; }
.fact__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--ok-tint); color: var(--ok);
  display: grid; place-items: center;
}
.fact strong { display: block; font-size: .95rem; color: var(--text); }
.fact small { color: var(--text-muted); font-size: .85rem; }
.hero__cta svg { transition: transform .2s; }
.hero__cta:hover svg { transform: translateX(3px); }

/* Info card (right side) */
.hero__aside { position: sticky; top: 132px; }
.infocard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.infocard__title { background: var(--bg-3); padding: 14px 20px; font-size: .95rem; border-bottom: 1px solid var(--border); color: var(--text); }
.infocard__list { padding: 8px 0; }
.infocard__list > div { display: flex; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid var(--border-soft); font-size: .9rem; }
.infocard__list > div:last-of-type { border-bottom: none; }
.infocard__list dt { color: var(--text-muted); }
.infocard__list dd { font-weight: 600; color: var(--text); text-align: right; }
.infocard__balance { background: var(--brand); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.infocard__balance span { font-size: .85rem; opacity: .9; }
.infocard__balance strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

/* ---------- Section heads ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Recharge widget ---------- */
.service { padding: 64px 0; background: var(--bg); }
.widget {
  max-width: 880px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.step { padding: 24px 28px; border-bottom: 1px solid var(--border-soft); }
.step:last-of-type { border-bottom: 1px solid var(--border); }
.step__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step__num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem;
  display: grid; place-items: center;
}
.step__head h3 { font-size: 1.1rem; }
.step__head small { display: block; color: var(--text-muted); font-size: .85rem; font-weight: 400; margin-top: 2px; }

.form-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field__input {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field__input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,.12); background: #fff; }
.field__icon { position: absolute; left: 12px; color: var(--text-dim); pointer-events: none; }
.field__input input {
  width: 100%; padding: 12px 14px 12px 42px; background: transparent; border: none; outline: none;
  color: var(--text); font-weight: 500;
}
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; padding: 12px 38px 12px 14px; background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  color: var(--text); outline: none; cursor: pointer; appearance: none; font-weight: 500;
  transition: border-color .15s;
}
.select-wrap select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }

/* Amounts — ЯВНАЯ подсветка активного состояния */
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.amount {
  position: relative; padding: 13px 22px; min-width: 100px;
  background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--radius);
  font-weight: 700; font-size: .98rem; color: var(--text);
  transition: all .15s var(--ease);
}
.amount:hover { border-color: var(--brand); background: var(--brand-tint); }
.amount.active {
  border-color: var(--brand); background: var(--brand); color: #fff;
  box-shadow: 0 2px 8px rgba(200,16,46,.3);
}
.amount.active::after {
  content: '✓'; position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px; background: var(--ok); color: #fff;
  border-radius: 50%; font-size: .7rem; display: grid; place-items: center;
  border: 2px solid #fff;
}
.amount--custom { display: flex; align-items: center; gap: 4px; padding: 0 14px 0 0; border-style: dashed; }
.amount--custom input { width: 84px; padding: 12px 0 12px 14px; background: transparent; border: none; outline: none; color: var(--text); font-weight: 700; }
.amount--custom input::placeholder { color: var(--text-dim); font-weight: 500; }
.amount--custom span { color: var(--text-muted); font-size: .82rem; }

/* Slider */
.slider-wrap { margin-top: 4px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--border); border-radius: 3px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); cursor: pointer; border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(200,16,46,.5);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); cursor: pointer; border: 3px solid #fff; }
.slider-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: .78rem; color: var(--text-dim); }

/* Card form */
.card-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field__msg { display: block; font-size: .8rem; color: var(--error); min-height: 16px; margin-top: 4px; }
.field__input.invalid { border-color: var(--error); background: var(--error-tint); }
.field__input.valid { border-color: var(--ok); }

/* Brand badge */
.brand-badge {
  margin-left: auto; padding: 5px 14px; border-radius: var(--radius);
  font-weight: 800; font-size: .78rem; letter-spacing: .03em;
  background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--border);
  transition: all .2s var(--ease); opacity: 0; min-width: 72px; text-align: center; align-self: center;
}
.brand-badge.show { opacity: 1; }
.brand-badge.visa { background: #1a1f71; color: #fff; border-color: transparent; }
.brand-badge.mastercard { background: #eb001b; color: #fff; border-color: transparent; }
.brand-badge.amex { background: #1f72cd; color: #fff; border-color: transparent; }
.brand-badge.unionpay { background: #d10b3c; color: #fff; border-color: transparent; }
.brand-badge.discover { background: #ff6000; color: #fff; border-color: transparent; }
.brand-badge.jcb { background: #0e4c96; color: #fff; border-color: transparent; }

/* Demo hint */
.demo-hint {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 11px 14px; border-radius: var(--radius);
  background: #fff8e6; border: 1px solid #f0d488; color: #6b4f0c; font-size: .85rem;
}
.demo-hint__chip { padding: 2px 8px; border-radius: 3px; font-weight: 800; font-size: .68rem; letter-spacing: .08em; background: var(--warn); color: #fff; }
.demo-fill { font-weight: 700; color: var(--brand); border: none; padding: 2px 4px; border-bottom: 1px dashed var(--brand); }
.demo-fill:hover { opacity: .7; }

/* Summary */
.summary { background: var(--surface-2); padding: 22px 28px; border-top: 2px solid var(--brand); }
.summary__rows { margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: .95rem; }
.summary__row span { color: var(--text-muted); }
.summary__row strong { font-weight: 700; }
.summary__row--muted span:last-child { color: var(--ok); font-weight: 700; }
.summary__row--total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
.summary__row--total strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--brand); }
.summary__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: .78rem; color: var(--text-dim); }
.summary__secure svg { color: var(--ok); }

/* ---------- How it works ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand); }
.step-card__num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--border-strong);
  line-height: 1;
}
.step-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--brand-tint); color: var(--brand); margin-bottom: 18px;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { background: #0d3b66; color: #fff; padding: 44px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: #fff; }
.stat__label { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: 4px; }

/* ---------- Payment logos ---------- */
.pay-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pay-logo {
  padding: 18px 32px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-weight: 700; font-size: 1rem; color: var(--text-muted);
  transition: all .2s var(--ease); min-width: 130px; text-align: center;
}
.pay-logo:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Benefits ---------- */
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.benefit:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand); }
.benefit__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--brand-tint); color: var(--brand); margin-bottom: 16px;
}
.benefit h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.faq-item[open] { border-color: var(--brand); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item__icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; background: var(--brand); border-radius: 1px; transition: transform .25s, opacity .2s;
}
.faq-item__icon::before { top: 9px; left: 3px; width: 14px; height: 2px; }
.faq-item__icon::after { top: 3px; left: 9px; width: 2px; height: 14px; }
.faq-item[open] .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item__body { padding: 0 22px 20px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { background: #0a2240; color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.footer__top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__rta-logo { display: inline-block; margin-bottom: 8px; }
.footer__brand p { color: rgba(255,255,255,.65); margin-top: 16px; font-size: .9rem; max-width: 340px; }
.footer__apps { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__app-label { color: rgba(255,255,255,.6); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.footer__app {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px; color: #fff; font-size: .85rem; font-weight: 600;
  transition: background .15s; text-decoration: none;
}
.footer__app:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.footer__app svg { color: rgba(255,255,255,.9); }
.footer__col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer__col a { display: block; padding: 5px 0; color: rgba(255,255,255,.7); font-size: .92rem; text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); }
.footer__made { letter-spacing: .03em; }

/* ---------- Sticky footer bar (RTA-style) ---------- */
.stickybar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); box-shadow: rgba(0, 0, 0, .22) 0px -2px 14px 0px; z-index: 95; }
.stickybar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 8px; }
.stickybar__left, .stickybar__right { display: flex; align-items: center; gap: 4px; }
.stickybar__btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  color: var(--brand); font-size: .85rem; font-weight: 600; text-decoration: none;
  border-radius: 4px; transition: background .15s; white-space: nowrap;
}
.stickybar__btn:hover { background: var(--brand-tint); text-decoration: none; }
.stickybar__btn--bordered { border: 1px solid var(--border); }
.stickybar__icon-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  color: var(--brand); font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: background .15s; white-space: nowrap;
}
.stickybar__icon-link:hover { background: var(--brand-tint); text-decoration: none; }
.stickybar__round {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.stickybar__round:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(228,26,20,.4); }
.stickybar__round--chat { background: #0a2240; }
.stickybar__round--chat:hover { box-shadow: 0 4px 12px rgba(10,34,64,.4); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand); z-index: 1000; transition: width .1s linear; }

/* ---------- Toast + Spinner ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 30px);
  padding: 14px 24px; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  background: var(--text); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 2000; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast--success { background: var(--ok); color: #fff; }
.toast--error { background: var(--error); color: #fff; }
.toast--info { background: #0d3b66; color: #fff; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
body { padding-bottom: 60px; } /* место под stickybar */

@media (max-width: 1100px) {
  .mainnav__tools { display: none; }
  .mainnav__link { padding: 0 13px; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__aside { position: static; max-width: 480px; }
  .benefits__grid, .steps3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .stickybar__btn span, .stickybar__icon-link span { display: none; }
  .stickybar__btn, .stickybar__icon-link { padding: 8px; }
}

@media (max-width: 760px) {
  .header__inner { height: 82px; }
  .header__gov-logo { height: 46px; }
  .header__rta svg { width: 120px; height: 34px; }
  .burger { display: flex; }
  .mainnav { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(82vw, 340px);
    background: #fff; padding: 30px 24px; z-index: 200; box-shadow: -10px 0 40px rgba(0,0,0,.2);
    transform: translateX(100%); transition: transform .3s var(--ease); border: none; }
  .mainnav.open { transform: translateX(0); }
  .mainnav__inner { flex-direction: column; align-items: stretch; height: auto; gap: 4px; }
  .mainnav__links { flex-direction: column; align-items: stretch; height: auto; }
  .mainnav__link { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); }
  .mainnav__link::after { display: none; }
  .mainnav__tools { display: flex; flex-direction: column; align-items: stretch; height: auto; margin-top: 12px; }
  .mainnav__tool, .mainnav__login { height: auto; padding: 12px 18px; }
  .mainnav__cta-mobile { display: block; margin-top: 18px; }
  .widget { margin: 0 -4px; }
  .step { padding: 20px 18px; }
  .summary { padding: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .benefits__grid, .steps3 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 24px 0 40px; }
  .section { padding: 48px 0; }
  .stickybar__btn--bordered:nth-of-type(2) { display: none; }
  .stickybar__icon-link { display: none; }
  .stickybar__left > :first-child { display: inline-flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .amount { padding: 11px 16px; min-width: 0; flex: 1 1 calc(33% - 10px); font-size: .9rem; }
  .step-card, .benefit { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
