/* PLANSWAP – Design-System */
:root {
  --ink: #0B1F33;
  --ink-2: #132C47;
  --ink-3: #1D3B5C;
  --sand: #F7F3EC;
  --sand-2: #EFE7DA;
  --line: #E2D9CA;
  --line-2: #D3C7B3;
  --gold: #D2A954;
  --gold-2: #C39A44;
  --gold-ink: #85601C;
  --gold-soft: #F6ECD7;
  --teal: #0E7A6D;
  --teal-soft: #E2F2EF;
  --red: #B42318;
  --red-soft: #FBEAE8;
  --amber: #A15C07;
  --amber-soft: #FEF3E2;
  --text: #0B1F33;
  --muted: #566676;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .06);
  --shadow-lg: 0 2px 4px rgba(11, 31, 51, .06), 0 24px 60px rgba(11, 31, 51, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--sand); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[dir="rtl"] body { line-height: 1.75; }
img, svg { max-width: 100%; display: block; }
svg[aria-hidden="true"] { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--ink); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; letter-spacing: .08em; font-size: 1.08rem; flex-shrink: 0; }
.logo svg { width: 34px; height: 34px; }
.logo .swap { color: var(--gold-ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a.nav-link { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { background: var(--sand); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: .85rem; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { background: var(--sand); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 170px; z-index: 60; }
.lang-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--sand); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn-gold:hover { background: var(--gold-2); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
html[dir="rtl"] .btn svg.dir-icon { transform: scaleX(-1); }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(210, 169, 84, .22), transparent 60%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 40em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero .eyebrow { color: var(--gold); }
.eyebrow .dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--gold); }
.skyline { position: absolute; inset-inline: 0; bottom: 0; height: 180px; color: rgba(210, 169, 84, .16); pointer-events: none; }
.skyline svg { width: 100%; height: 100%; }

/* deal mock card in hero */
.deal-mock { background: #fff; color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px; position: relative; }
.deal-mock::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 20px; background: rgba(210, 169, 84, .25); z-index: -1; }
html[dir="rtl"] .deal-mock::after { inset: 14px 14px -14px -14px; }
.deal-mock .mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.deal-mock .mock-title { font-weight: 800; font-size: 1.05rem; }
.deal-mock .rows { display: grid; gap: 8px; margin: 14px 0; }
.deal-mock .row { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.deal-mock .row b { font-variant-numeric: tabular-nums; }
.deal-mock .big { background: var(--sand); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.deal-mock .big strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.meter { height: 8px; background: var(--sand-2); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; }

/* ---------- sections */
.section { padding: 84px 0; }
.section.white { background: #fff; }
.section.ink { background: var(--ink); color: #fff; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.ink .section-head p { color: rgba(255, 255, 255, .75); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.sand { background: var(--sand); }
.card h3 { margin-bottom: .4em; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card-icon svg { width: 24px; height: 24px; }
.audience { padding: 32px; }
.audience ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.audience li { display: flex; gap: 10px; align-items: flex-start; }
.audience li svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.audience.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.audience.dark h3, .audience.dark h2 { color: #fff; }
.audience.dark li svg { color: var(--gold); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px; }
.stat strong { display: block; font-size: 1.9rem; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: 6px; }
.stat span { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.source { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.section.ink .source { color: rgba(255, 255, 255, .55); }
.section.ink .source a { color: var(--gold); }

table.fees { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.fees th, table.fees td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
table.fees th { background: var(--sand); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
html[dir="rtl"] table.fees th { letter-spacing: 0; }
table.fees tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; position: relative; }
.price-card.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -12px; inset-inline-start: 22px; background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.price-card .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; flex: 1; }
.price-card li { display: flex; gap: 9px; font-size: .95rem; }
.price-card li svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

.cta-band { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%); color: #fff; border-radius: 24px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.notice { border-radius: 12px; padding: 14px 16px; font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.notice.info { background: var(--gold-soft); color: #5B4212; }
.notice.ok { background: var(--teal-soft); color: #0B5148; }
.notice.warn { background: var(--amber-soft); color: #7A4505; }
.notice.err { background: var(--red-soft); color: #8E1C13; }

/* ---------- page head */
.page-head { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
.page-head p { color: rgba(255, 255, 255, .8); max-width: 720px; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255, 255, 255, .8); }

/* ---------- forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.hint, .field .hint { font-size: .8rem; color: var(--muted); }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="month"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 13px; min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(210, 169, 84, .22); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.input-suffix { position: relative; }
.input-suffix input { padding-inline-end: 56px; }
.input-suffix span { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-size: .82rem; font-weight: 700; color: var(--muted); pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex-shrink: 0; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: .92rem; font-weight: 600; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--teal); }
.seg { display: inline-flex; background: var(--sand-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.radio-cards { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radio-card { position: relative; display: block; border: 2px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.radio-card strong { display: block; }
.radio-card .rc-price { font-weight: 800; font-size: 1.15rem; margin-top: 4px; }

/* stepper */
.stepper { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.stepper li { list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: var(--muted); }
.stepper li span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sand-2); color: var(--muted); font-size: .85rem; }
.stepper li.active { color: var(--ink); }
.stepper li.active span { background: var(--ink); color: var(--gold); }
.stepper li.done span { background: var(--teal); color: #fff; }
.stepper li + li::before { content: ""; width: 26px; height: 2px; background: var(--line); margin-inline-end: 4px; }
.stepper { padding: 0; }

/* ---------- marketplace */
.layout-side { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 88px; }
.filters .card { padding: 20px; }
.filters h3 { font-size: 1rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; position: relative; }
.lcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.lcard .lc-head { padding: 18px 18px 14px; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); color: #fff; position: relative; min-height: 112px; }
.lcard .lc-head .lc-community { font-weight: 800; font-size: 1.06rem; color: #fff; margin: 8px 0 2px; }
.lcard .lc-head .lc-project { color: rgba(255, 255, 255, .72); font-size: .88rem; }
.lcard .lc-body { padding: 16px 18px 18px; display: grid; gap: 12px; flex: 1; }
.lcard .lc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--sand); border-radius: 10px; padding: 9px 11px; }
.kpi small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.kpi b { font-variant-numeric: tabular-nums; font-size: .98rem; }
.kpi.hl { background: var(--gold-soft); }
.kpi.hl b { color: var(--gold-ink); }
.lcard .lc-foot { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; gap: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
html[dir="rtl"] .badge { letter-spacing: 0; }
.badge svg { width: 13px; height: 13px; }
.badge.gold { background: var(--gold); color: var(--ink); }
.badge.teal { background: var(--teal-soft); color: var(--teal); }
.badge.white { background: rgba(255, 255, 255, .14); color: #fff; }
.badge.demo { background: #fff; color: var(--amber); border: 1px solid var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.ink { background: var(--ink); color: #fff; }
.badge.sand { background: var(--sand-2); color: var(--ink); }
.lcard.teaser .lc-body { filter: none; }
.lock { display: flex; align-items: center; gap: 10px; background: var(--sand); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px; font-size: .88rem; color: var(--ink); }
.lock svg { width: 20px; height: 20px; color: var(--gold-ink); flex-shrink: 0; }
.blur { filter: blur(5px); user-select: none; }
.empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line-2); border-radius: 18px; }
.empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gold-ink); }
.skeleton { background: linear-gradient(90deg, var(--sand-2) 25%, var(--sand) 50%, var(--sand-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 18px; min-height: 280px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- deal detail */
.deal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.deal-head-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kv .kpi { background: #fff; border: 1px solid var(--line); padding: 12px 14px; }
.kv .kpi b { font-size: 1.08rem; }
.breakdown { display: grid; gap: 0; }
.breakdown .line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.breakdown .line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown .line.total { border-bottom: 0; border-top: 2px solid var(--ink); font-size: 1.08rem; padding-top: 14px; }
.breakdown .line .muted { font-size: .85rem; }
.side-card { position: sticky; top: 88px; }
.eur { color: var(--muted); font-size: .82rem; font-weight: 600; }
table.schedule { width: 100%; border-collapse: collapse; }
table.schedule th, table.schedule td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; font-size: .92rem; }
table.schedule td.num, table.schedule th.num { text-align: end; font-variant-numeric: tabular-nums; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; color: var(--muted); }

/* ---------- exit check */
.calc-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; }
.scenarios { display: grid; gap: 16px; }
.scenario { border-radius: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); }
.scenario .sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.scenario h3 { margin: 0; }
.scenario .sc-big { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 6px 0; }
.scenario.good { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.scenario.bad .sc-big { color: var(--red); }
.scenario p { color: var(--muted); font-size: .93rem; margin: 0; }
.scenario .breakdown { margin-top: 10px; }

/* ---------- manage */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 15px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--sand-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.timeline li.done .tl-dot { background: var(--teal); color: #fff; }
.timeline li.current .tl-dot { background: var(--ink); color: var(--gold); }
.timeline .tl-dot svg { width: 16px; height: 16px; }
.timeline strong { display: block; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; background: var(--sand); }
.doc-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.doc-list li { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }

/* ---------- guides */
.article { max-width: 760px; }
.article h2 { font-size: 1.55rem; margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { font-size: 1.04rem; }
.article ul, .article ol { padding-inline-start: 1.3em; }
.article li { margin-bottom: .4em; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; background: #fff; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.article th { background: var(--sand); }
.article .tldr { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 18px 20px; margin: 0 0 1.6em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: box-shadow .2s; }
.guide-card:hover { box-shadow: var(--shadow-lg); color: inherit; }
.guide-card h3 { color: var(--ink); }
.guide-card p { color: var(--muted); margin: 0; }

/* ---------- account */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--gold); }
.pill-list { display: grid; gap: 10px; }
.pill-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }

/* ---------- footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
html[dir="rtl"] .site-footer h4 { letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .93rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo .swap { color: var(--gold); }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .8rem; color: rgba(255, 255, 255, .55); display: grid; gap: 8px; }

/* ---------- cookie / toast / modal */
.cookie { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 90; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 20px; }
.cookie p { font-size: .9rem; color: var(--muted); }
.cookie .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .opts { display: grid; gap: 8px; margin: 10px 0 14px; }
.toast { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 95; box-shadow: var(--shadow-lg); font-weight: 600; max-width: calc(100% - 32px); }
html[dir="rtl"] .toast { transform: translateX(50%); }
dialog.modal { border: 0; border-radius: 20px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.modal::backdrop { background: rgba(11, 31, 51, .55); }
dialog.modal .modal-body { padding: 26px; }
dialog.modal .modal-close { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--sand); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; gap: 2px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: 12px 10px; font-size: 1.02rem; }
  .nav .nav-cta { margin-top: 10px; }
  .burger { display: inline-flex; }
  .nav-tools { margin-inline-start: auto; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 80px; }
  .deal-mock { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-side, .deal-layout, .calc-layout, .article-layout { grid-template-columns: 1fr; }
  .filters, .side-card { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .filters .form > h3 { cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin: 0; }
  .filters .form > h3::after { content: "+"; font-size: 1.3rem; color: var(--gold-ink); }
  .filters .form.open > h3::after { content: "–"; }
  .filters .form:not(.open) > :not(h3) { display: none; }
  .filters .club-card { display: none; }
}
@media (max-width: 760px) {
  .deal-mock .big { flex-wrap: wrap; }
  .deal-mock .big strong { font-size: 1.3rem; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .pricing, .guide-list, .radio-cards { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .steps, .stat-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .page-head { padding: 40px 0 34px; }
  .wrap { padding: 0 16px; }
  .logo-text { font-size: 1rem; }
}
@media print {
  .site-header, .site-footer, .cookie, .no-print { display: none !important; }
  body { background: #fff; }
}
.site-footer .lm-bg { fill: #1D3B5C; }

.ic-teal { color: var(--teal); margin-top: 3px; }
.order-sum { background: var(--sand); border-radius: 12px; padding: 14px 16px; margin: 12px 0 16px; }

/* ---------- KI-Chat */
.chat-launcher { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px 12px 14px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: var(--shadow-lg); }
.chat-launcher:hover { background: var(--ink-3); }
.chat-launcher svg { width: 24px; height: 24px; color: var(--gold); }
.chat-ai { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 3px 7px; border-radius: 999px; line-height: 1.2; }
html[dir="rtl"] .chat-ai { letter-spacing: 0; }
.chat-panel { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 85; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel.hidden, .chat-launcher.hidden { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--ink); color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.chat-who { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.chat-who b { font-size: .98rem; }
.chat-who span { font-size: .78rem; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-icon-btn { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .2); }
.chat-icon-btn svg { width: 17px; height: 17px; }
.chat-notice { font-size: .74rem; color: var(--muted); background: var(--sand); padding: 7px 16px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--sand); border-end-start-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-end-end-radius: 4px; }
.chat-msg.me a { color: var(--gold); }
.chat-msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: .78rem; text-align: center; padding: 2px 8px; }
.chat-name { font-size: .72rem; font-weight: 800; color: var(--gold-ink); margin-bottom: 2px; }
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip { background: #fff; border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.chat-chip:hover { border-color: var(--gold); background: var(--gold-soft); }
.chat-cards { display: grid; gap: 8px; }
.chat-card { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: .85rem; background: #fff; }
.chat-card:hover { border-color: var(--gold); }
.chat-card-link { color: var(--gold-ink); font-weight: 700; margin-top: 2px; }
.chat-contact { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--sand); }
.chat-contact input:not([type="checkbox"]) { padding: 8px 11px; font-size: .9rem; min-height: 40px; }
.chat-contact .form-msg { min-height: 0; font-size: .82rem; }
.chat-contact .form-msg:empty { display: none; }
.chat-contact .xs { font-size: .74rem; line-height: 1.4; }
.chat-typing { font-size: .8rem; color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.chat-panel textarea.chat-input { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: .93rem; min-height: 44px; height: 44px; max-height: 110px; line-height: 1.4; }
.chat-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.chat-send svg { width: 18px; height: 18px; }
html[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
@media (max-width: 760px) {
  .chat-launcher { bottom: 14px; inset-inline-end: 14px; padding: 12px; }
  .chat-launcher-text { display: none; }
  .chat-launcher .chat-ai { display: none; }
  body:has(#cookie:not(.hidden)) .chat-launcher { display: none; }
  .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  body.chat-open { overflow: hidden; }
}
@media print { .chat-launcher, .chat-panel { display: none !important; } }
