/* Rekhiv Soft Ltd site styles
   Layout idea: left-aligned pages that read like an engineering sheet; one wide
   reference architecture diagram carries the identity, everything else stays quiet. */

:root {
  --paper: #F3F5F4;
  --surface: #FFFFFF;
  --ink: #0E2329;
  --muted: #4A5E64;
  --rule: #C8D3D1;
  --field-border: #7D8F93;
  --accent: #0848B0;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4ECFA;
  --band: #0E2329;
  --band-ink: #EAF1EF;
  --ph-bg: #FFF0B3;
  --ph-ink: #5A4500;
  --ok: #1D6B3A;
  --error: #B42318;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B191D;
    --surface: #11242A;
    --ink: #E5EEEC;
    --muted: #9FB2B5;
    --rule: #263D43;
    --field-border: #5E767C;
    --accent: #19AEF5;
    --accent-ink: #0B191D;
    --accent-soft: #0E2A45;
    --band: #16323A;
    --band-ink: #EAF1EF;
    --ph-bg: #4A3B00;
    --ph-ink: #FFE89A;
    --ok: #6FD39A;
    --error: #FF8A80;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0B191D;
  --surface: #11242A;
  --ink: #E5EEEC;
  --muted: #9FB2B5;
  --rule: #263D43;
  --field-border: #5E767C;
  --accent: #19AEF5;
  --accent-ink: #0B191D;
  --accent-soft: #0E2A45;
  --band: #16323A;
  --band-ink: #EAF1EF;
  --ph-bg: #4A3B00;
  --ph-ink: #FFE89A;
  --ok: #6FD39A;
  --error: #FF8A80;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

p { margin: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.nowrap { white-space: nowrap; }

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

/* Placeholder text the owner must replace. Delete each span once the real text is in. */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  padding: 0 0.25em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

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

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-logo { display: block; flex: none; width: 40px; height: 40px; border-radius: 8px; background: #FFFFFF; object-fit: contain; }
.bm-outer { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.bm-inner { fill: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.site-nav ul a:hover { color: var(--accent); }
.site-nav ul a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.nav-toggle { display: none; }

/* Services drop-down */
.has-menu { position: relative; display: flex; align-items: center; gap: 2px; }
.submenu-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.submenu-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform 0.15s ease; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 20;
  flex-direction: column;
  gap: 0;
  min-width: 300px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--ink) 40%, transparent);
}
.has-menu:hover .submenu, .site-nav .submenu[data-open="true"] { display: flex; }
.site-nav .submenu a { display: block; padding: 10px 12px; border-radius: 4px; font-weight: 500; }
.site-nav .submenu a:hover { background: var(--accent-soft); color: var(--ink); }

@media (max-width: 760px) {
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 16px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .has-menu { flex-wrap: wrap; }
  .has-menu > a { flex: 1; }
  .submenu-toggle { display: none; }
  .site-nav .submenu {
    display: flex;
    position: static;
    width: 100%;
    min-width: 0;
    padding: 0 0 0 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav .submenu a { padding: 12px 0; border-radius: 0; font-weight: 400; }
  .site-nav .submenu a:hover { background: transparent; color: var(--accent); }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--field-border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
  }
  .js .site-nav { display: none; }
  .js .site-nav[data-open="true"] { display: flex; }
}

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

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-small { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }

.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); }

.btn-light { background: var(--band-ink); color: var(--band); }
.btn-light:hover { background: #FFFFFF; }

/* ---------- Home: hero ---------- */

/* The home header and hero always use the dark palette, in either theme. */
.hero-dark, .home .site-header {
  --paper: #0B191D;
  --surface: #11242A;
  --ink: #E5EEEC;
  --muted: #A9BBBE;
  --rule: #2A4148;
  --field-border: #5E767C;
  --accent: #19AEF5;
  --accent-ink: #0B191D;
  --accent-soft: #0E2A45;
  --hero-bg: #0E2329;
  --hero-grid: rgba(25, 174, 245, 0.07);
  color-scheme: dark;
  color: var(--ink);
}
.home .site-header { background: var(--hero-bg); }

.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }

.hero-dark {
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.hero-dark h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }

/* Landing zone diagram: builds once on load, then shows activity flowing to the Security OU */
.lz-pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.packet { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }

@media (prefers-reduced-motion: no-preference) {
  .lz-animated .lz-step {
    animation: lz-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--d) * 110ms + 100ms);
  }
  .lz-animated .lz-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: lz-draw 0.4s ease-out forwards;
    animation-delay: calc(var(--l) * 170ms + 260ms);
  }
  .lz-animated .lz-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: lz-pulse 3.2s ease-out 2.2s infinite;
  }
  .lz-animated .lz-pulse-late { animation-delay: 3.8s; }
}
@media (prefers-reduced-motion: reduce) {
  .lz-motion { display: none; }
}

@keyframes lz-in { from { opacity: 0.15; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lz-draw { to { stroke-dashoffset: 0; } }
@keyframes lz-pulse { 0% { opacity: 0.9; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.08); } }

/* Key facts strip under the hero */
.fact-strip { border-bottom: 1px solid var(--rule); }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 40px);
}
.fact-grid div { display: grid; gap: 4px; align-content: start; }
.fact-grid strong { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 650; letter-spacing: -0.015em; }
.fact-grid span { color: var(--muted); }

@media (max-width: 860px) {
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .fact-grid { grid-template-columns: 1fr; }
}

/* Service icons on the home page */
.spec-title { display: flex; align-items: center; gap: 14px; }
.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
}
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.hero-head h1 { max-width: 16ch; }
.hero-copy { display: grid; gap: 24px; }

.lead { max-width: 56ch; color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.25rem); }

@media (max-width: 860px) {
  .hero-head { grid-template-columns: 1fr; }
}

.sheet {
  margin: clamp(40px, 6vw, 64px) 0 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.diagram-scroll { overflow-x: auto; padding: clamp(12px, 2vw, 24px); }
.diagram { display: block; width: 100%; min-width: 760px; height: auto; }

.sheet figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px 32px;
  padding: 20px clamp(16px, 2.5vw, 28px);
  border-top: 1px solid var(--rule);
}
.sheet figcaption strong { font-family: var(--font-display); font-weight: 650; }
.sheet figcaption p { max-width: 68ch; color: var(--muted); }

@media (max-width: 700px) {
  .sheet figcaption { grid-template-columns: 1fr; }
}

/* Diagram drawing */
.d-region { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 8 6; }
.d-account { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.d-vpc { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.d-az { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 5 4; }
.d-subnet { fill: var(--surface); stroke: var(--rule); stroke-width: 1; }
.d-label { fill: var(--muted); font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.d-title { fill: var(--ink); font-family: var(--font-display); font-size: 16px; font-weight: 650; }
.d-item { fill: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.d-small { fill: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 500; }
.d-dot { fill: var(--accent); }
.d-arrow { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.d-arrowhead { fill: var(--ink); }
.d-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.d-ou { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 6 4; }
.d-ou-title { fill: var(--accent); font-family: var(--font-display); font-size: 15px; font-weight: 650; }
.d-strong { fill: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); }
.section [id], .service { scroll-margin-top: 24px; }

.section-head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 72px);
}
.split-head { display: grid; gap: 16px; align-content: start; }
.split-head p { max-width: 40ch; color: var(--muted); }

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

.text-link { font-weight: 600; }

/* Service list on the home page */
.spec-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.spec-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 8px 32px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.spec-list p { color: var(--muted); }

@media (max-width: 600px) {
  .spec-list li { grid-template-columns: 1fr; }
}

/* Engagement steps (a real sequence, so they are numbered) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 650;
  line-height: 1;
}
.steps p { color: var(--muted); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* Key facts */
.plain-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  margin: 0;
  border-top: 1px solid var(--rule);
}
.facts dt, .facts dd { margin: 0; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.facts dt { padding-right: 16px; color: var(--muted); font-weight: 500; }

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 4px; }
}

/* Call-to-action band */
.band { background: var(--band); color: var(--band-ink); }
.band :focus-visible { outline-color: var(--band-ink); }
.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: clamp(48px, 7vw, 80px);
}
.band h2 { max-width: 22ch; }
.band p { max-width: 52ch; margin-top: 12px; color: color-mix(in srgb, var(--band-ink) 82%, var(--band)); }

/* ---------- Inner pages ---------- */

.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 20px; }

/* Services */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px clamp(24px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--rule);
}
.service-intro { display: grid; gap: 14px; align-content: start; }
.service-intro p { color: var(--muted); }
.service-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.service-detail h3 { margin-bottom: 10px; font-family: var(--font-body); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.tools { color: var(--muted); }

@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .service-detail { grid-template-columns: 1fr; }
}

.ticks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 2px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.pillars li {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px 22px;
  background: var(--surface);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillars strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; }
.pillars span { color: var(--muted); }

@media (max-width: 860px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
}

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.plan { display: grid; gap: 12px; align-content: start; padding: 24px 24px 8px 0; }
.plan + .plan { padding-left: 24px; border-left: 1px solid var(--rule); }
.plan p { color: var(--muted); }
.plan .price { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.prose { display: grid; gap: 18px; max-width: 66ch; }
.prose h2 { margin-top: 20px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }

.aside { display: grid; gap: 20px; position: sticky; top: 24px; }
.aside h2 { font-size: 1.25rem; }

.photo-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 24px;
  background: var(--surface);
  border: 1.5px dashed var(--field-border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .photo-slot { max-width: 320px; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.form {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.hint, .form-note { color: var(--muted); font-size: 0.95rem; }
.form-status { min-height: 1.6em; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--error); }

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

/* Privacy notice */
.notice { display: grid; gap: 16px; max-width: 70ch; padding-bottom: clamp(56px, 8vw, 96px); }
.notice h2 { margin-top: 24px; font-size: 1.4rem; }
.notice ul { display: grid; gap: 6px; margin: 0; padding-left: 1.2em; }

/* ---------- Service groups, packages, FAQ ---------- */

.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.group { display: grid; gap: 14px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.group > h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.group > p { color: var(--muted); }
.group-services { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.group-services li { display: grid; gap: 6px; padding-block: 16px; border-top: 1px solid var(--rule); }
.group-services p { color: var(--muted); }

.title-link { color: var(--ink); text-decoration: none; }
.title-link:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }

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

.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.package {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 4px 4px 8px 8px;
  scroll-margin-top: 24px;
}
.package p { color: var(--muted); }
.package-compact { grid-template-rows: auto 1fr auto; }
.package-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.package-facts dt { color: var(--muted); }
.package-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.package-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

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

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--field-border);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq-a { display: grid; gap: 10px; max-width: 66ch; padding-bottom: 18px; color: var(--muted); }

/* Service detail pages */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 0.95rem; }
.breadcrumb a { color: var(--muted); }
.page-head .actions { margin-top: 28px; }

.diagram-block { padding-bottom: clamp(48px, 7vw, 80px); }
.diagram-block .sheet { margin-top: 0; }

.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .steps-3 { grid-template-columns: 1fr; }
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  background: var(--accent-soft);
  border-radius: 10px;
}
.callout > div { display: grid; gap: 10px; }
.callout p { color: var(--muted); max-width: 56ch; }
.callout .package-facts { border-top: 0; padding-top: 0; }

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

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

.site-footer { padding-block: 48px; border-top: 1px solid var(--rule); font-size: 0.95rem; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 32px 48px;
  align-items: start;
}
.footer-brand { display: grid; gap: 10px; }
.footer-grid p { color: var(--muted); }
.footer-h { margin-bottom: 8px; font-family: var(--font-body); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.footer-nav ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-nav a, .footer-brand a:not(.brand) { display: inline-block; padding-block: 6px; color: var(--ink); }
.legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--rule); }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
