/**
 * template_4 design system — industrial / bento (not floship-base).
 * Fonts: Syne + Source Sans 3 (loaded from index.php).
 *
 * Design tokens (when to use what):
 * - Surfaces: --t4-paper (default light page bg), --t4-paper-muted, --t4-ink / --t4-ink-soft (dark bands).
 * - Body text on light: inherits --t4-ink from body.t4-theme; secondary copy: --t4-muted.
 * - Text on dark stripes: set color to --t4-paper (or rgba paper) on that block; links often contrast
 *   with --t4-paper + underline; home eyebrow on dark: #e8a066.
 * - Accents / CTAs: --t4-accent, hover --t4-accent-hover; link green on light: --t4-forest.
 * - Structure: --t4-line, --t4-radius, --t4-max, --t4-header-h; type: --t4-font-display, --t4-font-body.
 *
 * Body vs sections (mixed dark + light):
 * - Do not expect a single global body color to “cover” alternating bands. Each major stripe sets both
 *   background and color (see home: body.t4-body--home is dark for base, light sections override locally).
 * - Inner marketing pages: body.t4-body--inner; main content uses .t4p-wrap rhythm. Shell header is dark on all routes.
 *
 * Public shell checklist (index.php):
 * - header.t4-shell-header, footer.t4-shell-footer,
 *   mobile .t4-shell-drawer, scroll #scroll-top.t4-scroll-top.
 */
:root {
  --t4-ink: #0b0c0e;
  --t4-ink-soft: #16181c;
  --t4-paper: #f1ece3;
  --t4-paper-muted: #e3dbd0;
  --t4-accent: #c45c1a;
  --t4-accent-hover: #a34a12;
  --t4-forest: #1c3d30;
  --t4-muted: #5a564d;
  --t4-line: rgba(11, 12, 14, 0.14);
  --t4-line-strong: rgba(11, 12, 14, 0.28);
  --t4-radius: 10px;
  --t4-radius-lg: 16px;
  --t4-font-display: "Syne", system-ui, sans-serif;
  --t4-font-body: "Source Sans 3", system-ui, sans-serif;
  --t4-max: 1180px;
  --t4-header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body.t4-theme {
  margin: 0;
  font-family: var(--t4-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--t4-ink);
  background: var(--t4-paper);
  -webkit-font-smoothing: antialiased;
}

/*
 * Home: не задавать color на body — секции чередуют тёмный/светлый фон.
 * Базовый цвет текста остаётся от body.t4-theme (тёмный). Светлый текст
 * только там, где фон тёмный (шапка, mast, rail, CTA, футер).
 */
body.t4-body--home {
  background: var(--t4-ink);
}

body.t4-theme .t4-shell-header {
  background: var(--t4-ink);
  border-bottom: 1px solid rgba(241, 236, 227, 0.12);
  color: var(--t4-paper);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--t4-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--t4-accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--t4-font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.t4-eyebrow {
  display: inline-block;
  font-family: var(--t4-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t4-accent);
  margin-bottom: 0.75rem;
}

body.t4-body--home .t4-eyebrow {
  color: #e8a066;
}

.t4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--t4-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}

.t4-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.t4-btn-primary {
  background: var(--t4-accent);
  color: #fff;
  border-color: var(--t4-accent);
}

.t4-btn-primary:hover {
  background: var(--t4-accent-hover);
  border-color: var(--t4-accent-hover);
  color: #fff;
}

.t4-btn-secondary {
  background: transparent;
  border-color: var(--t4-line-strong);
  color: inherit;
}

body.t4-body--home .t4-btn-secondary {
  border-color: rgba(241, 236, 227, 0.45);
  color: var(--t4-paper);
}

.t4-shell-header .t4-btn-secondary {
  border-color: rgba(241, 236, 227, 0.45);
  color: var(--t4-paper);
}

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

body.t4-body--home .t4-btn-secondary:hover {
  color: #fff;
  border-color: #fff;
}

.t4-shell-header .t4-btn-secondary:hover {
  color: #fff;
  border-color: #fff;
}

.t4-btn-ghost {
  background: rgba(241, 236, 227, 0.08);
  color: var(--t4-paper);
  border-color: rgba(241, 236, 227, 0.35);
}

.t4-btn-ghost:hover {
  background: rgba(241, 236, 227, 0.16);
  color: #fff;
}

/* ========== Shell header ========== */
.t4-shell-header__bar .container {
  max-width: var(--t4-max);
}

.t4-shell-header__bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--t4-header-h);
  padding: 0.35rem 0;
}

.t4-shell-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  justify-self: start;
}

.t4-shell-brand img {
  height: 38px;
  width: auto;
}

.t4-shell-brand small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 600;
}

.t4-shell-header .t4-shell-brand small {
  color: rgba(241, 236, 227, 0.75);
}

.t4-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: center;
  justify-self: center;
}

.t4-shell-nav a {
  font-family: var(--t4-font-display);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.88;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.t4-shell-nav a:hover {
  opacity: 1;
  color: var(--t4-accent);
  border-bottom-color: var(--t4-accent);
}

.t4-shell-header .t4-shell-nav a:hover {
  color: #e8a066;
  border-bottom-color: #e8a066;
}

.t4-shell-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.t4-shell-link {
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
}

.t4-shell-link:hover {
  opacity: 1;
  color: var(--t4-accent);
}

.t4-shell-header .t4-shell-link {
  color: var(--t4-paper);
}

.t4-shell-header .t4-shell-link:hover {
  color: #e8a066;
}

/* Scoped to header so UA / Bootstrap don’t leave unreadable currentColor on the bars */
.t4-shell-header .t4-shell-menu-btn {
  display: none;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--t4-paper);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}

.t4-shell-header .t4-shell-menu-btn:focus {
  outline: none;
}

.t4-shell-header .t4-shell-menu-btn:focus-visible {
  outline: 2px solid var(--t4-accent);
  outline-offset: 3px;
}

.t4-shell-header .t4-shell-menu-btn span {
  display: block;
  width: 22px;
  height: 3px;
  flex-shrink: 0;
  background-color: var(--t4-paper);
  border-radius: 1px;
}

@media (max-width: 991px) {
  .t4-shell-nav,
  .t4-shell-actions .t4-shell-link,
  .t4-shell-actions .t4-btn:not(.t4-shell-menu-btn) {
    display: none;
  }

  .t4-shell-header .t4-shell-menu-btn {
    display: flex;
  }

  .t4-shell-header__bar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .t4-shell-brand {
    justify-self: start;
    min-width: 0;
  }

  .t4-shell-actions {
    justify-self: end;
  }
}

/* Mobile drawer — keep #mobile-menu-overlay for main.js */
.mobile-menu-overlay.t4-shell-drawer {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 14, 0.55);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.mobile-menu-overlay.t4-shell-drawer.active {
  opacity: 1;
  visibility: visible;
}

.t4-shell-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--t4-ink-soft);
  color: var(--t4-paper);
  overflow-y: auto;
  padding: 1.25rem 1.25rem 2rem;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.mobile-menu-overlay.t4-shell-drawer.active .t4-shell-drawer__panel {
  transform: translateX(0);
}

.t4-shell-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(241, 236, 227, 0.15);
}

.t4-shell-drawer__head img {
  height: 32px;
}

.t4-shell-drawer__close {
  border: none;
  background: transparent;
  color: var(--t4-paper);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.offcanvas-navigation.t4-shell-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offcanvas-navigation.t4-shell-drawer__nav > ul > li {
  border-bottom: 1px solid rgba(241, 236, 227, 0.1);
}

/* Only list links — not .t4-shell-drawer__cta .t4-btn (those need inline-flex to center label) */
.offcanvas-navigation.t4-shell-drawer__nav ul a {
  display: block;
  padding: 0.85rem 0;
  color: var(--t4-paper);
  text-decoration: none;
  font-weight: 600;
}

.offcanvas-navigation.t4-shell-drawer__nav .sub-menu {
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.offcanvas-navigation.t4-shell-drawer__nav .sub-menu a {
  font-weight: 500;
  opacity: 0.85;
  padding: 0.5rem 0;
}

.t4-shell-drawer__cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.t4-shell-drawer__cta .t4-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ========== Footer ========== */
.t4-shell-footer {
  background: var(--t4-ink);
  color: var(--t4-paper-muted);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  margin-top: 0;
}

.t4-shell-footer a {
  color: var(--t4-paper);
  text-decoration: none;
}

.t4-shell-footer a:hover {
  color: #e8a066;
}

.t4-shell-footer__ribbon {
  max-width: var(--t4-max);
  margin: 0 auto 2rem;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(241, 236, 227, 0.12);
  padding-bottom: 1.75rem;
}

.t4-shell-footer__tagline {
  font-family: var(--t4-font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  max-width: 34ch;
  color: var(--t4-paper);
  line-height: 1.15;
}

.t4-shell-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  max-width: var(--t4-max);
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 991px) {
  .t4-shell-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .t4-shell-footer__grid {
    grid-template-columns: 1fr;
  }
}

.t4-shell-footer__grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e8a066;
  margin-bottom: 0.75rem;
}

.t4-shell-footer__grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.t4-shell-footer__grid li + li {
  margin-top: 0.45rem;
}

.t4-shell-footer__meta {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 1rem;
}

.t4-shell-footer__bottom {
  max-width: var(--t4-max);
  margin: 2rem auto 0;
  padding: 1.25rem 15px 0;
  border-top: 1px solid rgba(241, 236, 227, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.8;
}

.t4-shell-footer__bottom > div {
  display: flex;
  gap: 1.25rem;
}

/* ========== Inner page hero (header/content.php) ========== */
.t4-shell-pagehead {
  background: linear-gradient(135deg, var(--t4-paper-muted) 0%, var(--t4-paper) 55%, #dfe6e2 100%);
  border-bottom: 1px solid var(--t4-line);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}

.t4-shell-pagehead__inner {
  max-width: var(--t4-max);
  margin: 0 auto;
}

.t4-shell-pagehead__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  max-width: 18ch;
}

.t4-shell-pagehead__lead {
  max-width: 52ch;
  color: var(--t4-muted);
  font-size: 1.08rem;
  margin: 0.75rem 0 0;
}

/* ========== Home sections ========== */
.t4-home-mast {
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(2rem, 5vw, 4rem);
  color: var(--t4-paper);
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(196, 92, 26, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(28, 61, 48, 0.35), transparent 50%),
    var(--t4-ink);
}

.t4-home-mast__grid {
  max-width: var(--t4-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 991px) {
  .t4-home-mast__grid {
    grid-template-columns: 1fr;
  }
}

.t4-home-mast__title {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  color: var(--t4-paper);
  margin-bottom: 0.65em;
}

.t4-home-mast__lead {
  color: rgba(241, 236, 227, 0.88);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.t4-home-mast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.t4-home-mast__panel {
  background: rgba(241, 236, 227, 0.06);
  border: 1px solid rgba(241, 236, 227, 0.18);
  border-radius: var(--t4-radius-lg);
  padding: 1.5rem 1.35rem;
}

.t4-home-mast__statboard {
  display: grid;
  gap: 1rem;
}

.t4-home-mast__statboard strong {
  display: block;
  font-family: var(--t4-font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  color: #e8a066;
  line-height: 1;
}

.t4-home-mast__statboard span {
  display: block;
  font-size: 0.92rem;
  opacity: 0.86;
  margin-top: 0.35rem;
}

.t4-home-mast__panel-note {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  opacity: 0.7;
  line-height: 1.45;
}

.t4-home-bento {
  background: var(--t4-paper);
  color: var(--t4-ink);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.t4-home-bento__head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.t4-home-bento__head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
}

.t4-home-bento__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.t4-home-bento__cell {
  grid-column: span 4;
  background: var(--t4-paper-muted);
  border-radius: var(--t4-radius);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--t4-line);
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.t4-home-bento__cell--wide {
  grid-column: span 8;
  background: var(--t4-forest);
  color: var(--t4-paper);
  border-color: transparent;
}

.t4-home-bento__cell--wide a {
  color: #e8a066;
}

.t4-home-bento__cell--tall {
  grid-row: span 2;
  min-height: auto;
}

.t4-home-bento__cell h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.t4-home-bento__cell p {
  flex: 1;
  margin: 0 0 1rem;
  opacity: 0.92;
  font-size: 0.98rem;
}

.t4-home-bento__cell a {
  font-family: var(--t4-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--t4-accent);
}

.t4-home-bento__cell a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .t4-home-bento__cell,
  .t4-home-bento__cell--wide,
  .t4-home-bento__cell--tall {
    grid-column: span 12;
    grid-row: auto;
    min-height: 0;
  }
}

.t4-home-rail {
  background: var(--t4-ink-soft);
  color: var(--t4-paper);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-block: 1px solid rgba(241, 236, 227, 0.1);
}

.t4-home-rail__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .t4-home-rail__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.t4-home-rail__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.t4-home-rail__idx {
  font-family: var(--t4-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #e8a066;
  opacity: 0.9;
  line-height: 1;
}

.t4-home-rail__steps h3 {
  font-size: 1.05rem;
  color: var(--t4-paper);
  margin-bottom: 0.35rem;
}

.t4-home-rail__steps p {
  margin: 0;
  opacity: 0.82;
  font-size: 0.95rem;
}

.t4-home-quote {
  background: var(--t4-paper);
  color: var(--t4-ink);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.t4-home-quote__block {
  margin: 0;
  max-width: 52ch;
  border-left: 4px solid var(--t4-accent);
  padding: 0 0 0 1.5rem;
}

.t4-home-quote__block p {
  font-family: var(--t4-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--t4-ink);
}

.t4-home-quote__block cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--t4-muted);
}

.t4-home-cta {
  background: var(--t4-forest);
  color: var(--t4-paper);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.t4-home-cta__box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--t4-max);
}

.t4-home-cta__box h2 {
  color: var(--t4-paper);
  max-width: 20ch;
}

.t4-home-cta__box p {
  margin: 0.5rem 0 0;
  max-width: 48ch;
  opacity: 0.9;
}

.t4-home-cta__btn {
  flex-shrink: 0;
}

/* ========== Page content wrapper ========== */
.t4p-wrap {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

/* ========== About (t4p-about) ========== */
.t4p-about__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

@media (max-width: 991px) {
  .t4p-about__hero {
    grid-template-columns: 1fr;
  }
}

.t4p-about__hero-content h1 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.t4p-about__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.t4p-about__hero-media {
  min-height: 280px;
  border-radius: var(--t4-radius-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--t4-line);
}

.t4p-about__grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  .t4p-about__grid3 {
    grid-template-columns: 1fr;
  }
}

.t4p-about__tile {
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
}

.t4p-about__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (max-width: 991px) {
  .t4p-about__split {
    grid-template-columns: 1fr;
  }
}

.t4p-about__split-media {
  min-height: 260px;
  border-radius: var(--t4-radius-lg);
  background-size: cover;
  background-position: center;
  order: 2;
}

.t4p-about__split-content {
  order: 1;
}

.t4p-about__split:nth-child(even) .t4p-about__split-media {
  order: 1;
}

.t4p-about__split:nth-child(even) .t4p-about__split-content {
  order: 2;
}

.t4p-about__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  .t4p-about__duo {
    grid-template-columns: 1fr;
  }
}

.t4p-about__panel {
  padding: 1.5rem;
  border-radius: var(--t4-radius);
  background: var(--t4-paper-muted);
  border: 1px solid var(--t4-line);
}

.t4p-about__cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--t4-radius-lg);
  background: var(--t4-ink);
  color: var(--t4-paper);
}

.t4p-about__cta h2 {
  color: var(--t4-paper);
}

.t4p-about__cta p {
  max-width: 52ch;
  margin: 0.75rem auto 1.25rem;
  opacity: 0.88;
}

/* ========== Contact t4p-contact ========== */
.t4p-contact__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
  .t4p-contact__hero {
    grid-template-columns: 1fr;
  }
}

.t4p-contact__hero-panel {
  padding: 1.5rem;
  border-radius: var(--t4-radius-lg);
  background: #fff;
  border: 1px solid var(--t4-line);
}

.t4p-contact__hero-panel dl {
  margin: 1rem 0 0;
}

.t4p-contact__hero-panel dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t4-muted);
}

.t4p-contact__hero-panel dd {
  margin: 0.2rem 0 1rem;
}

.t4p-contact__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .t4p-contact__actions {
    grid-template-columns: 1fr;
  }
}

.t4p-contact__action {
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--t4-radius);
  border: 1px solid var(--t4-line);
}

.t4p-contact__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 991px) {
  .t4p-contact__grid2 {
    grid-template-columns: 1fr;
  }
}

.t4p-contact__form-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius-lg);
}

.t4p-contact__field {
  margin-bottom: 1rem;
}

.t4p-contact__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* ========== Services pack ========== */
.t4p-services__hero {
  margin-bottom: 2.5rem;
  max-width: 70ch;
}

.t4p-services__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.t4p-services__chips span {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--t4-paper-muted);
  border: 1px solid var(--t4-line);
}

.t4-services-tabs {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (max-width: 991px) {
  .t4-services-tabs {
    grid-template-columns: 1fr;
  }
}

.t4-services-tabs__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.t4-services-tabs__nav-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--t4-radius);
  border: 1px solid var(--t4-line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.t4-services-tabs__nav-item:hover {
  border-color: var(--t4-accent);
}

.t4-services-tabs__nav-item.is-active {
  border-color: var(--t4-forest);
  box-shadow: 0 0 0 1px var(--t4-forest);
}

.t4-services-tabs__nav-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t4-accent);
}

.t4-services-tabs__nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.t4-services-tabs__nav-copy strong {
  display: block;
  font-size: 0.95rem;
}

.t4-services-tabs__nav-copy small {
  display: block;
  opacity: 0.75;
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.t4-services-tabs__panels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.t4-services-tabs__panel {
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  background: #fff;
  overflow: hidden;
}

.t4-services-tabs__panel:not(.is-active) {
  opacity: 0.65;
}

.t4-services-tabs__panel.is-active {
  opacity: 1;
  border-color: var(--t4-forest);
}

.t4-services-tabs__mobile-trigger {
  display: none;
  width: 100%;
  padding: 1rem;
  border: none;
  background: var(--t4-paper-muted);
  font-family: var(--t4-font-display);
  font-weight: 700;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
}

.t4-services-tabs__panel-body {
  padding: 1.35rem 1.25rem 1.5rem;
}

.t4-services-tabs__panel-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.t4-services-tabs__panel-head .t4-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--t4-accent);
  fill: none;
}

.t4-services-tabs__panel ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
}

.t4-services-tabs__panel li {
  margin-bottom: 0.35rem;
}

@media (max-width: 991px) {
  .t4-services-tabs__nav {
    display: none;
  }

  .t4-services-tabs__mobile-trigger {
    display: flex;
  }

  .t4-services-tabs__panel:not(.is-active) .t4-services-tabs__panel-body {
    display: none;
  }

  .t4-services-tabs__panel.is-active .t4-services-tabs__mobile-trigger em {
    content: "";
  }
}

.t4p-services__capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 767px) {
  .t4p-services__capabilities {
    grid-template-columns: 1fr;
  }
}

.t4p-services__capabilities article {
  padding: 1.25rem;
  border-radius: var(--t4-radius);
  border: 1px solid var(--t4-line);
  background: #fff;
}

.t4p-services__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem;
  border-radius: var(--t4-radius-lg);
  background: var(--t4-ink);
  color: var(--t4-paper);
}

.t4p-services__cta h3 {
  color: var(--t4-paper);
}

.t4p-services__cta p {
  margin: 0.35rem 0 0;
  opacity: 0.88;
  max-width: 52ch;
}

/* ========== Service detail + sidebar ========== */
.t4p-svc__content {
  padding: 0 0 2rem;
}

.t4p-svc__media {
  height: 220px;
  border-radius: var(--t4-radius-lg);
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--t4-line);
}

.t4p-svc__intro {
  margin-bottom: 1.5rem;
}

.t4p-svc__panel {
  padding: 1.35rem;
  margin-bottom: 1rem;
  border-radius: var(--t4-radius);
  border: 1px solid var(--t4-line);
  background: #fff;
}

.t4p-svc__pillars {
  display: grid;
  gap: 0.65rem;
}

.t4p-svc__pillars > div {
  padding: 0.65rem 0.85rem;
  background: var(--t4-paper-muted);
  border-radius: 8px;
  font-size: 0.95rem;
}

.t4p-svc__cta {
  padding: 1.5rem;
  border-radius: var(--t4-radius);
  background: var(--t4-forest);
  color: var(--t4-paper);
  margin-top: 1.5rem;
}

.t4p-svc__cta h3 {
  color: var(--t4-paper);
}

.t4p-svc__cta p {
  opacity: 0.9;
}

.t4p-svc-sidebar {
  position: sticky;
  top: 1rem;
}

.t4p-svc-sidebar__widget {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.t4p-svc-sidebar__widget h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--t4-muted);
}

.t4p-svc-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.t4p-svc-sidebar__menu li {
  border-bottom: 1px solid var(--t4-line);
}

.t4p-svc-sidebar__menu li:last-child {
  border-bottom: none;
}

.t4p-svc-sidebar__menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--t4-ink);
  font-weight: 600;
}

.t4p-svc-sidebar__menu li.active a {
  color: var(--t4-accent);
}

.t4p-svc-sidebar__menu em {
  font-style: normal;
  opacity: 0.45;
  font-size: 0.8rem;
}

.t4p-svc-sidebar__contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.t4p-svc-sidebar__contact-item {
  display: flex;
  gap: 0.75rem;
}

.t4p-svc-sidebar .t4-icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--t4-paper-muted);
}

.t4p-svc-sidebar .t4-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--t4-accent);
  fill: none;
}

.t4p-svc-sidebar__cta {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
}

/* ========== Calc ========== */
.t4p-calc__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .t4p-calc__hero {
    grid-template-columns: 1fr;
  }
}

.t4p-calc__hero-side {
  padding: 1.25rem;
  border-radius: var(--t4-radius);
  background: #fff;
  border: 1px solid var(--t4-line);
}

.t4p-calc__shell .t4p-calc__card {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius-lg);
  overflow: hidden;
}

.t4p-calc__head {
  padding: 1.35rem 1.5rem 0;
}

.t4p-calc__body {
  padding: 1rem 1.5rem 1.5rem;
}

.t4p-calc__result-head {
  background: var(--t4-paper-muted);
  border-radius: var(--t4-radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--t4-line);
}

.t4p-calc__hero-points {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.t4p-calc__state {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t4-accent);
  margin-bottom: 0.35rem;
}

.t4p-calc__row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.t4p-calc__row > [class*="col-"],
.t4p-calc__row > .form-group {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.t4p-calc__notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 767px) {
  .t4p-calc__notes {
    grid-template-columns: 1fr;
  }
}

.t4p-calc__notes article {
  padding: 1.25rem;
  border-radius: var(--t4-radius);
  border: 1px solid var(--t4-line);
  background: #fff;
}

.t4p-calc__notes h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

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

.t4-calc-form__actions {
  margin-top: 1.25rem;
}

/* ========== Affiliates (t4p-affiliates) ========== */
.t4p-affiliates__hero {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.t4p-affiliates__hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin-bottom: 0.75rem;
}

.t4p-affiliates__lede {
  margin: 0;
  color: var(--t4-muted);
  font-size: 1.1rem;
  max-width: 40ch;
}

.t4p-affiliates__flow {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 991px) {
  .t4p-affiliates__flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .t4p-affiliates__flow {
    grid-template-columns: 1fr;
  }
}

.t4p-affiliates__flow li {
  position: relative;
  padding: 1.35rem 1.25rem 1.25rem 1.25rem;
  border-radius: var(--t4-radius-lg);
  border: 1px solid var(--t4-line);
  background: #fff;
  min-height: 100%;
}

.t4p-affiliates__flow-step {
  font-family: var(--t4-font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--t4-accent);
  opacity: 0.35;
  margin-bottom: 0.5rem;
}

.t4p-affiliates__flow h2 {
  font-family: var(--t4-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--t4-ink);
}

.t4p-affiliates__panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.t4p-affiliates__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0;
  border-radius: var(--t4-radius-lg);
  overflow: hidden;
  border: 1px solid var(--t4-line);
  background: #fff;
}

@media (max-width: 991px) {
  .t4p-affiliates__panel {
    grid-template-columns: 1fr;
  }

  .t4p-affiliates__panel-media {
    min-height: 220px;
  }
}

.t4p-affiliates__panel-media {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.t4p-affiliates__panel-body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.t4p-affiliates__panel-body h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.t4p-affiliates__panel-body h2 .fa {
  color: var(--t4-accent);
}

.t4p-affiliates__panel-body ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--t4-muted);
}

.t4p-affiliates__panel-body ul li {
  margin-bottom: 0.35rem;
}

.t4p-affiliates__panel-body p {
  margin: 0;
  color: var(--t4-muted);
}

.t4p-affiliates__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--t4-radius-lg);
  overflow: hidden;
  border: 1px solid var(--t4-line);
  background: var(--t4-ink);
  color: var(--t4-paper);
}

@media (max-width: 991px) {
  .t4p-affiliates__facts {
    grid-template-columns: 1fr;
  }

  .t4p-affiliates__facts-media {
    min-height: 200px;
  }
}

.t4p-affiliates__facts-media {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.t4p-affiliates__facts-body {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.t4p-affiliates__facts-body .t4-eyebrow {
  color: #e8a066;
}

.t4p-affiliates__facts-body h2 {
  color: var(--t4-paper);
  margin-bottom: 1.25rem;
}

.t4p-affiliates__facts-body ul {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(241, 236, 227, 0.92);
}

.t4p-affiliates__facts-body li {
  margin-bottom: 0.5rem;
}

/* ========== Client portal (login/index.php) ========== */
.t4p-portal__mast {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.t4p-portal__mast h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  margin: 0.35rem 0 0.5rem;
}

.t4p-portal__lede {
  margin: 0;
  color: var(--t4-muted);
}

.t4p-portal__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 991px) {
  .t4p-portal__grid {
    grid-template-columns: 1fr;
  }
}

.t4p-portal__card {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
}

.t4p-portal__card h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  font-family: var(--t4-font-display);
}

.t4p-portal__table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.t4p-portal__table th,
.t4p-portal__table td {
  border: 1px solid var(--t4-line);
  padding: 0.6rem 0.75rem;
  vertical-align: top;
}

.t4p-portal__table th {
  background: var(--t4-paper-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--t4-muted);
}

.t4p-portal__meta {
  margin: 0;
  color: var(--t4-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.t4p-portal__meta .fa {
  width: 1.25rem;
  color: var(--t4-accent);
  margin-right: 0.4rem;
  text-align: center;
}

.t4p-portal__aside-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

body.t4-login .modal-content {
  border-radius: var(--t4-radius-lg);
  border: 1px solid var(--t4-line);
}

/* ========== Team & testimonials ========== */
.t4p-team {
  margin-top: 2rem;
}

.t4p-team__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

@media (max-width: 991px) {
  .t4p-team__layout {
    grid-template-columns: 1fr;
  }
}

.t4p-team__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.t4p-team__role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius-lg);
  overflow: hidden;
}

.t4p-team__role--ops .t4p-team__meta {
  order: 1;
}

.t4p-team__role--ops .t4p-team__photo {
  order: 2;
}

@media (max-width: 767px) {
  .t4p-team__role {
    grid-template-columns: 1fr;
  }

  .t4p-team__role--ops .t4p-team__meta,
  .t4p-team__role--ops .t4p-team__photo {
    order: unset;
  }
}

.t4p-team__photo img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.t4p-team__meta {
  padding: 1.25rem;
}

.t4p-team__chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t4-accent);
  margin-bottom: 0.35rem;
}

.t4p-proof__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.t4p-proof__metric {
  padding: 1.25rem;
  border-radius: var(--t4-radius);
  border: 1px solid var(--t4-line);
  background: #fff;
  max-width: 280px;
}

.t4p-proof__metric strong {
  display: block;
  font-family: var(--t4-font-display);
  font-size: 2rem;
  color: var(--t4-accent);
}

.t4p-proof__matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.t4p-proof__card {
  grid-column: span 4;
  padding: 1.35rem;
  border-radius: var(--t4-radius);
  border: 1px solid var(--t4-line);
  background: #fff;
}

.t4p-proof__card--primary {
  grid-column: span 6;
  background: var(--t4-ink);
  color: var(--t4-paper);
  border-color: transparent;
}

.t4p-proof__card--primary h4 {
  color: var(--t4-paper);
}

@media (max-width: 991px) {
  .t4p-proof__card,
  .t4p-proof__card--primary {
    grid-column: span 12;
  }
}

/* ========== Auth ========== */
.t4p-auth__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .t4p-auth__hero {
    grid-template-columns: 1fr;
  }
}

.t4p-auth__hero-side {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
}

.t4p-auth__section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 991px) {
  .t4p-auth__section {
    grid-template-columns: 1fr;
  }
}

.t4p-auth__card {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius-lg);
  padding: 1.5rem;
}

.t4p-auth__media img {
  border-radius: var(--t4-radius-lg);
  border: 1px solid var(--t4-line);
}

.t4p-auth__field {
  margin-bottom: 1rem;
}

.t4p-auth__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.t4p-auth__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1rem;
}

@media (max-width: 575px) {
  .t4p-auth__grid {
    grid-template-columns: 1fr;
  }
}

.t4p-auth__actions {
  margin-top: 0.5rem;
}

.t4p-auth__switch {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.t4p-auth__error {
  color: #b91c1c;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.t4p-faq__category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.t4p-faq__category-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--t4-line);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--t4-ink);
}

.t4p-faq__category-nav a:hover {
  border-color: var(--t4-accent);
  color: var(--t4-accent);
}

.t4p-faq__section-head {
  margin-bottom: 1rem;
}

details.t4p-faq__item {
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  background: #fff;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

details.t4p-faq__item summary {
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-family: var(--t4-font-display);
  font-weight: 700;
  list-style: none;
}

details.t4p-faq__item summary::-webkit-details-marker {
  display: none;
}

.t4p-faq__answer {
  padding: 0 1.1rem 1rem;
  color: var(--t4-muted);
}

.t4p-faq__answer p {
  margin: 0;
}

.t4p-faq__cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: var(--t4-radius-lg);
  background: var(--t4-ink);
  color: var(--t4-paper);
  text-align: center;
}

.t4p-faq__cta h2 {
  color: var(--t4-paper);
}

.t4p-faq__cta p {
  opacity: 0.88;
  max-width: 48ch;
  margin: 0.5rem auto 1.25rem;
}

.t4p-legal__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.t4p-legal__anchors a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--t4-line);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.t4p-legal__sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.t4p-legal__section {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 1.35rem;
}

.t4p-legal__section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.t4p-legal__prohibited-head {
  margin-bottom: 1rem;
}

.t4p-legal__prohibited-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.t4p-legal__prohibited-item {
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  background: #fff;
  padding: 0 1rem 0.25rem;
}

.t4p-legal__prohibited-item summary {
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--t4-font-display);
}

.t4p-legal__prohibited-body {
  padding-bottom: 0.75rem;
  color: var(--t4-muted);
}

.t4p-legal__marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--t4-accent);
  margin-left: 0.5rem;
}

.t4p-legal__cta {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--t4-radius-lg);
  background: var(--t4-forest);
  color: var(--t4-paper);
}

.t4p-legal__cta h2 {
  color: var(--t4-paper);
}

.t4p-legal__cta p {
  opacity: 0.9;
  max-width: 52ch;
  margin: 0.75rem auto 1.25rem;
}

/* Legacy affiliates (swiper markup; CSS plugin loaded conditionally in index.php) */
.grey-bg {
  background: var(--t4-paper-muted);
}

.industry-four-slider__area {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.industry-four-slider__single-slide {
  text-align: center;
  padding: 1.25rem 0.75rem;
}

.industry-four-slider__single-slide .image {
  font-size: 2rem;
  color: var(--t4-accent);
  margin-bottom: 0.75rem;
}

.section-title-area .title {
  font-family: var(--t4-font-display);
  font-weight: 700;
}

/* ========== Plans / fees / faq ========== */
.t4p-pricing__hero,
.t4p-fees__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .t4p-pricing__hero,
  .t4p-fees__hero {
    grid-template-columns: 1fr;
  }
}

.t4p-pricing__hero-side,
.t4p-fees__hero-side {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
}

.t4p-pricing__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 1199px) {
  .t4p-pricing__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .t4p-pricing__cards {
    grid-template-columns: 1fr;
  }
}

.t4p-pricing__card {
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 1.25rem;
  background: #fff;
}

.t4p-pricing__card--featured {
  border-color: var(--t4-forest);
  box-shadow: 0 8px 28px rgba(28, 61, 48, 0.18);
}

.t4p-plans-matrix {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.t4p-plans-matrix__row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  font-size: 0.92rem;
}

@media (max-width: 991px) {
  .t4p-plans-matrix__row {
    grid-template-columns: 1fr 1fr;
  }
}

.t4p-plans-matrix__row div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.t4p-plans-matrix__row span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t4-muted);
}

.t4p-fees__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .t4p-fees__grid {
    grid-template-columns: 1fr;
  }
}

.t4p-faq__section {
  margin-bottom: 2rem;
}

.t4p-faq__section h2 {
  margin-bottom: 0.35rem;
}

.t4p-faq__item {
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  background: #fff;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.t4p-faq__q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border: none;
  background: var(--t4-paper-muted);
  font-family: var(--t4-font-display);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.t4p-faq__a {
  padding: 0 1.1rem 1rem;
  margin: 0;
  color: var(--t4-muted);
}

/* ========== Legal / stores / error ========== */
.t4p-doc__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .t4p-doc__hero {
    grid-template-columns: 1fr;
  }
}

.t4p-doc__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.t4p-doc__nav a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--t4-line);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.t4p-doc__nav a.is-active {
  background: var(--t4-ink);
  color: var(--t4-paper);
  border-color: var(--t4-ink);
}

.t4p-doc__hero-side {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
}

.t4p-doc__body {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius-lg);
  padding: 1.5rem 1.35rem;
  margin-bottom: 2rem;
}

.t4p-stores__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .t4p-stores__hero {
    grid-template-columns: 1fr;
  }
}

.t4p-stores__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .t4p-stores__layout {
    grid-template-columns: 1fr;
  }
}

.t4p-stores__sidebar {
  position: sticky;
  top: 1rem;
}

.t4p-stores__menu a {
  display: block;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--t4-ink);
  font-weight: 600;
  border-bottom: 1px solid var(--t4-line);
}

.t4p-stores__menu a.is-active {
  color: var(--t4-accent);
}

.t4p-stores__catalog article {
  padding: 1rem;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  background: #fff;
  margin-bottom: 0.75rem;
}

/* ========== Preloader ========== */
/* Collapse when JS removes .preloader-active (legacy style.css had .preloader-area-wrap { display:none } for this) */
.preloader-activate:not(.preloader-active) {
  display: none !important;
}

.preloader-activate.preloader-active {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--t4-paper);
  overflow: hidden;
}

/* Inner wrap must fill the overlay — theme no longer loads legacy style.css where this lived */
.preloader-activate.preloader-active .preloader-area-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-activate.preloader-active .preloader-area-wrap .spinner {
  min-height: auto;
}

.t4-loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--t4-line);
  border-top-color: var(--t4-accent);
  border-radius: 50%;
  animation: t4-spin 0.75s linear infinite;
}

.t4-loader__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes t4-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Scroll top ========== */
.t4-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--t4-ink);
  color: var(--t4-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 9000;
  font-size: 1.1rem;
}

.t4-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.t4-scroll-top:hover {
  color: #fff;
  text-decoration: none;
  background: var(--t4-forest);
}
