/* Tsavone Consulting – Training site
   Colours: navy #193591, orange #F17B19 (dark orange #B04E00 for text), light blue #EFFCFF */

:root {
  --navy: #193591;
  --navy-deep: #0f2166;
  --navy-ink: #0c1a4f;
  --orange: #F17B19;
  --orange-dark: #B04E00;
  --sky: #EFFCFF;
  --sky-2: #dff4fb;
  --ink: #15204a;
  --text: #2c3557;
  --muted: #5a6385;
  --line: #dbe3f0;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 33, 102, .06), 0 8px 24px rgba(15, 33, 102, .08);
  --shadow-lg: 0 2px 4px rgba(15, 33, 102, .06), 0 20px 48px rgba(15, 33, 102, .16);
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--orange); color: var(--navy-ink); box-shadow: 0 6px 18px rgba(241, 123, 25, .35); }
.btn-accent:hover { background: #ff8d2e; color: var(--navy-ink); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: #c9cfdc; color: #4b5374; box-shadow: none; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 600; color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  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, 33, 102, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-tag {
  font-family: var(--head); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--orange-dark); border-left: 2px solid var(--line); padding-left: 12px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--ink);
}
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--orange-dark); background: var(--sky); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--sky); border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 22px; height: 2.5px; margin-left: -11px; background: var(--navy); border-radius: 2px; content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15, 33, 102, .12);
    display: none; padding: 8px 20px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 14px 12px; font-size: 1rem; }
  .site-nav .btn { margin-top: 10px; width: 100%; padding: 14px; }
  .brand img { height: 34px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(86, 186, 239, .35), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(241, 123, 25, .28), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(29, 183, 145, .22), transparent 60%),
    linear-gradient(135deg, #0f2166 0%, #193591 55%, #2339b7 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-swirl {
  position: absolute; right: -6%; top: 50%; width: min(620px, 58vw); height: auto; transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 30px 60px rgba(5, 12, 50, .45)); opacity: .95;
  animation: swirl-in 1.1s cubic-bezier(.2, .8, .2, 1) both, float 9s ease-in-out 1.1s infinite;
}
@keyframes swirl-in { from { opacity: 0; transform: translateY(-46%) rotate(-30deg) scale(.9); } }
@keyframes float { 50% { transform: translateY(-52%) rotate(-4deg); } }
.hero-inner { position: relative; padding: clamp(64px, 11vw, 132px) 20px clamp(56px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 13ch; text-wrap: balance; }
.hero-lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 34ch; color: #e3e9ff; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.eyebrow {
  font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: .9em;
}
.eyebrow-light { color: #ffb576; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 14px; justify-content: start; margin: 0;
}
.hero-stats div {
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px;
  padding: 14px 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-stats dt { font-size: .82rem; color: #cfd9ff; order: 2; }
.hero-stats dd { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.hero-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hero-stats .stat-text { font-size: 1.25rem; padding-top: .2em; }
@media (max-width: 760px) {
  .hero-swirl { width: 92vw; right: -38%; top: 22%; opacity: .32; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats dd { font-size: 1.35rem; }
  .hero-stats .stat-text { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-lede { font-size: 1.15rem; color: var(--muted); }
.catalogue-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-dark); }
.catalogue-link a::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Courses */
.section-courses { background: linear-gradient(180deg, var(--sky) 0%, #fff 380px); }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: grid; gap: 18px; margin-bottom: 22px;
}
.search-box { position: relative; }
.search-icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-box input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px 14px 48px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--sky); color: var(--ink); transition: border-color .15s, background .15s;
}
.search-box input:focus { outline: none; border-color: var(--navy); background: #fff; }
.filter-group { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; }
.filter-label { margin: 8px 0 0; font-family: var(--head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  --c: var(--navy);
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .93rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--c); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.chip .count { font-size: .8rem; font-weight: 700; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--chip-ink, #fff); }
.chip[aria-pressed="true"] .count { color: inherit; opacity: .85; }
.chip[aria-pressed="true"] .dot { background: currentColor; }
@media (max-width: 640px) {
  .filter-group { grid-template-columns: 1fr; gap: 6px; }
  .filter-label { margin: 0; }
  .chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .chips.scroll-x::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
}

.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 18px; }
.results-bar p { margin: 0; font-weight: 600; color: var(--ink); }
.data-note { font-size: .9rem; font-weight: 600; color: var(--orange-dark) !important; background: #fff3e6; padding: 3px 12px; border-radius: 999px; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.course-card {
  --c: var(--navy);
  position: relative; display: flex; flex-direction: column; text-align: left; width: 100%;
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.card-band { height: 8px; background: var(--c); }
.card-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.code-chip {
  font-family: var(--head); font-weight: 800; font-size: .78rem; letter-spacing: .04em;
  background: var(--c); color: var(--chip-ink, #fff); padding: 4px 10px; border-radius: 8px;
}
.track-name { font-size: .86rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.badge { font-family: var(--head); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.badge-new { background: var(--orange); color: var(--navy-ink); }
.badge-full { background: #2c3557; color: #fff; }
.course-card h3 { font-size: 1.08rem; margin-bottom: 14px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.card-meta li { font-size: .84rem; font-weight: 600; background: var(--sky); color: var(--ink); padding: 3px 10px; border-radius: 8px; }
.card-meta li.days { background: color-mix(in srgb, var(--c) 12%, #fff); }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; }
.card-fee { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 1.02rem; line-height: 1.2; }
.card-fee small { display: block; font-family: var(--body); font-weight: 600; font-size: .82rem; color: var(--muted); }
.card-more { font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--orange-dark); white-space: nowrap; }
.course-card.is-full { opacity: .82; }
.course-card.is-full .card-band { background: repeating-linear-gradient(45deg, var(--c) 0 10px, color-mix(in srgb, var(--c) 55%, #fff) 10px 20px); }
.card-skeleton { height: 250px; border-radius: var(--radius); background: linear-gradient(90deg, #eef3fa 0%, #f8fbff 50%, #eef3fa 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 40px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Dialog */
.course-dialog {
  --c: var(--navy);
  width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(5, 12, 50, .35); color: var(--text); overflow: auto; overscroll-behavior: contain;
}
.course-dialog::backdrop { background: rgba(9, 18, 60, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.course-dialog[open] { animation: dlg-in .22s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg-band { height: 10px; background: var(--c); position: sticky; top: 0; z-index: 1; }
.dlg-close-form { position: sticky; top: 10px; z-index: 2; height: 0; display: flex; justify-content: flex-end; padding-right: 12px; }
.dlg-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.dlg-close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.dlg-body { padding: 26px clamp(20px, 4vw, 40px) 32px; }
.dlg-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 52px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.dlg-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 6px; }
.dlg-body h3 { font-size: 1rem; margin: 22px 0 8px; color: var(--c); }
.dlg-status { display: inline-block; margin: 0 0 6px; }
.dlg-facts { list-style: none; padding: 0; margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.dlg-facts li { background: var(--sky); border-radius: 12px; padding: 8px 14px; display: flex; flex-direction: column; }
.fact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.dlg-facts li span:last-child { font-weight: 700; color: var(--ink); }
.topic-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.topic-list li { position: relative; padding-left: 26px; }
.topic-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }
.dlg-fee { margin-top: 26px; padding: 20px; border-radius: 16px; background: linear-gradient(135deg, var(--sky), #fff); border: 1px solid var(--line); display: grid; gap: 16px; }
.dlg-fee .fact-label { margin: 0 0 4px; }
.fee-big { font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--ink); margin: 0 0 6px; }
.fee-alt { font-size: 1rem; color: var(--muted); font-weight: 700; }
.fee-note { font-size: .9rem; color: var(--muted); margin: 0; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) { .dlg-fee { grid-template-columns: 1fr auto; align-items: center; } .dlg-actions { flex-direction: column; } }
body.dialog-open { overflow: hidden; }

/* Deliver */
.section-deliver { background: #fff; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 40px; }
.format-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.format-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.format-icon { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.format-card p { font-size: .98rem; }
.format-size { margin: auto 0 0; font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--c); }
.deliver-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; }
@media (max-width: 860px) { .deliver-split { grid-template-columns: 1fr; } }
.receive-card {
  background: linear-gradient(160deg, var(--navy) 0%, #2339b7 100%); color: #e3e9ff; border-radius: var(--radius); padding: 30px;
  position: relative; overflow: hidden;
}
.receive-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -70px; background: radial-gradient(circle, rgba(241, 123, 25, .5), transparent 70%); }
.receive-card h3 { color: #fff; font-size: 1.3rem; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.tick-list li { padding-left: 36px; position: relative; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange);
}
.tick-list li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px; border: solid var(--navy-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tick-list strong { color: #fff; }
.steps-card { background: var(--sky); border-radius: var(--radius); padding: 30px; }
.steps-card h3 { font-size: 1.3rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; counter-reset: s; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: flex; gap: 14px; }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: #fff; background: var(--navy); }
.steps li:nth-child(2) .step-n { background: var(--orange-dark); }
.steps li:nth-child(3) .step-n { background: #2B7A3A; }
.steps li:nth-child(4) .step-n { background: #0B7373; }
.steps li:nth-child(5) .step-n { background: #9B2F5E; }
.steps li:nth-child(6) .step-n { background: #5B3FA0; }
.steps strong { font-family: var(--head); color: var(--ink); }
.steps p { margin: 2px 0 0; font-size: .95rem; color: var(--muted); }

/* Fees */
.section-fees { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.fees-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 36px; }
@media (max-width: 900px) { .fees-layout { grid-template-columns: 1fr; } }
.fee-table-card, .discounts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { text-align: left; padding: 14px 18px; }
.fee-table thead th { font-family: var(--head); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--line); }
.fee-table tbody th { font-family: var(--head); font-weight: 700; color: var(--ink); }
.fee-table tbody td { font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.fee-table tbody tr + tr { border-top: 1px solid var(--line); }
.fee-table tbody tr:hover { background: var(--sky); }
.fee-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 560px) { .fee-extra { grid-template-columns: 1fr; } .fee-table th, .fee-table td { padding: 12px 10px; } }
.fee-extra > div { background: var(--sky); border-radius: 12px; padding: 18px; }
.fee-extra h3 { font-size: 1rem; margin-bottom: 6px; }
.fee-extra p { margin: 0; font-size: .97rem; }
.discounts { padding: 26px; }
.discount-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.discount-list li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.disc-pill { font-family: var(--head); font-weight: 800; font-size: .85rem; background: #fff1e3; color: var(--orange-dark); border-radius: 10px; padding: 8px 6px; text-align: center; }

.estimator {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; border-radius: 24px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; } }
.est-head { grid-column: 1 / -1; padding: 28px 30px 0; }
.est-head h3 { font-size: 1.5rem; }
.est-head p { color: var(--muted); margin-bottom: 0; }
.est-form { padding: 24px 30px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .est-form { grid-template-columns: 1fr; padding: 20px; } .est-head { padding: 22px 20px 0; } }
.est-result {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #2339b7 100%); color: #e3e9ff;
  padding: 30px; display: flex; flex-direction: column;
}
@media (min-width: 901px) { .est-result { grid-row: 1 / span 2; grid-column: 2; } .est-head { grid-column: 1; } }
.est-label { font-family: var(--head); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #ffb576; margin: 0 0 4px; font-weight: 700; }
.est-total { font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); color: #fff; margin: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.est-per { color: #cfd9ff; margin: 6px 0 16px; }
.est-lines { list-style: none; margin: 0 0 14px; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); display: grid; gap: 6px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.est-lines li { display: flex; justify-content: space-between; gap: 12px; }
.est-lines li.disc span:last-child { color: #9ff0c9; }
.est-hint { font-size: .9rem; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 12px; }
.est-disclaimer { font-size: .85rem; color: #cfd9ff; margin-top: auto; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23193591' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(25, 53, 145, .12); }
.field input:user-invalid, .field select:user-invalid { border-color: #c0392b; }
.seg { border: 0; padding: 0; margin: 0; }
.seg legend { padding: 0; margin-bottom: 6px; }
.seg-row { position: relative; display: flex; background: var(--sky); border: 2px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-row label { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--muted); }
.seg-row input:checked + label { background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(15, 33, 102, .25); }
.seg-row input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 1px; }
.req { color: var(--orange-dark); }

/* Book */
.section-book {
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(86, 186, 239, .25), transparent 60%),
    radial-gradient(600px 500px at 100% 100%, rgba(241, 123, 25, .22), transparent 60%),
    linear-gradient(135deg, #0f2166 0%, #193591 100%);
  color: #e3e9ff;
}
.book-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } }
.book-intro h2 { color: #fff; }
.book-intro > p { font-size: 1.1rem; }
.book-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.book-points li { padding-left: 28px; position: relative; }
.book-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(241, 123, 25, .25); }
.book-alt a { color: #ffd2a8; font-weight: 700; }
.book-alt a:hover { color: #fff; }
.book-form { background: #fff; color: var(--text); border-radius: 24px; padding: clamp(20px, 4vw, 34px); box-shadow: 0 30px 70px rgba(5, 12, 50, .35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: #8a1f12; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.form-small { font-size: .88rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 5px rgba(241, 123, 25, .45); } }

/* Contact */
.section-contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  text-decoration: none; background: var(--sky); border-radius: var(--radius); padding: 20px; border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.contact-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.contact-card svg { grid-row: 1 / span 2; width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--navy); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.contact-value { font-family: var(--head); font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .office-grid { grid-template-columns: 1fr; } }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 5px solid var(--orange); }
.office:nth-child(2) { border-top-color: #2B7A3A; }
.office:nth-child(3) { border-top-color: var(--navy); }
.office h3 { font-size: 1rem; margin-bottom: 6px; }
.office p { margin: 0; }

/* Footer */
.site-footer { background: var(--navy-ink); color: #c9d3f5; padding: 56px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 16px; }
.footer-logo img { display: block; height: 40px; width: auto; }
.tagline { font-family: var(--head); font-weight: 700; color: #fff; margin-top: 14px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-contact p { margin: 0 0 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb576; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* Thank-you page */
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: linear-gradient(135deg, #0f2166, #193591 60%, #2339b7); }
.thanks-card { background: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 48px); max-width: 560px; text-align: center; box-shadow: 0 30px 80px rgba(5, 12, 50, .4); }
.thanks-card img.icon { width: 96px; height: auto; margin-bottom: 12px; }
.thanks-card .btn { margin: 6px; }

@media print {
  .site-header, .hero-bg, .filters, .estimator, .book-form, .nav-toggle { display: none !important; }
  .hero, .section-book { background: none; color: #000; }
  .hero h1, .book-intro h2 { color: #000; }
}
