/* =========================================================
   WORKER — Labor Law Services
   Design system: deep green + gold + cream (from the logo)
   ========================================================= */

:root {
  --green-950: #0a2016;
  --green-900: #0f2d1f;
  --green-800: #153d2a;
  --green-700: #1f6e3a;
  --green-600: #278048;
  --green-100: #e4efe6;
  --green-50: #f1f7f2;

  --gold-600: #b08826;
  --gold-500: #c49a2e;
  --gold-300: #e2c879;
  --gold-100: #f6edd2;

  --cream: #faf6ee;
  --cream-2: #f3ecdd;
  --paper: #ffffff;

  --ink: #14201a;
  --ink-2: #33433a;
  --muted: #66766d;
  --line: #e6dfcf;
  --line-2: #d9d1bd;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 45, 31, .06), 0 2px 8px rgba(15, 45, 31, .05);
  --shadow: 0 8px 30px rgba(15, 45, 31, .08), 0 2px 6px rgba(15, 45, 31, .05);
  --shadow-lg: 0 24px 60px rgba(10, 32, 22, .18);

  --container: 1200px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; color: var(--green-900); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-2); }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--green-900); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(31, 110, 58, .28); }
.btn-primary:hover { background: var(--green-800); }
.btn-gold { background: var(--gold-500); color: var(--green-950); box-shadow: 0 6px 18px rgba(196, 154, 46, .32); }
.btn-gold:hover { background: var(--gold-300); }
.btn-outline { border-color: var(--line-2); color: var(--green-900); background: transparent; }
.btn-outline:hover { border-color: var(--green-700); color: var(--green-700); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn-block { width: 100%; }
.btn-sm { padding: .6em 1.15em; font-size: .92rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--green-950); color: rgba(255, 255, 255, .8); font-size: .85rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a:hover { color: var(--gold-300); }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 45, 31, .05); }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 78px; }

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .98rem; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--green-700); background: var(--green-50); }
.nav a.active { color: var(--green-700); font-weight: 700; }
.nav a.active::after {
  content: ""; position: absolute; bottom: 2px; inset-inline: 40%; height: 2px; border-radius: 2px; background: var(--gold-500);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--green-900);
  transition: border-color .2s, color .2s;
}
.cart-btn:hover { border-color: var(--green-700); color: var(--green-700); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--gold-500); color: var(--green-950); font-size: .75rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[data-count="0"] { display: none; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper);
  place-items: center; color: var(--green-900);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-white { background: var(--paper); }
.section-dark { background: var(--green-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, .74); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--gold-600);
  margin-bottom: 14px; letter-spacing: 0;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow { color: var(--gold-300); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.1rem; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(196, 154, 46, .18), transparent 60%),
    radial-gradient(800px 600px at 0% 110%, rgba(39, 128, 72, .35), transparent 60%),
    var(--green-900);
  color: #fff; overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .accent { color: var(--gold-300); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: rgba(255,255,255,.86);
  margin-bottom: 26px;
}
.hero-badge b {
  background: var(--gold-500); color: var(--green-950); padding: 3px 12px; border-radius: 999px; font-size: .8rem;
}
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(255, 255, 255, .82); }
.hero-trust svg { width: 22px; height: 22px; color: var(--gold-300); flex: none; }

/* Hero wizard card */
.wizard {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 30px; position: relative;
}
.wizard::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, var(--gold-300), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.wizard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.wizard-head h3 { margin: 0; font-size: 1.3rem; }
.wizard-steps { display: flex; gap: 6px; }
.wizard-steps span { width: 26px; height: 5px; border-radius: 5px; background: var(--line); transition: background .3s; }
.wizard-steps span.on { background: var(--green-700); }
.wizard-sub { font-size: .95rem; color: var(--muted); margin-bottom: 20px; }
.wizard-panel { display: none; animation: fadeUp .4s var(--ease); }
.wizard-panel.active { display: block; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; text-align: start; width: 100%;
  padding: 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--cream);
  color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.45;
  transition: border-color .2s, background .2s, transform .2s;
}
.choice:hover { border-color: var(--green-600); background: var(--green-50); transform: translateY(-1px); }
.choice .ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--paper); color: var(--green-700); border: 1px solid var(--line);
}
.choice .ico svg { width: 20px; height: 20px; }
.choice-wide { grid-column: 1 / -1; }
.wizard-back {
  background: none; border: 0; color: var(--muted); font-size: .9rem; padding: 0; margin-top: 14px; display: inline-flex; gap: 6px; align-items: center;
}
.wizard-back:hover { color: var(--green-700); }
.wizard-result { text-align: start; }
.wizard-result .tag { display: inline-block; background: var(--green-50); color: var(--green-700); font-weight: 600; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.wizard-result h4 { font-size: 1.3rem; color: var(--green-900); margin-bottom: 6px; }
.wizard-result p { font-size: .98rem; }
.wizard-result .price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.wizard-result .price-line strong { font-size: 1.8rem; color: var(--green-900); }
.wizard-result .actions { display: grid; gap: 10px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(196, 154, 46, .16), transparent 60%),
    var(--green-900);
  color: #fff; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3em; }
.page-hero p { color: rgba(255, 255, 255, .76); font-size: 1.15rem; max-width: 680px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-300); }
.page-hero .mark {
  position: absolute; inset-inline-end: -40px; top: 50%; transform: translateY(-50%); width: 360px; opacity: .06; pointer-events: none;
}

/* ---------- Stats ---------- */
.stats-band { margin-top: -64px; position: relative; z-index: 2; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stat { padding: 32px 26px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line); }
.stat strong { display: block; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--green-700); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat strong .plus { color: var(--gold-500); }
.stat span { color: var(--muted); font-size: .98rem; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.icon-box {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box.gold { background: var(--gold-100); color: var(--gold-600); border-color: #eedfb3; }

/* Service cards */
.service-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.service-card .top { padding: 30px 30px 0; }
.service-card .body { padding: 0 30px 24px; flex: 1; }
.service-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.service-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--ink-2); line-height: 1.6; }
.service-card li svg { width: 18px; height: 18px; color: var(--green-600); flex: none; margin-top: 4px; }
.service-card .foot {
  border-top: 1px solid var(--line); padding: 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream);
}
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 1.75rem; color: var(--green-900); font-weight: 700; line-height: 1; }
.price small { color: var(--muted); font-size: .9rem; }
.price .quote { font-size: 1.05rem; font-weight: 700; color: var(--green-900); white-space: nowrap; }
.service-card.featured { border-color: var(--green-700); box-shadow: 0 0 0 1px var(--green-700), var(--shadow); }
.ribbon {
  display: inline-block; background: var(--gold-500); color: var(--green-950); font-size: .78rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; margin-inline-start: 8px; vertical-align: middle;
}

/* Why us */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why-visual {
  position: relative; border-radius: var(--radius-lg); background: var(--green-900); padding: 48px; overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.why-visual .big-mark { position: absolute; top: 40px; inset-inline-end: 30px; width: 70%; opacity: .12; }
.why-visual blockquote { margin: 0; position: relative; color: #fff; font-size: 1.35rem; font-weight: 500; line-height: 1.7; }
.why-visual blockquote::before {
  content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--gold-500); margin-bottom: 14px; font-family: Georgia, serif;
}
.why-visual cite { display: block; margin-top: 18px; color: var(--gold-300); font-style: normal; font-size: .95rem; }
.why-list { display: grid; gap: 14px; }
.why-item { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.why-item .icon-box { margin: 0; flex: none; }
.why-item h3 { margin-bottom: 4px; font-size: 1.12rem; }
.why-item p { margin: 0; font-size: .97rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
  background: var(--green-800); color: var(--gold-300); border: 1px solid rgba(226, 200, 121, .35); margin-bottom: 20px; position: relative; z-index: 1;
}
.steps::before {
  content: ""; position: absolute; top: 34px; inset-inline: 26px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(226,200,121,.4) 0 6px, transparent 6px 12px);
}
.step h3 { font-size: 1.12rem; }
.step p { font-size: .96rem; margin: 0; }

/* Companies teaser */
.split-cta {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--gold-100), var(--cream-2)); border: 1px solid #eadfbf; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px);
}
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink-2); line-height: 1.6; }
.check-list li svg { width: 20px; height: 20px; color: var(--green-700); flex: none; margin-top: 3px; }
.split-cta .mini-plans { display: grid; gap: 12px; }
.mini-plan { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini-plan b { color: var(--green-900); font-size: 1.05rem; }
.mini-plan span { color: var(--muted); font-size: .9rem; display: block; }
.mini-plan .p { text-align: end; color: var(--green-700); font-weight: 700; white-space: nowrap; }

/* Calculator teaser */
.calc-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc-mock { background: var(--green-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 30px; }
.calc-mock .row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.calc-mock .row b { color: #fff; font-weight: 600; }
.calc-mock .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; }
.calc-mock .total span { color: rgba(255,255,255,.75); }
.calc-mock .total b { font-size: 2rem; color: var(--gold-300); }

/* Team */
.team-card { text-align: center; padding: 34px 24px 28px; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--green-700), var(--green-900)); color: var(--gold-300); font-size: 2rem; font-weight: 700;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line);
  position: relative; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.team-card .role { color: var(--gold-600); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.team-card .meta { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; display: grid; gap: 4px; }
.team-card .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip { display: inline-block; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-weight: 500; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 1.06rem; color: var(--green-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--green-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6e3a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 22px; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 10% 100%, rgba(196,154,46,.22), transparent 60%),
    var(--green-900);
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; overflow: hidden; position: relative;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; font-size: 1.1rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .7); padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: rgba(255, 255, 255, .62); font-size: .96rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .96rem; }
.footer-links a:hover { color: var(--gold-300); }
.footer-contact a { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-contact a:hover { color: var(--gold-300); }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-300); flex: none; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14);
  transition: background .2s, border-color .2s, color .2s;
}
.socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .88rem;
}
.footer-bottom a:hover { color: var(--gold-300); }
.verify-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); }
.verify-badge svg { width: 16px; height: 16px; color: var(--gold-300); }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { font-size: .75rem; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .4); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .tip {
  position: absolute; inset-inline-start: 70px; background: var(--paper); color: var(--ink); white-space: nowrap; padding: 8px 14px; border-radius: 10px;
  box-shadow: var(--shadow); font-size: .88rem; font-weight: 600; opacity: 0; transform: translateX(8px); pointer-events: none; transition: .25s var(--ease);
}
.wa-float:hover .tip { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 140%); z-index: 300;
  background: var(--green-900); color: #fff; padding: 14px 18px 14px 14px; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; transition: transform .4s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast .ok { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-500); color: var(--green-950); display: grid; place-items: center; flex: none; }
.toast .ok svg { width: 18px; height: 18px; }
.toast a { color: var(--gold-300); font-weight: 600; white-space: nowrap; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--green-900); }
.field label .req { color: #b4442f; }
.field .hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--cream);
  transition: border-color .2s, background .2s, box-shadow .2s; font-size: 1rem;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-700); background: var(--paper); box-shadow: 0 0 0 4px rgba(31, 110, 58, .12); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.select {
  appearance: none; -webkit-appearance: none; padding-inline-start: 40px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366766d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 18px;
}
.input[dir="ltr"] { text-align: right; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #c4553d; }
.field .err { color: #b4442f; font-size: .85rem; display: none; }
.field.invalid .err { display: block; }

.radio-card {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px;
  cursor: pointer; transition: border-color .2s, background .2s; background: var(--paper); margin-bottom: 10px;
}
.radio-card:hover { border-color: var(--line-2); }
.radio-card input { accent-color: var(--green-700); width: 19px; height: 19px; flex: none; }
.radio-card.checked { border-color: var(--green-700); background: var(--green-50); }
.radio-card.disabled { opacity: .55; cursor: not-allowed; }
.radio-card .t { font-weight: 600; color: var(--green-900); }
.radio-card .d { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.radio-card .soon { margin-inline-start: auto; font-size: .75rem; font-weight: 700; color: var(--gold-600); background: var(--gold-100); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Services page ---------- */
.service-detail {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px);
  scroll-margin-top: 100px;
}
.service-detail + .service-detail { margin-top: 28px; }
.service-detail h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-detail .inc h4 { font-size: 1rem; margin: 22px 0 12px; }
.service-detail .inc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.service-detail .inc li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .97rem; line-height: 1.6; }
.service-detail .inc li svg { width: 18px; height: 18px; color: var(--green-600); flex: none; margin-top: 4px; }
.buy-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.buy-box .price strong { font-size: 2.4rem; }
.buy-box .facts { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; font-size: .93rem; color: var(--ink-2); }
.buy-box .facts li { display: flex; gap: 10px; align-items: center; }
.buy-box .facts svg { width: 18px; height: 18px; color: var(--gold-600); flex: none; }
.buy-box .btn + .btn { margin-top: 10px; }

.tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tabs-nav a { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: .95rem; background: var(--paper); }
.tabs-nav a:hover { border-color: var(--green-700); color: var(--green-700); }

/* ---------- Pricing (companies) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: .95rem; margin-bottom: 22px; min-height: 3.4em; }
.plan .price { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan .price strong { font-size: 2.6rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--ink-2); line-height: 1.6; }
.plan li svg { width: 19px; height: 19px; color: var(--green-600); flex: none; margin-top: 3px; }
.plan.featured { background: var(--green-900); border-color: var(--green-900); color: #fff; transform: translateY(-12px); box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .price strong { color: #fff; }
.plan.featured .for, .plan.featured .price small { color: rgba(255,255,255,.65); }
.plan.featured .price { border-color: rgba(255,255,255,.12); }
.plan.featured li { color: rgba(255,255,255,.85); }
.plan.featured li svg { color: var(--gold-300); }
.plan .badge-top {
  position: absolute; top: -14px; inset-inline-start: 30px; background: var(--gold-500); color: var(--green-950);
  font-weight: 700; font-size: .82rem; padding: 4px 14px; border-radius: 999px;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.value-card h3 { display: flex; align-items: center; gap: 12px; }
.lead { font-size: 1.15rem; }

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.calc-result {
  background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); position: sticky; top: 100px;
}
.calc-result h3 { color: #fff; }
.calc-result .big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; color: var(--gold-300); line-height: 1.2; font-variant-numeric: tabular-nums; }
.calc-result .big small { font-size: 1.1rem; color: rgba(255,255,255,.7); font-weight: 500; }
.calc-result .breakdown { margin: 24px 0; display: grid; gap: 0; }
.calc-result .breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.14); color: rgba(255,255,255,.72); font-size: .96rem; }
.calc-result .breakdown b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-result .note { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0 0 20px; }
.calc-result .empty { color: rgba(255,255,255,.7); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 8px; text-align: center; cursor: pointer; font-weight: 600; font-size: .93rem;
  background: var(--cream); color: var(--ink-2); transition: .2s; line-height: 1.4;
}
.seg input:checked + label { border-color: var(--green-700); background: var(--green-50); color: var(--green-700); }
.seg input:focus-visible + label { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Knowledge ---------- */
.article-card { display: flex; flex-direction: column; cursor: pointer; text-align: start; width: 100%; font: inherit; color: inherit; }
.article-card .cat { font-size: .82rem; font-weight: 700; color: var(--gold-600); margin-bottom: 10px; }
.article-card h3 { font-size: 1.18rem; }
.article-card p { font-size: .96rem; flex: 1; }
.article-card .more { color: var(--green-700); font-weight: 600; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.article-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.article-card:hover .more svg { transform: translateX(-4px); }

.modal {
  position: fixed; inset: 0; z-index: 400; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px;
  background: rgba(10, 32, 22, .55); backdrop-filter: blur(4px); overflow-y: auto;
}
.modal.open { display: flex; animation: fade .25s; }
.modal-box {
  background: var(--paper); border-radius: var(--radius-lg); max-width: 760px; width: 100%; padding: clamp(26px, 5vw, 52px); position: relative;
  animation: fadeUp .35s var(--ease);
}
.modal-close {
  position: absolute; top: 18px; inset-inline-end: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); display: grid; place-items: center; color: var(--ink);
}
.modal-close svg { width: 18px; height: 18px; }
.modal-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-inline-end: 40px; }
.modal-box h3 { margin-top: 1.4em; font-size: 1.15rem; }
.modal-box ul { padding-inline-start: 1.2em; color: var(--ink-2); }
.modal-box li { margin-bottom: .4em; }
.disclaimer { font-size: .88rem; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-tile { display: flex; gap: 16px; align-items: center; padding: 22px; margin-bottom: 14px; }
.contact-tile .icon-box { margin: 0; flex: none; }
.contact-tile b { display: block; color: var(--green-900); }
.contact-tile span { color: var(--muted); font-size: .95rem; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; }
.cart-item { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item .icon-box { margin: 0; flex: none; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info b { display: block; color: var(--green-900); font-size: 1.05rem; }
.cart-item .info span { color: var(--muted); font-size: .9rem; }
.cart-item .amt { font-weight: 700; color: var(--green-900); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.1rem; color: var(--green-900); }
.qty button:hover { background: var(--green-50); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; }
.remove-btn { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 8px; }
.remove-btn:hover { color: #b4442f; background: #fbeae6; }
.remove-btn svg { width: 19px; height: 19px; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 100px; }
.summary .line { display: flex; justify-content: space-between; padding: 10px 0; color: var(--ink-2); }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; font-size: 1.2rem; font-weight: 700; color: var(--green-900); }
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state .icon-box { margin: 0 auto 20px; width: 76px; height: 76px; border-radius: 50%; }
.empty-state .icon-box svg { width: 34px; height: 34px; }
.checkout-steps { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.checkout-steps span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.checkout-steps span i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .82rem; background: var(--line); color: var(--ink-2); }
.checkout-steps span.on { color: var(--green-900); }
.checkout-steps span.on i { background: var(--green-700); color: #fff; }
.checkout-steps .sep { width: 28px; height: 1px; background: var(--line-2); align-self: center; }
.success { text-align: center; padding: 30px 10px; }
.success .icon-box { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px; background: var(--green-700); color: #fff; border: 0; }
.success .icon-box svg { width: 40px; height: 40px; }
.order-no { display: inline-block; font-weight: 700; color: var(--green-900); background: var(--gold-100); padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .04em; }

/* Legal pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.3em; color: var(--ink-2); }
.prose li { margin-bottom: .4em; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 8px 10px; font-size: .94rem; }
}

@media (max-width: 960px) {
  /* backdrop-filter would trap the fixed menu inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: 150; background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 96px 24px 32px; gap: 4px; margin: 0; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.15rem; padding: 14px 18px; border-radius: 12px; }
  .nav a.active { background: var(--green-50); }
  .nav a.active::after { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-toggle { display: grid; position: relative; z-index: 160; }
  .brand { position: relative; z-index: 160; }
  .header-actions .btn-book { display: none; }

  .hero .container, .why, .calc-teaser, .split-cta, .about-grid, .calc-layout, .contact-layout, .cart-layout, .service-detail { grid-template-columns: 1fr; }
  .hero .container { gap: 44px; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .why-visual { min-height: 320px; }
  .buy-box, .calc-result, .summary { position: static; }
  .topbar .hide-sm { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-4, .steps, .check-list, .service-detail .inc ul, .field-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .team-card { padding: 24px 14px; }
  .avatar { width: 84px; height: 84px; font-size: 1.5rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .wizard { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-header .container { min-height: 68px; gap: 12px; }
  .brand img { height: 38px; }
  .hero-actions .btn { flex: 1; }
  .cta-band .actions { width: 100%; }
  .cta-band .actions .btn { flex: 1; }
  .cart-item { flex-wrap: wrap; }
  .cart-item .info { flex-basis: calc(100% - 80px); }
  .topbar-links { gap: 14px; }
  .stat { padding: 24px 12px; }
  .seg { grid-template-columns: 1fr; }
}

/* =========================================================
   Request flows: booking, written, evaluation, corporate
   ========================================================= */
.demo-banner {
  display: flex; gap: 10px; align-items: center; background: var(--gold-100); border: 1px solid #eadfb3; color: #6b5414;
  padding: 10px 16px; border-radius: 12px; font-size: .9rem; margin-bottom: 22px;
}
.demo-banner svg { width: 18px; height: 18px; flex: none; }

.flow { max-width: 980px; margin-inline: auto; }
.flow-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.flow-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 32px); margin-bottom: 18px; }
.flow-step.locked { opacity: .5; pointer-events: none; }
.flow-step h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.flow-step h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.flow-step.locked h2 .n { background: var(--line-2); }
.flow-step .sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.type-btn {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--cream); font-weight: 600; font-size: .95rem; color: var(--ink); text-align: start; line-height: 1.4; transition: .2s;
}
.type-btn svg { width: 20px; height: 20px; color: var(--green-700); flex: none; }
.type-btn:hover { border-color: var(--green-600); }
.type-btn[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); box-shadow: 0 0 0 1px var(--green-700); }

.lawyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lawyer-btn {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--paper); text-align: start; transition: .2s; position: relative;
}
.lawyer-btn:hover { border-color: var(--green-600); }
.lawyer-btn[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 1px var(--green-700); }
.lawyer-btn .avatar { width: 54px; height: 54px; margin: 0; font-size: 1.1rem; box-shadow: none; flex: none; }
.lawyer-btn b { display: block; color: var(--green-900); }
.lawyer-btn span { font-size: .86rem; color: var(--muted); }
.lawyer-btn .rec { display: inline-block; margin-top: 4px; font-size: .75rem; font-weight: 700; color: var(--gold-600); background: var(--gold-100); padding: 2px 9px; border-radius: 999px; }

.sessions-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.sessions-toggle button {
  padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); font-weight: 600; color: var(--ink-2); line-height: 1.4;
}
.sessions-toggle button small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.sessions-toggle button[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scroll-snap-type: x proximity; }
.date-btn {
  flex: none; width: 76px; padding: 10px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  display: grid; gap: 2px; text-align: center; scroll-snap-align: start; transition: .2s;
}
.date-btn .wd { font-size: .78rem; color: var(--muted); }
.date-btn .dn { font-size: 1.35rem; font-weight: 700; color: var(--green-900); line-height: 1.2; }
.date-btn .mo { font-size: .75rem; color: var(--muted); }
.date-btn .cnt { font-size: .7rem; color: var(--green-700); font-weight: 600; }
.date-btn:hover { border-color: var(--green-600); }
.date-btn[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); }
.date-btn[aria-pressed="true"] * { color: #fff; }
.date-btn:disabled { opacity: .45; cursor: not-allowed; background: var(--cream); }
.date-btn:disabled .cnt { color: var(--muted); }

.slot-group h4 { font-size: .92rem; color: var(--muted); font-weight: 600; margin: 4px 0 10px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 16px; }
.slot {
  padding: 11px 6px; border-radius: 12px; border: 1.5px solid var(--green-100); background: var(--green-50); color: var(--green-800);
  font-weight: 600; font-size: .95rem; transition: .15s; font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--green-700); }
.slot.sel { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.slot:disabled { background: var(--cream); border-color: var(--line); color: #a9b3ad; text-decoration: line-through; cursor: not-allowed; }
.slot-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.slot-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 6px; }
.empty-slots { text-align: center; padding: 26px; color: var(--muted); background: var(--cream); border-radius: 12px; }

.flow-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; }
.flow-summary h3 { font-size: 1.1rem; margin-bottom: 12px; }
.flow-summary dl { margin: 0; display: grid; gap: 10px; }
.flow-summary dt { font-size: .82rem; color: var(--muted); }
.flow-summary dd { margin: 0; font-weight: 600; color: var(--green-900); }
.flow-summary .total { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--green-900); font-size: 1.15rem; }

.note-box {
  display: flex; gap: 14px; align-items: flex-start; background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; color: var(--green-900);
}
.note-box svg { width: 22px; height: 22px; flex: none; color: var(--green-700); margin-top: 2px; }
.note-box b { display: block; margin-bottom: 2px; }
.note-box p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.note-box.gold { background: var(--gold-100); border-color: #eadfb3; }
.note-box.gold svg { color: var(--gold-600); }

.dropzone {
  display: grid; justify-items: center; gap: 4px; text-align: center; padding: 26px 16px; border: 2px dashed var(--line-2);
  border-radius: 14px; background: var(--cream); cursor: pointer; transition: .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--green-700); background: var(--green-50); }
.dropzone .dz-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--green-700); border: 1px solid var(--line); margin-bottom: 6px; }
.dropzone .dz-ico svg { width: 22px; height: 22px; }
.dropzone b { color: var(--green-900); }
.dropzone span { font-size: .85rem; color: var(--muted); }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.file-list li > span { width: 18px; color: var(--green-700); display: inline-flex; flex: none; }
.file-list li b { flex: 1; min-width: 0; font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li small { color: var(--muted); flex: none; }
.file-list li button { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.file-list li button:hover { background: #fbeae6; color: #b4442f; }
.file-list li button svg { width: 15px; height: 15px; }
.files-field.invalid .file-err { display: block; }
.file-err { color: #b4442f; font-size: .85rem; display: none; margin-top: 6px; }

.pay-block { margin-top: 26px; }
.pay-block h3 { font-size: 1.1rem; margin-bottom: 12px; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; font-size: 1.1rem; color: var(--green-900); }
.pay-total b { font-size: 1.4rem; }
.form-error { background: #fbeae6; color: #8f3322; border-radius: 12px; padding: 12px 16px; margin-top: 14px; font-size: .95rem; }

/* =========================================================
   Admin dashboard
   ========================================================= */
.admin-body { background: #f4f1e9; }
.admin-top { background: var(--green-950); color: #fff; }
.admin-top .container { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.admin-top img { height: 36px; }
.admin-top .ttl { font-weight: 600; color: rgba(255,255,255,.8); }
.admin-top .sp { margin-inline-start: auto; }
.admin-tabs { display: flex; gap: 6px; margin: 26px 0 20px; flex-wrap: wrap; }
.admin-tabs button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-weight: 600; color: var(--ink-2); }
.admin-tabs button[aria-selected="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.admin-tabs .badge { background: var(--gold-500); color: var(--green-950); border-radius: 999px; padding: 0 8px; font-size: .78rem; margin-inline-start: 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.kpi span { font-size: .85rem; color: var(--muted); }
.kpi b { display: block; font-size: 1.7rem; color: var(--green-900); font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .select, .filters .input { width: auto; min-width: 170px; padding-block: 10px; background-color: var(--paper); }
.req-list { display: grid; gap: 8px; }
.req-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 120px; gap: 14px; align-items: center; text-align: start; width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; transition: .15s; color: var(--ink);
}
.req-row:hover { border-color: var(--green-600); }
.req-row b { color: var(--green-900); display: block; }
.req-row small { color: var(--muted); }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-align: center; }
.status.new { background: var(--gold-100); color: #7a5b10; }
.status.review { background: #e5eefb; color: #2b5797; }
.status.contacted { background: #efe7fa; color: #5b3b8f; }
.status.done { background: var(--green-50); color: var(--green-700); }
.status.cancelled { background: #f3eeee; color: #8a5a50; }
.drawer { position: fixed; inset: 0; z-index: 400; display: none; background: rgba(10,32,22,.45); }
.drawer.open { display: block; }
.drawer-box {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(560px, 100%); background: var(--paper); overflow-y: auto;
  padding: 28px; box-shadow: var(--shadow-lg); animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-box h2 { font-size: 1.35rem; padding-inline-end: 44px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; margin: 18px 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.admin-files a { display: flex; gap: 8px; align-items: center; color: var(--green-700); font-weight: 600; margin-bottom: 6px; }
.admin-files a svg { width: 16px; height: 16px; }
.lawyer-admin { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.lawyer-admin .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.lawyer-admin .head .avatar { width: 48px; height: 48px; margin: 0; font-size: 1rem; box-shadow: none; }
.lawyer-admin .head b { color: var(--green-900); font-size: 1.1rem; }
.chk-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); font-size: .88rem; cursor: pointer; }
.chk input { accent-color: var(--green-700); }
.chk:has(input:checked) { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); font-weight: 600; }
.week-grid { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.day-row:last-child { border: 0; }
.ranges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.range { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px; }
.range input { border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 6px; background: var(--paper); font-variant-numeric: tabular-nums; }
.range button, .icon-btn { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; }
.range button:hover, .icon-btn:hover { background: #fbeae6; color: #b4442f; }
.range button svg, .icon-btn svg { width: 15px; height: 15px; }
.link-btn { border: 0; background: none; color: var(--green-700); font-weight: 600; font-size: .9rem; padding: 4px 6px; }
.link-btn:hover { text-decoration: underline; }
.off-days { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.off-days .chip { display: inline-flex; gap: 4px; align-items: center; }
.off-days .chip button { border: 0; background: none; color: inherit; padding: 0; width: 16px; height: 16px; display: inline-grid; place-items: center; }
.off-days .chip button svg { width: 12px; height: 12px; }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.login-card { max-width: 420px; margin: 80px auto; }

@media (max-width: 960px) {
  .flow-layout { grid-template-columns: 1fr; }
  .flow-summary { position: static; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .req-row { grid-template-columns: 1fr auto; }
  .req-row .hide-m { display: none; }
}
@media (max-width: 640px) {
  .day-row { grid-template-columns: 1fr; gap: 6px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
/* grid children that hold scrolling rows must be allowed to shrink */
.flow-layout > *, .flow-step { min-width: 0; }
