:root {
  --green: #2f9634;
  --green-dark: #178115;
  --green-soft: #e8f4e8;
  --navy: #0f2a5c;
  --navy-soft: #e8eef8;
  --ink: #142033;
  --muted: #617086;
  --paper: #f6f8fb;
  --white: #ffffff;
  --gold: #efbe1a;
  --line: #d9e1ea;
  --shadow: 0 18px 40px rgba(15, 42, 92, 0.12);
  --radius: 8px;
  --wrap: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-wrap {
  width: var(--wrap);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 162px;
  height: 72px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.brand img {
  width: auto;
  max-width: 100%;
  max-height: 72px;
  height: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius);
  font-size: 20px;
  cursor: pointer;
}

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

.main-nav a,
.main-nav button {
  color: var(--white);
  text-decoration: none;
  font: inherit;
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.main-nav a.active {
  color: #fff7cc;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px !important;
  background: var(--gold) !important;
  border-radius: var(--radius);
  color: #172133 !important;
  text-transform: none !important;
  font-size: 14px !important;
}

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  width: 320px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: none;
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  display: grid;
  gap: 8px;
}

.dropdown-panel a {
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 6px;
  text-transform: none;
  font-size: 14px;
  font-weight: 700;
}

.dropdown-panel a:hover {
  background: var(--paper);
}

.page {
  overflow: hidden;
}

.section,
.band,
.hero,
.logos-band,
.footer {
  width: 100%;
}

.inner {
  width: var(--wrap);
  margin: 0 auto;
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 29, 54, 0.85), rgba(11, 29, 54, 0.48)),
    url("https://kwartz.codeworks.pl/wp-content/uploads/2026/05/kwartz-hero-2026.jpg") center / cover no-repeat;
}

.hero.compact {
  min-height: 520px;
}

.hero-content {
  width: var(--wrap);
  margin: 0 auto;
  padding: 92px 0 80px;
  display: grid;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.24;
}

h4 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
}

.lead {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.6;
}

.hero-note {
  max-width: 900px;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
  font-size: 18px;
}

.hero-note strong {
  color: #fff;
  font-weight: 800;
}

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

.button,
.button-ghost,
.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button {
  padding: 0 20px;
  background: var(--gold);
  color: #182338;
}

.button.secondary {
  background: var(--navy);
  color: var(--white);
}

.button-ghost {
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.text-link {
  min-height: auto;
  justify-content: flex-start;
  color: var(--navy);
}

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

.logos-inner {
  width: var(--wrap);
  margin: 0 auto;
  padding: 28px 0 34px;
}

.logos-title {
  margin-bottom: 18px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.logo-pill {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #667085;
  background: #fbfcfe;
  font-weight: 900;
  text-align: center;
  filter: grayscale(1);
}

.logos-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 88px 0;
}

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

.section.soft {
  background: #eef3f7;
}

.section.dark {
  background: var(--navy);
  color: var(--white);
}

.section.dark .kicker {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.grid-2,
.grid-3,
.grid-4,
.grid-6 {
  display: grid;
  gap: 22px;
}

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

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

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

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

.card,
.feature,
.phase,
.article-card,
.project-card,
.form-shell,
.quote,
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card,
.feature,
.phase,
.article-card,
.stat {
  padding: 24px;
}

.feature.dark-card,
.phase.dark-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.number {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section.dark .number {
  color: #d8f5c9;
}

/* Sekcja 3.5 — Konsorcja międzynarodowe (granatowa, pełnoekranowa) */
.consortium {
  padding: 96px 0;
  background: linear-gradient(135deg, #081a3d 0%, var(--navy) 60%, #0b224a 100%);
  position: relative;
}

.consortium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 18% 0%, rgba(47, 150, 52, 0.10), transparent 60%),
    radial-gradient(700px 400px at 85% 100%, rgba(47, 150, 52, 0.08), transparent 65%);
  pointer-events: none;
}

.consortium .inner {
  position: relative;
}

.eyebrow-on-dark {
  background: transparent;
  color: var(--green);
  padding: 0;
  border-radius: 0;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.consortium-headline {
  max-width: 920px;
  margin: 14px 0 28px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
}

.consortium-body {
  max-width: 880px;
  display: grid;
  gap: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.65;
}

.consortium-body strong {
  color: #fff;
  font-weight: 800;
}

/* Case studies — kafle z PWE (problem/działanie/wynik) */
.case-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
}

.case-tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  margin-bottom: 6px;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-card h3 {
  margin-bottom: 6px;
}

.case-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.case-line strong {
  color: var(--navy);
  font-weight: 800;
}

/* Dla kogo TAK / NIE — segmenty z różnymi kolorami akcentu */
.segment.for-yes {
  border-top: 4px solid var(--green);
}

.segment.for-no {
  border-top: 4px solid #b94a36;
}

.segment.for-yes h3 {
  color: var(--green-dark);
}

.segment.for-no h3 {
  color: #b94a36;
}

.segment .check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.segment .check-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

.segment .check-list li:last-child {
  border-bottom: 0;
}

.segment.for-yes .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--green-dark);
  font-weight: 900;
}

.segment.for-no .check-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 4px;
  color: #b94a36;
  font-weight: 900;
  font-size: 18px;
}

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

.list-clean,
.check-list,
.meta-list {
  margin: 0;
  padding-left: 18px;
}

.list-clean li,
.check-list li,
.meta-list li {
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.media-panel {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1.1;
  color: var(--navy);
}

.quote {
  padding: 28px;
  background: var(--navy);
  color: var(--white);
}

.quote p {
  font-size: 22px;
}

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

.segment {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-card {
  overflow: hidden;
}

.project-visual {
  height: 180px;
  background:
    linear-gradient(135deg, rgba(15, 42, 92, 0.86), rgba(47, 150, 52, 0.72)),
    url("https://kwartz.codeworks.pl/wp-content/uploads/2026/05/kwartz-hero-2026.jpg") center / cover no-repeat;
}

.project-body {
  padding: 20px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.article-card {
  display: grid;
  gap: 16px;
}

.article-card .time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
}

.article-body {
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 34px;
}

.article-aside {
  position: sticky;
  top: 118px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.form-shell {
  padding: 28px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c7d2df;
  border-radius: var(--radius);
  background: #fbfdff;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.floating-tabs {
  position: fixed;
  right: 0;
  top: 38%;
  z-index: 45;
  display: grid;
  gap: 12px;
}

.floating-tab {
  display: grid;
  place-items: center;
  min-width: 184px;
  min-height: 62px;
  padding: 10px 18px;
  transform: translateX(126px);
  transition: transform 180ms ease;
  border-radius: 8px 0 0 8px;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.floating-tab:hover,
.floating-tab:focus-visible {
  transform: translateX(0);
}

.floating-tab.business {
  background: linear-gradient(90deg, var(--green-dark), var(--green));
}

.floating-tab.corporate {
  background: var(--navy);
}

.floating-tab.phone {
  background: #26364d;
}

.footer {
  padding: 48px 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--green-dark), var(--green));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

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

.footer-links a {
  text-decoration: none;
}

/* ═══════════════════ FIXY POD KIEROWNICTWO FAUSTYNA (P1 HOME) ═══════════════════ */

/* Sekcja "Nasza metoda" — 3 kafelki zamiast 2 */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

/* Sekcja ciemna — fix kontrastu kicker + headline + opis */
.section.dark .kicker,
.section.dark .eyebrow-on-dark {
  background: rgba(144, 212, 28, 0.16);
  color: var(--green);
  border: 1px solid rgba(144, 212, 28, 0.3);
}

.section.dark h2 {
  color: #ffffff;
}

.section.dark .feature.dark-card h3 {
  color: #ffffff;
}

.section.dark .feature.dark-card p {
  color: rgba(255, 255, 255, 0.88);
}

.section.dark .feature.dark-card .number {
  color: var(--green);
}

/* Zielony link w ciemnych kafelkach */
.link-green {
  color: var(--green) !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 150, 52, 0.4);
  padding-bottom: 2px;
  transition: all 0.2s;
  display: inline-block;
  margin-top: 12px;
}

.link-green:hover {
  color: #90D41C !important;
  border-bottom-color: #90D41C;
}

/* Logos band — wyłączony (zostawiamy strukturę na przyszłość) */
.logos-band {
  display: none !important;
}

/* Floating tabs — 3 wystające paski po prawej krawędzi (styl kwartz.pl live) */
.floating-tabs {
  position: fixed;
  right: 0;
  top: 38%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.floating-tabs .floating-tab {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  min-width: 200px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 4px 16px rgba(15, 42, 92, 0.18);
  transform: translateX(140px);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}

.floating-tabs .floating-tab .ft-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.floating-tabs .floating-tab .ft-label {
  white-space: nowrap;
}

.floating-tabs .floating-tab:hover {
  transform: translateX(0);
  box-shadow: -6px 6px 22px rgba(15, 42, 92, 0.32);
}

.floating-tabs .floating-tab.business {
  background: var(--green);
}

.floating-tabs .floating-tab.business:hover {
  background: var(--green-dark);
}

.floating-tabs .floating-tab.corporate {
  background: var(--navy);
}

.floating-tabs .floating-tab.corporate:hover {
  background: #081A3D;
}

.floating-tabs .floating-tab.phone {
  background: #26364d;
}

.floating-tabs .floating-tab.phone:hover {
  background: #142033;
}

@media (max-width: 860px) {
  .floating-tabs .floating-tab {
    min-width: 160px;
    padding: 10px 14px;
    font-size: 12px;
    transform: translateX(110px);
  }
}

/* Header nav — bez łamania linków ("O nas" w jednej linii) */
.main-nav a,
.main-nav .dropdown > button {
  white-space: nowrap;
}

/* ───── KLIKALNE KAFELKI (cała karta jest linkiem) ───── */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid var(--line);
  cursor: pointer;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.card-link h3 {
  color: var(--ink);
  transition: color 0.2s;
}

.card-link:hover h3 {
  color: var(--green-dark);
}

.card-link .card-arrow {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

.card-link:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Phase (grid-6) — też klikalne, mniejszy padding */
a.phase.card-link {
  padding: 20px;
}

a.phase.card-link h3 {
  margin: 8px 0;
}

/* Inline Bitrix form na home — wycentruj, podświetl */
.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-shell h3 {
  margin: 0 0 8px 0;
  color: var(--navy);
  font-size: 22px;
}

/* ───── Kwartz footer (4 kolumny + logo + bottom bar, styl kwartz.pl) ───── */
.kwartz-footer {
  padding: 64px 0 0;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: var(--white);
}

.kwartz-footer .footer-grid {
  grid-template-columns: 1fr 1.4fr 1.2fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.kwartz-footer .footer-col h3 {
  margin: 0 0 14px 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.kwartz-footer .footer-col a,
.kwartz-footer .footer-col p {
  display: block;
  color: var(--white);
  text-decoration: none;
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.55;
}

.kwartz-footer .footer-col a:hover {
  text-decoration: underline;
  opacity: 0.92;
}

.kwartz-footer .footer-logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.kwartz-footer .footer-logo img {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.kwartz-footer .footer-bottom {
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.kwartz-footer .footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 860px) {
  .kwartz-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kwartz-footer .footer-logo {
    justify-content: flex-start;
  }
}

.meta {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.notice {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .logo-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid-4,
  .grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .proof-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 860px) {
  :root {
    --wrap: min(100vw - 28px, 1180px);
  }

  .nav-wrap {
    min-height: 78px;
  }

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

  .main-nav {
    position: absolute;
    top: 78px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    align-items: stretch;
    flex-direction: column;
  }

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

  .main-nav a,
  .main-nav button {
    color: var(--ink);
    text-align: left;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    display: grid;
    margin-top: 8px;
    box-shadow: none;
  }

  .hero,
  .hero.compact {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0 54px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-6,
  .segmented,
  .form-grid,
  .checkbox-grid,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .floating-tabs {
    top: auto;
    bottom: 18px;
    left: 14px;
    right: 14px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  .floating-tab {
    min-width: 0;
    flex: 1 1 0;
    min-height: 58px;
    transform: none;
    border-radius: var(--radius);
    padding: 10px;
  }

  body.nav-open .floating-tabs {
    display: none;
  }
}
