/* Zieleń i natura: jasno, miękkie kształty, przyjazne pismo bezszeryfowe */
:root {
  --green: #264B3C;
  --green-dark: #1C3A2E;
  --sage: #B4C2AD;
  --sage-light: #E3E9DD;
  --cream: #F5F1E8;
  --sand: #EADFCB;
  --white: #FFFDF8;
  --muted: #4E6254;
  --head: 'Trebuchet MS', 'Segoe UI', Roboto, sans-serif;
  --body: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --edge: 20px;
  --bar: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding: 24px 0 calc(var(--bar) + 24px); }
body { margin: 0; background: var(--cream); color: var(--green); font: 1.0625rem/1.65 var(--body); padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p, dd { text-wrap: pretty; }
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem); line-height: 1.18; letter-spacing: -.02em; }
h3 { font-size: 1.3rem; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
main:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 22px; border-radius: 99px; background: var(--green); color: var(--cream); }
.skip:focus { top: 12px; }

.button { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 12px 30px; border-radius: 99px; background: var(--green); color: var(--cream); font-weight: 600; text-align: center; text-decoration: none; transition: background-color .2s; }
.button:hover { background: var(--green-dark); }
.button-light { background: var(--cream); color: var(--green); }
.button-light:hover { background: var(--white); }

/* Nagłówek */
.top { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 8px var(--edge); }
.brand { display: inline-flex; align-items: center; min-height: 48px; font: 700 1.2rem/1 var(--head); letter-spacing: -.02em; text-decoration: none; }
.top-phone { display: none; }
.menu-button { display: none; min-height: 48px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--sage-light); color: inherit; font: 600 1rem var(--body); cursor: pointer; }
.js .menu-button { display: block; }
.nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 2px); display: grid; padding: 14px; border-radius: 28px; background: var(--white); box-shadow: 0 18px 44px rgba(38, 75, 60, .2); }
html:not(.js) .top { flex-wrap: wrap; }
html:not(.js) .nav { position: static; display: flex; flex-wrap: wrap; box-shadow: none; }
.js .nav:not(.is-open) { display: none; }
.nav a { display: flex; align-items: center; min-height: 50px; padding: 0 18px; border-radius: 99px; text-decoration: none; }
.nav a:hover { background: var(--sage-light); }

/* Otwarcie */
.hero-text { padding: 16px var(--edge) 30px; }
h1 { font-size: clamp(2.1rem, 10.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.035em; }
.hero-sub { margin-top: 16px; }
.hero-area { display: flex; align-items: center; gap: 12px; margin: 16px 0 22px; font-weight: 600; line-height: 1.4; }
.hero-area svg { flex: none; width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-person { margin-top: 14px; color: var(--muted); text-align: center; }
.hero-photo { margin: 0 var(--edge); overflow: hidden; border-radius: 50vw 50vw 32px 32px; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1.14; object-fit: cover; object-position: center bottom; }

/* Trzy kroki */
.visit { padding: 72px var(--edge) 56px; }
.visit ol { counter-reset: krok; margin-top: 30px; }
.visit li { counter-increment: krok; position: relative; padding: 0 0 32px 76px; }
.visit li:last-child { padding-bottom: 0; }
.visit li::before { content: counter(krok); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sage); font: 700 1.4rem/1 var(--head); }
.visit li:not(:last-child)::after { content: ''; position: absolute; left: 26px; top: 62px; bottom: 8px; border-left: 3px dotted var(--sage); }
.visit h3 { padding-top: 11px; }
.visit li p { margin-top: 6px; }

/* Dojazd */
.area { margin: 0 12px; padding: 44px 24px; border-radius: 32px; background: var(--green); color: var(--cream); }
.area :focus-visible { outline-color: var(--cream); }
.area p { margin: 14px 0 24px; }
.route { position: relative; margin-top: 40px; display: grid; gap: 26px; font: 700 1.35rem/1.3 var(--head); }
.route li { position: relative; padding-left: 44px; }
.route li::before { content: ''; position: absolute; left: 4px; top: 5px; z-index: 1; width: 20px; height: 20px; border: 5px solid var(--sage); border-radius: 50%; background: var(--green); }
.route li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 22px; bottom: -34px; border-left: 3px dotted var(--sage); }

/* O Marcie */
.about { padding: 72px var(--edge); }
.about img { width: min(70%, 290px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; margin: 0 auto 30px; box-shadow: 14px 14px 0 var(--sage-light); }
.about p { margin-top: 14px; max-width: 58ch; }
.about h3 { margin-top: 28px; }
.about h3 + p { margin-top: 6px; }
.training { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.training li { padding: 9px 18px; border-radius: 24px; background: var(--sage-light); line-height: 1.4; }

/* Oferta */
.offer { padding: 64px 12px; background: var(--white); border-radius: 40px; }
.offer h2 { padding: 0 8px; margin-bottom: 28px; }
.block { padding: 28px 24px 32px; border-radius: 32px; background: var(--sage-light); }
.block + .block { margin-top: 14px; }
.block:nth-of-type(2) { background: var(--sand); }
.block:nth-of-type(3) { background: var(--sage); }
.block-icon { display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 18px; border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%; background: var(--white); }
.block:nth-of-type(2) .block-icon { margin-left: auto; }
.block svg { width: 54px; height: 54px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.block h3 { font-size: 1.5rem; }
.block p { margin-top: 10px; max-width: 52ch; }

/* Pytania */
.faq { padding: 72px var(--edge) 64px; }
.faq h2 { margin-bottom: 26px; }
details { border-radius: 26px; background: var(--white); }
details + details { margin-top: 10px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 22px; border-radius: 26px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sage-light); font: 400 1.5rem/1 var(--head); }
details[open] summary::after { content: '\2212'; }
details p { padding: 0 22px 22px; }
details a { display: inline-block; padding: 11px 0; margin: -11px 0; white-space: nowrap; }

/* Kontakt */
.contact { position: relative; overflow: hidden; margin: 0 12px; padding: 48px 20px 24px; border-radius: 32px; background: var(--sage); }
.contact h2, .contact > p { position: relative; }
.contact > p { margin: 12px 0 26px; max-width: 42ch; }
.twig { position: absolute; right: -70px; top: -34px; width: 230px; fill: none; stroke: var(--green); stroke-width: 2; opacity: .25; }
.contact ul { position: relative; display: grid; gap: 10px; }
.contact li a { display: grid; align-content: center; min-height: 82px; padding: 14px 24px; border-radius: 28px; background: var(--cream); line-height: 1.4; text-decoration: none; transition: background-color .2s; }
.contact li a:hover { background: var(--white); }
.contact li strong { font: 700 1.125rem/1.35 var(--head); overflow-wrap: anywhere; }
.contact li:first-child a { background: var(--green); color: var(--cream); }
.contact li:first-child a:hover { background: var(--green-dark); }
.contact li:first-child strong { font-size: 1.45rem; white-space: nowrap; }

.foot { padding: 36px var(--edge); color: var(--muted); display: grid; gap: 6px; }
.foot strong { color: var(--green); }

/* Dolny pasek na telefonie */
.bar { position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px; border-radius: 99px; background: var(--white); box-shadow: 0 6px 28px rgba(28, 58, 46, .28); }
.bar a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 99px; background: var(--sage-light); font-weight: 600; text-decoration: none; }
.bar .bar-call { background: var(--green); color: var(--cream); }
.bar a:focus-visible { outline-offset: 2px; }

@media (min-width: 768px) {
  :root { --edge: max(32px, calc((100vw - 1240px) / 2)); --bar: 0px; }
  .bar { display: none; }
  .top { min-height: 92px; gap: 16px; }
  .brand { font-size: 1.4rem; margin-right: auto; }
  .top-phone { display: inline-flex; align-items: center; order: 2; min-height: 48px; padding: 0 24px; border-radius: 99px; background: var(--green); color: var(--cream); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .top-phone:hover { background: var(--green-dark); }
  .menu-button { order: 1; }
  .nav { left: auto; right: var(--edge); width: 320px; }

  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 8px 0 0 var(--edge); }
  .hero-text { padding: 24px 0 48px; }
  h1 { font-size: clamp(2.2rem, 4.6vw, 4.25rem); }
  .hero-sub { margin-top: 22px; font-size: 1.1875rem; max-width: 36ch; }
  .hero-area { margin: 22px 0 32px; max-width: 34ch; }
  .hero-text .button { display: inline-flex; }
  .hero-person { text-align: left; }
  .hero-photo { margin: 0; border-radius: 300px 0 0 60px; }
  .hero-photo img { height: clamp(440px, 48vw, 680px); aspect-ratio: auto; object-position: 82% center; }

  .visit { padding-block: 112px 128px; }
  .visit ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 44px; }
  .visit li { padding: 84px 0 0; }
  .visit li:nth-child(2) { margin-top: 40px; }
  .visit li:nth-child(3) { margin-top: 80px; }
  .visit li::before { width: 64px; height: 64px; }
  .visit li:not(:last-child)::after { left: 80px; right: calc(clamp(24px, 4vw, 64px) * -1 + 14px); top: 30px; bottom: auto; height: 40px; border: 0 solid var(--sage); border-width: 3px 3px 0 0; border-style: dotted; border-radius: 0 40px 0 0; }

  .area { margin: 0 var(--edge); padding: clamp(40px, 6vw, 80px); border-radius: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
  .area p { font-size: 1.125rem; }
  .area .button { display: inline-flex; }
  .route { margin: 0; gap: 40px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
  .route li::before { top: .35em; }
  .route li:not(:last-child)::after { top: 1.15em; bottom: -50px; }

  .about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; padding-block: 120px; }
  .about img { width: 100%; margin: 0; box-shadow: 24px 24px 0 var(--sage-light); }

  .offer { padding: 96px var(--edge); border-radius: 64px; }
  .offer h2 { padding: 0; margin-bottom: 44px; }
  .block { display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; width: 86%; padding: 40px clamp(32px, 5vw, 64px); border-radius: 48px; }
  .block + .block { margin-top: 20px; }
  .block:nth-of-type(2) { margin-left: auto; grid-template-columns: 1fr 200px; }
  .block:nth-of-type(2) .block-icon { order: 2; }
  .block-icon { width: 200px; height: 180px; margin: 0; }
  .block svg { width: 96px; height: 96px; stroke-width: 1.8; }
  .block h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

  .faq { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); padding-block: 112px; }

  .contact { margin: 0 var(--edge); padding: clamp(40px, 6vw, 80px); border-radius: 56px; }
  .contact > p { font-size: 1.125rem; }
  .contact ul { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact li a { height: 100%; min-height: 104px; padding: 18px 32px; }
  .twig { width: 34%; right: 0; top: 10px; }
  .foot { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px; padding-block: 48px; }
}

@media (min-width: 1100px) {
  .js .menu-button { display: none; }
  .nav, .js .nav:not(.is-open) { position: static; display: flex; width: auto; padding: 0; background: none; box-shadow: none; }
  .nav a { min-height: 48px; padding: 0 16px; }
}

/* Szczegóły oferty */
.times li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 16px; }
.times b { flex: none; white-space: nowrap; }
.times .note { flex: 0 0 100%; line-height: 1.5; }
.extras a { display: inline-block; padding: 12px 0; margin: -12px 0; white-space: nowrap; }
.block { align-items: start; }
.detail h4 { margin: 24px 0 8px; font: 700 1.125rem/1.4 var(--head); }
.detail h4:first-child { margin-top: 14px; }
.times { display: grid; gap: 6px; }
.detail p + .times { margin-top: 18px; }
.times li { padding: 12px 18px; border-radius: 22px; background: rgba(255, 253, 248, .72); }
.times li > span { font-weight: 600; }
.times b { font-weight: 400; }
.times li > .note { font-weight: 400; }
.plain { display: grid; gap: 6px; margin-top: 16px; }
.plain li { padding: 12px 18px; border-radius: 22px; background: rgba(255, 253, 248, .72); font-weight: 600; line-height: 1.45; }
.extras { display: grid; gap: 14px; margin-top: 14px; }
.extras > div { padding: 28px 24px; border-radius: 32px; }
.extras p { margin-top: 6px; }
.voucher { border: 3px dotted var(--green); }
.prices { background: var(--green); color: var(--cream); }
.prices :focus-visible { outline-color: var(--cream); }
@media (min-width: 768px) {
  .extras { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
  .extras > div { padding: 36px 40px; border-radius: 48px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .block { width: 94%; grid-template-columns: 130px 1fr; }
  .block:nth-of-type(2) { grid-template-columns: 1fr 130px; }
  .block-icon { width: 130px; height: 118px; }
  .block svg { width: 70px; height: 70px; }
}

/* Dla kogo */
.who { padding: 72px var(--edge) 0; }
.who > div p { margin-top: 14px; max-width: 46ch; }
.who ul { margin-top: 30px; }
.who li { position: relative; padding: 18px 0 18px 48px; }
.who li + li { border-top: 2px solid var(--sage-light); }
.who li::before { content: ''; position: absolute; left: 2px; top: 23px; width: 24px; height: 24px; border-radius: 0 100% 0 100%; background: var(--sage); }
.who li p { margin-top: 2px; }

/* Uprawnienia i droga zawodowa */
.about .licence { margin-top: 22px; padding: 18px 22px; border-radius: 26px; background: var(--green); color: var(--cream); }
.about { padding-bottom: 56px; }
.path { margin: 0 12px 72px; padding: 40px 24px; border-radius: 32px; background: var(--sage-light); }
.path-intro > p { margin-top: 14px; }
.path .training li { background: var(--white); }
.path ol { margin-top: 38px; }
.path ol li { position: relative; padding: 0 0 30px 40px; }
.path ol li:last-child { padding-bottom: 0; }
.path ol li::before { content: ''; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border: 5px solid var(--green); border-radius: 50%; }
.path ol li:not(:last-child)::after { content: ''; position: absolute; left: 8px; top: 31px; bottom: 1px; border-left: 3px dotted var(--sage); }
.path ol p { margin-top: 6px; }
@media (min-width: 768px) {
  .who { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); padding-top: 120px; }
  .who ul { margin-top: -18px; }
  .who h3 { font-size: 1.45rem; }
  .about { padding-bottom: 88px; }
  .path { margin: 0 var(--edge) 112px; padding: clamp(40px, 6vw, 80px); border-radius: 56px; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); }
  .path ol { margin-top: 6px; }
  .path ol li { padding-bottom: 38px; }
}

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