/* Korea Direct — arkusz stylów */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Płynne przejście między podstronami */
@view-transition { navigation: auto; }

:root {
  --paper: #fbf8f3;
  --paper-2: #f3eee5;
  --ink: #1a1d24;
  --ink-soft: #4a4f5a;
  --line: #e2dbcf;
  --red: #c8102e;
  --red-dark: #a00d25;
  --blue: #1f3a68;
  --serif: "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size-adjust: from-font;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--alt { background: var(--paper-2); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 680px; margin-bottom: 56px; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 .95rem var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Nagłówek */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.header .brand img { width: 48px; height: 48px; }
.brand__name { font-family: var(--sans); font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue); }
.header .brand__name { font-size: 1.55rem; }
.brand__name span { font-weight: 500; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--red); }
.nav .btn { padding: 10px 20px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 80px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 16px 24px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__since { margin-top: 40px; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 12px; }
.hero__since::before { content: ""; width: 32px; height: 1px; background: var(--ink-soft); }

.route { position: relative; }
.route svg { width: 100%; height: auto; }
.route .city { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); }
.route .city-sub { font: 400 12px var(--sans); fill: var(--ink-soft); }
.route .path { stroke-dasharray: 6 8; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* O nas */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; }
.checklist li {
  position: relative; padding: 14px 0 14px 36px;
  border-top: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 12px; height: 12px; border: 2px solid var(--red); border-radius: 2px; transform: rotate(45deg);
}
.quote {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; font-style: italic;
  border-left: 3px solid var(--red); padding-left: 24px; margin: 0 0 24px;
}
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; gap: 40px; } }

/* Usługi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--paper); padding: 36px 32px; transition: background .2s; }
.service:hover { background: #fff; }
.service__num { font-family: var(--serif); font-size: .95rem; color: var(--red); margin-bottom: 20px; display: block; }
.service p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Proces */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--red); line-height: 1; margin-bottom: 16px;
}
.step p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--ink); color: var(--paper); border-radius: 16px; padding: clamp(40px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 20ch; }
.cta p { color: #c9c4ba; margin: 12px 0 0; }

/* Kontakt */
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--red); }
.map { width: 100%; height: 240px; border: 0; border-radius: var(--radius); filter: grayscale(.6); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 58, 104, .12); }
.field textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: 10px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 22px; }
.consent input { margin-top: 4px; accent-color: var(--red); }
.form__status { margin: 16px 0 0; font-size: .95rem; }
.form__status.ok { color: #1d6b3a; }
.form__status.err { color: var(--red); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* Stopka */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .9rem; color: var(--ink-soft); }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer a { color: var(--ink-soft); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Baner cookies */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 520px; margin-left: auto;
  background: var(--ink); color: var(--paper);
  padding: 20px 22px; border-radius: 12px; font-size: .9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.cookie p { margin: 0 0 14px; }
.cookie a { color: #fff; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 9px 18px; font-size: .85rem; }
.cookie .btn--ghost { border-color: #fff; color: #fff; }
.cookie .btn--ghost:hover { background: #fff; color: var(--ink); }

/* Podstrona prawna */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }

/* Dostępność: fokus i link „przejdź do treści” */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Walidacja formularza — błędy dopiero po interakcji */
.field__error { display: none; font-size: .85rem; color: var(--red); margin-top: 6px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field input:user-invalid ~ .field__error, .field textarea:user-invalid ~ .field__error { display: block; }
.consent:has(input:user-invalid) { color: var(--red); }

/* Animacja wejścia sekcji — przewijaniem w CSS, z zapasowym JS */
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal { from { opacity: 0; translate: 0 24px; } }
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
  @supports not ((animation-timeline: view()) and (animation-range: entry)) {
    .js .reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }
    .reveal { transition: opacity .7s ease, transform .7s ease; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .route .path { animation: none; }
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}

/* Przełącznik języka */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1.5px solid var(--blue); border-radius: 999px;
  font-size: .85rem; font-weight: 700; line-height: 1;
}
.lang > * { padding: 7px 12px; border-radius: 999px; }
.nav .lang a, .lang a { color: var(--blue); text-decoration: none; transition: background .2s; }
.lang [aria-current] { background: var(--blue); color: #fff; }
.nav .lang a:hover, .lang a:hover { color: var(--blue); background: rgba(31, 58, 104, .1); }
.header__right { display: flex; align-items: center; gap: 16px; }
