/* Invest Lebanon - site styles. Design: Atlas (style B). Logical properties so the Arabic (dir=rtl) mirrors itself.
   Written 2026-10-15 by Claude (Lebanon-Invest project). */
:root {
  --ink: #1D2A26; --ink-2: #44524C; --muted: #5C6A64; --muted-2: #6B7772;
  --ground: #FBFAF6; --white: #FFFFFF; --tint: #F4F1EA; --line: #E6E1D6; --line-2: #D6D0C2;
  --accent: #3E7D5A; --accent-d: #31664A; --accent-soft: #EAF2EE;
  --sea: #2A6F8F; --sea-d: #1D5670; --terra: #C65A32; --terra-t: #A8481F; --sun: #EDB840; --sun-soft: #FBEFD0;
  --dark-2: #26362F; --dark-text: #C9D3CE;
  --r-s: 12px; --r-m: 18px; --r-l: 22px; --r-xl: 24px;
  --shadow: 0 12px 30px rgba(29,42,38,.08); --shadow-l: 0 20px 50px rgba(29,42,38,.12);
  --font: 'Comfortaa', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-h: 'Comfortaa', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* English: Comfortaa - Arabic: Almarai (Pierre 15/10) */
body.ar { --font: 'Almarai', system-ui, sans-serif; --font-h: 'Almarai', system-ui, sans-serif; }
.langlink[lang=ar] { font-family: 'Almarai', sans-serif; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: var(--sea); }
a:hover { color: var(--sea-d); }
input, select, textarea, button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-h); margin: 0; }
p { margin: 0 0 12px; }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }
.ic { flex: none; }
[dir=rtl] .flip { transform: scaleX(-1); }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.pad { padding-block: 80px; }
.sec { padding-block: 72px; }
.sec-sm { padding-block: 36px; }
.center { text-align: center; }
.strong { font-weight: 700; }
.muted { color: var(--muted); }
.muted-warm { color: #5C4A2A; }
.small { font-size: 14px; }
.h1 { font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.3px; }
.h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.3px; }
.h3 { font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; margin-bottom: 10px; }
body.ar .h1, body.ar .h2, body.ar .hero h1 { letter-spacing: 0; line-height: 1.3; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 600px; }
.lead-sm { font-size: 17px; max-width: 760px; margin-top: 10px; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--tint); border-radius: var(--r-s); padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.demo-ribbon { background: var(--sun); color: var(--ink); text-align: center; font-weight: 700; font-size: 14px; padding: 6px 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-s); font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 42px; padding: 0 14px; font-size: 14px; }
.btn.block, .btn.full { display: flex; width: 100%; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: #2C3D37; color: var(--ground); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); color: #fff; }
.btn-warm { background: var(--terra); color: #fff; }
.btn-warm:hover { background: var(--terra-t); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #E2AA2C; color: var(--ink); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-btns.center { justify-content: center; }
.row-btns form { margin: 0; }

/* ---------- header ---------- */
.top { background: var(--ground); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 12px 32px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-h); font-weight: 700; font-size: 22px; letter-spacing: -.3px; }
.logo:hover { color: var(--ink); }
.logo small { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--muted); }
.navbox { display: flex; align-items: center; gap: 12px 28px; flex: 1 1 auto; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.mainnav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a[aria-current] { border-bottom-color: var(--accent); }
.langlink { font-weight: 700; }
.top-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; margin-inline-start: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: var(--white); }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 1040px) {
  .burger { display: flex; }
  .navbox { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .navtoggle:checked ~ .navbox { display: flex; }
  .top-in { flex-wrap: wrap; }
  .mainnav { flex-direction: column; gap: 0; }
  .mainnav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .top-btns .btn { flex: 1; }
}

/* ---------- hero ---------- */
.hero { background: var(--accent-soft); overflow: hidden; }
.hero-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 24px; }
.hero-text { flex: 999 1 540px; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: #3E5A2B; }
.hero h1 { margin-top: 20px; font-weight: 800; font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-top: 22px; }
.finder { margin-top: 32px; background: var(--white); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.finder .btn { min-height: 46px; font-size: 16px; font-weight: 700; }
.hero-card { flex: 1 1 340px; min-width: 0; max-width: 430px; background: var(--white); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-l); }
.hc-head { display: flex; align-items: center; gap: 14px; }
.hc-icon svg { display: block; }
.hc-title { font-family: var(--font-h); font-size: 22px; font-weight: 700; line-height: 1.15; }
.hc-chart { margin-top: 18px; }
.hc-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; justify-items: center; margin-bottom: 16px; }
.hero-card .tiles { margin: 16px 0; }
.landscape { display: block; }
.meta { font-size: 13px; font-weight: 600; color: var(--muted-2); }

/* ---------- form fields ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.fld input, .fld select, .fld textarea { min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--ground); color: var(--ink); font-weight: 500; font-size: 15px; width: 100%; }
.fld textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--accent); outline: 2px solid rgba(62,125,90,.2); }
.fld.full, .chk.full, .full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.form-grid.one { grid-template-columns: 1fr; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chk input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.pills { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; min-width: 0; }
.pills legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
.pills.warm .pill span { border-color: #E2CF9E; }
.pill input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; padding: 0; color: var(--ink-2); }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chk-pill { position: relative; }
.chk-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chk-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #E2CF9E; background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
.chk-pill input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.chk-pill input:focus-visible + span { outline: 3px solid var(--sun); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--r-s); padding: 12px 16px; margin: 12px 0; font-weight: 600; font-size: 15px; }
.alert.ok { background: #DDEFE4; color: #1F5C3B; }
.alert.bad { background: #FBE3D9; color: #8A3517; }

/* ---------- sections ---------- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.sec-head p { max-width: 400px; margin: 0; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.sector { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-l); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.sector:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.sector .count { position: absolute; top: 20px; inset-inline-end: 20px; min-width: 32px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.sector-name { font-family: var(--font-h); font-size: 22px; font-weight: 700; }
.sector-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--tint); font-size: 12px; font-weight: 600; }
.chips.big { margin-top: 16px; gap: 8px; }
.chips.big .chip { padding: 8px 14px; font-size: 14px; }
.chips.big .chip .ic { color: var(--accent); }
.side-doors { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.chip-link:hover { border-color: var(--ink); color: var(--ink); }
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.pill-link.on, .pill-link:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.more { margin-top: 32px; }

/* ---------- deal cards ---------- */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.deal { background: var(--white); border-radius: var(--r-l); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 16px; transition: box-shadow .15s; }
.deal:hover { box-shadow: var(--shadow); }
.deal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.deal-icon svg { display: block; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--ground); text-transform: uppercase; letter-spacing: .3px; }
body.ar .badge { text-transform: none; letter-spacing: 0; }
.badge.deal-partner { background: #EFE7F5; color: #4F3570; }
.badge.deal-franchise { background: var(--sun-soft); color: #7A5A10; }
.badge.deal-lease { background: #DCEBF2; color: var(--sea-d); }
.badge.offer { background: #FBE3D9; color: var(--terra-t); }
.badge.checked { background: #DDEFE4; color: #1F5C3B; text-transform: none; letter-spacing: 0; }
.badge.wanted { background: var(--terra); color: #fff; }
.deal h3 { margin-top: 4px; font-size: 21px; line-height: 1.2; }
.deal h3 a { color: var(--ink); text-decoration: none; }
.deal h3 a:hover { color: var(--accent); }
.spark { display: block; }
.spark-none { display: flex; align-items: center; gap: 8px; height: 50px; color: var(--muted-2); font-size: 13px; border-bottom: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--tint); border-radius: var(--r-s); padding: 10px 12px; min-width: 0; }
.tl { font-size: 12px; color: var(--muted-2); }
.tv { font-weight: 700; overflow-wrap: anywhere; }
.tv.warm { color: var(--terra-t); }
.tv bdi { white-space: nowrap; }
.hero-card .tv { font-size: 15px; }
.ask { color: var(--muted-2); font-weight: 600; }
.deal-btns { display: flex; gap: 10px; margin-top: auto; }
.deal-btns .btn { flex: 1; }
.bars { display: block; }
.bar-years { display: grid; text-align: center; font-size: 12px; color: var(--muted-2); }

/* ---------- how / board band / forms on home ---------- */
.how { background: var(--ink); color: var(--ground); }
.how-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.how-step { padding: 24px; border-radius: 20px; background: var(--dark-2); }
.how-step .ic { color: var(--sun); stroke-width: 1.8; }
.how-h { margin-top: 14px; font-family: var(--font-h); font-size: 20px; font-weight: 700; }
.how-step p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--dark-text); }
.board-band { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px 28px; }
.board-band .ic { color: var(--accent); }
.bb-text { flex: 1 1 360px; }
.bb-text p { margin: 0; }
.two-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.two-cards > * { flex: 1 1 380px; min-width: 0; }
.card-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; }
.card-form.warm { background: var(--sun-soft); border-color: transparent; }
.card-form.warm .fld input, .card-form.warm .fld select, .card-form.warm .fld textarea { background: var(--white); border-color: #E2CF9E; }
.card-form .h3 { margin-top: 14px; font-size: 28px; }
.card-form.side .h3 { margin-top: 0; font-size: 22px; }

/* ---------- page head / filters / list ---------- */
.page-head { background: var(--accent-soft); padding-block: 28px 32px; }
.crumbs { font-size: 14px; color: var(--muted); margin-block: 18px 14px; }
.crumbs a { color: var(--ink-2); }
.ph-row { display: flex; align-items: center; gap: 18px; }
.ph-row svg { flex: none; }
.ph-ic { width: 72px; height: 72px; border-radius: 20px; background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.filters { margin-top: 22px; background: var(--white); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.filter-btns { display: flex; gap: 8px; }
.filter-btns .btn { flex: 1; }
.count-line { font-weight: 700; color: var(--muted); }
.empty { text-align: center; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-xl); padding: 40px 24px; }
.empty p { max-width: 560px; margin: 12px auto; color: var(--muted); }
.nf-icon { margin-bottom: 16px; }

/* ---------- opportunity sheet ---------- */
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.sh-main { display: flex; gap: 18px; align-items: flex-start; min-width: 0; flex: 1 1 520px; }
.sh-icon svg { display: block; }
.sh-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.refcode { font-weight: 700; font-size: 14px; color: var(--muted-2); }
.sub { margin: 10px 0 0; color: var(--muted); font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sub .ic { color: var(--accent); }
.money { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; margin-bottom: 28px; }
.m { padding: 10px 14px; border-inline-start: 3px solid var(--accent-soft); }
.ml { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.mv { font-family: var(--font-h); font-size: 26px; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.mv.warm { color: var(--terra-t); }
.mv .ask { font-size: 18px; }
.ms { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.sheet-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-none { opacity: .9; }
.sblock { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; margin-top: 12px; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.kpi-grid .tv { font-size: 18px; }
.sheet-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.lock { background: var(--ink); color: var(--ground); border-radius: var(--r-xl); padding: 24px; }
.lock > .ic { color: var(--sun); }
.lock .h3 { margin-top: 10px; }
.lock ul { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.lock li { display: flex; gap: 8px; align-items: flex-start; color: var(--dark-text); font-size: 15px; }
.lock li .ic { color: var(--sun); margin-top: 3px; }
.lock p { color: var(--dark-text); font-size: 14px; }
.card-form.side { padding: 24px; scroll-margin-top: 100px; }
.disclaimer { font-size: 13px; color: var(--muted); background: var(--tint); border-radius: var(--r-m); padding: 14px 16px; line-height: 1.55; }
.similar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.sim { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; text-decoration: none; color: var(--ink); }
.sim:hover { box-shadow: var(--shadow); color: var(--ink); }
.sim svg { flex: none; }
.sim > span { display: flex; flex-direction: column; min-width: 0; }
.sim-t { font-weight: 700; }
.sim-m { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) {
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-side { position: static; }
}

/* ---------- form pages ---------- */
.form-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.fp-intro .h1 { margin-top: 16px; }
.fp-intro .lead { margin-top: 14px; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.ticks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.ticks .ic { color: var(--accent); }
@media (max-width: 900px) { .form-page { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- board ---------- */
.board-bar { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 20px; align-items: start; }
.bcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--ink); scroll-margin-top: 100px; }
.bcard.wanted { border-top-color: var(--terra); }
.btext { font-size: 16px; line-height: 1.6; margin: 0; }
.bint summary { list-style: none; width: 100%; }
.bint summary::-webkit-details-marker { display: none; }
.bint[open] summary { background: var(--accent); }

/* ---------- thanks / how / legal ---------- */
.thanks .ok-mark { width: 88px; height: 88px; border-radius: 50%; background: #DDEFE4; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.thanks .lead { margin: 16px auto; }
.two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; }
.two-cols .h2 { margin-bottom: 16px; }
.levels { list-style: none; padding: 0; margin: 16px 0 28px; display: grid; gap: 12px; }
.levels li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; }
.levels .ic { color: var(--accent); margin-top: 2px; }
.legal { max-width: 820px; }
.legal .h3 { margin-top: 28px; }

/* ---------- footer ---------- */
.foot { background: var(--accent-soft); margin-top: 40px; }
.foot-in { padding-block: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 40px; font-size: 14px; color: var(--ink-2); }
.foot-brand p { margin-top: 10px; max-width: 320px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot-links a:hover { text-decoration: underline; }
.foot-note, .foot-legal { grid-column: 1 / -1; margin: 0; }
.foot-legal a { color: var(--ink-2); }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .sec { padding-block: 48px; }
  .hero-in { padding-top: 36px; }
  .card-form { padding: 22px; }
  .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mv { font-size: 21px; }
  .money { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 6px; }
  .m { padding: 8px 10px; }
  .sh-main { flex-direction: column; }
  .deal-btns { flex-direction: column; }
}

/* ================= back office ================= */
body.adm { background: #F6F5F0; }
.adm-top .logo { font-size: 18px; }
.adm-nav { font-size: 14px; }
.adm-wrap { padding-block: 28px 60px; }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.adm-foot { padding-block: 20px; border-top: 1px solid var(--line); }
.adm-login { max-width: 420px; margin: 40px auto; }
.adm-login.wide { max-width: 640px; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.adm-filters input, .adm-filters select, .lead-f input, .lead-f select, .tbl.edit input, .tbl.edit select, .tbl td select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 14px; }
.adm-filters input { min-width: 260px; }
.adm-form fieldset { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; padding: 18px 20px 20px; margin: 0 0 16px; }
.adm-form legend { font-weight: 800; font-family: var(--font-h); padding: 0 6px; }
.adm-form .form-grid { margin-top: 6px; }
.adm-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; margin-top: 18px; }
.adm-photo { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.adm-photo img { width: 320px; max-width: 100%; border-radius: 12px; background: var(--tint); }
.adm-photo form { margin-bottom: 10px; }
.adm-tabs { margin: 16px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.stat:hover { border-color: var(--accent); color: var(--ink); }
.stat-v { font-family: var(--font-h); font-size: 34px; font-weight: 800; color: var(--accent); }
.stat-l { font-size: 14px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); margin: 10px 0 18px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th { text-align: start; background: var(--tint); font-weight: 700; padding: 10px 12px; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td.num { text-align: end; white-space: nowrap; }
.tbl.edit input { width: 100%; min-width: 90px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; background: var(--tint); border-radius: 6px; padding: 1px 6px; }
.st { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 7px; background: var(--tint); }
.st-published, .st-done, .st-converted, .st-approved, .st-active, .st-qualified { background: #DDEFE4; color: #1F5C3B; }
.st-offer, .st-booked, .st-contacted { background: var(--sun-soft); color: #7A5A10; }
.st-new, .st-requested, .st-intake, .st-ready { background: #DCEBF2; color: var(--sea-d); }
.st-sold, .st-withdrawn, .st-rejected, .st-spam, .st-refused, .st-cancelled, .st-noshow, .st-blocked { background: #FBE3D9; color: var(--terra-t); }
.lead-list { display: grid; gap: 12px; margin-top: 10px; }
.lrow { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.lead-h { font-size: 14px; margin-bottom: 8px; }
.lead-b { display: grid; grid-template-columns: 220px 260px minmax(0, 1fr); gap: 14px; font-size: 14px; }
.lead-text p { margin: 0 0 6px; }
.lead-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lead-f form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.lead-f input[name=note], .lead-f input[name=next] { min-width: 260px; }
@media (max-width: 900px) { .lead-b { grid-template-columns: 1fr; } }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 14px 0 24px; }
.tool .h3 { margin-top: 0; font-size: 20px; }
.pre { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; font-size: 12px; white-space: pre-wrap; overflow-x: auto; max-height: 420px; }
.code { width: 100%; font-family: Consolas, monospace; font-size: 13px; padding: 10px; border-radius: 10px; border: 1px solid var(--line-2); }
.checklist { list-style: none; padding: 0; display: grid; gap: 6px; }
.checklist .ok { color: #1F5C3B; }
.checklist .bad { color: var(--terra-t); font-weight: 700; }

@media print { .top, .foot, .sheet-side .card-form, .demo-ribbon { display: none; } }

/* ================= photos (15/10): cards, hero slides, mosaic ================= */
.ph { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.deal.has-photo { padding-top: 0; overflow: hidden; }
.deal-photo { position: relative; display: block; margin: 0 -22px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.deal:hover .deal-photo .ph, .mo:hover .ph, .hc-photo:hover .ph { transform: scale(1.04); }
.deal-photo .ph-icon { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; background: rgba(255,255,255,.92); border-radius: 14px; padding: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.deal-photo .ph-icon svg { display: block; }
.deal-photo .badges, .hc-photo .badges, .mo .badges { position: absolute; top: 12px; inset-inline-end: 12px; }
.deal-photo .badge, .hc-photo .badge, .mo .badge { box-shadow: 0 4px 12px rgba(0,0,0,.18); }

.hc-slides { position: relative; }
.hc-slide { display: none; }
.hc-slide.on { display: block; animation: hcfade .6s ease; }
@keyframes hcfade { from { opacity: 0; } to { opacity: 1; } }
.hc-photo { position: relative; display: block; margin: -24px -24px 16px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--tint); }
.hc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hc-dot { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: var(--line-2); cursor: pointer; transition: width .2s, background .2s; }
.hc-dot.on { width: 26px; background: var(--accent); }

.now .sec-head { margin-bottom: 24px; }
.mosaic { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; }
.mosaic.n3 { grid-template-columns: 2fr 1fr; }
.mosaic.n4 .mo:nth-child(4) { grid-column: span 2; }
.mo { position: relative; display: block; overflow: hidden; border-radius: 22px; background: var(--tint); color: #fff; text-decoration: none; }
.mo:hover { color: #fff; }
.mo:first-child { grid-row: span 2; }
.mo-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 16px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(to top, rgba(14,22,19,.88), rgba(14,22,19,.0)); }
.mo-meta { font-size: 12px; font-weight: 600; opacity: .85; }
.mo-title { font-family: var(--font-h); font-weight: 700; font-size: 17px; line-height: 1.25; }
.mo:first-child .mo-title { font-size: clamp(20px, 2.2vw, 28px); }
.mo-price { font-weight: 700; color: var(--sun); font-size: 15px; }
.sim-ph { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: block; }
@media (max-width: 760px) {
  .mosaic, .mosaic.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 170px; }
  .mo:first-child { grid-column: span 2; grid-row: auto; height: 240px; }
  .mosaic.n4 .mo:nth-child(4) { grid-column: auto; }
  .mo-title { font-size: 14px; }
}
.foot-sectors { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; border-top: 1px solid rgba(29,42,38,.1); padding-top: 14px; }
.foot-sectors a { color: var(--ink-2); text-decoration: none; }
.foot-sectors a:hover { text-decoration: underline; }
