/* =========================================================
   EUROUVOZ — Design System
   Uvoz automobila iz EU u Bosnu i Hercegovinu
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- 2. Tokens ---------- */
:root {
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Brand — deep navy + signal blue + amber */
  --brand-900: #071023;
  --brand-800: #0B1A33;
  --brand-700: #102547;
  --brand-600: #14356b;
  --brand-500: #1D4ED8;
  --brand-400: #3B75F5;
  --brand-300: #7BA3FB;
  --brand-100: #E4EDFF;
  --brand-50:  #F2F6FF;

  --gold-600: #C98A05;
  --gold-500: #F0A500;
  --gold-400: #FFBE33;
  --gold-100: #FFF3D6;

  --green-600: #067A5C;
  --green-500: #0EA97D;
  --green-100: #DFF7EE;

  --red-600: #B3261E;
  --red-100: #FDE6E4;

  --ink-900: #08101F;
  --ink-800: #16233A;
  --ink-700: #3B4A63;
  --ink-500: #67758F;
  --ink-400: #93A0B5;
  --ink-200: #D9DFE9;
  --ink-100: #EDF1F7;

  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --bg-dark: #071023;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(8,16,31,.06);
  --shadow-sm: 0 2px 8px rgba(8,16,31,.06), 0 1px 2px rgba(8,16,31,.04);
  --shadow: 0 10px 30px -12px rgba(8,16,31,.18), 0 2px 8px rgba(8,16,31,.05);
  --shadow-lg: 0 30px 60px -25px rgba(8,16,31,.32), 0 8px 20px -12px rgba(8,16,31,.14);
  --shadow-glow: 0 20px 50px -20px rgba(29,78,216,.55);

  --container: 1180px;
  --gutter: 22px;
  --nav-h: 74px;

  --ease: cubic-bezier(.22,.71,.32,1);
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  color: var(--ink-900);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
h4 { font-size: 1.075rem; letter-spacing: -.01em; }
p  { text-wrap: pretty; }
strong { color: var(--ink-900); font-weight: 700; }

.lead { font-size: clamp(1.03rem, .97rem + .35vw, 1.22rem); color: var(--ink-500); line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .765rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; opacity: .6; }
.text-grad {
  background: linear-gradient(100deg, var(--brand-400) 0%, #6E9BFF 45%, var(--gold-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: clamp(56px, 7vw, 108px) 0; }
.section-sm { padding: clamp(40px, 5vw, 68px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 16px; }

.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--bg-dark); color: #B9C6DC; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark strong { color: #fff; }
.bg-dark .lead { color: #9FB0CA; }
.bg-dark .eyebrow { color: var(--gold-400); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  font-size: .945rem; font-weight: 700; letter-spacing: -.01em;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap; cursor: pointer; border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand-500); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--brand-400); box-shadow: 0 26px 55px -20px rgba(29,78,216,.7); }

.btn-gold { background: var(--gold-500); color: #2A1D00; box-shadow: 0 20px 45px -20px rgba(240,165,0,.75); }
.btn-gold:hover { background: var(--gold-400); }

.btn-ghost { background: #fff; color: var(--ink-900); border-color: var(--ink-200); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-500); }

.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.26); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

.btn-lg { padding: 17px 34px; font-size: 1.01rem; }
.btn-sm { padding: 10px 19px; font-size: .87rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--brand-500); font-size: .93rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header--solid {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--ink-100);
  box-shadow: 0 6px 24px -18px rgba(8,16,31,.4);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; font-size: 1.16rem; color: var(--ink-900); }
.logo__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700) 60%, var(--brand-900));
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(29,78,216,.65);
}
.logo__mark svg { width: 21px; height: 21px; color: #fff; }
.logo small { display: block; font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 9px;
  font-size: .905rem; font-weight: 600; color: var(--ink-700);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--brand-500); background: var(--brand-50); }
.nav a.active { color: var(--brand-600); background: var(--brand-50); }

.header__cta { display: flex; align-items: center; gap: 10px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink-900); padding: 9px 12px; border-radius: 9px; }
.header__phone svg { width: 17px; height: 17px; color: var(--brand-500); }
.header__phone:hover { background: var(--brand-50); }

.burger { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1.5px solid var(--ink-200); background: #fff; }
.burger span { display: block; width: 19px; height: 2px; background: var(--ink-900); border-radius: 2px; margin: 4px auto; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: #fff; padding: 26px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; font-size: 1.06rem; font-weight: 700; color: var(--ink-900);
  border-bottom: 1px solid var(--ink-100);
}
.mobile-nav a span { color: var(--ink-400); font-size: .8rem; font-weight: 600; }
.mobile-nav .btn { margin-top: 24px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 92px)) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(29,78,216,.42), transparent 62%),
    radial-gradient(760px 520px at 8% 108%, rgba(240,165,0,.16), transparent 60%),
    linear-gradient(168deg, #071023 0%, #0B1A33 52%, #102547 100%);
  color: #B9C6DC; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(80% 62% at 50% 22%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 62% at 50% 22%, #000 12%, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: #A9BAD4; max-width: 560px; margin-top: 20px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 64px); align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: .8rem; font-weight: 600; color: #D7E2F5; backdrop-filter: blur(8px);
}
.pill b { background: var(--gold-500); color: #2A1D00; padding: 3px 10px; border-radius: 999px; font-size: .715rem; font-weight: 800; letter-spacing: .04em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__meta div strong { display: block; font-size: 1.65rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.hero__meta div span { font-size: .82rem; color: #8FA3C2; }

/* hero card */
.hero__card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl);
  padding: 26px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.85);
}
.hero__card h3 { font-size: 1.02rem; color: #fff; display: flex; align-items: center; gap: 9px; }
.hero__card h3 svg { width: 19px; height: 19px; color: var(--gold-400); }
.route { margin-top: 22px; display: grid; gap: 2px; }
.route__step { display: flex; gap: 15px; align-items: flex-start; padding: 11px 0; }
.route__dot {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: rgba(59,117,245,.2); border: 1.5px solid rgba(123,163,251,.5);
  display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #BBD0FF;
  position: relative;
}
.route__step:not(:last-child) .route__dot::after {
  content: ""; position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
  width: 1.5px; height: 24px; background: linear-gradient(rgba(123,163,251,.5), rgba(123,163,251,.06));
}
.route__step.is-done .route__dot { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.route__txt strong { display: block; color: #fff; font-size: .93rem; font-weight: 700; }
.route__txt span { font-size: .82rem; color: #92A6C4; }

/* ---------- 8. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .945rem; color: var(--ink-500); }
.card__icon {
  width: 50px; height: 50px; border-radius: 15px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-50), var(--brand-100));
  color: var(--brand-500); border: 1px solid #D7E4FF;
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon.gold { background: linear-gradient(140deg, #FFF9EB, var(--gold-100)); color: var(--gold-600); border-color: #FFE7AE; }
.card__icon.green { background: linear-gradient(140deg, #EEFBF6, var(--green-100)); color: var(--green-600); border-color: #BFEEDF; }

.card--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.card--dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.card--dark p { color: #97A9C6; }

.card--feature { display: flex; flex-direction: column; }
.card--feature ul { margin-top: 18px; display: grid; gap: 9px; }
.card--feature .btn, .card--feature .link-arrow { margin-top: auto; padding-top: 20px; }

/* check list */
.checks { display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; color: var(--ink-700); }
.checks li::before {
  content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067A5C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks--x li::before {
  background: var(--red-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='3.2' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/11px no-repeat;
}
.bg-dark .checks li { color: #A9BAD4; }

/* ---------- 9. Trust bar ---------- */
.trust { border-block: 1px solid var(--ink-100); background: #fff; padding: 22px 0; }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.trust__item { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--ink-500); }
.trust__item svg { width: 19px; height: 19px; color: var(--green-500); flex: none; }

/* ---------- 10. Steps / Timeline ---------- */
.steps { counter-reset: s; display: grid; gap: 20px; }
.step {
  position: relative; padding: 26px 26px 26px 78px;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 24px; top: 24px;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff; font-size: .86rem; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -8px rgba(29,78,216,.7);
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--ink-500); }
.step__time {
  display: inline-block; margin-top: 12px; padding: 4px 11px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-600); font-size: .765rem; font-weight: 700;
}

/* ---------- 11. Accordion ---------- */
.acc { display: grid; gap: 12px; }
.acc__item { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .25s; }
.acc__item[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.acc__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 22px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1rem; color: var(--ink-900);
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q::after {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--brand-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
  transition: transform .25s var(--ease);
}
.acc__item[open] .acc__q::after { transform: rotate(135deg); }
.acc__a { padding: 0 22px 21px; font-size: .945rem; color: var(--ink-500); }
.acc__a p + p, .acc__a ul { margin-top: 11px; }
.acc__a ul { display: grid; gap: 7px; padding-left: 3px; }
.acc__a li { padding-left: 17px; position: relative; }
.acc__a li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-300); }

/* ---------- 12. Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 620px; }
th, td { padding: 15px 20px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--ink-100); }
thead th { background: var(--bg-soft); font-size: .755rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-500); font-weight: 800; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--brand-50); }
td strong { color: var(--ink-900); }
.td-num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .765rem; font-weight: 800; letter-spacing: .01em; }
.tag--green { background: var(--green-100); color: var(--green-600); }
.tag--red { background: var(--red-100); color: var(--red-600); }
.tag--gold { background: var(--gold-100); color: var(--gold-600); }
.tag--blue { background: var(--brand-100); color: var(--brand-600); }

/* ---------- 13. Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
.calc__panel { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.calc__out {
  position: sticky; top: calc(var(--nav-h) + 18px);
  border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(165deg, #0B1A33, #071023 70%);
  color: #A9BAD4; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1);
}

.field { margin-bottom: 20px; }
.field > label, .field__label { display: block; font-size: .845rem; font-weight: 700; color: var(--ink-800); margin-bottom: 8px; }
.field__hint { font-size: .78rem; color: var(--ink-400); margin-top: 6px; line-height: 1.5; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap__unit { position: absolute; right: 15px; font-size: .845rem; font-weight: 700; color: var(--ink-400); pointer-events: none; }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 13px 16px;
  background: var(--bg-soft); border: 1.5px solid var(--ink-200); border-radius: var(--radius-sm);
  font-size: .96rem; font-weight: 600; color: var(--ink-900);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
input[type="number"] { -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(59,117,245,.14); }
input::placeholder, textarea::placeholder { color: var(--ink-400); font-weight: 500; }
select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367758F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.seg { display: grid; grid-auto-flow: column; gap: 5px; padding: 5px; background: var(--bg-soft); border: 1.5px solid var(--ink-200); border-radius: 11px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 10px; border-radius: 8px; cursor: pointer;
  font-size: .875rem; font-weight: 700; color: var(--ink-500);
  transition: background .18s, color .18s, box-shadow .18s; text-align: center;
}
.seg label:hover { color: var(--ink-900); }
.seg input:checked + label { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid var(--brand-400); outline-offset: 2px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 17px; border: 1.5px solid var(--ink-200); border-radius: 11px; background: var(--bg-soft);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.switch-row:has(input:checked) { border-color: var(--green-500); background: var(--green-100); }
.switch-row strong { display: block; font-size: .92rem; }
.switch-row span { font-size: .79rem; color: var(--ink-500); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; background: var(--ink-200); border-radius: 999px; transition: background .22s var(--ease); pointer-events: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .22s var(--ease); }
.switch input:checked + .switch__track { background: var(--green-500); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }

.out__total { padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.13); }
.out__total span { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); }
.out__total strong { display: block; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -.035em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.out__total em { display: block; font-style: normal; font-size: .95rem; color: #8FA3C2; margin-top: 4px; font-variant-numeric: tabular-nums; }

.out__lines { display: grid; gap: 1px; margin-top: 20px; }
.out__line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: .91rem; }
.out__line span { color: #93A6C4; }
.out__line b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.out__line--sum { border-top: 1px solid rgba(255,255,255,.13); margin-top: 8px; padding-top: 15px; }
.out__line--sum span { color: #C7D5EC; font-weight: 700; }
.out__line--muted b { color: #A9BAD4; font-weight: 600; }

.out__save {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius);
  background: rgba(14,169,125,.13); border: 1px solid rgba(14,169,125,.35);
  display: flex; gap: 13px; align-items: flex-start;
}
.out__save svg { width: 20px; height: 20px; color: #4FE0B4; flex: none; margin-top: 2px; }
.out__save strong { display: block; color: #6FEFC6; font-size: .95rem; }
.out__save span { font-size: .83rem; color: #8FC9B8; }
.out__save.is-warn { background: rgba(240,165,0,.12); border-color: rgba(240,165,0,.35); }
.out__save.is-warn svg { color: var(--gold-400); }
.out__save.is-warn strong { color: var(--gold-400); }
.out__save.is-warn span { color: #C9B387; }

.note {
  display: flex; gap: 13px; padding: 17px 19px; border-radius: var(--radius);
  background: var(--gold-100); border: 1px solid #FFE0A3; font-size: .885rem; color: #6B5000; line-height: 1.6;
}
.note svg { width: 19px; height: 19px; flex: none; color: var(--gold-600); margin-top: 2px; }
.note strong { color: #4A3700; }
.note--blue { background: var(--brand-50); border-color: #D2E0FF; color: #17356F; }
.note--blue svg { color: var(--brand-500); }
.note--blue strong { color: #102547; }
.note--green { background: var(--green-100); border-color: #B6EBD9; color: #0A4F3C; }
.note--green svg { color: var(--green-600); }
.note--green strong { color: #063D2E; }

/* ---------- 14. Checklist ---------- */
.chk-group { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.chk-group__head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--ink-100); background: var(--bg-soft); }
.chk-group__head h3 { font-size: 1.06rem; }
.chk-group__head p { font-size: .82rem; color: var(--ink-500); margin-top: 2px; }
.chk-group__count { margin-left: auto; font-size: .8rem; font-weight: 800; color: var(--brand-600); background: var(--brand-100); padding: 5px 12px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chk-list { padding: 8px 12px 14px; }
.chk {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 12px; border-radius: 11px; cursor: pointer;
  transition: background .16s;
}
.chk:hover { background: var(--bg-soft); }
.chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.chk__box {
  width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px;
  border: 2px solid var(--ink-200); background: #fff;
  transition: background .18s, border-color .18s, transform .18s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0; background-position: center; background-repeat: no-repeat;
}
.chk input:checked + .chk__box { background-color: var(--green-500); border-color: var(--green-500); background-size: 13px; }
.chk input:focus-visible + .chk__box { outline: 3px solid var(--brand-400); outline-offset: 2px; }
.chk__txt strong { display: block; font-size: .945rem; font-weight: 700; transition: color .18s; }
.chk__txt span { font-size: .845rem; color: var(--ink-500); line-height: 1.55; display: block; margin-top: 2px; }
.chk input:checked ~ .chk__txt strong { color: var(--ink-400); text-decoration: line-through; }
.chk__req { display: inline-block; margin-left: 7px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--red-100); color: var(--red-600); vertical-align: 2px; }
.chk__req.opt { background: var(--ink-100); color: var(--ink-500); }

.progress-bar { height: 9px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-500), var(--green-500)); transition: width .45s var(--ease); }

/* ---------- 15. Country cards ---------- */
.country {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl); padding: 32px;
  background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.country:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.country__flag { width: 54px; height: 38px; border-radius: 7px; box-shadow: var(--shadow-xs); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--ink-100); }
.country h3 { display: flex; align-items: center; gap: 10px; }
.country__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 22px 0; }
.country__stat { background: var(--bg-soft); border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 14px 12px; text-align: center; }
.country__stat strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--brand-600); letter-spacing: -.02em; }
.country__stat span { font-size: .715rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }

/* ---------- 16. Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-xs); height: 100%; display: flex; flex-direction: column; }
.quote__stars { display: flex; gap: 3px; margin-bottom: 15px; color: var(--gold-500); }
.quote__stars svg { width: 17px; height: 17px; }
.quote p { font-size: .96rem; color: var(--ink-700); line-height: 1.7; flex: 1; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ink-100); }
.quote__av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); }
.quote__by strong { display: block; font-size: .92rem; }
.quote__by span { font-size: .8rem; color: var(--ink-400); }

/* ---------- 17. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(700px 400px at 88% 0%, rgba(240,165,0,.24), transparent 60%),
    linear-gradient(150deg, var(--brand-600), #071023 78%);
  color: #B9C6DC;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #A9BAD4; margin-top: 14px; max-width: 560px; }
.cta-band .hero__actions { margin-top: 28px; }

/* ---------- 18. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.contact-item { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--ink-100); }
.contact-item:last-child { border-bottom: none; }
.contact-item__ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); border: 1px solid #D7E4FF; }
.contact-item__ico svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: .95rem; }
.contact-item a, .contact-item p { font-size: .93rem; color: var(--ink-500); }
.contact-item a:hover { color: var(--brand-500); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 16px; padding: 14px 17px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; display: none; }
.form-status.ok { display: block; background: var(--green-100); color: var(--green-600); border: 1px solid #B6EBD9; }
.form-status.err { display: block; background: var(--red-100); color: var(--red-600); border: 1px solid #F7C9C5; }

/* ---------- 19. Footer ---------- */
.footer { background: var(--bg-dark); color: #8FA3C2; padding: clamp(48px, 6vw, 76px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo { color: #fff; }
.footer .logo small { color: #7387A6; }
.footer__about { margin-top: 18px; font-size: .9rem; line-height: 1.7; max-width: 320px; }
.footer h5 { color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer a { font-size: .9rem; transition: color .18s; }
.footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #6E829F;
}
.socials { display: flex; gap: 9px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); transition: background .2s, transform .2s; }
.socials a:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- 20. Floating actions ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.fab a {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .22s var(--ease);
}
.fab a:hover { transform: scale(1.08); }
.fab svg { width: 26px; height: 26px; }
.fab__wa { background: #25D366; }
.fab__viber { background: #7360F2; }
.fab__top { background: var(--ink-900); width: 44px !important; height: 44px !important; opacity: 0; pointer-events: none; transition: opacity .25s, transform .22s var(--ease); }
.fab__top.show { opacity: 1; pointer-events: auto; }
.fab__top svg { width: 20px; height: 20px; }

/* ---------- 21. Page header (subpages) ---------- */
.page-head {
  padding: calc(var(--nav-h) + clamp(38px, 5vw, 62px)) 0 clamp(38px, 5vw, 62px);
  background:
    radial-gradient(760px 420px at 82% -20%, rgba(29,78,216,.4), transparent 62%),
    linear-gradient(160deg, #071023, #0B1A33 60%, #102547);
  color: #A9BAD4; position: relative; overflow: hidden;
}
.page-head h1 { color: #fff; max-width: 780px; }
.page-head .lead { margin-top: 16px; max-width: 660px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: #7E92B2; margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ---------- 22. Prose ---------- */
.prose h2 { margin-top: 44px; margin-bottom: 16px; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: 15px; color: var(--ink-700); }
.prose ul, .prose ol { margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; color: var(--ink-700); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-400); }
.prose ol { counter-reset: p; }
.prose ol li { position: relative; padding-left: 34px; color: var(--ink-700); counter-increment: p; }
.prose ol li::before {
  content: counter(p); position: absolute; left: 0; top: .05em;
  width: 23px; height: 23px; border-radius: 7px; background: var(--brand-100); color: var(--brand-600);
  font-size: .76rem; font-weight: 800; display: grid; place-items: center;
}
.prose .note, .prose .table-wrap { margin: 26px 0; }
.prose a:not(.btn):not(.link-arrow) { color: var(--brand-500); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.toc { background: var(--bg-soft); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 24px 26px; position: sticky; top: calc(var(--nav-h) + 18px); }
.toc h5 { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 15px; }
.toc ul { display: grid; gap: 3px; }
.toc a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .885rem; font-weight: 600; color: var(--ink-500); transition: background .16s, color .16s; }
.toc a:hover, .toc a.active { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-xs); }
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 4vw, 56px); align-items: start; }

/* ---------- 23. Animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }

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

/* ---------- 24. Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:44px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.tc{text-align:center}.fw-8{font-weight:800}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.small { font-size: .855rem; }
.muted { color: var(--ink-400); }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .hero__grid, .split, .calc, .contact-grid { grid-template-columns: 1fr; }
  .calc__out { position: static; }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero__card { order: -1; }
}
@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .g-2, .g-3, .g-4, .form-row, .toc ul { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .seg { grid-auto-flow: row; }
  .country__stats { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px 28px; }
  .step { padding: 66px 22px 24px; }
  .step::before { top: 20px; left: 22px; }
  .btn { width: 100%; }
  .hero__actions .btn, .flex-wrap .btn { width: auto; flex: 1 1 auto; }
  .fab a { width: 50px; height: 50px; }
}

/* ---------- 26. Print ---------- */
@media print {
  .header, .mobile-nav, .fab, .footer, .btn, .toc { display: none !important; }
  body { color: #000; }
  .page-head, .hero { background: none !important; color: #000; padding-top: 20px; }
  .page-head h1, .hero h1 { color: #000; }
  .card, .chk-group { break-inside: avoid; box-shadow: none; }
}
