.abac-page {
  --abac-ink: #16262d;
  --abac-muted: #50636b;
}

.abac-hero {
  background: radial-gradient(ellipse at 78% 40%, #304b58, #17272f 60%, #111c22);
  color: #fff;
}

.abac-hero-grid, .abac-selection-grid, .abac-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.abac-hero-grid { padding-block: clamp(44px, 7vw, 105px); }
.abac-hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: .98; margin: 0 0 22px; }
.abac-hero p:not(.eyebrow, .detail-breadcrumb) { max-width: 56ch; color: #deeaee; line-height: 1.7; }
.abac-hero .detail-breadcrumb { margin-bottom: 22px; }
.abac-hero .detail-hero-actions { flex-wrap: wrap; }
.abac-hero .text-link { color: #fff; }
.abac-hero figure { min-width: 0; margin: 0; }
.abac-hero img { display: block; width: 100%; height: auto; border-radius: 12px; }
.abac-hero figcaption { margin-top: 10px; text-align: center; color: #cadbe2; font-size: .8rem; }
.abac-page h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin: 0 0 24px; }
.abac-brand { padding-block: clamp(36px, 6vw, 76px); background: #e8eff1; }
.abac-brand h2 { margin-bottom: 0; }
.abac-brand-grid { align-items: start; }
.abac-brand-grid p:not(.eyebrow) { margin: 0 0 12px; color: var(--abac-muted); line-height: 1.65; }
.abac-brand-grid p:last-child { margin-bottom: 0; }

.abac-model-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.abac-model-groups article { padding: 20px; border: 1px solid #d7e1e5; background: #f3f6f7; }
.abac-model-groups article h3 { margin-top: 0; }
.abac-model-groups article p { margin-bottom: 0; }
.abac-models p { color: var(--abac-muted); line-height: 1.65; }
.abac-table-help { font-size: .88rem; }
.abac-table-scroll { overflow-x: auto; border: 1px solid #d7e1e5; }
.abac-table-scroll:focus-visible { outline: 2px solid #b51e23; outline-offset: 3px; }
.abac-table-scroll table { width: 100%; min-width: 1020px; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.abac-table-scroll th, .abac-table-scroll td { padding: 11px 10px; text-align: left; border-bottom: 1px solid #d7e1e5; }
.abac-table-scroll td { white-space: nowrap; }
.abac-table-scroll th:first-child { position: sticky; left: 0; white-space: nowrap; box-shadow: 1px 0 #d7e1e5; }
.abac-table-scroll thead th { background: var(--abac-ink); color: #fff; }
.abac-table-scroll tbody tr { background: #fff; }
.abac-table-scroll tbody tr:nth-child(even) { background: #f3f6f7; }
.abac-table-scroll tbody th { background: inherit; }

.abac-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.abac-cards article, .abac-selection aside {
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid #d7e1e5;
  background: #f3f6f7;
}

.abac-cards article span { color: #b51e23; font-weight: 800; }
.abac-page h3 { color: var(--abac-ink); font-size: clamp(24px, 3vw, 34px); margin: 10px 0; }
.abac-cards p, .abac-selection p, .abac-selection li { color: var(--abac-muted); line-height: 1.65; }
.abac-cards p, .abac-selection aside p { margin-bottom: 0; }
.abac-selection { padding-block: clamp(40px, 6vw, 88px); background: #e8eff1; }
.abac-selection ul { padding-left: 1.2em; }
.abac-selection .inline-link { margin-top: 14px; overflow-wrap: anywhere; }
#o-abac, #modeli, #izvedbe, #abac-obrazac { scroll-margin-top: 110px; }

@media (max-width: 760px) {
  .abac-hero-grid, .abac-selection-grid, .abac-brand-grid, .abac-cards, .abac-model-groups { grid-template-columns: 1fr; }
  .abac-hero h1 { overflow-wrap: anywhere; }
  .abac-hero figure { max-width: 520px; }
}
