/* ============================================================
   serwisjachtowmazury.pl — system wizualny
   Marynistyczny warsztat: głębia morza, rdza pław, biel pokładu.
   Typografia: Schibsted Grotesk (nagłówki) + Hanken Grotesk (tekst).
   ============================================================ */

:root {
  /* kolor */
  --ink: #14262d;
  --ink-2: #435c66;
  --ink-3: #55686f;
  --brand: #0f4c5c;
  --brand-700: #0b3a47;
  --brand-100: #d3e4e8;
  --brand-50: #eaf2f4;
  --accent: #c33f0c;
  --accent-600: #a5330a;
  --paper: #ffffff;
  --paper-2: #eef4f6;
  --line: #dfeaed;
  --navy: #0c2932;
  --on-navy: #cddde1;

  /* typografia */
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* promienie */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* cienie */
  --sh-sm: 0 1px 2px rgba(12, 41, 50, .06), 0 1px 1px rgba(12, 41, 50, .04);
  --sh: 0 10px 28px -12px rgba(12, 41, 50, .22);
  --sh-lg: 0 26px 56px -20px rgba(12, 41, 50, .34);

  --container: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--brand); color: #fff; font-weight: 600;
  padding: .7rem 1.1rem; border-radius: var(--r-sm); transition: top .15s var(--ease);
}
.skip:focus { top: 12px; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h1, h2 { font-weight: 800; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.7rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.35rem); overflow-wrap: break-word; }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }

p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--brand); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent); }

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

img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3.5rem, 2rem + 6vw, 6rem) 0; }
.section--tint { background: var(--paper-2); }
.section--plain + .section--plain { border-top: 1px solid var(--line); }
.section--cta { padding-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }

/* ---------- pas ciemny (sygnaturowy) ---------- */
.section--dark { position: relative; overflow: hidden; color: var(--on-navy);
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-700) 70%, #0a2e39 100%); }
.section--dark::after { content: ""; position: absolute; right: -60px; top: -40px; width: 420px; height: 420px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' opacity='.06'%3E%3Cpath d='M0 30q12 8 25 0t25 0 25 0 25 0'/%3E%3Cpath d='M0 45q12 8 25 0t25 0 25 0 25 0'/%3E%3Cpath d='M0 60q12 8 25 0t25 0 25 0 25 0'/%3E%3Cpath d='M0 75q12 8 25 0t25 0 25 0 25 0'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none; }
.section--dark h2, .section--dark h3, .section--dark strong,
.section--dark :is(.card, .feature, .step, .contact-item) h3 { color: #fff; }
.section--dark .section-head p, .section--dark p { color: rgba(255, 255, 255, .82); }
.section--dark .eyebrow { color: #ffd9c7; }
.section--dark .icon-chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }
.section--dark > .container { position: relative; z-index: 1; }
.dark-note { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .96rem; color: rgba(255, 255, 255, .8); }
.icon-inline { width: .92em; height: .92em; stroke-width: 2; vertical-align: -2px; opacity: .7; }

.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section-head p { margin-top: .7rem; font-size: 1.08rem; }

/* ---------- ikony ---------- */
.icon { width: 1.5em; height: 1.5em; display: inline-block; vertical-align: middle; fill: none;
  stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-chip {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: var(--r); background: var(--brand-50); color: var(--brand);
  border: 1px solid var(--brand-100);
}
.icon-chip .icon { width: 26px; height: 26px; }

/* wspólny tytuł komponentu — głos marki (Schibsted) poniżej H2 */
:is(.card, .feature, .step, .contact-item) h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.24rem;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: .35rem;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--brand); }
.logo-mark { width: 27px; height: 27px; flex: none; color: var(--accent); }
.brand-short { display: none; }
.brand, .brand-full, .brand-short { white-space: nowrap; }
.topnav { display: flex; gap: .35rem; margin-left: auto; }
.topnav a {
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: var(--r-sm);
}
.topnav a:hover { color: var(--brand); background: var(--brand-50); }
.topbar .btn { padding: .6rem 1.05rem; min-height: 44px; }
.topbar-call .call-short { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center;
  justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--brand); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .topbar .btn.topbar-call { margin-left: .6rem; }
  .topnav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh);
    padding: .5rem 1.5rem 1rem; margin-left: 0; display: none;
  }
  .topnav.open { display: flex; }
  .topnav a { padding: .85rem .5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .topnav a:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .topbar-call .call-full { display: none; }
  .topbar-call .call-short { display: inline; }
  .topbar .btn { padding: .55rem .95rem; }
}
@media (max-width: 400px) {
  .brand-full { display: none; }
  .brand-short { display: inline; }
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .97rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background .15s var(--ease),
    box-shadow .2s var(--ease), border-color .15s var(--ease); white-space: nowrap;
}
.btn .icon { width: 1.15em; height: 1.15em; stroke-width: 2; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); box-shadow: var(--sh); }
.btn-ghost { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #fff; color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* ---------- pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .86rem; font-weight: 500; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: .4rem .8rem; border-radius: var(--r-pill);
}
.pill .icon { width: 1.05em; height: 1.05em; color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(120% 90% at 100% 0%, var(--brand-50) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--paper-2) 100%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-top: clamp(2.8rem, 2rem + 4vw, 4.8rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.hero-copy, .hero-media { min-width: 0; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-lead { font-size: 1.14rem; max-width: 34rem; margin-bottom: 1.7rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.7rem; }
.hero .pills { margin-bottom: 1.4rem; }
.hero-note { font-size: .93rem; color: var(--ink-3); }
.hero-note a { font-weight: 500; }

.hero-media { position: relative; }
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); border: 1px solid rgba(255, 255, 255, .6);
}
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(12, 41, 50, .1); pointer-events: none; }
.frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(175deg, rgba(15,76,92,.09) 0%, rgba(11,58,71,.05) 55%, rgba(8,44,54,.26) 100%);
  mix-blend-mode: multiply; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(1.05) brightness(1.12); }
.hero-media .frame img { aspect-ratio: 3 / 2; }
.float-card {
  position: absolute; left: -14px; bottom: -18px; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: .7rem .95rem; box-shadow: var(--sh); max-width: 15rem;
}
.float-card .icon-chip { width: 40px; height: 40px; }
.float-card .icon-chip .icon { width: 22px; height: 22px; }
.float-card strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--ink); }
.float-card span { font-size: .82rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-media { margin-top: .5rem; }
  .float-card { left: 12px; }
}

/* ---------- hero landingu (bez zdjęcia) ---------- */
.hero-single { max-width: 50rem; padding-top: clamp(2.4rem, 1.8rem + 3vw, 4rem);
  padding-bottom: clamp(2.4rem, 1.8rem + 3vw, 4rem); }
.hero-single .eyebrow { margin-bottom: 1rem; }
.hero-single h1 { margin-bottom: 1.1rem; }
.hero-single .hero-lead { margin-bottom: 1.6rem; }

/* ---------- checklist (co robimy) ---------- */
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.8rem; max-width: 54rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.checklist .icon { color: var(--brand); flex: none; margin-top: .18rem; width: 1.35em; height: 1.35em; }
@media (max-width: 620px) { .checklist { grid-template-columns: 1fr; } }
.back-link { margin-top: 2rem; }
.back-link a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* ---------- karty usług ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .55rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.section--tint .card { background: #fff; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--brand-100); }
.card .icon-chip { margin-bottom: .5rem; }
.card p { font-size: .96rem; }
.card-link {
  margin-top: auto; padding-top: .4rem; min-height: 40px; font-weight: 600; font-size: .93rem;
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
}
.card-link .icon { width: 1em; height: 1em; stroke-width: 2; transition: transform .15s var(--ease); }
.card:hover .card-link .icon { transform: translateX(3px); }

/* ---------- dlaczego my ---------- */
.feature { display: flex; gap: .9rem; }
.feature .icon-chip { margin-top: .15rem; }
.feature p { font-size: .95rem; }

/* ---------- proces ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: s; }
.step { position: relative; padding-top: .3rem; counter-increment: s; }
.step-num {
  width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: #fff; background: var(--brand); margin-bottom: .9rem; position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 44px; top: calc(.3rem + 21px);
  width: calc(100% + 1.4rem - 44px); height: 2px; background: var(--brand-100);
}
.step p { font-size: .95rem; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 1.1rem; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; padding-top: 0; }
  .step-num { margin-bottom: 0; }
  .step:not(:last-child)::after { left: 21px; top: 44px; width: 2px; height: calc(100% + 1.1rem - 44px); }
  .step-body { grid-column: 2; }
}

/* ---------- cennik ---------- */
.pricing-grid { display: grid; grid-template-columns: 1.5fr .85fr; gap: 1.4rem; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: .6rem 1.5rem; box-shadow: var(--sh-sm); }
.price-aside { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; position: sticky; top: 92px; }
.price-aside .aside-meta { font-size: .9rem; color: var(--ink-3); border-top: 1px solid var(--brand-100);
  padding-top: .7rem; margin-top: .2rem; }
@media (max-width: 760px) { .price-aside { position: static; } }
.price-aside h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; color: var(--ink); }
.price-aside p { font-size: .96rem; }
.price-aside .btn { margin-top: .3rem; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices td { padding: .9rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices tr:last-child td { border-bottom: none; }
.prices td:first-child { color: var(--ink); }
.prices td:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--brand);
  padding-left: 1.5rem; font-family: var(--font-sans); }
.note { color: var(--ink-3); font-size: .92rem; margin-top: 1rem; max-width: 46rem; }
@media (max-width: 480px) { .prices td:last-child { white-space: normal; } }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.gallery figure { margin: 0; }
.gallery .frame { box-shadow: var(--sh); }
.gallery img { aspect-ratio: 3 / 2; }
.gallery figcaption { margin-top: .6rem; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; align-content: start; }
.contact-item { display: flex; gap: .8rem; }
.contact-item p { font-size: .97rem; }
.contact-item a { font-weight: 500; display: inline-flex; align-items: center; min-height: 40px; }
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-sm); min-height: 320px; background: var(--brand-50); }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
  gap: .5rem; color: var(--brand); font-weight: 600; text-align: center; padding: 1rem; }
.map-fallback .icon { color: var(--accent); }
.map { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.5) contrast(1.02); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .map-wrap { min-height: 280px; } }
@media (max-width: 480px) { .contact-info { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(155deg, var(--brand) 0%, var(--brand-700) 70%, #0a2e39 100%); color: #fff;
  border-radius: var(--r-lg); padding: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); box-shadow: var(--sh);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); margin-top: .35rem; }
.cta-band .btn-light { box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }

/* ---------- fala (sygnatura) ---------- */
.wave { line-height: 0; }
.wave svg { display: block; width: 100%; height: 44px; }
.wave path { fill: var(--navy); }

/* ---------- stopka ---------- */
.footer { background: var(--navy); color: var(--on-navy); padding: 2.4rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 1.8rem; }
.footer .brand { color: #fff; margin-bottom: .7rem; }
.footer-about { font-size: .93rem; color: var(--on-navy); max-width: 22rem; }
.foot-h { font-family: var(--font-sans); font-weight: 600; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; margin-bottom: .9rem; opacity: .85; }
.footer ul { list-style: none; display: grid; gap: .3rem; }
.footer li { line-height: 1.5; }
.footer a { color: var(--on-navy); font-size: .94rem; display: inline-block; padding: .2rem 0; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between;
  font-size: .86rem; color: var(--on-navy); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* powiększone pola dotyku dla linków tekstowych */
.hero-note a, .contact-item a, .step a, .card p a { padding: .15rem 0; }
