/* Szkoła Jazdy Mila — style.css
   Fonty: Raleway 500 / 600 / 400 italic, Inter 18pt 400 / 600 (tylko grubości z projektu) */

:root {
  --orange: #F06B2D;
  --orange-dark: #D9561A;
  --orange-footer: #EF7B45;
  --ink: #2B2B2B;
  --text: #8A8A8A;
  --text-dark: #5E5E5E;
  --line: #ECECEC;
  --bg: #FFFFFF;
  --bg-soft: #F2F2F2;
  --hero-ink: #FFFFFF;

  --f-head: "Raleway", "Segoe UI", Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --wrap-wide: 1400px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(30, 30, 30, .08);
  --shadow-sm: 0 6px 18px rgba(30, 30, 30, .07);
  --header-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-variation-settings: "opsz" 18;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
.accent { color: var(--orange); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap--wide { max-width: calc(var(--wrap-wide) + 32px); }
.wrap--narrow { max-width: 900px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(240, 107, 45, .28); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--orange); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn--sm { min-height: 38px; padding: 8px 20px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled,
.site-header.is-open,
.site-header--solid { background: rgba(24, 22, 22, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(0,0,0,.18); }
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.logo img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: .92;
  transition: color .2s ease, opacity .2s ease;
}
.nav__list a:hover { color: var(--orange); opacity: 1; }
.nav__list a[aria-current="page"] { color: var(--orange); opacity: 1; }
.nav__sep { width: 1px; height: 28px; background: rgba(255,255,255,.35); }
.nav__phone { color: #fff; text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav__phone strong { font-weight: 600; }
.nav__phone:hover strong { color: var(--orange); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s ease;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.is-open .burger span { background: transparent; }
.is-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.is-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 96vh, 1000px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--hero-ink);
  background: #1d1a1a;
  text-align: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/hero.webp") center / cover no-repeat;
  transform-origin: 70% 60%;
  animation: heroZoom 14s cubic-bezier(.2, .6, .2, 1) both;
}
@keyframes heroZoom { from { transform: scale(1.14); filter: brightness(.55); } to { transform: scale(1); filter: brightness(1); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes heroSlide { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: heroRise .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
.hero h1 em { display: inline-block; animation: heroSlide 1.1s cubic-bezier(.2, .7, .2, 1) .55s both; }
.hero__sub { animation: heroRise .8s cubic-bezier(.2, .7, .2, 1) .45s both; }
.hero__lead { animation: heroRise .8s cubic-bezier(.2, .7, .2, 1) .6s both; }
.hero__actions { animation: heroRise .8s cubic-bezier(.2, .7, .2, 1) .75s both; }
.hero__spec { animation: heroRise .8s ease 1.05s both; }
.hero h1, .hero h1 em, .hero__sub, .hero__lead, .hero__actions, .hero__spec { will-change: transform, opacity; }
/* Animacja startuje dopiero po wczytaniu fontów – bez skoku przy podmianie kroju */
html:not(.fonts-ready) .hero h1,
html:not(.fonts-ready) .hero h1 em,
html:not(.fonts-ready) .hero__sub,
html:not(.fonts-ready) .hero__lead,
html:not(.fonts-ready) .hero__actions,
html:not(.fonts-ready) .hero__spec { animation-play-state: paused; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}
.hero__content { position: relative; padding-block: 60px 110px; display: grid; justify-items: center; gap: 22px; }
.hero h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 105px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero__sub {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(26px, 2.9vw, 40px);
  color: #fff;
  line-height: 1.25;
}
.hero__lead { max-width: 560px; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 4px; }
.hero__spec {
  position: absolute; left: 0; right: 0; bottom: 36px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding-inline: 16px;
}
.hero__spec span { color: var(--orange); }
.hero__spec i { font-style: normal; color: var(--orange); }

/* Hero podstron */
.page-hero {
  position: relative;
  color: #fff;
  background: #1d1a1a url("../img/hero.webp") center 40% / cover no-repeat;
  padding-top: var(--header-h);
  text-align: center;
  height: 440px;
  display: flex; flex-direction: column; justify-content: center;
}
.page-hero__content { position: relative; padding-block: 20px; display: grid; justify-items: center; gap: 14px; }
@media (max-width: 700px) { .page-hero { height: 460px; } }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.015em; }
.page-hero h1 em { font-style: italic; font-weight: 400; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 620px; }
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span[aria-hidden] { margin-inline: 8px; color: var(--orange); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(70px, 9vw, 120px); }
.section--divider::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: min(1100px, 90%); height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.055), rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; display: grid; justify-items: center; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head h2, .h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.015em; }
.section__head p { max-width: 640px; }
.section__head--tight { margin-bottom: 0; }

/* Intro */
.intro { text-align: center; display: grid; justify-items: center; gap: 24px; }
.intro p { max-width: 880px; font-size: 16px; }

/* ---------- Dlaczego my (bento) ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 352px);
  gap: 24px;
  align-items: center;
}
.why__intro { display: grid; gap: 18px; align-content: center; }
.why__intro h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.why__intro p { max-width: 380px; }
.why__cards { display: grid; gap: 14px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  display: grid; gap: 8px;
}
.card h3 { font-size: 21px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.6; }
.why__cards .card h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.why__cards .card { padding-inline: 26px; }
.why__cards .card p { font-size: 16px; }
.why__cards .card:nth-child(2) { margin-left: 10px; margin-right: -10px; }
.why__cards .card { transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease; }
@media (hover: hover) {
  .why__cards .card:hover { transform: translateX(-10px); box-shadow: 0 14px 36px rgba(30, 30, 30, .11); }
}
.why__photo { border-radius: var(--radius); overflow: hidden; align-self: center; width: 100%; max-width: 352px; }
.why__photo img { width: 100%; height: auto; }

/* ---------- Atuty ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 70px;
  max-width: 1000px;
  margin-inline: auto;
}
.perk { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 10px; align-items: center; }
.perk__num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 18px rgba(240, 107, 45, .25);
}
.perk h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.perk p { grid-column: 2; font-size: 14px; line-height: 1.65; }

/* ---------- Opinie ---------- */
.reviews { position: relative; }
.reviews__track {
  align-items: start;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 22px) / 4);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 18px 6px 34px;
  margin-inline: -6px;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-auto { scroll-snap-type: none; scroll-behavior: auto; }
.reviews__track { cursor: grab; }
.reviews__track.is-dragging { cursor: grabbing; user-select: none; }
.reviews__track.is-dragging .review { pointer-events: none; }
.review {
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 300px;
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review__name { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--ink); }
.review__stars { color: #F4B400; letter-spacing: 2px; font-size: 14px; line-height: 1; }
.review__text { font-size: 14px; line-height: 1.65; }
.review__text[data-clamp] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.review.is-expanded .review__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.review__more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--orange); font: 600 13px/1.4 var(--f-body); cursor: pointer; }
.review__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.review__src { margin-top: auto; }
.review__src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.review__src svg { width: 14px; height: 14px; }
.reviews__nav { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.reviews__btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.reviews__btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 16px; max-width: 1080px; margin-inline: auto; }
.faq details {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 30px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 18px; height: 18px;
  background:
    linear-gradient(var(--orange), var(--orange)) center / 18px 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 2px 18px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange); }
.faq__body { overflow: hidden; transition: height .38s cubic-bezier(.4, 0, .2, 1); }
.faq__inner { padding: 0 30px 26px; display: grid; gap: 10px; font-size: 16px; transition: opacity .3s ease, transform .38s cubic-bezier(.4, 0, .2, 1); }
.faq details:not([open]) .faq__inner, .faq details.is-closing .faq__inner { opacity: 0; transform: translateY(-6px); }
.faq details.is-opening .faq__inner { opacity: 0; transform: translateY(-6px); }
.faq__inner a { color: var(--orange); }

/* ---------- Zapisz się / formularz ---------- */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.signup h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.signup__text { display: grid; gap: 40px; }
.signup__text > p { max-width: 460px; }
.contact-person { margin-top: 0; color: var(--ink); font-size: 15px; line-height: 1.75; }
.contact-person strong { font-weight: 600; }
.contact-person a { text-decoration: none; }
.contact-person a:hover { color: var(--orange); }
.form { display: grid; gap: 14px; }
.form__consent { margin-top: 20px; }
.form__intro { color: var(--ink); font-size: 15px; margin-bottom: 24px; }
.form label { display: block; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px 16px;
  font: 400 14px/1.4 var(--f-body);
  font-variation-settings: "opsz" 18;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input::placeholder, .form textarea::placeholder { color: #5f5f5f; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,107,45,.12); }
.form__row { display: flex; justify-content: flex-end; }
.form__consent { font-size: 11px; line-height: 1.55; color: var(--text-dark); }
.form__consent a { color: inherit; }
.form__status { font-size: 14px; color: var(--ink); }

/* ---------- Podstrony ---------- */
.prose { max-width: 820px; margin-inline: auto; display: grid; gap: 18px; font-size: 15.5px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 22px; }
.prose h3 { font-size: 19px; margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--orange); }
.prose strong { color: var(--ink); font-weight: 600; }
.note {
  background: #FFF4EE; border-radius: var(--radius-sm); padding: 16px 20px; color: var(--text-dark); font-size: 14px;
}

.split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: center;
}
.split__media { border-radius: var(--radius); overflow: hidden; max-width: 352px; justify-self: center; width: 100%; }
.split__text { display: grid; gap: 18px; }
.split__text h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.015em; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { display: grid; gap: 12px; align-content: start; }
.step .perk__num { width: 46px; height: 46px; font-size: 15px; }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { font-size: 14px; line-height: 1.65; }

.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.kb-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
}
@media (hover: hover) { .kb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(30, 30, 30, .11); } }
.kb-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.kb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
@media (hover: hover) { .kb-card:hover .kb-card__img img { transform: scale(1.04); } }
.kb-card__body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kb-card__tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.kb-card__title { font-size: 18px; font-weight: 600; line-height: 1.35; border-left: 3px solid var(--orange); padding-left: 12px; }
.kb-card__title a { text-decoration: none; color: inherit; }
.kb-card__title a:hover { color: var(--orange); }
.kb-card p { font-size: 14px; line-height: 1.65; flex: 1; }
.kb-card__more { color: var(--orange); font-weight: 600; font-size: 14px; text-decoration: none; align-self: flex-start; }
.kb-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.kb-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }
.kb-pager__info { font-size: 14px; color: var(--text-dark); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.reviews__btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.kb-card[hidden] { display: none !important; }

/* Artykuł */
.wrap--post { max-width: calc(1400px + 32px); }
.post { padding-block: 34px 90px; }
.post__back { display: inline-flex; gap: 8px; font-size: 14px; color: var(--text-dark); text-decoration: none; margin-bottom: 18px; }
.post__back:hover { color: var(--orange); }
.post__hero { margin: 0; border-radius: 15px; overflow: hidden; aspect-ratio: 1400 / 480; background: var(--bg-soft); }
.post__hero img { width: 100%; height: 100%; object-fit: cover; }
.post__body { max-width: 1200px; margin: 44px auto 0; display: grid; gap: 14px; }
.post__title { font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.post__content { display: grid; gap: 24px; margin-top: 10px; font-size: 16px; line-height: 1.75; font-weight: 300; color: var(--text-dark); }
.post__content h2 { font-size: 22px; font-weight: 700; line-height: 1.3; margin-top: 12px; margin-bottom: -8px; }
.post__content strong { font-weight: 600; color: var(--ink); }
.post__content ul, .post__content ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.post__content li::marker { color: var(--orange); font-weight: 600; }
@media (max-width: 700px) {
  .post__hero { aspect-ratio: 16 / 9; }
  .post__title { font-size: 24px; }
  .post__body { margin-top: 28px; }
}

.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.contact-card { text-decoration: none; }
.contact-card .card { height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
a.contact-card:hover .card { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30,30,30,.1); }
.contact-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--orange); }
.contact-card__value { font-family: var(--f-head); font-weight: 600; font-size: 20px; color: var(--ink); word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--orange-footer); color: #fff; font-size: 13px; }
.site-footer a { color: #fff; text-decoration: none; opacity: .95; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a.credit:hover { text-decoration: none; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 24px 80px;
  padding-block: 46px 70px;
  align-items: start;
}
.site-footer__brand { font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fb-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background-color .2s; }
.fb-link:hover { background: rgba(255,255,255,.15); }
.fb-link img { width: 24px; height: 24px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.25);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 22px 28px;
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .reviews__track { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
  .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .why__intro { grid-column: 1 / -1; text-align: center; justify-items: center; }
  .why__intro p { max-width: 600px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 18px max(16px, env(safe-area-inset-right, 0px)) 26px max(16px, env(safe-area-inset-left, 0px));
    background: rgba(24, 22, 22, .97);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 10px 0; font-size: 16px; }
  .nav__sep { display: none; }
  .nav .btn { align-self: flex-start; }
  .perks { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .signup, .split { grid-template-columns: minmax(0, 1fr); }
  .values, .kb-grid, .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .reviews__track { grid-auto-columns: calc((100% - 16px) / 1.15); gap: 16px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why__cards .card:nth-child(2) { margin: 0; }
  .why__photo { max-width: 352px; justify-self: center; }
  .values, .kb-grid, .contact-cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .faq summary { padding: 20px 20px; }
  .faq__inner { padding: 0 20px 22px; }
  .card { padding: 22px; }
  .hero { min-height: 640px; }
  .hero__content { padding-block: 40px 120px; }
  .form__row .btn { width: 100%; }
}

/* ---------- Cookies ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #F6F5F4;
  border-top: 1px solid #E6E3E0;
  box-shadow: 0 -6px 24px rgba(30, 30, 30, .06);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  transform: translateY(100%);
  transition: transform .3s ease;
}
.cookie-bar.is-visible { transform: none; }
.cookie-bar__inner { max-width: 1200px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 32px; }
.cookie-bar__text { min-width: 0; max-width: 720px; }
.cookie-bar__text p { font-size: 11.5px; line-height: 1.5; color: var(--text-dark); }
.cookie-bar__text .cookie-bar__title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
.cookie-bar__short { display: none; }
.cookie-bar .cbtn { min-height: 30px; padding: 6px 13px; font-size: 12px; }
.cookie-bar a, .cookie-modal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar a:hover, .cookie-modal a:hover { color: var(--orange); }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.cbtn {
  min-height: 36px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid #E2DEDA; background: #ECEAE8; color: var(--ink);
  font: 400 13px/1.2 var(--f-body); font-variation-settings: "opsz" 18;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.cbtn:hover { background: #E2DEDA; }
.cbtn--primary { background: #3A3A3A; border-color: #3A3A3A; color: #fff; font-weight: 600; }
.cbtn--primary:hover { background: #222; border-color: #222; }

.cookie-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.cookie-modal.is-visible { opacity: 1; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 18, .55); }
.cookie-modal__box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 22px; padding: 28px 30px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: translateY(8px) scale(.98); transition: transform .2s ease;
}
.cookie-modal.is-visible .cookie-modal__box { transform: none; }
.cookie-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-modal__head h2 { font-size: 26px; font-weight: 600; }
.cookie-modal__close {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: #ECEAE8; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background-color .2s, color .2s;
}
.cookie-modal__close:hover { background: var(--orange); color: #fff; }
.cookie-modal__intro { font-size: 13.5px; line-height: 1.6; color: var(--text-dark); margin-top: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cookie-cat { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.cookie-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-cat__name { font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cookie-cat p { font-size: 13px; line-height: 1.6; color: var(--text-dark); }
.switch { position: relative; display: inline-flex; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch__track { width: 44px; height: 24px; border-radius: 999px; background: #DAD6D2; position: relative; transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--orange); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled:checked + .switch__track { background: #F5A47E; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--orange); outline-offset: 2px; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 18px; }

@media (max-width: 900px) {
  .cookie-bar__inner { flex-direction: column; align-items: stretch; }
  .cookie-bar__actions .cbtn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .cookie-modal__box { padding: 22px 18px 18px; }
  .cookie-modal__actions .cbtn { flex: 1 1 100%; }
}

/* O nas */
.about-h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.prose .about-h2 { margin-top: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.person { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: clamp(22px, calc(5vw - 10px), 54px); align-items: center; max-width: 1000px; }
.person__photo { width: 276px; height: 345px; border-radius: 15px; background: #E3E1DF; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__text { display: grid; gap: 18px; font-size: 15.5px; }
.person__text strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .person { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .person__photo { width: 255px; height: 340px; }
}

.section--person { padding-bottom: calc(clamp(70px, 9vw, 120px) + 30px); }
.section--up { padding-top: calc(clamp(70px, 9vw, 120px) - 10px); }
.section--gains { padding-top: 0; padding-bottom: 30px; }
.section--after-gains { padding-top: 60px; }
.gains {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  background: var(--bg-soft);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 52px);
}
.gains__title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.gain { border-left: 2px solid var(--orange); padding-left: 18px; display: grid; gap: 14px; }
.gain h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.gain p { font-size: 15px; line-height: 1.6; color: var(--text-dark); }
@media (max-width: 1000px) {
  .gains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gains__title { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .gains { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

/* Kontakt */
.header-spacer { height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.company { color: var(--ink); font-size: 15px; line-height: 1.75; margin-top: -10px; }
.company strong { font-weight: 600; }

/* Mapa (Kontakt) */
.map { line-height: 0; background: var(--bg-soft); }
.map__frame { display: block; width: 100%; height: 445px; border: 0; }
@media (max-width: 700px) { .map__frame { height: 320px; } }
.map__frame--preview { display: grid; place-items: center; text-align: center; line-height: 1.6; background: #E6E3DF; color: var(--text-dark); padding: 16px; font-size: 14px; }
.map__frame--preview strong { color: var(--ink); font-size: 16px; }

/* Podstrony bez tła (polityka, regulamin) */
.page-hero--plain { background: var(--bg); color: var(--text); height: auto; display: block; }
.page-hero--plain .page-hero__content { padding-block: 70px 10px; }
.page-hero--plain h1 { color: var(--ink); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); }
.page-hero--plain h1 em { font-style: normal; font-weight: 700; }
.page-hero--plain p { color: var(--text); }
.page-hero--plain + .section { padding-top: 40px; }

/* Przycisk do góry */
.to-top {
  position: fixed; z-index: 80;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + var(--cc-offset, 0px) + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; outline: none; background: #F1F0EF; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: none;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s, bottom .3s ease, background-color .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); color: #fff; }
.to-top:focus { outline: none; }

/* Cookies – telefon */
@media (max-width: 700px) {
  .cookie-bar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .cookie-bar__inner { gap: 6px; }
  .cookie-bar__text .cookie-bar__title { font-size: 12px; }
  .cookie-bar__text p { font-size: 10.5px; line-height: 1.4; }
  .cookie-bar__long { display: none; }
  .cookie-bar__text .cookie-bar__short { display: block; }
  .cookie-bar__actions { flex-wrap: nowrap; gap: 5px; }
  .cookie-bar .cbtn { flex: 1 1 0; min-height: 28px; padding: 5px 6px; font-size: 11px; white-space: nowrap; }
  .to-top { width: 42px; height: 42px; right: calc(14px + env(safe-area-inset-right, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reviews__track { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .page-hero { background-image: url("../img/hero-960.webp"); }
  .hero__bg { background-image: url("../img/hero-960.webp"); background-position: 72% center; }
}
