﻿:root {
  --ink: #111827;
  --muted: #53606f;
  --paper: #ffffff;
  --soft: #f5f7f6;
  --line: #d9dfdd;
  --green: #07553f;
  --green-2: #0e6b52;
  --red: #b3292f;
  --gold: #c58a1f;
  --blue: #16406d;
  --shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--ink);
  color: #f8fafc;
  font-size: 0.86rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.topbar .wrap > * {
  min-width: 0;
  overflow-wrap: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 260px;
}

.brand-mark {
  width: min(290px, 50vw);
  height: auto;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 4px 8px rgba(7, 85, 63, 0.18));
}

.brand-name {
  font-weight: 800;
  line-height: 1.15;
}

.brand-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 2px;
}

.brand-name,
.brand-kicker {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #233044;
  padding: 10px 12px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: #edf4f1;
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: #961e24;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.hero {
  min-height: 62vh;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 20, 31, 0.82), rgba(9, 20, 31, 0.52), rgba(9, 20, 31, 0.22)),
    url("https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero .wrap {
  padding: 96px 0 76px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #f8d483;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  max-width: 800px;
  margin: 16px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 7vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero p,
.page-hero p {
  max-width: 720px;
  font-size: clamp(1.03rem, 2vw, 1.24rem);
  color: #e7edf3;
  margin: 0 0 26px;
}

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

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.92);
}

.quick-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-link {
  min-height: 118px;
  padding: 22px;
  text-decoration: none;
  border-left: 1px solid var(--line);
}

.quick-link:last-child {
  border-right: 1px solid var(--line);
}

.quick-link strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

.quick-link span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.92rem;
}

.quick-link:hover {
  background: #f4faf7;
}

.home-portal-section {
  background: #f5f7f6;
}

.stat-band {
  background: #f5f7f6;
}

.stat-band-top {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding-top: 0;
}

.home-portal-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(190px, 220px);
  gap: 24px;
  align-items: start;
}

.home-main {
  min-width: 0;
}

.home-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.home-panel-head {
  margin-bottom: 14px;
}

.home-panel h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.journal-picker {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--muted);
  background: #fff;
  font-size: 0.9rem;
  font: inherit;
  margin-bottom: 18px;
}

.oa-journal-list,
.home-news-list {
  display: grid;
  gap: 0;
}

.oa-journal {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--line);
}

.oa-journal-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf4f1;
  color: var(--green);
  border: 1px solid rgba(7, 85, 63, 0.18);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.oa-journal h3,
.home-news-list h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.oa-journal h3 a {
  color: var(--ink);
  text-decoration: none;
}

.oa-journal h3 a:hover {
  color: var(--green);
}

.oa-journal p {
  margin: 6px 0 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-meta span {
  border: 1px solid rgba(7, 85, 63, 0.14);
  background: #f4faf7;
  color: var(--green);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.7rem;
  font-weight: 800;
}

.home-panel-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.home-panel-actions a,
.home-panel-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.home-panel-actions a:hover,
.home-panel-link:hover,
.home-news-list a:hover {
  color: var(--red);
}

.home-news-list article {
  padding: 0 0 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.home-news-list time {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.home-news-list a {
  color: var(--ink);
  text-decoration: none;
}

.home-panel-link {
  display: inline-flex;
  margin-top: 2px;
  font-size: 0.9rem;
}

.home-main .section-head {
  display: block;
}

.home-main .journal-card {
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
}

.home-main .journal-body {
  padding: 24px;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head h2,
.page-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.lead {
  color: var(--muted);
  max-width: 680px;
  margin: 10px 0 0;
  overflow-wrap: break-word;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card,
.journal-card,
.news-card,
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card,
.service-card {
  padding: 24px;
}

.card h3,
.journal-card h3,
.news-card h3,
.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.card p,
.journal-card p,
.news-card p,
.service-card p {
  margin: 0;
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  background: var(--ink);
  color: #fff;
  padding: 22px;
  border-radius: 8px;
  min-height: 128px;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
  color: #f8d483;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: #dbe3ea;
  font-size: 0.92rem;
}

.journal-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 280px;
}

.journal-media {
  background: var(--green);
  min-height: 100%;
  position: relative;
}

.journal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-fallback {
  height: 100%;
  min-height: 280px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 85, 63, 0.96), rgba(22, 64, 109, 0.9)),
    linear-gradient(45deg, transparent 0 48%, rgba(255, 255, 255, 0.13) 48% 52%, transparent 52% 100%);
}

.cover-fallback strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.08;
}

.cover-fallback span {
  color: #f8d483;
  font-weight: 800;
}

.journal-body {
  padding: 26px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4f1;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.pill-gold {
  background: #fff5dc;
  color: #8a5a07;
}

.pill-red {
  background: #fff0f1;
  color: var(--red);
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.link-list a:hover {
  color: var(--green);
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  position: relative;
}

.process-card:before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: var(--gold);
  color: #111827;
  border-radius: 50%;
  font-weight: 800;
}

.feature-band {
  background: var(--green);
  color: #fff;
}

.feature-band .lead,
.feature-band p {
  color: #d8eee6;
}

.feature-band .process-card {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
}

.feature-band .process-card h3 {
  color: var(--ink);
}

.feature-band .process-card p {
  color: var(--muted);
}

.feature-band .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.feature-band .card p {
  color: #d8eee6;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.route-card {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  color: var(--ink);
}

.route-kicker {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.route-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.route-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.56)),
    url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: #fff;
}

.page-hero .wrap {
  padding: 86px 0 64px;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5.5vw, 4.5rem);
}

.page-section {
  padding: 64px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.54fr);
  gap: 42px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.panel h3 {
  margin-top: 0;
}

.content-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
}

.content-block h2,
.content-block h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.content-block h2:first-child,
.content-block h3:first-child {
  margin-top: 0;
}

.content-block ul,
.panel ul,
.service-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.content-block li,
.panel li,
.service-card li {
  margin: 8px 0;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0 0 22px;
}

.search-row input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 46px;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-card:first-child img {
  height: 280px;
}

.news-card div {
  padding: 20px;
}

.news-card time {
  display: block;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  color: #fff;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f8d483;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #b8c1cc;
  font-size: 0.9rem;
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff9ea;
  padding: 16px 18px;
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

.quote-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: clamp(20px, 3.5vw, 34px);
  margin: 0 0 26px;
}

.quote-brief__label {
  display: inline-flex;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.quote-brief h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.quote-brief p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
}

.quote-brief__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-brief__steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.quote-brief__steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.quote-brief__steps strong {
  color: var(--ink);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 100%;
}

.pricing-card-featured {
  border-color: rgba(179, 41, 47, 0.45);
  box-shadow: var(--shadow);
}

.pricing-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff2d8;
  color: #6d4510;
  border: 1px solid rgba(197, 138, 31, 0.3);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 800;
}

.pricing-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
}

.pricing-note {
  padding-top: 4px;
  color: #243145;
}

.pricing-card strong {
  display: block;
  color: var(--red);
  font-size: 1.8rem;
  line-height: 1.1;
}

.pricing-card ul {
  margin: 0 0 4px;
  padding-left: 20px;
  color: #243145;
}

.pricing-card li {
  margin: 7px 0;
}

.pricing-card .btn {
  margin-top: auto;
}

.gap-noscroll {
  overflow: hidden;
}

.gap-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  overflow-y: auto;
  padding: 24px;
}

.gap-modal.is-open {
  display: block;
}

.gap-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.66);
}

.gap-modal__dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.gap-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.gap-modal__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.gap-modal__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.quote-modal-tier {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 10px 0 0;
  border: 1px solid rgba(7, 85, 63, 0.18);
  background: #edf4f1;
  color: var(--green);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.gap-modal__close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gap-form {
  padding: 20px;
}

.gap-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

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

.gap-field label {
  display: block;
  margin: 0 0 6px;
  color: #253247;
  font-size: 0.85rem;
  font-weight: 800;
}

.gap-field input,
.gap-field select,
.gap-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.gap-field input[readonly] {
  background: #f8fafc;
  color: #243145;
  font-weight: 800;
}

.gap-field textarea {
  min-height: 130px;
  resize: vertical;
}

.gap-field input:focus,
.gap-field select:focus,
.gap-field textarea:focus {
  outline: 3px solid rgba(14, 107, 82, 0.16);
  border-color: var(--green-2);
}

.gap-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.gap-section-title {
  margin: 0 0 14px;
  font-size: 1rem;
}

.gap-quotehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gap-pill {
  border: 1px solid rgba(7, 85, 63, 0.18);
  background: #edf4f1;
  color: var(--green);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.gap-note,
.gap-footerhint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gap-box,
.gap-contract {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
  margin: 14px 0;
}

.gap-box-title,
.gap-contract__title {
  color: var(--green);
  font-weight: 800;
  margin-bottom: 8px;
}

.gap-contract__text {
  color: var(--muted);
}

.gap-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}

.gap-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #243145;
  font-size: 0.92rem;
}

.gap-totalbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(179, 41, 47, 0.18);
  background: #fff8f3;
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
}

.gap-total-label {
  color: var(--red);
  font-weight: 900;
}

.gap-total-sub {
  color: var(--muted);
  font-size: 0.86rem;
}

.gap-totalinput {
  max-width: 220px;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 900;
}

.gap-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.gap-btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.gap-btn--primary {
  background: var(--red);
  color: #fff;
}

.gap-btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.gap-hp {
  display: none;
}

@media (max-width: 980px) {
  .nav-shell {
    flex-wrap: wrap;
    min-height: 66px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 16px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 4px;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .quick-grid,
  .stat-row,
  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .grid-2,
  .home-portal-grid,
  .news-grid,
  .pricing-grid,
  .route-grid,
  .quote-brief,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gap-grid--3 {
    grid-template-columns: 1fr;
  }

  .journal-card {
    grid-template-columns: 1fr;
  }

  .home-main .journal-card {
    grid-template-columns: 1fr;
  }

  .journal-media,
  .cover-fallback {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .topbar .wrap {
    display: grid;
    gap: 4px;
  }

  .nav-shell {
    gap: 10px;
  }

  .brand {
    flex: 1 1 calc(100% - 52px);
    min-width: 0;
  }

  .brand-name {
    font-size: 0.94rem;
    overflow-wrap: break-word;
  }

  .nav-toggle {
    flex: 0 0 42px;
  }

  .nav-actions {
    flex-basis: 100%;
  }

  .brand-kicker {
    display: none;
  }

  .nav-actions .btn-primary {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 68vh;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.35rem;
    line-height: 1.05;
  }

  .section-head h2,
  .page-section h2 {
    font-size: 2.1rem;
    line-height: 1.08;
  }

  .hero .wrap,
  .page-hero .wrap {
    padding-top: 72px;
  }

  .stat-band-top {
    margin-top: -28px;
  }

  .quick-grid,
  .stat-row,
  .process {
    grid-template-columns: 1fr;
  }

  .quote-brief {
    padding: 20px;
  }

  .quick-link,
  .quick-link:last-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-head {
    display: block;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .gap-modal {
    padding: 0;
  }

  .gap-modal__dialog {
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .gap-grid--2,
  .gap-checks {
    grid-template-columns: 1fr;
  }

  .gap-totalbar {
    align-items: stretch;
    flex-direction: column;
  }

  .gap-totalinput {
    max-width: none;
    text-align: left;
  }
}

