/* ============ Expat Gate v2 — design tokens ============ */
:root {
  --ink: #1c2430;
  --ink-soft: #4a5568;
  --ink-faint: #8b95a3;
  --paper: #f4f5f3;
  --surface: #ffffff;
  --line: #e3e6e2;
  --brand: #0e5f55;
  --brand-deep: #0a4a42;
  --brand-tint: #e7f0ee;
  --accent: #4ecdc4;
  --ok: #3d8a5f;
  --warn: #c08a1d;
  --alert: #bf4a3d;
  --ok-bg: #eaf3ee;
  --warn-bg: #f8f0dd;
  --alert-bg: #f9e9e6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28,36,48,.05), 0 4px 16px rgba(28,36,48,.06);
  --shadow-lift: 0 2px 4px rgba(28,36,48,.06), 0 12px 32px rgba(28,36,48,.12);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ============ header ============ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 60px; }
.wordmark { font-family: var(--font-data); font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--ink); text-transform: uppercase; display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.wordmark:hover { text-decoration: none; }
.wordmark .gate { width: 16px; height: 16px; border: 2px solid var(--brand); border-bottom: none; border-radius: 8px 8px 0 0; position: relative; top: 2px; }
.main-nav { display: flex; gap: 18px; margin-left: 6px; }
.main-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 500; padding: 4px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--brand); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button { background: var(--surface); border: none; padding: 6px 9px; font-family: var(--font-data); font-size: 11.5px; font-weight: 600; color: var(--ink-faint); letter-spacing: .04em; }
.lang-switch button.on { background: var(--brand); color: #fff; }
.btn { display: inline-block; border: none; border-radius: 9px; font-size: 14px; font-weight: 600; padding: 10px 18px; transition: background .15s, transform .15s; text-align: center; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-tint); }
.btn-big { padding: 14px 26px; font-size: 15.5px; border-radius: 11px; }

.uk-banner { background: var(--warn-bg); color: #7a5710; font-size: 13px; text-align: center; padding: 7px 16px; }

/* ============ hero ============ */
.intro { padding: 40px 0 10px; }
.intro h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.13; letter-spacing: -.01em; max-width: 780px; }
.intro h1 em { font-style: italic; color: var(--brand); }
.intro .sub { color: var(--ink-soft); max-width: 640px; margin-top: 14px; font-size: 16.5px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .or { color: var(--ink-faint); font-size: 14px; }
.quick-chips { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.quick-chips::-webkit-scrollbar { display: none; }
.qchip { flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.qchip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ home layout ============ */
.home-layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; padding: 24px 0 64px; }
.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.f-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-group:first-child { padding-top: 0; }
.f-group:last-child { border-bottom: none; }
.f-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.f-label .val { margin-left: auto; font-family: var(--font-data); font-size: 12px; color: var(--brand); text-transform: none; letter-spacing: 0; }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.check-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.check-row input { accent-color: var(--brand); width: 15px; height: 15px; }
.check-row:hover { color: var(--ink); }
select { width: 100%; padding: 9px 10px; font-family: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.hidden-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-data); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); padding: 16px 0 4px; }
.hidden-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.info-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink-faint); background: transparent; color: var(--ink-faint); font-size: 10.5px; font-weight: 700; line-height: 1; font-family: var(--font-data); flex-shrink: 0; }
.info-btn:hover, .info-btn.open { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.info-pop { font-size: 13px; line-height: 1.5; color: var(--ink-soft); background: var(--brand-tint); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 10px 12px; margin: 4px 0 10px; }
.toggle-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.toggle-row input { accent-color: var(--alert); width: 16px; height: 16px; }
.awareness { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.awareness .a-label { font-family: var(--font-data); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #aeb8c4; }
.awareness .a-count { font-family: var(--font-data); font-size: 13px; margin: 5px 0 7px; }
.awareness .a-bar { display: flex; gap: 4px; }
.awareness .a-seg { height: 6px; flex: 1; border-radius: 3px; background: #3a4554; transition: background .3s; }
.awareness .a-seg.on { background: var(--accent); }
.reset-link { font-size: 13px; color: var(--ink-faint); background: none; border: none; padding: 0; margin-top: 14px; text-decoration: underline; }
.reset-link:hover { color: var(--ink); }

/* ============ results ============ */
.results-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.results-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.results-head .count { font-family: var(--font-data); font-size: 13px; color: var(--ink-faint); }
.results-head .share-mini { margin-left: auto; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============ booking-style country card ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--brand-tint), var(--paper)); }
.card-photo img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-photo img.photo { transform: scale(1.045); }
.price-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(28,36,48,.86); color: #fff; font-family: var(--font-data); font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 8px; backdrop-filter: blur(4px); }
.price-badge .mo { font-weight: 400; color: #cbd3dc; }
.save-btn { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.92); border: none; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow); }
.save-btn:hover { color: var(--alert); }
.save-btn.saved { background: var(--ink); color: #fff; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card-top { display: flex; align-items: center; gap: 10px; }
.card-top img.flag { width: 28px; height: 20px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.card-top h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.1; }
.card-top .meta { font-family: var(--font-data); font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 500; padding: 3px 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.signals { border-top: 1px dashed var(--line); padding-top: 11px; }
.signals .s-title { font-family: var(--font-data); font-size: 9.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.sig { display: flex; align-items: center; gap: 7px; font-family: var(--font-data); font-size: 11px; color: var(--ink-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.alert { background: var(--alert); box-shadow: 0 0 0 3px var(--alert-bg); }
.card .teaser { font-family: var(--font-display); font-style: italic; font-size: 14.5px; color: var(--ink-soft); }
.card .more { font-size: 13.5px; font-weight: 600; margin-top: auto; }

/* ============ conversion & banners ============ */
.conv-panel { grid-column: 1 / -1; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; margin-top: 8px; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.conv-panel .cp-kicker { font-family: var(--font-data); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.conv-panel h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 8px 0 10px; }
.conv-panel p { color: #b9c2cd; max-width: 660px; }
.conv-panel .cp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.conv-panel .cp-note { font-size: 12.5px; color: #8b95a3; margin-top: 12px; }
.mid-banner { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--brand-tint); border: 1px solid #cfe2de; border-radius: var(--radius); padding: 18px 22px; }
.mid-banner .mb-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.mid-banner p { color: var(--ink-soft); font-size: 14px; max-width: 520px; }
.mid-banner a { margin-left: auto; white-space: nowrap; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.empty p { color: var(--ink-soft); margin-bottom: 16px; }

/* ============ feedback + newsletter ============ */
.fb-card { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fb-card .fb-q { font-weight: 600; }
.fb-card input { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; }
.fb-thanks { color: var(--ok); font-weight: 600; }
.nl-band { margin-top: 18px; background: linear-gradient(120deg, var(--brand), var(--brand-deep)); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nl-band h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.nl-band p { color: #d3e5e1; font-size: 14px; max-width: 430px; }
.nl-band form { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.nl-band input { padding: 11px 14px; border: none; border-radius: 9px; font-family: inherit; font-size: 14px; min-width: 220px; }
.nl-band .btn { background: var(--ink); color: #fff; }

/* ============ country page ============ */
.page { padding: 32px 0 72px; }
.crumb { font-family: var(--font-data); font-size: 12px; color: var(--ink-faint); margin-bottom: 18px; }
.c-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; background: var(--ink); }
.c-hero img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.c-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,36,48,0) 30%, rgba(28,36,48,.82) 100%); }
.c-hero .c-hero-in { position: relative; z-index: 2; padding: 26px 28px; color: #fff; display: flex; align-items: flex-end; gap: 16px; width: 100%; flex-wrap: wrap; }
.c-hero img.flag { width: 44px; height: 31px; object-fit: cover; border-radius: 5px; border: 1px solid rgba(255,255,255,.4); }
.c-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.05; }
.c-hero .meta { font-family: var(--font-data); font-size: 13px; color: #cbd3dc; margin-top: 4px; }
.c-hero .save-btn { position: static; margin-left: auto; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--ink-soft); max-width: 680px; margin: 20px 0 26px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.metric .m-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.metric .m-value { font-family: var(--font-data); font-size: 19px; font-weight: 600; margin-top: 4px; }
.metric .m-sub { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.section-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.section-sub { color: var(--ink-soft); margin-bottom: 20px; max-width: 640px; }
.signal-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.sb-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-data); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.sb-chip.ok { background: var(--ok-bg); color: var(--ok); }
.sb-chip.warn { background: var(--warn-bg); color: var(--warn); }
.sb-chip.alert { background: var(--alert-bg); color: var(--alert); }
.sb-score { font-family: var(--font-data); font-size: 11px; color: var(--ink-faint); margin-top: 8px; }
.signal-block .sb-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.signal-block .sb-text { font-size: 14px; color: var(--ink-soft); }
.signal-block .sb-lock { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--brand); }
.lock-ico { width: 12px; height: 12px; flex-shrink: 0; }
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px; margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-band h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.cta-band p { color: #b9c2cd; margin-top: 6px; max-width: 520px; }
.cta-band .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ compare ============ */
.compare-pickers { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.compare-pickers select { width: 220px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.cmp-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.cmp-table thead th { background: var(--paper); }
.cmp-table thead .c-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.cmp-table thead img { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.cmp-table td.rowname { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); width: 190px; }
.cmp-table td .sig { font-size: 12.5px; }
.cmp-table td.num { font-family: var(--font-data); }
.cmp-section td { background: var(--ink); color: #fff; font-family: var(--font-data); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px; }

/* ============ research ============ */
.prose { max-width: 680px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.14; margin-bottom: 16px; }
.prose h2 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 30px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 13px; font-size: 15.5px; }
.prose strong { color: var(--ink); }
.anchor-note { background: var(--warn-bg); border-left: 3px solid var(--warn); border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 14.5px; color: #6d4e10; margin: 18px 0; max-width: 680px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 20px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lift); }
.tier .t-flag { position: absolute; top: -11px; left: 20px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; }
.tier .t-tag { font-family: var(--font-data); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.tier h3 { font-family: var(--font-display); font-size: 23px; font-weight: 500; margin: 8px 0 2px; }
.tier .t-price { font-family: var(--font-data); font-size: 26px; font-weight: 600; margin: 6px 0 10px; }
.tier .t-price .cur { font-size: 15px; color: var(--ink-faint); }
.tier p { font-size: 14px; color: var(--ink-soft); }
.tier ul { list-style: none; margin: 14px 0 20px; }
.tier li { font-size: 13.5px; color: var(--ink-soft); padding: 5px 0 5px 20px; position: relative; }
.tier li::before { content: "—"; position: absolute; left: 0; color: var(--brand); }
.tier .btn { margin-top: auto; }
.guarantee { display: flex; gap: 12px; align-items: flex-start; background: var(--ok-bg); border: 1px solid #cde4d6; border-radius: var(--radius); padding: 16px 18px; max-width: 680px; font-size: 14.5px; color: #2c5e42; margin-bottom: 30px; }
.faq { max-width: 680px; margin-top: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; font-size: 14.5px; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-family: var(--font-data); color: var(--brand); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; color: var(--ink-soft); font-size: 14px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; box-shadow: var(--shadow); margin-top: 34px; }
.form-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.form-card .fc-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; font-family: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

/* ============ quiz ============ */
.modal-back { position: fixed; inset: 0; background: rgba(28,36,48,.55); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); border-radius: 16px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px; position: relative; box-shadow: var(--shadow-lift); }
.modal .close-x { position: absolute; right: 14px; top: 14px; background: var(--paper); border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 16px; color: var(--ink-soft); }
.q-step { font-family: var(--font-data); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.q-bar { display: flex; gap: 4px; margin: 10px 0 18px; }
.q-bar span { height: 5px; flex: 1; border-radius: 3px; background: var(--line); }
.q-bar span.on { background: var(--brand); }
.modal h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 18px; }
.q-opts { display: grid; gap: 10px; }
.q-opt { text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 11px; padding: 14px 16px; font-size: 15px; font-weight: 500; color: var(--ink); transition: border-color .12s, background .12s; }
.q-opt:hover { border-color: var(--brand); background: var(--brand-tint); }
.q-res { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.q-res img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.q-res .qr-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.q-res .qr-match { font-family: var(--font-data); font-size: 12px; color: var(--brand); }
.q-res .btn { margin-left: auto; padding: 8px 14px; font-size: 13px; }
.modal .row-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
/* строка-крючок «N из 20 отпали…» над результатами квиза */
.q-db { font-family: var(--font-display); font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--brand-deep); background: var(--brand-tint); border-left: 3px solid var(--brand); border-radius: 8px; padding: 11px 14px; margin: 0 0 14px; }

/* ============ chat ============ */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 80; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 13px 18px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 8px; }
.chat-fab .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chat-win { position: fixed; right: 18px; bottom: 76px; z-index: 85; width: 340px; max-width: calc(100vw - 36px); height: 440px; max-height: 70vh; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); display: flex; flex-direction: column; overflow: hidden; animation: rise .25s ease both; }
.chat-head { background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.chat-head .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.45; }
.msg.bot { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chips button { background: var(--brand-tint); border: 1px solid #cfe2de; color: var(--brand-deep); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 500; }
.chat-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat-win.fbw { height: auto; max-height: 78vh; }
.chat-in { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-in input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-family: inherit; font-size: 13.5px; }
.chat-in button { background: var(--brand); color: #fff; border: none; border-radius: 999px; width: 38px; height: 38px; font-size: 15px; }

/* ============ report (digital product) ============ */
.report { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow); }
.rep-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.rep-badge { font-family: var(--font-data); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--brand-tint); color: var(--brand-deep); padding: 4px 10px; border-radius: 999px; }
.rep-head h1 { font-family: var(--font-display); font-size: 34px; font-weight: 500; width: 100%; }
.rep-head .rep-meta { font-family: var(--font-data); font-size: 12px; color: var(--ink-faint); }
.report h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 26px 0 10px; }
.report p, .report li { font-size: 14.5px; color: var(--ink-soft); }
.report ul { padding-left: 20px; margin: 8px 0; }
.rep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.rep-cell { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.rep-cell .m-label { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.rep-cell .m-value { font-family: var(--font-data); font-size: 16px; font-weight: 600; margin-top: 3px; }
.rep-fine { font-size: 12px; color: var(--ink-faint); border-top: 1px solid var(--line); margin-top: 26px; padding-top: 14px; }
.rep-free-note { font-size: 13px; color: var(--ink-soft); background: var(--warn-bg); border-radius: 8px; padding: 9px 13px; margin-bottom: 14px; }
.rep-delta { display: flex; gap: 11px; background: var(--brand-tint); border: 1px solid #cfe2de; border-radius: 10px; padding: 13px 16px; margin: 14px 0 24px; }
.rep-delta .lock-ico { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.rep-delta .rd-kicker { font-family: var(--font-data); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 4px; }
.rep-delta p { font-size: 13.5px; color: var(--ink-soft); }
.rep-locked { display: flex; gap: 11px; border: 1.5px dashed var(--ink-faint); border-radius: 10px; padding: 15px 17px; margin: 22px 0; }
.rep-locked .lock-ico { width: 15px; height: 15px; color: var(--ink-faint); flex-shrink: 0; margin-top: 3px; }
.rep-locked .rl-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.rep-locked p { font-size: 13.5px; color: var(--ink-soft); }
.rep-actions { max-width: 760px; margin: 0 auto 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rep-upsell { max-width: 760px; margin: 18px auto 0; background: var(--brand-tint); border: 1px solid #cfe2de; border-radius: var(--radius); padding: 16px 20px; font-size: 14px; color: var(--brand-deep); }

/* ============ footer ============ */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.site-footer .container { padding: 26px 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
.site-footer .fine { font-size: 12px; color: var(--ink-faint); max-width: 700px; }
.site-footer .wordmark { font-size: 12px; }
.site-footer nav { display: flex; gap: 14px; font-size: 13px; margin-left: auto; }
.site-footer nav.foot-legal { margin-left: 0; font-size: 12px; }
.site-footer nav.foot-legal a { color: var(--ink-faint); }

/* ============ legal pages (terms / privacy / contact) ============ */
.prose.legal h2 { font-size: 19px; margin: 26px 0 8px; }
.prose.legal p { font-size: 14.5px; line-height: 1.65; }
.prose.legal .legal-meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 4px; }
.prose.legal .legal-note { font-size: 13px; color: var(--brand-deep); background: var(--brand-tint); border-radius: 10px; padding: 11px 14px; margin-bottom: 22px; }
.prose.legal .legal-entity { background: var(--surface-2, #f4f5f3); border-radius: 10px; padding: 12px 16px; margin: 10px 0 14px; }
.prose.legal .legal-entity p { font-size: 14px; margin-bottom: 3px; }

/* ============ mobile bottom bar & sheet ============ */
.mob-bar { display: none; }
.sheet-back { position: fixed; inset: 0; background: rgba(28,36,48,.5); z-index: 88; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 89; background: var(--surface); border-radius: 18px 18px 0 0; max-height: 84vh; overflow-y: auto; padding: 18px 20px 90px; animation: sheetup .25s ease both; }
@keyframes sheetup { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet-apply { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 91; }

/* ============ responsive ============ */
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .home-layout { grid-template-columns: 1fr; }
  .sidebar.desktop { display: none; }
  .main-nav { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; margin-top: 20px; }
  .tier .t-flag { top: -10px; }
  .signal-block { grid-template-columns: 1fr; gap: 10px; }
  .rep-grid { grid-template-columns: repeat(2, 1fr); }
  .report { padding: 26px 20px; }
  .mob-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; }
  .mob-bar .btn { flex: 1; padding: 12px; }
  .mob-bar .mb-count { font-family: var(--font-data); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
  body.has-mobbar { padding-bottom: 68px; }
  .chat-fab { bottom: 78px; }
  .chat-win { bottom: 134px; }
  /* на главной снизу уже стоит панель фильтров — полоска встаёт НАД ней, не поверх */
  body.has-mobbar .tray { bottom: 68px; }
  .tray-in { gap: 10px; padding: 9px 0; }
  .tray-actions { width: 100%; margin-left: 0; }
  .tray-actions .btn { flex: 1; padding: 11px; }
  /* на главной полоска стоит на панели фильтров — прибавляем её 68px */
  body.has-tray.has-mobbar { padding-bottom: calc(var(--tray-h, 62px) + 82px); }
  body.has-tray.has-mobbar .chat-fab { bottom: calc(var(--tray-h, 62px) + 84px); }
  body.has-tray.has-mobbar .chat-win { bottom: calc(var(--tray-h, 62px) + 142px); }
  .cta-band .actions { margin-left: 0; }
  .nl-band form { margin-left: 0; }
  .intro { padding-top: 26px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .header-right .btn { display: none; }
}

/* ============ воронка v3: цена основателей, оффер в квизе, пример отчёта ============ */
.t-strike { text-decoration: line-through; color: var(--ink-faint); font-size: .55em; font-weight: 500; margin-left: 8px; }
.t-founding { background: var(--brand-tint); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
.t-bundle { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-faint); margin-bottom: 12px; cursor: pointer; }
.t-bundle input { margin-top: 2px; }
.q-offer { background: var(--brand-tint); border-radius: 12px; padding: 16px 18px; margin-top: 16px; }
.q-offer h4 { margin: 6px 0 6px; font-size: 16px; }
.q-offer p { font-size: 13.5px; line-height: 1.5; margin: 0 0 10px; }
.qo-kicker { font-family: var(--font-data); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.qo-founding { font-size: 12.5px; font-weight: 600; color: var(--brand-deep); margin-bottom: 10px; }
.q-offer .btn { width: 100%; text-align: center; }
.q-email { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.q-email p { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 8px; }
.qe-row { display: flex; gap: 8px; }
.qe-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.ps-note { background: var(--brand-tint); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.ps-profile { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.ps-profile .ps-ph { font-size: 28px; line-height: 1; }
.ps-profile ul { margin: 8px 0 0; padding-left: 18px; }
.ps-profile li { margin: 3px 0; font-size: 14px; }
.ps-verdict { display: grid; gap: 10px; margin: 14px 0; }
.ps-v { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.ps-rank { font-family: var(--font-data); font-weight: 700; color: var(--brand); font-size: 18px; line-height: 1.2; }
.ps-missing { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 18px; }
.ps-missing h3 { margin-top: 0; }
.rep-upsell .qo-founding { margin-bottom: 8px; }

/* ============ квиз: компактные кнопки шаринга под результатами ============ */
.row-btns.row-mini { margin: 4px 0 14px; }
.row-btns.row-mini .btn { padding: 7px 13px; font-size: 13px; }

/* ============ квиз: выбранный вариант + шаг назад ============ */
.q-opt.on { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.q-nav { margin-top: 16px; }
.q-back { background: none; border: none; padding: 6px 2px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.q-back:hover { color: var(--brand); }

/* ============ совпадения из квиза на странице страны ============ */
.quiz-matches { background: var(--brand-tint); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 26px; }
.quiz-matches .qm-title { font-family: var(--font-data); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.qm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.qm-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.qm-chip:hover { border-color: var(--brand); text-decoration: none; }
.qm-chip img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.qm-chip .qm-score { font-family: var(--font-data); font-size: 12px; font-weight: 600; color: var(--brand); }
.qm-all { font-size: 13px; font-weight: 600; }

/* ============ полоска сохранённых стран ============ */
/* z-index 75: выше нижней панели фильтров (70), ниже виджета фидбэка (80/85) */
/* fade, а не rise: rise сдвигает элемент на 10px, и если анимация подвиснет
   (фоновая вкладка, слабое устройство) — полоска сядет на панель фильтров */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(28,36,48,.09); animation: fade .18s ease both; }
.tray-in { display: flex; align-items: center; gap: 14px; padding: 10px 0; flex-wrap: wrap; }
.tray-items { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.tray-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 3px 3px 11px; font-size: 13.5px; font-weight: 600; }
.tray-chip a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; }
.tray-chip a:hover { color: var(--brand); }
.tray-chip img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.tray-chip button { background: none; border: none; color: var(--ink-faint); font-size: 13px; line-height: 1; padding: 6px 8px; border-radius: 999px; }
.tray-chip button:hover { background: var(--alert-bg); color: var(--alert); }
.tray-slot { font-size: 12.5px; color: var(--ink-faint); border: 1px dashed var(--line); border-radius: 999px; padding: 6px 12px; }
.tray-actions { display: flex; gap: 8px; margin-left: auto; }
/* предупреждение о четвёртой стране: показывается только вместе с .full */
.tray-warn { display: none; width: 100%; font-size: 13px; font-weight: 600; color: #6d4e10; background: var(--warn-bg); border-radius: 8px; padding: 8px 13px; }
.tray.full { border-top: 2px solid var(--warn); }
.tray.full .tray-warn { display: block; }
/* --tray-h проставляет renderSavedTray() по фактической высоте полоски;
   значение в fallback — только на случай, если скрипт не успел отработать */
body.has-tray { padding-bottom: calc(var(--tray-h, 62px) + 14px); }
body.has-tray .chat-fab { bottom: calc(var(--tray-h, 62px) + 16px); }
body.has-tray .chat-win { bottom: calc(var(--tray-h, 62px) + 74px); }

/* ============ анкета после оплаты (#/intake) ============ */
.in-sec { font-family: var(--font-data); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.in-sec:first-child { margin-top: 0; }
.field-hint { font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); margin-top: 5px; }
.pri-chips { display: flex; flex-wrap: wrap; gap: 7px; }
/* min-height: палец, а не курсор — на мобильном чипы должны быть не меньше ~40px */
.pri-chips button { background: var(--brand-tint); border: 1px solid #cfe2de; color: var(--brand-deep); border-radius: 999px; padding: 9px 15px; min-height: 40px; font-size: 13.5px; font-weight: 500; transition: background .12s, border-color .12s; }
.pri-chips button:hover { border-color: var(--brand); }
.pri-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* «чек придёт письмом» — покупатель после редиректа не видит страницу скачивания Payhip */
.in-note { background: var(--brand-tint); border-radius: 10px; padding: 13px 16px; font-size: 13.5px; line-height: 1.55; color: var(--brand-deep); margin: 18px 0; max-width: 680px; }
/* предложение пройти квиз — только для тех, кто его не проходил */
.in-quiz { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--brand-tint); border-radius: 12px; padding: 14px 18px; margin: 18px 0; max-width: 680px; font-size: 13.5px; line-height: 1.5; color: var(--brand-deep); }
.in-quiz > div { flex: 1; min-width: 220px; }
.in-quiz .btn { white-space: nowrap; }
.in-err { background: var(--warn-bg); border-left: 3px solid var(--warn); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: 13.5px; color: #6d4e10; margin: 16px 0; }

/* ============ print (PDF product) ============ */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .chat-fab, .chat-win, .mob-bar, .rep-actions, .rep-upsell, .uk-banner, .rep-delta, .rep-locked, .rep-free-note, .cta-band { display: none !important; }
  .report { border: none; box-shadow: none; padding: 0; max-width: 100%; }
  .page { padding: 0; }
}
