/* Baza landingów Orford — reset, typografia i komponenty (DESIGN.md).
   Bez cieni, bez gradientów, bez zasobów zewnętrznych; kształt firmowy: rogi 30 px (TL + BR). */

/* --- Reset i podstawy --- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
html {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}
body { font-size: var(--fs-body); line-height: var(--lh-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-text-safe); }
h1, h2, h3 { font-weight: 700; line-height: var(--lh-tight); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-lead); }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }

/* --- Układ: kontener i sekcje --- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tint { background: var(--color-surface); }
.section__heading { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); }
.section__lead { margin-top: 16px; max-width: 62ch; font-size: var(--fs-lead); }

/* Nagłówek z granatową linią 6 px dociągniętą do prawej krawędzi (DESIGN §5). */
.heading-rule { display: flex; align-items: center; gap: 24px; }
.heading-rule::after { content: ""; flex: 1 1 40px; border-top: var(--rule-weight) solid var(--color-secondary); }

/* --- Przyciski --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  font-family: inherit;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn--secondary { background: #fff; color: var(--color-primary-text-safe); }
.btn--secondary:hover { background: var(--color-surface); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* --- Nagłówek strony --- */
.site-header { border-bottom: 1px solid var(--color-border); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.site-header__logo { display: inline-flex; }
.site-header__logo img { height: 26px; width: auto; }

/* --- Hero: sama propozycja wartości (szerszy tekst, nic obok) --- */
.hero { padding-block: clamp(32px, 5vw, 56px) clamp(48px, 6vw, 72px); }
.hero > .container { position: relative; }
.hero__text { max-width: 76ch; }
/* Kwadrat marki wg kwadrat.svg z orford.pl: rogi prawy górny i lewy dolny, promień 30% boku. */
.hero__mark { display: none; }
.hero__lead { margin-top: 16px; font-size: var(--fs-lead); }
.hero__claim { margin-top: 32px; display: flex; align-items: baseline; gap: 16px; }
.hero__claim-num { flex: none; font-size: clamp(44px, 7vw, 64px); font-weight: 700; line-height: 1; color: var(--color-primary); }
.hero__claim-text { font-size: var(--fs-lead); font-weight: 600; color: var(--color-secondary); }

/* --- Przejście hero → formularz: linia 6 px i strzałka w dół (DESIGN §5) --- */
.lead-in { border-top: var(--rule-weight) solid var(--color-secondary); }
.lead-in > .container { position: relative; height: 0; }
.lead-in__arrow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 42px;
  height: 86px;
  transform: translateX(-50%);
  color: var(--color-secondary);
}

/* --- Sekcja formularza (pod hero, na tle #F4F9FD): formularz + cytat opiekuna po prawej --- */
.form-section { background: var(--color-surface); padding-block: clamp(96px, 11vw, 132px) var(--space-section); }
.form-grid { display: grid; gap: 40px; }
.form-grid .form { max-width: 560px; }

/* --- Formularz --- */
.form__heading { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: var(--lh-tight); color: var(--color-secondary); }
.form__fields { display: grid; gap: 20px; margin-top: 28px; }
.form__field { display: grid; gap: 8px; }
.form__label { font-weight: 600; }
.form__required { color: var(--color-primary-text-safe); }
.form__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border: 2px solid var(--color-border-input);
  border-radius: var(--radius-control);
}
.form__input::placeholder { color: var(--color-text-muted); }
.form__input[aria-invalid="true"] { border-color: var(--color-error); }
.form__error { color: var(--color-error); font-size: var(--fs-small); }
.form__hint { color: var(--color-text-muted); font-size: var(--fs-small); }
.form__consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: var(--fs-small); line-height: 1.45; }
.form__checkbox { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-primary); }
.form__honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { margin-top: 24px; }
.cf-turnstile { margin-top: 20px; }
.form__status {
  background: #fff;
  border: 2px solid var(--color-border-input);
  border-radius: var(--radius-control);
  padding: 24px;
}
.form__status > * + * { margin-top: 12px; }
.form__status--success { border-color: var(--color-success); }
.form__status--error { border-color: var(--color-error); }

/* --- Karty (RS) --- */
.cards { display: grid; gap: 24px; margin-top: 40px; }
.card { background: var(--color-surface); border-radius: var(--radius-shape) 0 var(--radius-shape) 0; padding: 32px; }
.card__title { font-size: 20px; font-weight: 700; color: var(--color-secondary); }
.card__text { margin-top: 12px; }
.card__icon, .stepper__icon { display: block; color: var(--color-secondary); }
.card__icon { margin-bottom: 20px; }

/* --- Kroki procesu (CV BOX) --- */
.stepper { display: grid; gap: 32px; margin-top: 40px; }
.stepper__item { max-width: 44ch; }
.stepper__head { display: flex; align-items: center; gap: 16px; }
.stepper__num { font-size: 36px; font-weight: 700; line-height: 1; color: var(--color-secondary); }
.stepper__title { margin-top: 16px; font-weight: 600; color: var(--color-secondary); }
.stepper__text { margin-top: 4px; }

/* --- Lista korzyści w panelu --- */
.benefits-panel {
  margin-top: 40px;
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-shape) 0 var(--radius-shape) 0;
}
.benefits { display: grid; gap: 16px; font-weight: 500; }
.benefits li { display: flex; align-items: baseline; gap: 12px; }
.benefits li::before { content: "✓"; color: var(--color-primary); font-weight: 700; }

/* --- Opiekun leada (cytat ze zdjęciem; ten sam blok przy obu formularzach) --- */
.owner { max-width: 46ch; }
.owner__quote { display: block; height: 36px; font-size: 64px; font-weight: 700; line-height: 1; color: var(--color-border); }
.owner__text { margin-top: 8px; }
.owner__photo { width: 112px; height: 112px; margin-top: 24px; object-fit: cover; border-radius: 16px 0 16px 0; }
.owner__name { margin-top: 12px; font-weight: 700; }
.owner__role { color: var(--color-text-muted); }

/* --- Kalendarz (ukryty do czasu otrzymania linku) --- */
.calendar {
  max-width: 640px;
  margin-top: 32px;
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-shape) 0 var(--radius-shape) 0;
}
.calendar__heading { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); }
.calendar__text { margin-top: 8px; }
.calendar .btn { margin-top: 20px; }

/* --- Sekcja CTA na dole strony --- */
.cta__heading, .cta__lead { text-align: center; }
.cta__lead { margin: 16px auto 0; max-width: 62ch; font-size: var(--fs-lead); }
.cta__form { margin-top: 48px; }

/* --- Podziękowanie --- */
.thanks .container { max-width: 640px; }

/* --- Pasek CTA na mobile --- */
.cta-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: flex;
  gap: 12px;
  padding: 12px var(--gutter);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  transition: transform 200ms ease;
}
.cta-bar .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: var(--fs-body); }
.cta-bar--hidden { transform: translateY(100%); }
body.has-cta-bar { padding-bottom: 88px; }

/* --- Stopka (styl orford.pl: czerń, kolumny, linia 6 px, dane spółki) --- */
.site-footer { padding: 56px 0 40px; background: var(--color-footer); color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__cols { display: grid; gap: 32px; }
.site-footer__col-heading { font-size: 20px; font-weight: 700; }
.site-footer__person { margin-top: 16px; color: var(--color-text-subtle); }
.site-footer__phone { display: inline-block; margin-top: 2px; }
.site-footer__links { display: grid; gap: 8px; margin-top: 16px; }
.site-footer__rule { margin-top: 40px; border-top: var(--rule-weight) solid var(--color-footer-line); }
.site-footer__bottom { display: grid; gap: 24px; margin-top: 32px; }
.site-footer__logo { height: 18px; width: auto; }
.site-footer__company { margin-top: 24px; }
.site-footer__company, .site-footer__address, .site-footer__registry { text-transform: uppercase; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal, .site-footer__legal a { color: var(--color-text-subtle); }

/* --- Warianty treści (utm_content) — JS ustawia .is-active na jednym bloku --- */
.variant { display: none; }
.variant.is-active { display: block; }
[data-variant] > :first-child { margin-top: 0; }

/* --- Narzędzia --- */
.is-hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Punkty łamania --- */
@media (min-width: 640px) {
  .heading-rule { gap: 32px; }
  .heading-rule::after { flex: 1 0 120px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .form-grid .form__fields { grid-template-columns: repeat(2, 1fr); }
  .form-grid .form__field--wide { grid-column: 1 / -1; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero__mark {
    display: block;
    position: absolute;
    top: 0;
    right: var(--gutter);
    width: 120px;
    height: 120px;
    background: var(--color-primary);
    border-radius: 0 var(--radius-shape) 0 var(--radius-shape);
  }
  .site-header__logo img { height: 22px; }
  .stepper--3 { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 64px; align-items: start; }
  .cta-bar { display: none; }
  body.has-cta-bar { padding-bottom: 0; }
  .site-footer__bottom { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer__legal { justify-content: flex-end; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .cta-bar { transition: none; }
}
