/* ============================================================
   CPACE Ltd — Site Stylesheet
   Polished modern redesign. Plain CSS, no build step required.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #0e2a47;
  --navy-deep:   #091e35;
  --navy-light:  #1c3d60;
  --gold:        #c6a256;
  --gold-dark:   #a8843c;
  --ink:         #1d2733;
  --text:        #3f4c5a;
  --muted:       #6c7889;
  --bg:          #ffffff;
  --bg-alt:      #f5f6f8;
  --bg-tint:     #eef1f4;
  --line:        #e3e7ec;
  --line-dark:   #21456b;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow-sm:   0 2px 10px rgba(14, 42, 71, 0.06);
  --shadow-md:   0 12px 32px rgba(14, 42, 71, 0.10);
  --maxw:        1180px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #d6dee7; }
.section--tight { padding: 60px 0; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.section--navy .eyebrow { color: var(--gold); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
}
.section--navy .section-head h2 { color: #fff; }

.section-head p {
  font-size: 18px;
  color: var(--muted);
}
.section--navy .section-head p { color: #adbccc; }

.rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 24px;
}
.section-head.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.logo .mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.logo .logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  display: block;
  line-height: 1;
  margin-top: 3px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text .logo-name { line-height: 1; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--navy); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(140deg, rgba(9, 30, 53, 0.93), rgba(14, 42, 71, 0.86)),
    radial-gradient(circle at 78% 18%, rgba(198, 162, 86, 0.30), transparent 46%),
    var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
          mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-inner {
  position: relative;
  padding: 116px 0 124px;
  max-width: 850px;
}
.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(198, 162, 86, 0.4);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 28px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 19px;
  color: #c5d0dc;
  max-width: 660px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background:
    linear-gradient(140deg, rgba(9, 30, 53, 0.95), rgba(14, 42, 71, 0.90)),
    var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
          mask-image: linear-gradient(180deg, #000, transparent);
}
.page-hero-inner {
  position: relative;
  padding: 84px 0 80px;
  max-width: 820px;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.6vw, 50px);
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 19px;
  color: #c5d0dc;
  max-width: 680px;
}
.breadcrumb {
  font-size: 13.5px;
  color: #8fa2b6;
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 36px 26px;
  text-align: center;
}
.stat .num {
  font-family: 'Lora', serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.stat .num .unit { color: var(--gold-dark); }
.stat .stat-title {
  font-weight: 600;
  color: var(--ink);
  margin-top: 12px;
  font-size: 15.5px;
}
.stat .stat-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.section--navy .stats-grid { background: var(--line-dark); border-color: var(--line-dark); }
.section--navy .stat { background: var(--navy); }
.section--navy .stat .num { color: #fff; }
.section--navy .stat .stat-title { color: #eaf0f6; }
.section--navy .stat .stat-desc { color: #9fb1c4; }

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #d3dae2;
}
.card .card-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.card p { font-size: 15.5px; color: var(--text); }
.card .card-num {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* ---------- Feature card (numbered, e.g. value props) ---------- */
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  position: relative;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 18px;
}
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { font-size: 15.5px; }

/* ---------- Services list ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.svc:hover { background: var(--bg-alt); transform: translateX(3px); }
.svc .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- Pillars ---------- */
.pillar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pillar-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}
.pillar-num {
  font-family: 'Lora', serif;
  font-size: 46px;
  font-weight: 600;
  color: var(--bg-tint);
  line-height: 0.8;
}
.pillar:hover .pillar-num { color: var(--gold); transition: color 0.3s var(--ease); }
.pillar h3 { font-size: 20px; }
.pillar .pillar-lead {
  font-style: italic;
  color: var(--gold-dark);
  font-size: 15px;
  margin: 8px 0 16px;
}
.pillar .check-list { margin-bottom: 18px; }
.pillar .outcome {
  margin-top: auto;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
}
.pillar .outcome strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* ---------- Check lists ---------- */
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 9px;
  font-size: 15.5px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8843c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.section--navy .check-list li { color: #c5d0dc; }
.section--navy .check-list li::before { background-color: var(--line-dark); }

/* ---------- Two-column prose ---------- */
.prose p { margin-bottom: 18px; font-size: 17px; }
.prose p:last-child { margin-bottom: 0; }
.lead-text {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- Quote / challenge cards ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}
.quote .mark {
  font-family: 'Lora', serif;
  font-size: 56px;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  height: 22px;
}
.quote p {
  font-size: 16.5px;
  color: var(--ink);
  font-style: italic;
}
.section--navy .quote {
  background: var(--navy-light);
  border-color: var(--line-dark);
}
.section--navy .quote p { color: #eaf0f6; }

/* ---------- Case studies ---------- */
.case {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  border-top: 3px solid var(--gold);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case .case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.case h3 { font-size: 21px; }
.case .case-tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  background: var(--bg-tint);
  border-radius: 100px;
  padding: 4px 12px;
}
.case p { font-size: 15.5px; }

/* ---------- Recent results (rich case blocks) ---------- */
.result {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-head {
  background: var(--navy);
  color: #fff;
  padding: 22px 28px;
}
.result-head h3 { color: #fff; font-size: 22px; }
.result-head .meta {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
}
.result-body { padding: 24px 28px; }
.result-body .check-list li { margin-bottom: 11px; }

/* ---------- Roadmap timeline ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
}
.step .step-no {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step .step-when { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.step .check-list li { font-size: 15px; }
.step .deliverable {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  font-size: 14.5px;
}
.step .deliverable strong { color: var(--navy); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.member {
  display: flex;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.avatar {
  width: 92px; height: 92px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid var(--gold);
}
.member h3 { font-size: 21px; margin-bottom: 2px; }
.member .role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.member p { font-size: 15px; }

/* ---------- Clients ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.client {
  aspect-ratio: 3 / 2;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 10px;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.client:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(140deg, rgba(9, 30, 53, 0.95), rgba(14, 42, 71, 0.9)),
    radial-gradient(circle at 85% 30%, rgba(198,162,86,0.28), transparent 50%),
    var(--navy-deep);
  color: #fff;
  text-align: center;
}
.cta-band .container { padding-top: 76px; padding-bottom: 76px; }
.cta-band h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}
.cta-band p {
  color: #c5d0dc;
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #9fb1c4;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo .logo-name { color: #fff; }
.footer-brand p { font-size: 15px; color: #9fb1c4; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 15px;
  color: #9fb1c4;
  transition: color 0.2s var(--ease);
}
.footer-col ul a:hover { color: var(--gold); }
.contact-line {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #c5d0dc;
}
.contact-line svg {
  width: 18px; height: 18px;
  flex: none;
  color: var(--gold);
  margin-top: 3px;
}
.contact-line a:hover { color: var(--gold); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  font-size: 15px;
  color: #c5d0dc;
}
.social-link .ic {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}
.social-link:hover .ic { background: var(--gold); }
.social-link:hover .ic svg { color: var(--navy-deep); }
.social-link .ic svg { width: 17px; height: 17px; color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #6f8298;
}

/* ---------- Scroll reveal ---------- */
/* Hidden state only applies when JS is active, so content is always
   visible if scripts are disabled or fail to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .svc-grid, .quote-grid, .roadmap { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s var(--ease);
  }
  .main-nav.open { max-height: 380px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 0; }
  .main-nav a::after { display: none; }

  .grid-2, .grid-3, .svc-grid, .quote-grid, .roadmap, .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .member { flex-direction: column; }
  .hero-inner { padding: 78px 0 84px; }
  .page-hero-inner { padding: 58px 0 56px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}
