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

:root {
  --black: #171717;
  --black2: #242424;
  --darkGray: #3a3a3a;
  --mediumGray: #8b8b8b;
  --lightGray: #ededed;
  --sectionGray: #f3f3f3;
  --borderGray: #d8d8d8;
  --white: #ffffff;
  --textSecond: #6f6f6f;
  --side: 48px;
  --maxW: 1280px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overscroll-behavior: none;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 0 var(--side);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  height: 46px;
  line-height: 44px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-family: inherit;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--black);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--black);
  color: var(--white);
}

.btn-white {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-white:hover {
  background: var(--white);
  color: var(--black);
}

/* ─── HEADER ─── */
header {
  height: 92px;
  background: var(--white);
  border-bottom: 1px solid var(--borderGray);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo svg {
  height: 32px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
nav a {
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
nav a:hover {
  opacity: 0.55;
}
nav .btn:hover {
  opacity: 1;
  background: var(--black);
  color: var(--white);
}

/* ─── SHARED SECTION PATTERN ─── */
.section-divider {
  border-top: 1px solid var(--borderGray);
}
.section-header {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  margin-bottom: 72px;
}
.sh-left {
  flex: 0 0 50%;
}
.sh-right {
  flex: 1;
  padding-top: 6px;
}

.section-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mediumGray);
  margin-bottom: 20px;
  text-transform: uppercase;
}
h2 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--black);
}
.body-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--textSecond);
  max-width: 420px;
}

/* ─── SECTION 1: HERO ─── */
#hero {
  background: var(--white);
  padding-top: 100px;
}
.hero-columns {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  padding-bottom: 80px;
}
.hero-left {
  flex: 0 0 60%;
}
.hero-right {
  flex: 1;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
h1 {
  font-size: 72px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--black);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--textSecond);
  max-width: 420px;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--textSecond);
}
.hero-image {
  width: 100%;
  height: 680px;
  overflow: hidden;
  background: #c4c4c4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── SECTION 2: FOR WHOM ─── */
#for-whom {
  background: var(--white);
  padding: 120px 0;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.industry-card {
  display: flex;
  flex-direction: column;
}
.industry-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--borderGray);
  margin-bottom: 8px;
  overflow: hidden;
}
.industry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.industry-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mediumGray);
  margin-bottom: 0;
  margin-top: 14px;
}
.industry-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}
.industry-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--textSecond);
}

/* ─── SECTION 2: SITUATIONS ─── */
#situations {
  background: var(--black);
  padding: 120px 0;
}
#situations h2 {
  color: var(--white);
}
#situations .body-text {
  color: rgba(255, 255, 255, 0.55);
}
.situations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  margin-bottom: 64px;
}
.situation-card {
  padding: 32px 28px 32px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
}
.situation-card:last-child {
  padding-right: 0;
}
.situation-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 12px;
}
.situation-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}
.situations-footer {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
  max-width: 680px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── SECTION 3: PARAMETERS ─── */
#parameters {
  background: var(--black);
  padding: 120px 0;
}
#parameters h2 {
  color: var(--white);
}
#parameters .body-text {
  color: rgba(255, 255, 255, 0.55);
}
.params-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.param-box {
  padding: 40px 32px 48px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.param-box:first-child {
  padding-left: 0;
  border-left: none;
}
.param-value {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 14px;
}
.param-label {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── SECTION 4: PROCESS ─── */
#process {
  background: var(--white);
  padding: 120px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.step {
  padding: 28px 28px 0 0;
  border-top: 1px solid var(--borderGray);
}
.step:last-child {
  padding-right: 0;
}
.step-num {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mediumGray);
  margin-bottom: 32px;
}
.step-title {
  font-size: 17px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 14px;
}
.step-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--textSecond);
}

/* ─── SECTION 5: COMPARISON ─── */
#comparison {
  background: var(--black);
  padding: 120px 0;
}
#comparison .section-label {
  color: rgba(255, 255, 255, 0.4);
}
#comparison h2 {
  color: var(--white);
}
#comparison .body-text {
  color: rgba(255, 255, 255, 0.55);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
}
.cmp-table thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 0 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
}
.cmp-table thead th.col-ours {
  color: var(--white);
  padding-left: 48px;
}
.cmp-table thead th.col-bank {
  padding-left: 48px;
}
.cmp-table thead th.col-label {
  width: 26%;
}
.cmp-table thead th.col-ours {
  width: 37%;
}
.cmp-table thead th.col-bank {
  width: 37%;
}

.cmp-table tbody td {
  padding: 22px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
  line-height: 1.55;
}
.cmp-table tbody td.col-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding-right: 24px;
}
.cmp-table tbody td.col-ours {
  color: var(--white);
  padding-left: 48px;
  font-weight: 400;
}
.cmp-table tbody td.col-bank {
  color: rgba(255, 255, 255, 0.35);
  padding-left: 48px;
}

/* ─── SECTION 6: CONTACT ─── */
#contact {
  background: var(--white);
  padding: 120px 0;
}
.contact-form-wrap {
  max-width: 560px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--borderGray);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}
.form-group input::placeholder {
  color: var(--mediumGray);
}
.form-group input:focus {
  border-color: var(--black);
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  margin-top: 8px;
}
.checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--black);
  cursor: pointer;
}
.checkbox-wrap label {
  font-size: 13px;
  line-height: 1.65;
  color: var(--textSecond);
  cursor: pointer;
}

.req {
  color: #b02020;
  font-weight: 400;
}
.field-error {
  display: none;
  font-size: 12px;
  color: #b02020;
  margin-top: 6px;
}
.field-error.visible {
  display: block;
}
.form-group input.invalid {
  border-color: #b02020;
}
.form-submitting .btn {
  opacity: 0.6;
  pointer-events: none;
}

.form-thanks {
  display: none;
}
.form-thanks.visible {
  display: block;
}
.form-thanks-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #22c55e;
  border-radius: 50%;
  margin-bottom: 24px;
}
.form-thanks-icon svg {
  display: block;
}
.form-thanks-heading {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
}
.form-thanks-sub {
  font-size: 15px;
  color: var(--mediumGray);
  line-height: 1.7;
}

/* ─── HAMBURGER ─── */
.hbg {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}
.hbg i {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition:
    transform 0.28s ease,
    opacity 0.2s ease;
  transform-origin: center;
}
.hbg.open i:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hbg.open i:nth-child(2) {
  opacity: 0;
}
.hbg.open i:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE PANEL ─── */
.mob-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 200;
  padding: 40px var(--side);
  overflow-y: auto;
  /* stan zamknięty */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0s linear 0.28s;
}
.mob-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0s linear 0s;
}

/* linki — bazowy stan (niewidoczne, przesunięte) */
.mob-panel a {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
  padding: 18px 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    color 0.15s ease;
}
.mob-panel a:first-child {
  border-top: none;
}

/* linki — stan otwarty (kaskadowe opóźnienia) */
.mob-panel.open a:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.06s;
}
.mob-panel.open a:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.11s;
}
.mob-panel.open a:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}
.mob-panel.open a:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.21s;
}
.mob-panel.open a:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.26s;
}

.mob-panel a:not(.mob-cta):hover {
  opacity: 0.45;
}
.mob-panel .mob-cta {
  margin-top: 40px;
  align-self: stretch;
  text-align: center;
  font-size: 17px;
  border-radius: 999px;
  border: 1px solid var(--black);
  padding: 0;
  height: 60px;
  line-height: 58px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .situations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .params-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* ── tablet + mobile: hamburger zamiast nav ── */
@media (max-width: 1024px) {
  nav {
    display: none !important;
  }
  .hbg {
    display: flex !important;
  }
}

@media (max-width: 900px) {
  :root {
    --side: 32px;
  }
  h1 {
    font-size: 52px;
  }
  h2 {
    font-size: 36px;
  }
  .hero-columns {
    flex-direction: column;
    gap: 40px;
  }
  .hero-left,
  .hero-right {
    flex: none;
    width: 100%;
  }
  .hero-image {
    height: 420px;
  }
  .section-header {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }
  .sh-left {
    flex: none;
    width: 100%;
  }
  .contact-form-wrap {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --side: 20px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 30px;
  }
  .form-thanks-heading {
    font-size: 32px;
  }
  .situations-grid {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .situation-card {
    padding: 20px 0;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  /* parametry — 1 kolumna, border-top zamiast border-left */
  #parameters {
    padding: 64px 0;
  }
  .params-grid {
    grid-template-columns: 1fr;
  }
  .param-box {
    padding: 24px 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
  }
  .param-box:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 0;
  }
  .param-value {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .param-label {
    font-size: 13px;
    text-align: right;
    max-width: 200px;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .hero-image {
    height: 260px;
  }

  /* ── tabela porównawcza → układ blokowy ── */
  .cmp-table,
  .cmp-table thead,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td {
    display: block;
    width: 100% !important;
  }

  .cmp-table thead {
    display: none;
  }

  .cmp-table tbody tr {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cmp-table tbody tr:last-child {
    border-bottom: none;
  }

  .cmp-table tbody td {
    padding: 0;
    border: none;
  }

  .cmp-table td.col-label {
    font-size: 11px;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 14px;
    padding-right: 0;
  }

  .cmp-table td.col-ours {
    font-size: 16px;
    color: var(--white);
    padding-left: 0;
    margin-bottom: 6px;
  }
  .cmp-table td.col-ours::before {
    display: block;
    content: "Nasze finansowanie";
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
  }

  .cmp-table td.col-bank {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.35);
    padding-left: 0;
  }
  .cmp-table td.col-bank::before {
    display: block;
    content: "Bank";
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 4px;
  }
}

/* ─── SCROLL ANIMATIONS ─── */
/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  background: var(--white);
  border: 1px solid var(--borderGray);
  padding: 24px 28px;
  max-width: 340px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--textSecond);
  margin-bottom: 16px;
}
.cookie-banner a {
  color: var(--black);
  text-underline-offset: 2px;
}
.cookie-banner-btns {
  display: flex;
  gap: 10px;
}
.cookie-btn-accept {
  flex: 1;
  height: 38px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.cookie-btn-accept:hover {
  opacity: 0.75;
}
.cookie-btn-decline {
  flex: 1;
  height: 38px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  background: transparent;
  color: var(--black);
  border: 1px solid var(--borderGray);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.cookie-btn-decline:hover {
  border-color: var(--black);
}

.fu {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}
.fu.in {
  opacity: 1;
  transform: translateY(0);
}

/* wyłącz animacje gdy użytkownik woli brak ruchu */
@media (prefers-reduced-motion: reduce) {
  .fu {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ─── FOOTER ─── */
footer {
  background: var(--white);
  border-top: 1px solid var(--borderGray);
  padding: 48px 0 170px;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}
.footer-watermark svg {
  height: 300px;
  width: auto;
  max-width: calc(100vw - 32px);
  display: block;
}
footer .container {
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 48px;
  gap: 40px;
}
.footer-left {
  display: flex;
  flex-direction: column;
}
.footer-logo-svg {
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-logo-svg svg {
  height: 24px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-size: 13px;
  color: var(--mediumGray);
  margin-bottom: 20px;
}
.footer-reg {
  font-size: 13px;
  line-height: 1.9;
  color: var(--textSecond);
}
.footer-reg-block {
  text-align: left;
}
.footer-cta {
  background: var(--black);
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 300px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}
.footer-cta-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.footer-cta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer-cta-item:hover {
  opacity: 0.6;
}
.footer-cta-item svg {
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid var(--borderGray);
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.footer-copy {
  font-size: 12px;
  color: var(--mediumGray);
  flex: 1;
}
.footer-bottom a {
  font-size: 12px;
  color: var(--mediumGray);
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.footer-bottom a:hover {
  opacity: 0.55;
}

@media (max-width: 1024px) {
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-cta {
    min-width: unset;
    width: 100%;
  }
}

/* ─── HERO PREAMBLE ─── */
.page-hero {
  background: var(--black);
  padding: 96px 0 80px;
}
.page-hero h1 {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--white);
  max-width: 680px;
}

/* ─── CONTENT AREA ─── */
.content-wrap {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  padding: 96px 0 120px;
}

/* sidebar TOC */
.toc {
  flex: 0 0 220px;
  position: sticky;
  top: 116px;
}
.toc-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mediumGray);
  margin-bottom: 20px;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
}
.toc ol li {
  counter-increment: toc;
  margin-bottom: 10px;
}
.toc ol li a {
  font-size: 13px;
  color: var(--mediumGray);
  text-decoration: none;
  transition: color 0.18s ease;
  line-height: 1.5;
}
.toc ol li a::before {
  content: counter(toc) ". ";
  color: var(--lightGray);
}
.toc ol li a:hover {
  color: var(--black);
}

/* main prose */
.prose {
  flex: 1;
  min-width: 0;
  max-width: var(--contentW);
}

/* ─── TYPOGRAPHY ─── */

.prose h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 32px;
  margin-top: 72px;
}
.prose h1:first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 20px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--borderGray);
}

.prose h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 14px;
  margin-top: 40px;
}

.prose h4 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--black);
  margin-bottom: 10px;
  margin-top: 32px;
}

.prose h5 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mediumGray);
  margin-bottom: 8px;
  margin-top: 28px;
}

.prose h6 {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mediumGray);
  margin-bottom: 8px;
  margin-top: 24px;
}

.prose p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--textSecond);
  margin-bottom: 20px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--borderGray);
  transition: text-decoration-color 0.18s ease;
}
.prose a:hover {
  text-decoration-color: var(--black);
}

.prose ul {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.prose ul li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--textSecond);
  padding: 6px 0 6px 20px;
  border-bottom: 1px solid var(--lightGray);
  position: relative;
}
.prose ul li:first-child {
  border-top: 1px solid var(--lightGray);
}
.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--borderGray);
  font-weight: 300;
}

.prose ol {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
  counter-reset: prose-ol;
}
.prose ol li {
  counter-increment: prose-ol;
  font-size: 16px;
  line-height: 1.8;
  color: var(--textSecond);
  padding: 8px 0 8px 32px;
  border-bottom: 1px solid var(--lightGray);
  position: relative;
}
.prose ol li:first-child {
  border-top: 1px solid var(--lightGray);
}
.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--mediumGray);
  top: 12px;
  letter-spacing: 0.03em;
}

.prose blockquote,
.prose q {
  display: block;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--black);
  border-left: 2px solid var(--black);
  padding: 4px 0 4px 28px;
  margin: 32px 0;
  quotes: none;
}

.prose strong {
  font-weight: 500;
  color: var(--black);
}
.prose em {
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--borderGray);
  margin: 48px 0;
}

/* section article spacing */
.prose section {
  margin-bottom: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav {
    display: none !important;
  }
  .hbg {
    display: flex !important;
  }
}
@media (max-width: 900px) {
  :root {
    --side: 32px;
  }
  .page-hero h1 {
    font-size: 48px;
  }
  .toc {
    display: none;
  }
  .content-wrap {
    padding: 64px 0 96px;
  }
}
@media (max-width: 600px) {
  :root {
    --side: 20px;
  }
  .page-hero {
    padding: 64px 0 56px;
  }
  .page-hero h1 {
    font-size: 36px;
  }
  .prose h1 {
    font-size: 32px;
  }
  .prose h2 {
    font-size: 24px;
    padding-top: 32px;
    margin-top: 40px;
  }
  .prose h3 {
    font-size: 18px;
  }
  .prose blockquote,
  .prose q {
    font-size: 17px;
    padding-left: 18px;
  }
  .footer-top {
    flex-direction: column;
    gap: 36px;
  }
  .footer-contact {
    align-items: flex-start;
  }
}

.grecaptcha-badge {
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
