/* ==========================================================================
   Help Academic — Design System
   Palette derived from the logo: crimson mark + black wordmark on white.
   ========================================================================== */

:root {
  /* Brand — crimson */
  --crimson-700: #7E1231;
  --crimson-600: #9A1A3D;
  --crimson-500: #B01C45;  /* logo colour */
  --crimson-400: #C93B63;
  --crimson-300: #E38AA4;
  --crimson-50:  #FBEDF1;

  /* Ink */
  --ink-950: #0B0B10;
  --ink-900: #12121A;
  --ink-800: #1B1B26;
  --ink-700: #262633;

  /* Paper */
  --paper: #FCFAF9;
  --paper-2: #F4F0EE;
  --white: #FFFFFF;
  --line: #E9E2DF;
  --body: #575059;
  --muted: #8B838D;

  /* Support */
  --gold: #C9A227;
  --green: #1E9E6A;

  /* Type */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 16, .05), 0 6px 16px -6px rgba(11, 11, 16, .08);
  --shadow: 0 4px 14px -4px rgba(11, 11, 16, .08), 0 24px 48px -20px rgba(11, 11, 16, .18);
  --shadow-lg: 0 10px 30px -10px rgba(11, 11, 16, .16), 0 50px 90px -30px rgba(11, 11, 16, .34);
  --shadow-crimson: 0 8px 24px -8px rgba(176, 28, 69, .55);
  --container: 1220px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Subtle paper grain used on dark panels */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.45rem, 5.1vw, 4.05rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.95rem); }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.08rem; }

::selection { background: var(--crimson-500); color: #fff; }

/* ------------------------------ Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(68px, 9vw, 124px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--paper { background: var(--paper-2); }

.section--ink {
  position: relative;
  background: var(--ink-950);
  color: rgba(255, 255, 255, .68);
  overflow: hidden;
}
.section--ink::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .035;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.section--ink > .container { position: relative; z-index: 2; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.section-head { max-width: 730px; margin: 0 auto clamp(44px, 5vw, 68px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 17px; font-size: 1.06rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--crimson-500);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.section-head:not(.section-head--left) .eyebrow::before { display: none; }
.section--ink .eyebrow { color: var(--crimson-400); }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .005em;
  cursor: pointer;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--crimson-500), var(--crimson-600));
  color: #fff;
  box-shadow: var(--shadow-crimson);
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28), transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(176, 28, 69, .7); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ink { background: var(--ink-900); color: #fff; }
.btn--ink:hover { background: var(--ink-800); box-shadow: var(--shadow); }

.btn--ghost { border-color: rgba(255, 255, 255, .26); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }

.btn--outline { border-color: var(--line); background: var(--white); color: var(--ink-900); }
.btn--outline:hover { border-color: var(--crimson-500); color: var(--crimson-500); box-shadow: var(--shadow-sm); }

.btn--block { width: 100%; }
.btn--lg { padding: 18px 38px; font-size: 1rem; }

/* --------------------------- Announcement bar --------------------------- */
.announce {
  position: relative;
  background: linear-gradient(90deg, var(--crimson-600), var(--crimson-500) 50%, var(--crimson-600));
  color: #fff;
  font-size: .85rem;
  text-align: center;
}
.announce .container {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  min-height: 46px; padding-block: 9px;
}
.announce b { font-weight: 700; }
.announce .announce-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.announce a.announce-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 1px;
  transition: border-color .25s;
}
.announce a.announce-link:hover { border-color: #fff; }
.announce-close {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff; cursor: pointer;
  transition: background .25s;
}
.announce-close:hover { background: rgba(255, 255, 255, .3); }
.announce-close svg { width: 13px; height: 13px; }
.announce.is-hidden { display: none; }

/* --------------------------- Header phone block ------------------------- */
.header-phone {
  display: flex; align-items: center; gap: 11px;
  padding-right: 16px;
  margin-right: 4px;
  border-right: 1px solid var(--line);
}
.header-phone .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--crimson-50);
  border: 1px solid rgba(176, 28, 69, .12);
  color: var(--crimson-500);
  flex: none;
}
.header-phone .ico svg { width: 18px; height: 18px; }
.header-phone small {
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.header-phone strong {
  display: block;
  font-size: .95rem;
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

/* --------------------------- Accreditation ------------------------------ */
.creds {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.creds-title {
  text-align: center;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.creds-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
}
.cred {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cred:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(176, 28, 69, .28); }
.cred svg { width: 34px; height: 34px; color: var(--crimson-500); flex: none; }
.cred strong { display: block; font-size: .9rem; color: var(--ink-900); font-weight: 600; line-height: 1.3; }
.cred span { font-size: .78rem; color: var(--muted); }

/* ------------------------------ Subjects -------------------------------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.subject {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-900);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease), background .3s;
}
.subject:hover {
  transform: translateY(-3px);
  border-color: var(--crimson-500);
  box-shadow: var(--shadow-sm);
}
.subject svg { width: 18px; height: 18px; color: var(--crimson-500); flex: none; }

/* --------------------------- Guarantee band ----------------------------- */
.guarantee-band {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 4vw, 46px) clamp(28px, 4vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--crimson-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.guarantee-band .seal {
  width: 84px; height: 84px;
  flex: none;
  color: var(--crimson-500);
}
.guarantee-band h3 { font-size: 1.5rem; margin-bottom: 8px; }
.guarantee-band p { font-size: .96rem; max-width: 620px; }

/* ------------------------------- Topbar --------------------------------- */
.topbar {
  background: var(--ink-950);
  color: rgba(255, 255, 255, .62);
  font-size: .84rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 46px; padding-block: 8px;
}
.topbar-contact { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.topbar-contact a:hover { color: var(--crimson-400); }
.topbar-contact svg { width: 15px; height: 15px; color: var(--crimson-400); flex: none; }
.topbar-note { display: flex; align-items: center; gap: 9px; }
.topbar-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #35D48A;
  box-shadow: 0 0 0 0 rgba(53, 212, 138, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(53, 212, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 212, 138, 0); }
}

/* ------------------------------- Header --------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 250, 249, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s, border-color .35s, background .35s;
}
.header.is-stuck {
  background: rgba(252, 250, 249, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px -22px rgba(11, 11, 16, .4);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 86px;
}
.logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--body);
  border-radius: 8px;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 3px;
  height: 2px; border-radius: 2px;
  background: var(--crimson-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink-900); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink-900); font-weight: 600; }

/* ----------------------------- Mega menu -------------------------------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-trigger::after { display: none !important; }
.nav-trigger .chev { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.nav-item:hover .nav-trigger .chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: min(940px, 92vw);
  padding: 28px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
  z-index: 120;
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateX(0%) translateY(6px);
}
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 22px; }
.mega-title {
  display: block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--crimson-500);
  margin-bottom: 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.mega a {
  display: block;
  padding: 6px 0;
  font-size: .855rem; font-weight: 500;
  color: var(--body);
  border-radius: 0;
  transition: color .2s, padding-left .2s;
}
.mega a::after { display: none !important; }
.mega a:hover { color: var(--crimson-500); padding-left: 4px; }
.mega-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mega-foot span { font-size: .88rem; color: var(--muted); }
.mega-foot .btn { padding: 11px 20px; font-size: .85rem; }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  place-items: center;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--ink-900); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.6px; background: var(--ink-900);
  transition: transform .35s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  background: var(--ink-950);
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
  padding: clamp(64px, 8vw, 108px) 0 clamp(76px, 9vw, 124px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before,
.hero-bg::after { content: ""; position: absolute; border-radius: 50%; }
.hero-bg::before {
  width: 700px; height: 700px;
  top: -290px; right: -190px;
  background: radial-gradient(circle, rgba(176, 28, 69, .38), transparent 62%);
  filter: blur(20px);
}
.hero-bg::after {
  width: 560px; height: 560px;
  bottom: -300px; left: -200px;
  background: radial-gradient(circle, rgba(176, 28, 69, .18), transparent 64%);
  filter: blur(20px);
}
/* faint blueprint grid + grain for depth */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .04;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: italic;
  color: var(--crimson-400);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 10px; z-index: -1;
  background: rgba(176, 28, 69, .32);
  border-radius: 5px;
}
.hero-lead { margin-top: 24px; font-size: 1.13rem; max-width: 570px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 7px 18px 7px 8px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 26px;
}
.hero-badge b {
  background: linear-gradient(135deg, var(--crimson-500), var(--crimson-600));
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .07em;
}
.hero-badge .stars { color: var(--gold); }
.hero-badge .stars svg { width: 13px; height: 13px; }

.hero-trust {
  display: flex; gap: 38px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.hero-trust div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #fff;
  line-height: 1.2;
}
.hero-trust div span { font-size: .83rem; color: rgba(255, 255, 255, .5); }

/* Lead card */
.lead-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
.lead-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(176, 28, 69, .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.lead-card h3 { font-size: 1.5rem; }
.lead-card > p { font-size: .92rem; color: var(--muted); margin: 7px 0 24px; }
.lead-tag {
  position: absolute;
  top: -14px; right: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; gap: 15px; }
.field { position: relative; }
.field label {
  display: block;
  font-size: .77rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: .93rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; cursor: pointer; padding-right: 42px; }
.field--select::after {
  content: "";
  position: absolute;
  right: 17px; bottom: 19px;
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--crimson-500);
  box-shadow: 0 0 0 4px rgba(176, 28, 69, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #ADA6AF; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; font-size: .78rem; color: var(--muted);
}
.form-note svg { width: 14px; height: 14px; color: var(--green); }

.form-status {
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  background: rgba(30, 158, 106, .08);
  border: 1px solid rgba(30, 158, 106, .28);
  color: #147A51;
}
.form-status.is-visible { display: block; }

/* --------------------------- Guarantee strip ---------------------------- */
.guarantees {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.guarantees .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.guarantee {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}
.guarantees .guarantee:last-child { border-right: 0; }
.guarantee svg { width: 26px; height: 26px; color: var(--crimson-500); flex: none; }
.guarantee strong { display: block; color: var(--ink-900); font-size: .95rem; font-weight: 600; line-height: 1.3; }
.guarantee span { font-size: .82rem; color: var(--muted); }

/* ------------------------------ Marquee --------------------------------- */
.marquee {
  background: var(--ink-900);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 17px 0;
  overflow: hidden;
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .84rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  white-space: nowrap;
}
.marquee-track span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--crimson-500);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------- Cards --------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson-500), var(--crimson-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 11px; }
.card p { font-size: .95rem; }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--crimson-50), rgba(176, 28, 69, .06));
  border: 1px solid rgba(176, 28, 69, .1);
  color: var(--crimson-500);
  margin-bottom: 22px;
  transition: transform .45s var(--ease), background .35s, color .35s;
}
.card:hover .card-icon {
  transform: scale(1.06) rotate(-4deg);
  background: linear-gradient(145deg, var(--crimson-500), var(--crimson-600));
  color: #fff;
}
.card-icon svg { width: 24px; height: 24px; }

.service-card { display: flex; flex-direction: column; }

/* Arrow link — base rule so it works inside ANY card, not just .service-card.
   Without the explicit svg size the global `svg { max-width:100% }` reset lets
   the arrow expand to the full card width. */
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-size: .88rem; font-weight: 600;
  color: var(--ink-900);
  transition: color .25s;
}
.card-link svg {
  width: 15px; height: 15px;
  flex: none;
  transition: transform .4s var(--ease);
}
.card:hover .card-link,
.service-card:hover .card-link,
.post:hover .card-link { color: var(--crimson-500); }
.card:hover .card-link svg,
.service-card:hover .card-link svg,
.post:hover .card-link svg { transform: translateX(4px); }

/* -------------------------------- Split --------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.split-media { position: relative; }
.split-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, var(--ink-800), var(--ink-950));
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .14);
}
.split-media .frame::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  top: -160px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 28, 69, .38), transparent 62%);
}
.split-media .frame svg { position: relative; width: 44%; height: auto; }
.split-media::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--crimson-500);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .45;
}
.float-stat {
  position: absolute;
  right: -18px; bottom: 26px;
  display: flex; align-items: center; gap: 13px;
  padding: 16px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 2;
}
.float-stat .card-icon { margin: 0; width: 42px; height: 42px; border-radius: 12px; }
.float-stat .card-icon svg { width: 19px; height: 19px; }
.float-stat strong { display: block; color: var(--ink-900); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.float-stat span { font-size: .78rem; color: var(--muted); }

.check-list { display: grid; gap: 15px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--crimson-500); }

/* -------------------------------- Steps --------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative;
  padding: 36px 26px 32px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: background .4s, transform .45s var(--ease), border-color .4s;
}
.step:hover {
  background: rgba(255, 255, 255, .06);
  transform: translateY(-6px);
  border-color: rgba(176, 28, 69, .55);
}
.step-num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--crimson-500), var(--crimson-700));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-crimson);
}
.step-num::before { content: "0" counter(step); }
.step h4 { margin-bottom: 9px; }
.step p { font-size: .92rem; color: rgba(255, 255, 255, .58); }

/* -------------------------------- Stats --------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center;
  padding: 34px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.5vw, 2.9rem);
  background: linear-gradient(135deg, var(--crimson-500), var(--crimson-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat span {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* ----------------------------- Testimonials ----------------------------- */
.quote-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
  overflow: hidden;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 4px; right: 22px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--crimson-500);
  opacity: .1;
}
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 17px; height: 17px; }
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--ink-900);
  flex: 1;
}
.quote-author { display: flex; align-items: center; gap: 13px; padding-top: 19px; border-top: 1px solid var(--line); }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--crimson-500), var(--crimson-700));
  color: #fff;
  font-weight: 600; font-size: .95rem;
  flex: none;
}
.quote-author strong { display: block; color: var(--ink-900); font-size: .95rem; }
.quote-author span { font-size: .82rem; color: var(--muted); }

/* --------------------------------- Team --------------------------------- */
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.member:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.member-photo {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background: linear-gradient(155deg, var(--ink-800), var(--ink-950));
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 600;
  position: relative;
}
.member-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(176, 28, 69, .4), transparent 60%);
}
.member-body { padding: 24px 26px 28px; }
.member-body h3 { font-size: 1.14rem; }
.member-role {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson-500);
  margin: 7px 0 13px;
}
.member-body p { font-size: .9rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.tag {
  font-size: .72rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: var(--crimson-50);
  color: var(--crimson-600);
}

/* --------------------------------- FAQ ---------------------------------- */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item.is-open { border-color: var(--crimson-500); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 23px 28px;
  background: none; border: 0;
  text-align: left; cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem; font-weight: 600;
  color: var(--ink-900);
}
.faq-icon {
  position: relative;
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  background: var(--paper-2);
  transition: background .3s, transform .4s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: var(--ink-900);
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease), background .3s;
}
.faq-icon::before { width: 10px; height: 1.7px; }
.faq-icon::after { width: 1.7px; height: 10px; }
.faq-item.is-open .faq-icon { background: var(--crimson-500); transform: rotate(90deg); }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after { background: #fff; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { padding: 0 28px 26px; font-size: .96rem; }

/* ----------------------------- Prose block ------------------------------ */
.prose { max-width: 840px; margin-inline: auto; }
.prose > .eyebrow { display: inline-flex; }
.prose h2 { margin: 6px 0 16px; }
.prose h2:not(:first-child) { margin-top: 46px; }
.prose h3 { margin: 34px 0 12px; font-size: 1.28rem; }
.prose p { margin-bottom: 17px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul.bullets { display: grid; gap: 11px; margin: 8px 0 22px; }
.prose ul.bullets li { position: relative; padding-left: 28px; font-size: .98rem; }
.prose ul.bullets li::before {
  content: "";
  position: absolute; left: 2px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--crimson-500);
}
.prose ul.bullets li b, .prose ul.bullets li strong { color: var(--ink-900); }
.prose-lede { font-size: 1.12rem; color: var(--ink-800); }

/* --------------------------------- CTA ---------------------------------- */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px);
  background: linear-gradient(140deg, var(--ink-800), var(--ink-950) 65%);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  top: -260px; right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 28, 69, .42), transparent 62%);
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .04; mix-blend-mode: overlay;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { max-width: 580px; margin: 18px auto 0; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* -------------------------------- Blog ---------------------------------- */
.post {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.post-cover {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--ink-800), var(--ink-950));
  color: rgba(255, 255, 255, .16);
  position: relative;
}
.post-cover svg { width: 32%; }
.post-cat {
  position: absolute; top: 15px; left: 15px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--crimson-500);
  color: #fff;
  font-size: .69rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.post-body { padding: 25px 27px 29px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.post-body h3 { font-size: 1.18rem; line-height: 1.36; }
.post-body p { font-size: .92rem; margin-top: 11px; flex: 1; }
.post-body .card-link { margin-top: 19px; }

/* ------------------------------ Page hero ------------------------------- */
.page-hero {
  position: relative;
  background: var(--ink-950);
  color: rgba(255, 255, 255, .7);
  padding: clamp(60px, 7vw, 96px) 0;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  top: -440px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 28, 69, .32), transparent 62%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.15rem, 4.4vw, 3.2rem); }
.page-hero p { max-width: 630px; margin: 19px auto 0; }
.crumbs { display: flex; justify-content: center; gap: 10px; font-size: .84rem; color: rgba(255, 255, 255, .48); margin-top: 24px; }
.crumbs a:hover { color: var(--crimson-400); }
.crumbs span { color: var(--crimson-400); }

/* ------------------------------- Contact -------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.info-list { display: grid; gap: 14px; }
.info-item {
  display: flex; gap: 16px;
  padding: 23px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.info-item:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); border-color: rgba(176, 28, 69, .3); }
.info-item .card-icon { margin: 0; width: 46px; height: 46px; flex: none; border-radius: 13px; }
.info-item .card-icon svg { width: 20px; height: 20px; }
.info-item strong {
  display: block; font-size: .72rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.info-item a, .info-item p { color: var(--ink-900); font-weight: 500; font-size: .98rem; }
.info-item a:hover { color: var(--crimson-500); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 46px);
  box-shadow: var(--shadow-sm);
}

/* -------------------------------- Footer -------------------------------- */
.footer {
  position: relative;
  background: var(--ink-950);
  color: rgba(255, 255, 255, .58);
  padding-top: clamp(60px, 7vw, 92px);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  top: -340px; left: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 28, 69, .2), transparent 64%);
}
.footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 58px;
}
.footer-about .logo img { height: 58px; }
.footer-about p { margin-top: 22px; font-size: .93rem; max-width: 330px; }
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: .93rem; transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: var(--crimson-400); padding-left: 5px; }
.footer-links--2col { grid-template-columns: 1fr 1fr; column-gap: 20px; }

.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pay-chip {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .75);
}
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  transition: background .25s, border-color .25s, transform .35s var(--ease), color .25s;
}
.socials a:hover {
  background: var(--crimson-500);
  border-color: var(--crimson-500);
  color: #fff;
  transform: translateY(-3px);
}
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: .86rem;
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--crimson-400); }

/* ---------------------------- Floating chat ----------------------------- */
.chat-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 21px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: .9rem; font-weight: 600;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, .6);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 44px -10px rgba(37, 211, 102, .72); }
.chat-fab svg { width: 20px; height: 20px; }

/* --------------------- Mobile sticky conversion bar --------------------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 16, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 14px 16px; font-size: .9rem; }

/* ------------------------------ Reveal ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 1100px) {
  .guarantees .container { grid-template-columns: repeat(2, 1fr); }
  .guarantee:nth-child(2n) { border-right: 0; }
  .guarantee:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lead-card { max-width: 580px; }
  .grid--4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-stat { right: 12px; }
}

@media (max-width: 1024px) {
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
  .header-phone { display: none; }
  .guarantee-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .guarantee-band p { margin-inline: auto; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(330px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    padding: 110px 24px 32px;
    box-shadow: -24px 0 70px -24px rgba(11, 11, 16, .35);
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    z-index: 99;
  }
  .nav.is-open { transform: none; overflow-y: auto; 
      width: 100% !important;
      height: 100vh !important;
  }
  .nav a { padding: 15px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav-toggle { display: grid; position: relative; z-index: 101; }

  /* Mega menu becomes an inline accordion inside the mobile drawer */
  .nav-item { position: static; display: block; }
  .nav-trigger { justify-content: space-between; width: 100%; padding: 15px 12px; border-bottom: 1px solid var(--line); }
  .nav-item:hover .nav-trigger .chev { transform: none; }
  .nav-item.is-open .nav-trigger .chev { transform: rotate(180deg); }
  .mega {
    position: static; transform: none; width: 100%;
    opacity: 1; visibility: visible;
    padding: 0; margin: 0;
    border: 0; border-radius: 0; box-shadow: none;
    max-height: 0; overflow: hidden;
    transition: max-height .45s var(--ease);
  }
  .nav-item.is-open .mega { max-height: 1600px; }
  .mega::before { display: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega-title { margin: 4px 0 0; padding: 14px 12px 6px; border-bottom: 0; }
  .mega a { padding: 11px 12px 11px 24px; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .mega-foot { display: none; }
  .header-cta .btn { display: none; }
  .grid--3, .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media::after { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-note { display: none; }
  .mobile-bar { display: flex; }
  .chat-fab { bottom: 82px; }
  body { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--2, .grid--4, .steps, .stats, .form-row { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .subject { padding: 14px 14px; font-size: .86rem; }
  .announce { font-size: .78rem; 
      display: none !important;
  }
  .announce-close { display: none; }
  .creds-row { gap: 12px; }
  .cred { padding: 12px 16px; }
  .guarantees .container { grid-template-columns: 1fr; }
  .guarantee { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 20px 4px; }
  .guarantees .guarantee:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lead-card { padding: 28px 22px; }
  .topbar-contact { gap: 16px; font-size: .8rem; }
  .hero-trust { gap: 26px; }
  .float-stat { right: 8px; bottom: 12px; padding: 12px 16px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 15px; }
  .logo img { height: 44px; }
}

/* ==========================================================================
   HEADER — responsive refresh + mobile accordion menu
   Loaded last, so it intentionally overrides the earlier header / mega-menu
   rules and the nav rules in the @media (max-width: 900px) block above.
   ========================================================================== */

/* ------------------------------------------------- laptop / tablet ------ */
@media (min-width: 901px) {
  .mega      { width: min(980px, 94vw); }
  .mega-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mega a    { line-height: 1.45; }
}

/* Tighten the bar before the drawer kicks in */
@media (max-width: 1180px) and (min-width: 901px) {
  .header .container { gap: 14px; }
  .nav a             { padding: 10px 11px; font-size: .89rem; }
  .logo img          { height: 46px; }
}

/* ============================== MOBILE DRAWER ============================ */
@media (max-width: 900px) {

  /* --- bar ------------------------------------------------------------- */
  .header .container { min-height: 68px; gap: 12px; }
  .logo img          { height: 42px; }

  /* --- dim the page behind the drawer (needs no extra markup) ---------- */
  .header:has(.nav.is-open)::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(11, 11, 16, .45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 98;
    animation: navFade .3s var(--ease);
  }
  @keyframes navFade { from { opacity: 0 } to { opacity: 1 } }

  /* --- drawer ---------------------------------------------------------- */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 84px 0 calc(28px + env(safe-area-inset-bottom));
    box-shadow: -24px 0 70px -24px rgba(11, 11, 16, .4);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 99;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { transform: none; }

  /* top-level links (direct children only — keeps mega links out of it) */
  .nav > a {
    padding: 16px 22px;
    font-size: 1rem; font-weight: 500;
    color: var(--ink-900);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav > a::after    { display: none; }
  .nav > a.is-active { color: var(--crimson-500); font-weight: 600; }
  .nav > a:active    { background: var(--paper-2); }

  /* ------------------- ACCORDION — level 1 (Services) ------------------ */
  .nav-item {
    position: static; display: block;
    border-bottom: 1px solid var(--line);
  }

  .nav-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 16px 22px;
    font-size: 1rem; font-weight: 500;
    color: var(--ink-900);
    border-bottom: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-trigger .chev { width: 16px; height: 16px; flex: none; color: var(--crimson-500); }
  .nav-item:hover .nav-trigger .chev   { transform: none; }   /* kill hover on touch */
  .nav-item.is-open .nav-trigger       { color: var(--crimson-500); background: var(--paper-2); }
  .nav-item.is-open .nav-trigger .chev { transform: rotate(180deg); }

  /* Panel animates via grid rows -> no max-height guesswork, nothing clips */
  .mega {
    position: static; transform: none; width: auto;
    opacity: 1; visibility: visible;
    padding: 0; margin: 0;
    border: 0; border-radius: 0; box-shadow: none;
    background: var(--paper);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s var(--ease);
    max-height: none;
    overflow: hidden;
  }
  .nav-item.is-open .mega { grid-template-rows: 1fr; }
  .mega::before           { display: none; }
  .mega-grid              { display: block; min-height: 0; overflow: hidden; }

  /* group heading (Essay / Assignment / …) */
  .mega-title {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0; padding: 13px 22px;
    font-size: .7rem; letter-spacing: .14em;
    color: var(--crimson-600);
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  /* sub-links */
  .mega a {
    display: block;
    padding: 13px 22px 13px 34px;
    font-size: .94rem;
    color: var(--body);
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .mega a:hover,
  .mega a:active { padding-left: 34px; background: var(--crimson-50); color: var(--crimson-600); }

  .mega-foot { display: none; }

  /* ---------- ACCORDION — level 2 (each service group collapses) ------- */
  .mega-title { cursor: pointer; }
  .mega-title::after {
    content: "";
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .3s var(--ease);
  }
  .mega-col > a         { display: none; }        /* collapsed by default */
  .mega-col.is-open > a { display: block; }
  .mega-col.is-open .mega-title       { color: var(--crimson-500); }
  .mega-col.is-open .mega-title::after { transform: rotate(225deg) translateY(-2px); }
}

/* Fallback for browsers without grid-row animation (Safari < 16 etc.) */
@supports not (grid-template-rows: 0fr) {
  @media (max-width: 900px) {
    .mega                   { display: block; max-height: 0; transition: max-height .4s var(--ease); }
    .nav-item.is-open .mega { max-height: 2600px; }
  }
}

/* ------------------------------------------------ small phones ---------- */
@media (max-width: 420px) {
  .nav               { width: min(320px, 92vw); padding-top: 76px; }
  .nav > a,
  .nav-trigger       { padding: 15px 18px; font-size: .97rem; }
  .mega a            { padding: 12px 18px 12px 30px; font-size: .9rem; }
  .mega-title        { padding: 12px 18px; }
  .logo img          { height: 38px; }
  .header .container { min-height: 62px; }
}
