@font-face {
  font-family: "Playfair Display";
  src: url(fonts/playfair-display-700-pl.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fbf8f3;
  --paper-2: #f3ebdf;
  --line: #e4ddd2;
  --ink: #1e2a3a;
  --ink-2: #4a5563;
  --accent: #8a2b35;
  --accent-dark: #6f222a;
  --on-ink: #fbf8f3;
  --on-ink-2: #cdd2d8;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgb(30 42 58 / .06), 0 18px 36px -18px rgb(30 42 58 / .28);
}

* { box-sizing: border-box; }

html { scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink-2);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

::selection { background: var(--accent); color: #fff; }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 1.35rem + 3.7vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 1.6rem + 1.7vw, 3rem); }
h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: .85rem;
  background: var(--accent);
}
h3 { margin-bottom: .75rem; font-size: 1.35rem; }

p { margin: 0 0 .5rem; }
strong { color: var(--ink); }
ul { margin: 0; padding-left: 1.2rem; }
ul ul { margin-top: .2rem; }
li + li { margin-top: .2rem; }
li::marker { color: var(--accent); }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3;
  padding: .75rem 1rem;
  background: var(--paper);
}
.skip:focus { top: .5rem; }

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  min-height: 4rem;
}

.brand { display: block; flex: none; margin-right: auto; }
.brand img { display: block; width: auto; height: 2.5rem; }

nav { display: flex; flex-wrap: wrap; gap: .25rem; order: 3; flex-basis: 100%; }

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .45rem;
  color: var(--ink);
  text-decoration: none;
}
nav a:hover { color: var(--accent); text-decoration: underline; }

.lang { display: flex; order: 2; }
.lang a, .lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 2.75rem;
  padding-inline: .2rem;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.lang a { color: var(--accent); }
.lang [aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }

.top-tel { display: none; }

.hero {
  overflow: hidden;
  padding-top: 2.5rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 90% at 95% 0, var(--paper-2), transparent 70%);
}

.hero-row { display: grid; gap: 2.5rem; }

.name {
  margin-bottom: .8rem;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: 1.75rem;
}

.tel {
  display: inline-flex;
  flex: 1 1 100%;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.5rem;
  padding: .5rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 14px 26px -14px rgb(138 43 53 / .85);
}
.tel:hover { background: var(--accent-dark); color: #fff; }
.tel svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }

.mail {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.sheets {
  position: relative;
  justify-self: center;
  width: min(15rem, 72%);
  height: 12.5rem;
}

.sheet {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 5 / 7;
  background: #fff;
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.sheet-back { rotate: -6deg; background: #f6f0e6; }

.sheet-front {
  display: flex;
  flex-direction: column;
  padding: 13% 12%;
  rotate: 2.5deg;
  outline: 1px solid var(--line);
  outline-offset: -.6rem;
}
.sheet-front img { display: block; width: 100%; height: auto; }

.lines {
  flex: 1;
  margin-top: 12%;
  background: linear-gradient(transparent calc(100% - 1.5px), var(--line) 0) 0 0 / 100% 1.3rem;
}

.sign {
  width: 62%;
  margin-top: 6%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}

.pen {
  position: absolute;
  right: -30%;
  bottom: 17%;
  width: 88%;
  rotate: 148deg;
  filter: drop-shadow(0 10px 8px rgb(30 42 58 / .28));
}

.sec { padding-block: 3.5rem; }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 2.25rem; }

.card {
  padding: 1.75rem 1.5rem;
  background: #fff;
  border-top: 3px solid var(--accent);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.ico {
  display: block;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  padding: .6rem;
  background: var(--paper-2);
  border-radius: 50%;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead {
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

.band { background: var(--ink); color: var(--on-ink-2); }
.band h2, .band h3 { color: var(--on-ink); }
.band h2::after { background: #c9a86a; }

.prices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 2.25rem; }

.price {
  padding: 1.75rem 1.5rem;
  background: var(--paper);
  border-radius: 3px;
  color: var(--ink-2);
}
.band .price h3 { margin-bottom: .25rem; color: var(--ink); }
.price p { margin-bottom: 1rem; font-size: .95rem; }

.rows { padding: 0; list-style: none; }

.rows li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0;
  padding-block: .3rem;
}

.rows i {
  flex: 1;
  min-width: 1rem;
  overflow: hidden;
  height: .9em;
  border-bottom: 2px dotted var(--line);
  color: transparent;
}

.rows strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-variant-numeric: lining-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.terms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.25rem; }
.terms p { margin: 0; max-width: 65ch; }

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: .65rem .75rem .65rem 0;
  border-bottom: 1px solid rgb(255 255 255 / .16);
  vertical-align: top;
  text-align: left;
}

th { width: 58%; font-weight: 400; }
td { color: var(--on-ink); font-weight: 600; }

.contact {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  font-style: normal;
}
.contact p { margin: 0; color: var(--ink); }
.contact a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
}

.contact .big {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2.6vw, 3.25rem);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  line-height: 1.2;
  text-decoration: none;
}
.contact .big:hover { color: var(--accent); }

/* Na desktopie samo loading="lazy" ładuje mapę już przy wejściu; content-visibility odkłada ją do przewinięcia. */
.map {
  height: 20rem;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: auto 20rem;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.end {
  padding-block: 1.75rem;
  border-top: 3px double var(--line);
  font-size: .95rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .card, .tel { transition: translate .2s ease, background-color .2s ease; }
  .card:hover, .tel:hover { translate: 0 -2px; }
}

@media (max-width: 24rem) {
  .wrap { padding-inline: 1rem; }
  .top-row { gap: .5rem; }
  .brand img { height: 2rem; }
  nav { gap: 0; }
  nav a { padding-inline: .3rem; font-size: 1rem; }
}

@media (max-width: 19.9rem) {
  .rows li { flex-wrap: wrap; }
}

@media (min-width: 35rem) {
  nav { order: 2; flex-basis: auto; }
  .lang { order: 3; padding-left: .5rem; border-left: 1px solid var(--line); }
  .top-tel { order: 4; }
}

@media (min-width: 40rem) {
  .tel { flex: none; }
}

@media (min-width: 48rem) {
  .brand img { height: 3.25rem; }
  nav { gap: 1rem; }
  .top-row { gap: 1.5rem; min-height: 4.75rem; }
  .sec { padding-block: 5rem; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .map { height: 26rem; contain-intrinsic-size: auto 26rem; }
}

@media (min-width: 60rem) {
  .hero { padding-block: 5rem 5.5rem; }
  .hero-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
  }
  .sheets { width: min(23rem, 100%); height: auto; aspect-ratio: 5 / 7; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .terms { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4rem; }
  .top-tel {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 1rem;
    border: 1px solid var(--accent);
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
  }
  .top-tel:hover { background: var(--accent); color: #fff; }
}
