:root {
  --bg: #f5f8fa;
  --surface: #ffffff;
  --text: #1b2430;
  --muted: #3f4b5a;
  --border: #d5dee5;
  --primary: #0f4c5c;
  --primary-dark: #0a3744;
  --primary-light: #1c7a8c;
  --accent: #0f4c5c;
  --accent-hover: #0a3744;
  --warm: #e07a2f;
  --warm-hover: #c9661e;
  --warm-text: #a84a0c;
  --notice-bg: #fef9c3;
  --notice-border: #eab308;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #0a3744 0%, #0f4c5c 55%, #1c7a8c 100%);
  padding: 14px 0;
}

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

.brand {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.header-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.header-link:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f4c5c 0%, #1c7a8c 100%);
  color: #ffffff;
  padding: 52px 0 48px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 2.2rem;
  line-height: 1.25;
  color: #ffffff;
}

.subtitle {
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: #e6f2f5;
  max-width: 820px;
}

.trust-list {
  margin: 0 0 28px;
  padding-left: 20px;
  color: #ffffff;
}

.trust-list li {
  margin-bottom: 6px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--warm);
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 14px 30px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #f08d42;
}

.cta-note {
  color: #ffffff;
  font-size: 0.95rem;
}

.cta-note a {
  color: #ffffff;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-alt {
  background: var(--bg);
}

.section {
  background: var(--surface);
}

.section.section-alt {
  background: var(--bg);
}

.section h2 {
  margin: 0 0 24px;
  font-size: 1.45rem;
  color: var(--primary);
  border-left: 5px solid var(--warm);
  padding-left: 12px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.section-alt .card {
  background: var(--surface);
}

.directions .card {
  border-top: 5px solid var(--primary);
  padding-top: 18px;
}

.dir-1 { border-top-color: #0f4c5c; }
.dir-2 { border-top-color: #2e8b57; }
.dir-3 { border-top-color: #e07a2f; }
.dir-4 { border-top-color: #5b6abf; }
.dir-5 { border-top-color: #8a5a9e; }
.dir-6 { border-top-color: #b8860b; }

.dir-icon {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.card h3,
.card h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.card li {
  margin-bottom: 8px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--warm);
  border-radius: 8px;
  padding: 18px 20px;
}

.step-num {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warm-text);
  margin-bottom: 6px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Demo table */
.demo-notice {
  background: var(--notice-bg);
  color: #3b2f00;
  border-left: 4px solid var(--notice-border);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary);
  font-weight: 600;
  color: #ffffff;
}

tbody tr:nth-child(even) td {
  background: #eef4f7;
}

.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--warm-text);
  font-weight: 600;
}

.total-row td,
tbody tr.total-row:nth-child(even) td {
  font-weight: 700;
  background: #fdeee0;
  border-bottom: none;
}

/* Pricing */
.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--warm-text) !important;
  margin-bottom: 8px !important;
}

/* Contact */
.section-contact,
.section.section-contact {
  background: linear-gradient(135deg, #0a3744 0%, #0f4c5c 100%);
  color: #f8fafc;
}

.section-contact h2 {
  border-left-color: var(--warm);
}

.contact-email a {
  color: #ffffff;
}

.section-contact h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-box p {
  color: #dbeaee;
  margin: 0 0 20px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.contact-email {
  margin: 0 !important;
  color: #e2e8f0 !important;
}

code {
  background: rgba(148, 163, 184, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Footer */
.site-footer {
  background: #072a34;
  color: #c4d6dc;
  padding: 18px 0;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .grid-3,
  .grid-2,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 32px;
  }
}

/* Articles and extras */
.article .container { max-width: 820px; }
.article h1 { margin: 0 0 22px; font-size: 2.2rem; line-height: 1.3; color: var(--primary); }
.article h2 { margin: 28px 0 12px; font-size: 1.3rem; color: var(--primary); }
.article p, .article li { font-size: 1.04rem; }
.article ol { padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article .author { color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 28px; font-size: 0.95rem; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.article-list a { display: block; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--warm); border-radius: 8px; padding: 16px 18px; color: var(--primary); font-weight: 600; text-decoration: none; }
.article-list a:hover { background: #eef5f7; text-decoration: underline; }

/* Direction groups: first group 2 columns, second group 3 columns */
.group-title { margin: 8px 0 16px; font-size: 1.15rem; color: var(--primary); }
.directions + .group-title { margin-top: 32px; }
.dir-7 { border-top-color: #2a7f9e; }
.grid-2.directions-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-2.directions-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2.directions-3 { grid-template-columns: 1fr; } }

/* Scale of work */
.subtitle { max-width: 1000px; }
.scale .card { border-top: 5px solid var(--primary-light); }
.scale .scale-2 { border-top-color: var(--warm); }
.scale .scale-3 { border-top-color: var(--primary-dark); }
.scale-note { margin: 22px 0 0; font-weight: 600; color: var(--primary); }
.group-gap { margin-top: 32px; }

/* Header short brand, H1 sizes, equal-height cards */
.brand-short { display: none; }
.directions .card, .scale .card { display: flex; flex-direction: column; }
.directions { align-items: stretch; }
@media (max-width: 640px) {
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .hero h1, .article h1 { font-size: 1.6rem; }
}

/* Antagonist fixes: header nav, hero CTA, mobile bar */
.header-inner { flex-wrap: wrap; }
.header-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sub-short { display: none; }
.btn-secondary { display: inline-block; padding: 12px 22px; border: 2px solid #ffffff; border-radius: 8px; color: #ffffff; font-weight: 600; text-decoration: none; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }
.hero-cta { flex-wrap: wrap; gap: 12px; }
.first-step { margin: 14px 0 0; font-size: 0.98rem; color: #e6f2f5; }
.section-contact .first-step { color: inherit; margin: 0 0 16px; }
.mobile-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px; background: #072a34; box-shadow: 0 -2px 8px rgba(0,0,0,0.25); }
  .mobile-bar a { flex: 1; text-align: center; padding: 13px 8px; border-radius: 8px; font-weight: 700; text-decoration: none; color: #ffffff; }
  .mobile-bar-tg { background: var(--warm); }
  .mobile-bar-call { background: var(--primary-light); }
}
@media (max-width: 640px) {
  .sub-full { display: none; }
  .sub-short { display: inline; }
  .trust-list li:first-child { display: none; }
  .hero { padding: 24px 0 24px; }
  .hero h1 { font-size: 1.5rem; margin-bottom: 10px; }
  .subtitle { margin-bottom: 12px; font-size: 1rem; }
  .header-nav { width: 100%; justify-content: space-between; gap: 6px 10px; }
  .header-link { font-size: 0.85rem; }
}
