/*
Theme Name: APEX Driving Experience
Theme URI: https://ctrlzstudio.pl/
Author: CtrlZ Studio
Author URI: https://ctrlzstudio.pl/
Description: Jednostronicowy motyw dla OSK APEX w Częstochowie. Treść edytowana w całości przez ACF PRO, animacje GSAP, mobile first.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apex
Tags: one-page, custom-theme, acf
*/

/* =========================================================
   1. Tokeny i podstawy (mobile first)
   ========================================================= */
:root {
  --bg: #f5f5f7;
  --white: #ffffff;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --border: #d2d2d7;
  --dark: #111111;
  --apex: #ff5a1f;
  --apex-dark: #e54812;
  --apex-deep: #c2410c;
  --apex-light: #fff1eb;
  --muted: #e8e8ea;
  --nav-h: 60px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Element z atrybutem hidden ma być ukryty także wtedy, gdy klasa ustawia display */
[hidden] { display: none !important; }

a { color: var(--apex-deep); text-decoration: none; }
a:hover { color: #9a3412; }

:focus-visible { outline: 2px solid var(--apex-dark); outline-offset: 3px; border-radius: 6px; }

section { scroll-margin-top: var(--nav-h); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px; background: #000; color: #fff; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 16px; }
.sec { padding: 96px 0; }
.bg-white { background: var(--white); }
.bg-soft { background: var(--bg); }
.bg-black { background: #000000; color: #f5f5f7; }

/* Typografia */
.eyebrow { margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--apex-deep); }
.bg-black .eyebrow { color: var(--apex); }
.h1 { margin: 0; font-size: clamp(44px, 7.6vw, 108px); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }
.h2 { margin: 0; font-size: clamp(38px, 5.6vw, 76px); font-weight: 600; line-height: 1.04; letter-spacing: -0.038em; }
.lead { margin: 24px 0 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -0.015em; color: var(--text2); max-width: 680px; }
.bg-black .lead { color: #a1a1a6; }
.line { display: block; overflow: hidden; padding: 0.1em 0 0.12em; margin: -0.1em 0 -0.12em; }
.line-inner { display: block; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--apex-dark); color: #ffffff; }
.btn-primary:hover { background: var(--apex-deep); color: #ffffff; }
.btn-secondary { background: transparent; color: var(--apex-deep); border-color: var(--apex-dark); }
.btn-secondary:hover { background: var(--apex-light); color: #9a3412; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.link-more { font-size: 17px; font-weight: 500; white-space: nowrap; }

/* =========================================================
   2. Nawigacja
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; width: auto; height: 32px; }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { color: #f5f5f7; opacity: 0.8; font-size: 13px; padding: 8px 0; transition: opacity .2s ease; }
.nav-links a:hover { opacity: 1; color: #ffffff; }
.nav-cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: transparent; border: 0; border-radius: 999px; color: #f5f5f7; cursor: pointer;
}
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.sheet {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  padding: 0 16px 32px;
  background: #000000; overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.sheet-links { display: flex; flex-direction: column; padding-top: 20px; }
.sheet-link { display: block; padding: 8px 0; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; color: #f5f5f7; }
.sheet-link:hover { color: #a1a1a6; }
.sheet-foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.sheet-foot .btn { width: 100%; min-height: 52px; }
.sheet-foot p { margin: 0; text-align: center; font-size: 14px; color: #a1a1a6; }

/* =========================================================
   3. Hero + slider
   ========================================================= */
.hero { padding-top: 64px; text-align: center; }
.hero .eyebrow { margin-bottom: 20px; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero-cta { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.hero-cta .btn { width: 100%; }

.hero-media { margin-top: 56px; height: clamp(360px, 62vw, 920px); background: #2b2b2b; overflow: hidden; }
.hero-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-track { display: flex; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.hero-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.hero-slider.is-dragging .hero-track { transition: none; }

.slider-arrow {
  position: absolute; top: 50%; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-top: -22px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
  background: rgba(0, 0, 0, 0.32); color: #ffffff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s ease, border-color .25s ease, opacity .25s ease;
}
.slider-arrow:hover { background: rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }
.slider-arrow[data-dir="prev"] { left: 12px; }
.slider-arrow[data-dir="next"] { right: 12px; }
.slider-arrow .ico { stroke-width: 1.5; }

.slider-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: background-color .25s ease, width .25s ease; }
.slider-dot.is-active { width: 22px; background: #ffffff; }

/* =========================================================
   4. Manifest
   ========================================================= */
.statement-text { margin: 0; max-width: 1080px; font-size: clamp(32px, 4.6vw, 64px); font-weight: 600; line-height: 1.12; letter-spacing: -0.032em; }
.statement .w { color: #f5f5f7; }

/* =========================================================
   5. Oferta
   ========================================================= */
.offer-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tabs {
  margin-top: 40px; display: flex; gap: 4px; padding: 4px;
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--muted); border-radius: 999px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; background: transparent;
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--text2); cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: #ffffff; color: var(--text); }

.course { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.course[hidden] { display: none; }
.course-visual { position: relative; aspect-ratio: 4 / 3.3; border-radius: 12px; overflow: hidden; background: #1d1d1f; }
.course-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.badge { display: inline-block; margin-bottom: 16px; padding: 4px 10px; border-radius: 999px; background: var(--apex-light); color: var(--apex-deep); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.course-kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text2); }
.course-title { margin: 0; font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -0.038em; }
.course-lead { margin: 16px 0 0; font-size: clamp(19px, 1.6vw, 21px); color: var(--text2); }
.points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--border); }
.points li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
.points li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--apex-dark); }
.course-price { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.course-price-val { font-size: clamp(36px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.035em; }
.course-price-label { font-size: 15px; color: var(--text2); }
.course-note { margin: 8px 0 0; font-size: 15px; color: var(--text2); }
.course-cta { margin-top: 28px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* =========================================================
   6. O nas
   ========================================================= */
.stats { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.stat { border-top: 1px solid var(--border); padding-top: 24px; }
.stat-num { margin: 0; font-size: clamp(64px, 7.4vw, 112px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat-unit { margin-left: 6px; font-size: 0.36em; letter-spacing: -0.02em; color: var(--apex-deep); }
.stat-label { margin: 14px 0 0; max-width: 300px; color: var(--text2); }
.features { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.feature h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--text2); }

/* =========================================================
   7. Instruktor
   ========================================================= */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.portrait { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--muted); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 40%; }
.role { margin: 16px 0 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.015em; }
.team-copy p.body { margin: 20px 0 0; max-width: 520px; color: var(--text2); }
.quote { margin: 88px 0 0; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(40px, 6.4vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: -0.048em; }
.quote figcaption { margin-top: 24px; font-size: 17px; color: var(--text2); }

/* =========================================================
   8. Skąd nazwa APEX
   ========================================================= */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.story-copy p { margin: 24px 0 0; max-width: 520px; font-size: clamp(19px, 1.6vw, 21px); color: #a1a1a6; }
.story-copy p.apex-copy-2 { color: #f5f5f7; font-weight: 500; }
.corner-wrap { order: -1; }
.corner { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.road { fill: none; stroke: #1c1c1e; stroke-width: 140; }
.road-center { fill: none; stroke: #3a3a3c; stroke-width: 2; stroke-dasharray: 14 18; }
.apex-line { fill: none; stroke: var(--apex); stroke-width: 5; stroke-linecap: round; }
.apex-dot { fill: var(--apex); }
.apex-ring { fill: none; stroke: var(--apex); stroke-width: 2; opacity: 0; }
.apex-label-main { fill: #f5f5f7; font-size: 22px; font-weight: 600; letter-spacing: 0.2em; }
.apex-label-sub { fill: #a1a1a6; font-size: 15px; }

/* =========================================================
   9. Flota
   ========================================================= */
.fleet-grid { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.vehicle-media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #2b2b2b; }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; }
.vehicle-copy { padding: 24px 4px 0; }
.vehicle-copy .course-kicker { margin-bottom: 6px; }
.vehicle-copy h3 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.025em; }
.vehicle-copy p { margin: 8px 0 0; max-width: 480px; color: var(--text2); }

/* =========================================================
   10. Jak zacząć
   ========================================================= */
.steps { position: relative; margin: 56px 0 0; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-track { position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--border); }
.steps-progress { position: absolute; inset: 0; background: var(--apex-dark); transform-origin: 50% 0%; }
.step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 20px; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin: 12px 0 0 9px; border-radius: 50%; background: var(--apex-dark); box-shadow: 0 0 0 6px var(--bg); }
.step-num { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--apex-deep); }
.step h3 { margin: 4px 0 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.028em; }
.step-body { grid-column: 2; padding-top: 12px; color: var(--text2); }
.step-body p { margin: 0 0 10px; }
.step-body ul { margin: 0 0 10px; padding-left: 20px; }
.step-body li { margin: 2px 0; }
.finish { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.finish h3 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -0.038em; }
.finish p { margin: 12px 0 0; max-width: 520px; color: var(--text2); }

/* =========================================================
   11. Cennik
   ========================================================= */
.price-list { margin-top: 48px; border-top: 1px solid var(--border); }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--border); }
.price-name { margin: 0; font-size: clamp(21px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.price-name .badge { margin: 0 0 0 10px; vertical-align: 4px; }
.price-desc { margin: 0; grid-column: 1 / -1; grid-row: 2; color: var(--text2); }
.price-val { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.extra { margin-top: 56px; }
.extra h3 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.extra-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.extra-box { padding: 24px; border-radius: 12px; background: var(--bg); }
.extra-box h4 { margin: 0 0 16px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.extra-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.extra-row span:first-child { color: var(--text2); }
.extra-row span:last-child { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.pay { margin-top: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pay p { margin: 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.015em; }
.pay p span { color: var(--text2); font-weight: 400; }

/* =========================================================
   12. FAQ
   ========================================================= */
.faq-wrap { max-width: 880px; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px; padding: 20px 0; font-size: clamp(19px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text2); }
.plus { position: relative; flex-shrink: 0; width: 18px; height: 18px; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: var(--text); }
.plus::after { transform: rotate(90deg); }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-answer { margin: 0; padding: 0 0 28px; max-width: 720px; color: var(--text2); }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .45s cubic-bezier(.2, .7, .2, 1), content-visibility .45s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* =========================================================
   13. Kontakt
   ========================================================= */
.contact-head { max-width: 860px; margin: 0 auto; text-align: center; }
.contact-head .lead { margin-left: auto; margin-right: auto; }
.contact-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.info { margin: 0; border-top: 1px solid var(--border); }
.info-row { padding: 20px 0; border-bottom: 1px solid var(--border); }
.info-row dt { margin-bottom: 4px; font-size: 14px; color: var(--text2); }
.info-row dd { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.015em; }
.info-row dd a.plain { color: var(--text); }
.info-row dd a.plain:hover { color: var(--apex-deep); }
.info-row dd .small { margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.account { font-size: 17px !important; font-variant-numeric: tabular-nums; letter-spacing: 0.01em !important; }
.info-note { margin: 20px 0 0; font-size: 15px; color: var(--text2); }

.form-card { padding: 24px; border-radius: 12px; background: var(--bg); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.fw { display: flex; flex-direction: column; gap: 8px; }
.span-2 { grid-column: 1 / -1; }
.label { font-size: 14px; font-weight: 500; }
.label span { font-weight: 400; color: var(--text2); }
.field {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 10px; background: #ffffff;
  font-family: inherit; font-size: 17px; color: var(--text);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.field { min-height: 128px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field:focus { outline: none; border-color: var(--apex-dark); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18); }
.field[aria-invalid="true"] { border-color: #b3261e; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--text2); border-bottom: 1.5px solid var(--text2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select .field { padding-right: 44px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text2); }
.consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--apex-dark); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 8px; display: flex; flex-direction: column; gap: 16px; }
.form-foot .btn { width: 100%; }
.form-foot p { margin: 0; font-size: 14px; color: var(--text2); }
.form-error { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; background: #fdecea; color: #8c1d18; font-size: 15px; }
.success { padding: 48px 16px; text-align: center; }
.success h3 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.035em; }
.success p { margin: 12px auto 28px; max-width: 420px; color: var(--text2); }

/* =========================================================
   14. Stopka i przycisk „do góry”
   ========================================================= */
.footer { padding: 40px 0 48px; background: var(--bg); font-size: 13px; color: var(--text2); }
.footer a { color: var(--text2); }
.footer a:hover { color: var(--text); }
.footer-top { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand strong { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0.3em; }
.footer-nav { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { padding: 4px 0; }
.footer-bottom { padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.footer-legal { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.credit a { color: var(--text); font-weight: 500; }
.credit a:hover { color: var(--apex-deep); }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 999px; background: #1d1d1f; color: #f5f5f7; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .5s, background-color .25s ease, color .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1), visibility 0s, background-color .25s ease, color .25s ease; }
.to-top:hover { background: #000000; color: var(--apex); }
.to-top .ico { position: relative; stroke-width: 1.8; stroke-linejoin: round; transition: transform .3s ease; }
.to-top:hover .ico { transform: translateY(-2px); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.to-top-track { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 2.5; }
.to-top-progress { fill: none; stroke: var(--apex); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 153.94; stroke-dashoffset: 153.94; transition: stroke-dashoffset .12s linear; }

/* =========================================================
   15. Breakpointy (mobile first)
   ========================================================= */
@media (min-width: 601px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .hero-cta { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .hero-cta .btn { width: auto; }
  .hero-slide img { object-position: center 58%; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-foot { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .form-foot .btn { width: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
  .slider-arrow[data-dir="prev"] { left: 20px; }
  .slider-arrow[data-dir="next"] { right: 20px; }
}

@media (min-width: 761px) {
  .wrap { padding: 0 24px; }
  .sec { padding: 120px 0; }
  .stats, .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .step { grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; padding-bottom: 56px; }
  .step-body { grid-column: auto; padding-top: 30px; }
  .price-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 8px 40px; }
  .price-desc { grid-column: auto; grid-row: auto; }
  .extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extra-box { padding: 32px; }
  .pay { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .finish { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; }
  .footer-top { flex-direction: row; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
  .form-card { padding: 36px; }
  .offer-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .slider-arrow { width: 48px; height: 48px; margin-top: -24px; }
}

@media (min-width: 901px) {
  .sec { padding: 140px 0; }
  .hero { padding-top: 104px; }
  .hero-media { margin-top: 88px; }
  .course { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 64px; margin-top: 40px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
  .portrait { aspect-ratio: 4 / 5; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
  .corner-wrap { order: 0; }
  .corner { max-width: 560px; margin-left: auto; margin-right: 0; }
  .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; }
  .quote { margin-top: 120px; }
  .form-card { padding: 48px; }
  .to-top { right: 32px; bottom: 32px; }
}

@media (min-width: 961px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .sec { padding: 160px 0; }
  .wrap { padding: 0 24px; }
}

@media (min-width: 1100px) {
  .course { gap: 80px; }
  .team-grid, .story-grid { gap: 96px; }
  .contact-grid { gap: 96px; }
}

/* Pasek administratora WordPressa (na wąskich ekranach pasek przewija się razem ze stroną) */
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}
@media (min-width: 783px) {
  .admin-bar .nav { top: 32px; }
  .admin-bar .sheet { top: 32px; }
}

/* Mniej ruchu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
