:root {
  /* REPLACEABLE IMAGES */
  --hero-image: url("assets/hero.webp");

  --paper: #f7f4ed;
  --white: #fffdf8;
  --ink: #172537;
  --muted: #5c6671;
  --brick: #a63832;
  --brick-dark: #7d2522;
  --river: #8ebbc6;
  --line: #d8d2c7;
  --gold: #c99742;
  --shadow: 0 18px 50px rgba(23, 37, 55, .12);
  --display: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 760px); margin-inline: auto; }
.eyebrow { margin: 0 0 .7rem; color: var(--brick); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 8vw, 6.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
p { margin: 0 0 1rem; }
.lead { max-width: 65ch; font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .75rem 1.25rem; border: 1px solid var(--brick); border-radius: 999px; background: var(--brick); color: white; font-weight: 750; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.button:hover { background: var(--brick-dark); transform: translateY(-2px); }
.button--light { border-color: var(--ink); background: transparent; color: var(--ink); }
.button--light:hover { background: var(--ink); color: white; }
.text-link { color: var(--brick); font-weight: 750; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(23,37,55,.12); background: rgba(247,244,237,.95); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 4.7rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; font-weight: 800; line-height: 1.1; text-decoration: none; }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.brand small { display: block; margin-top: .18rem; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.nav-toggle { display: none; border: 0; background: none; color: var(--ink); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { color: var(--brick); }
.site-nav .button { min-height: 2.65rem; padding: .55rem 1rem; color: white; }

.hero { position: relative; min-height: calc(100svh - 4.7rem); display: grid; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 46%; background: linear-gradient(90deg, var(--paper) 0, transparent 20%), var(--hero-image) center/cover; }
.hero::after { content: ""; position: absolute; z-index: 1; left: calc(50% - 2px); top: 8%; width: 3px; height: 84%; background: var(--brick); transform: rotate(8deg); opacity: .8; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; }
.hero-copy { padding: 5rem 3rem 5rem 0; background: linear-gradient(90deg, var(--paper) 82%, transparent); }
.hero h1 span { display: block; color: var(--brick); font-style: italic; }
.hero .lead { max-width: 570px; margin: 1.5rem 0 2rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note { align-self: end; justify-self: end; width: min(340px, 90%); margin: 0 0 2rem; padding: 1.2rem; background: rgba(255,253,248,.9); box-shadow: var(--shadow); }
.hero-note strong { display: block; font-family: var(--display); font-size: 1.35rem; }

.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 1.3rem 1.5rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-family: var(--display); font-size: 1.45rem; }
.trust-item span { color: var(--muted); font-size: .9rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: white; }
.section--ink .eyebrow { color: var(--river); }
.section--ink .lead { color: #c7d1db; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-head p { max-width: 55ch; margin: 0; color: var(--muted); }
.route-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 7vw, 7rem); }
.route-line { position: relative; display: grid; gap: 1rem; }
.route-line::before { content: ""; position: absolute; left: 9px; top: 1rem; bottom: 1rem; width: 2px; background: var(--river); }
.route-stop { position: relative; padding: 0 0 1.5rem 2.6rem; }
.route-stop::before { content: ""; position: absolute; z-index: 1; left: 2px; top: .45rem; width: 14px; height: 14px; border: 3px solid var(--paper); border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 1px var(--brick); }
.route-stop p { color: var(--muted); }
.service-grid, .audience-grid, .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { display: flex; min-height: 290px; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--brick); transform: translateY(-4px); box-shadow: var(--shadow); }
.card .label { margin-bottom: auto; color: var(--brick); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card p { color: var(--muted); }
.card .arrow { margin-top: 1rem; color: var(--brick); font-weight: 800; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.feature img { width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 18px 18px 0 var(--river); }
.feature-copy > * + * { margin-top: 1.2rem; }
.gallery { display: grid; grid-template-columns: 1.35fr .65fr 1fr; grid-auto-rows: 220px; gap: .7rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: span 2; }
.gallery img:last-child { grid-column: span 2; }

.page-hero { padding: clamp(4rem, 9vw, 8rem) 0 4rem; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, var(--paper) 65%, #dbe7e8); }
.page-hero h1 { max-width: 980px; font-size: clamp(2.8rem, 7vw, 5.7rem); }
.page-hero .lead { margin-top: 1.3rem; }
.breadcrumbs { margin-bottom: 2rem; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--brick); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 7vw, 6rem); }
.prose h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.prose h3 { margin: 2rem 0 .7rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose > img { width: 100%; max-height: 560px; margin: 2rem 0; object-fit: cover; }
.sidebar { align-self: start; position: sticky; top: 6rem; padding: 1.5rem; border-top: 4px solid var(--brick); background: var(--white); box-shadow: var(--shadow); }
.sidebar h2 { font-size: 1.7rem; }
.sidebar .button { width: 100%; margin-top: 1rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 2rem 0; background: var(--line); border: 1px solid var(--line); }
.fact { padding: 1.2rem; background: var(--white); }
.fact strong { display: block; font-family: var(--display); font-size: 1.5rem; }
.price-table { width: 100%; margin: 2rem 0; border-collapse: collapse; background: var(--white); }
.price-table th, .price-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { color: var(--muted); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.notice { margin: 2rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: #fff8e8; }
.article-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card div { padding: 1.3rem; }
.article-card p { color: var(--muted); }
.certificate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.certificate-grid a { overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 24px rgba(23, 37, 55, .08); }
.certificate-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform .25s ease; }
.certificate-grid a:hover img { transform: scale(1.025); }

.contact { position: relative; overflow: hidden; }
.contact::after { content: "WARSZAWA"; position: absolute; right: -2rem; bottom: -3rem; color: rgba(255,255,255,.035); font-family: var(--display); font-size: clamp(5rem, 18vw, 15rem); line-height: 1; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); }
.contact-links { margin-top: 2rem; }
.contact-links a { display: block; margin-bottom: .6rem; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 2rem); }
.contact-form { padding: clamp(1.3rem, 4vw, 2.5rem); background: var(--white); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .86rem; font-weight: 750; }
.field input, .field textarea { width: 100%; padding: .8rem; border: 1px solid #9da5ab; border-radius: 0; background: white; color: var(--ink); }
.field textarea { min-height: 145px; resize: vertical; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 1.5rem; margin: .8rem 0 0; font-weight: 700; }
.form-status.is-error { color: #8d2420; }
.privacy { color: var(--muted); font-size: .76rem; }

.site-footer { padding: 3rem 0 1.5rem; background: #0f1b29; color: #dce3e9; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer h2, .site-footer h3 { color: white; font-size: 1.25rem; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer a { color: #dce3e9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #314052; color: #9fadb9; font-size: .78rem; }

@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; align-items: stretch; flex-direction: column; gap: 0; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem; }
  .hero { min-height: auto; padding-top: 55vh; }
  .hero::before { inset: 0 0 auto; height: 62vh; background: var(--hero-image) 62% center/cover; }
  .hero::after { left: 10%; top: 46%; height: 25%; transform: rotate(78deg); }
  .hero-grid { display: block; }
  .hero-copy { margin-inline: -.1rem; padding: 2.5rem 0 4rem; background: linear-gradient(0deg, var(--paper) 85%, transparent); }
  .hero-note { display: none; }
  .trust-grid, .service-grid, .audience-grid, .blog-grid { grid-template-columns: 1fr; }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .route-layout, .feature, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery img:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container, .narrow { width: min(calc(100% - 1.2rem), var(--max)); }
  .brand span { font-size: .88rem; }
  .brand small { display: none; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .section-head { display: block; }
  .section-head p { margin-top: 1rem; }
  .form-row, .facts, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery img:first-child { grid-row: auto; }
  .certificate-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
}

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