/* ==========================================================================
   MasterbIT — styles.css
   Muted palette based on the brand logo:
   navy blue, soft green, soft red, on warm off-white.
   ========================================================================== */

:root {
  --navy: #2c4f8a;
  --navy-dark: #1e3760;
  --navy-light: #e8edf6;
  --green: #6f9e6a;
  --green-dark: #4e7d4a;
  --green-light: #eef4ec;
  --red: #b4564c;
  --red-light: #f7eceb;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #2b2b33;
  --ink-soft: #565660;
  --line: #e3e1da;
  --shadow: 0 2px 6px rgba(30, 35, 60, 0.08);
  --shadow-lift: 0 10px 24px rgba(30, 35, 60, 0.14);
  --radius: 14px;
  --focus-ring: 3px solid #1e3760;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  color: var(--navy-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); }

img { max-width: 100%; height: auto; }

/* ---------- Accessibility helpers ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy-dark);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 0 0 12px 12px;
  font-size: 1.05rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: 3.5rem 0; }
.section--tight { padding: 2.5rem 0; }

.section-head {
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
}
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  min-width: 48px;
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); }

.btn--secondary { background: var(--green); color: #fff; }
.btn--secondary:hover { background: var(--green-dark); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy-light); }

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  font-size: 0.98rem;
}

.btn--block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 56px;
  width: auto;
  display: block;
}

.site-nav { margin-left: auto; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.75rem 1rem;
  min-height: 48px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-list a:hover { background: var(--navy-light); color: var(--navy-dark); }

.nav-list a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.header-phone:hover { background: #dfeada; }

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 48px;
  min-height: 48px;
  padding: 0.55rem;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--navy-dark);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(111, 158, 106, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(180, 86, 76, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  padding: 4.5rem 0 4rem;
}

.hero-inner { max-width: 46rem; }

.hero h1 { font-size: 2.7rem; margin-bottom: 1rem; }

.hero .tagline {
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.card .icon {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 0.9rem;
  display: inline-block;
  background: var(--navy-light);
  border-radius: 12px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); flex-grow: 1; }
.card .card-actions { margin-top: 1.1rem; }

/* ---------- Highlight band ---------- */

.band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}
.band h2 { color: #fff; margin-bottom: 0.4rem; font-size: 1.6rem; }
.band p { color: #dfe6f2; margin: 0; max-width: 34rem; }

/* ---------- Counters ---------- */

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.counter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow);
}
.counter .num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green-dark);
  display: block;
  font-variant-numeric: tabular-nums;
}
.counter .label { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Tips carousel ---------- */

.carousel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.carousel h2 { font-size: 1.5rem; }

.carousel-viewport { position: relative; min-height: 7.5rem; }

.tip {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem;
}
.tip.is-active { opacity: 1; visibility: visible; }

.tip .tip-title {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 1.15rem;
}
.tip .tip-text { color: var(--ink-soft); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.carousel-btn:hover { background: var(--navy-light); }

.dots { display: flex; gap: 0.5rem; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  min-width: 12px;
  min-height: 12px;
}
.dot.is-active { background: var(--green); }

/* ---------- Reviews ---------- */

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stars {
  color: #d99a2b;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review blockquote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  flex-grow: 1;
}

.review footer { font-weight: 700; color: var(--navy-dark); }
.review footer small { display: block; font-weight: 400; color: var(--ink-soft); }

/* ---------- Page banner ---------- */

.page-banner {
  background: linear-gradient(120deg, var(--navy-light) 0%, #fbfaf7 100%);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
}
.page-banner h1 { margin-bottom: 0.4rem; }
.page-banner p { color: var(--ink-soft); max-width: 44rem; margin: 0; font-size: 1.1rem; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--navy-dark);
}

.field .hint {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: none;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
}

.field .error-msg {
  display: none;
  color: #8f3a32;
  font-size: 0.95rem;
  margin-top: 0.4rem;
  font-weight: 600;
}
.field.has-error .error-msg { display: block; }

.form-note {
  background: var(--green-light);
  border: 1px solid #cfe0cc;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.98rem;
  color: #3f5c3a;
  margin-top: 1.25rem;
}

.form-success {
  display: none;
  background: var(--green-light);
  border: 1px solid #cfe0cc;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-success .icon { font-size: 3rem; line-height: 1; margin-bottom: 0.75rem; }
.form-success h2 { font-size: 1.5rem; }

/* ---------- Contact info cards ---------- */

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}
.info-card .icon { font-size: 1.7rem; margin-bottom: 0.6rem; display: block; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.info-card p, .info-card address {
  font-style: normal;
  color: var(--ink-soft);
  margin: 0;
}
.info-card a { color: var(--navy); font-weight: 600; }

/* ---------- SKITE ---------- */

.skite-header {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.skite-header h2 { color: #fff; margin-bottom: 0.3rem; }
.skite-header .subtitle { color: #dfe6f2; margin: 0; }

.name-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.name-banner .who { font-size: 1.1rem; }
.name-banner .who strong { color: var(--navy-dark); }

.progress-wrap { margin: 1.25rem 0 0.75rem; }

.progress-track {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 22px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.progress-label { font-size: 1rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* SKITE module grid */

.module-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.module-card .module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.module-num {
  font-weight: 800;
  color: var(--navy);
  background: var(--navy-light);
  border-radius: 10px;
  padding: 0.25rem 0.7rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.module-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}
.module-status--done { background: var(--green-light); color: var(--green-dark); }
.module-status--progress { background: #fdf3e0; color: #8a6a1f; }
.module-status--todo { background: #f0efeb; color: var(--ink-soft); }

.module-card .module-lessons {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* SKITE in-module navigation */

.skite-module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.skite-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #fcfbf9;
}

.skite-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.skite-nav a:hover { background: var(--navy-light); }
.skite-nav a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.skite-nav a .done-tick { color: var(--green-dark); font-weight: 800; }
.skite-nav a[aria-current="page"] .done-tick { color: #fff; }

.skite-page { padding: 2rem; }
.skite-page .crumb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.skite-page h2 { font-size: 1.7rem; }
.skite-page h3 { margin-top: 1.6rem; }

.skite-page ul { padding-left: 1.4rem; }
.skite-page li { margin-bottom: 0.5rem; }

.quick-check {
  background: var(--navy-light);
  border-left: 5px solid var(--navy);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.quick-check .qc-label {
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.3rem;
  display: block;
}

.qc-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.9rem 0;
}

.qc-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.qc-option:hover { border-color: var(--navy); background: var(--navy-light); }
.qc-option .bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  flex-shrink: 0;
}
.qc-option.is-correct { border-color: var(--green); background: var(--green-light); }
.qc-option.is-correct .bullet { background: var(--green); border-color: var(--green); }
.qc-option.is-wrong { border-color: var(--red); background: var(--red-light); }
.qc-option.is-wrong .bullet { background: var(--red); border-color: var(--red); }
.qc-option.is-faded { opacity: 0.55; }

.qc-feedback { font-weight: 600; margin-top: 0.5rem; }
.qc-feedback.is-good { color: var(--green-dark); }
.qc-feedback.is-bad { color: #8f3a32; }

/* Quiz */

.quiz-q {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  background: #fcfbf9;
}
.quiz-q .q-text { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.9rem; }

.quiz-score {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-top: 1.5rem;
  text-align: center;
}
.quiz-score .score-num {
  font-size: 2.4rem;
  font-weight: 800;
  display: block;
}
.quiz-score .score-num.is-pass { color: var(--green-dark); }
.quiz-score .score-num.is-fail { color: var(--red); }

.skite-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Completion screen */

.celebrate {
  text-align: center;
  padding: 3rem 1.5rem;
}
.celebrate .party { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; }

.certificate {
  max-width: 620px;
  margin: 2rem auto 0;
  background: var(--surface);
  border: 3px double var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}
.certificate .cert-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
}
.certificate h3 { font-size: 1.7rem; margin: 0.5rem 0 0.75rem; }
.certificate .cert-name { font-size: 1.4rem; font-weight: 800; color: var(--navy-dark); }
.certificate .cert-date { color: var(--ink-soft); margin-top: 0.75rem; }
.certificate .cert-line { margin-top: 1.5rem; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Legal pages ---------- */

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  max-width: 56rem;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #cfd8e8;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.site-footer p { font-size: 0.98rem; }
.site-footer address { font-style: normal; font-size: 0.98rem; }
.site-footer a { color: #cfd8e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { display: inline-block; padding: 0.2rem 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--navy-dark); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 0.75rem 1rem 1.25rem;
    margin: 0;
  }
  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-list a {
    display: block;
    padding: 0.85rem 1rem;
    min-height: 52px;
  }

  .header-phone {
    display: none;
    /* phone is still reachable in the mobile menu panel */
  }

  .grid--3,
  .grid--2,
  .counters {
    grid-template-columns: 1fr;
  }

  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 1.95rem; }
  .section { padding: 2.5rem 0; }
  .band { padding: 2rem 1.5rem; }
  .skite-page { padding: 1.5rem; }
  .prose { padding: 1.5rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
