/* Archivo (SIL Open Font License), trzymany lokalnie, bez łączenia z Google */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  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;
}

/* Willa Mitar
   Kamień Boki, zielone okiennice, woda zatoki, mimoza z lutowego święta.
   Jedna rodzina pisma: Archivo — wąska i gruba w nagłówkach, zwykła w tekście. */
:root {
  --stone: #e3e1d9;      /* wapień */
  --stone-2: #cfcabd;    /* obramienie okna */
  --light: #f3f2ed;
  --shutter: #2e5b45;    /* okiennice */
  --shutter-dk: #234836;
  --bay: #12333d;        /* woda zatoki — kolor tekstu */
  --bay-soft: #4c6066;
  --mimosa: #f2cc2e;

  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--bay);
  font: 400 18px/1.55 var(--font);
  font-stretch: 100%;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 1em; }

/* nagłówki: wąskie, ciężkie, jak szyldy i rozkłady promów */
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 68%;
  line-height: .98;
  letter-spacing: -.005em;
}
h2 { font-size: clamp(36px, 4.8vw, 62px); max-width: 16ch; }
h3 { font-size: 26px; line-height: 1.05; }

:focus-visible { outline: 3px solid var(--mimosa); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; }

/* ── przyciski ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px; border-radius: 6px;
  font: 700 18px/1 var(--font); text-decoration: none;
}
.btn--green { background: var(--shutter); color: var(--light); }
.btn--green:hover { background: var(--shutter-dk); }
.btn--plain { color: var(--bay); box-shadow: inset 0 0 0 2px var(--bay); }
.btn--plain:hover { background: var(--bay); color: var(--light); }

/* ── pasek górny ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 12px var(--gutter);
  background: var(--stone);
  box-shadow: 0 1px 0 var(--stone-2);
}
.wordmark { text-decoration: none; display: grid; line-height: 1.05; margin-right: auto; }
.wordmark__name { font-weight: 800; font-stretch: 68%; font-size: 30px; }
.wordmark__place { font-size: 14px; color: var(--bay-soft); }
.nav { display: flex; gap: 26px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.call {
  padding: 11px 20px; border-radius: 6px; background: var(--mimosa); color: var(--bay);
  font-weight: 700; text-decoration: none;
}
.call:hover { background: #e6bd17; }

/* ── HERO: okno z okiennicami ── */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero { --win: clamp(240px, 25vw, 360px); }

.window {
  grid-column: 2; grid-row: 1;
  position: relative;
  width: var(--win);
  margin: 0 calc(var(--win) / 2);   /* miejsce na otwarte okiennice */
  perspective: 1400px;
}
.window__view {
  padding: 12px;
  background: var(--stone-2);
  border-radius: 3px;
  box-shadow: inset 0 -6px 0 #bdb7a8;          /* parapet */
}
.window__crop { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.window__crop img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 32% 50%;
}

.shutter {
  position: absolute; top: 0; bottom: 0; width: 50%;
  border: 9px solid var(--shutter-dk);
  border-radius: 2px;
  background:
    linear-gradient(var(--shutter-dk), var(--shutter-dk)) center / 100% 9px no-repeat,   /* środkowa listwa */
    repeating-linear-gradient(180deg, #3a6c53 0 3px, var(--shutter) 3px 12px, #1f3f30 12px 14px);
  box-shadow: 0 10px 24px -14px rgba(18, 51, 61, .6);
  animation: open 1.6s cubic-bezier(.55, .05, .25, 1) .35s both;
}
.shutter--left  { left: 0;  transform-origin: left center;  --to: rotateY(-174deg); }
.shutter--right { right: 0; transform-origin: right center; --to: rotateY(174deg); }
@keyframes open {
  from { transform: rotateY(0); }
  to   { transform: var(--to); }
}

.hero__text { grid-column: 1; grid-row: 1; }
.hero h1 {
  font-size: clamp(52px, 7.4vw, 112px);
  font-stretch: 62%;
  line-height: .9;
  max-width: 9ch;
  margin-bottom: 28px;
}
.lede { font-size: clamp(19px, 1.6vw, 21px); max-width: 32ch; color: var(--bay-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── odległości: odcinek Jadranki ── */
.road {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end;
}
.road__title { font-size: 26px; max-width: none; font-stretch: 75%; }
.road__stops {
  list-style: none; margin: 0; padding: 18px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: repeating-linear-gradient(90deg, var(--bay) 0 22px, transparent 22px 36px) top / 100% 3px no-repeat;
  color: var(--bay-soft);
}
.road__stops b { display: block; font-size: 36px; font-weight: 800; font-stretch: 68%; color: var(--bay); line-height: 1; margin-bottom: 4px; }

/* ── sekcje ── */
.block { padding: clamp(64px, 9vw, 112px) var(--gutter); }
.block--light { background: var(--light); }
.block--green { background: var(--shutter); color: var(--light); }
.block--bay { background: var(--bay); color: var(--light); }

.head { margin-bottom: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; }
.head p { margin: 0; color: var(--bay-soft); max-width: 46ch; }
.head--onDark p { color: #cfe0d6; }

/* ── apartamenty ── */
.apts { display: grid; gap: clamp(64px, 8vw, 104px); }
.apt { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; scroll-margin-top: 96px; }
.apt__info { position: sticky; top: 104px; }     /* nazwa i cena zostają obok zdjęć */
.apt__name { font-size: clamp(34px, 3.4vw, 44px); }
.apt__guests { margin: 10px 0 24px; font-size: 20px; }
.apt__prices { margin: 0; display: grid; gap: 16px; }
.apt__prices dt { font-size: 16px; color: var(--bay-soft); }
.apt__prices dd { margin: 0; line-height: 1.25; }
.apt__prices .price__extra { font-size: 16px; }
.apt__note { margin: 20px 0 0; font-size: 15px; color: var(--bay-soft); }

.apt__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.apt__photo { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); border-radius: 4px; overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.apt__photo--big { grid-column: span 2; grid-row: span 2; position: relative; }
.apt__photo img { width: 100%; height: 100%; object-fit: cover; }
.apt__photo--big img { position: absolute; inset: 0; }

/* ── ceny ── */
.prices { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.pricecard { background: var(--light); color: var(--bay); border-radius: 10px; padding: clamp(18px, 3vw, 32px); }
.season { display: inline-flex; padding: 4px; gap: 4px; background: var(--stone); border-radius: 8px; margin-bottom: 18px; }
.season button { font: 600 16px var(--font); padding: 10px 16px; border: 0; border-radius: 6px; background: none; color: var(--bay); cursor: pointer; }
.season button[aria-checked="true"] { background: var(--bay); color: var(--light); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { text-align: left; padding: 14px 8px 14px 0; vertical-align: baseline; }
.ptable tbody tr + tr > * { border-top: 1px solid var(--stone-2); }
.ptable thead th { font-size: 15px; font-weight: 500; color: var(--bay-soft); padding-top: 0; }
.ptable tbody th { font-size: 22px; font-weight: 800; font-stretch: 68%; }
.ptable td { color: var(--bay-soft); font-size: 16px; }
.ptable .num { text-align: right; padding-right: 0; }
.price { font-size: 30px; font-weight: 800; font-stretch: 68%; color: var(--bay); white-space: nowrap; }
.price__extra { display: block; font-size: 14px; }

.prices__info h3 { margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .38em; width: 13px; height: 7px;
  border-left: 3px solid var(--mimosa); border-bottom: 3px solid var(--mimosa); transform: rotate(-45deg);
}
.facts { margin: 0; display: grid; gap: 14px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: #cfe0d6; font-size: 16px; }

.terms { margin-top: 56px; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.terms p { color: #cfe0d6; max-width: 40ch; margin: 12px 0 0; }
.terms__list { background: var(--shutter-dk); border-radius: 8px; }
.terms__list summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.terms__list summary::-webkit-details-marker { display: none; }
.terms__list summary::after { content: "+"; font-size: 24px; line-height: .8; }
.terms__list[open] summary::after { content: "–"; }
.terms__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 20px 20px; }
.terms__cols h4 { margin: 0 0 6px; font-size: 16px; color: var(--mimosa); }
.terms__cols ul { list-style: none; margin: 0; padding: 0; columns: 2; font-variant-numeric: tabular-nums; font-size: 16px; }
.terms__cols li { padding: 2px 0; }

.regulars { margin: 48px 0 0; font-size: 19px; max-width: 64ch; }
.regulars a { font-weight: 700; color: var(--mimosa); white-space: nowrap; }

/* ── gospodarze ── */
.hosts { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hosts__photo { border-radius: 4px; }
.hosts__text h2 { margin-bottom: 24px; }
.hosts__text p { color: var(--bay-soft); max-width: 44ch; }

/* ── restauracje ── */
.food { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.place { margin: 0; }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }
.place h3 { font-size: 34px; margin-bottom: 8px; }
.place p { color: var(--bay-soft); }
.place__price { font-weight: 700; color: var(--bay) !important; }
.place--note figcaption { color: var(--bay-soft); }

/* ── klikane zdjęcia + galeria dom i zatoka ── */
.pic { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; }
.pic:focus-visible { outline: 3px solid var(--mimosa); outline-offset: 3px; }
.place .pic img { margin-bottom: 16px; }
.views {
  display: grid; gap: 20px;
  grid-template-columns: 1.125fr 1fr 1.125fr;
  grid-template-areas: "dom statek zachod" "dom lodz zachod";
}
.view { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.view .pic { flex: 1; min-height: 0; }
.view img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.view--tall .pic { position: relative; }
.view--tall img { position: absolute; inset: 0; aspect-ratio: auto; }
.view figcaption { font-size: 15px; color: var(--bay-soft); padding-top: 8px; }
.views .view:nth-child(1) { grid-area: dom; }
.views .view:nth-child(2) { grid-area: statek; }
.views .view:nth-child(3) { grid-area: lodz; }
.views .view:nth-child(4) { grid-area: zachod; }

/* ── okolica ── */
.trips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  grid-template-areas: "kotor kotor hn" "kotor kotor kol" "list list list";
}
.trip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin-bottom: 14px; }
.trip h3 { margin-bottom: 6px; }
.trip h3 small { font-size: 18px; font-weight: 500; font-stretch: 100%; color: var(--bay-soft); margin-left: 6px; }
.trip p { color: var(--bay-soft); font-size: 17px; margin: 0; }
.trip--kotor { grid-area: kotor; display: flex; flex-direction: column; }
.trip--kotor img { flex: 1; aspect-ratio: auto; min-height: 320px; }
.trip--kotor h3 { font-size: 40px; }
.trips .trip:nth-of-type(2) { grid-area: hn; }
.trips .trip:nth-of-type(3) { grid-area: kol; }
.trip-list {
  grid-area: list; list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 28px;
}
.trip-list li { color: var(--bay-soft); font-size: 16px; }
.trip-list b { display: block; color: var(--bay); font-size: 20px; font-weight: 800; font-stretch: 75%; }

/* ── święto mimozy ── */
.mimosa { background: var(--mimosa); padding: clamp(56px, 8vw, 96px) var(--gutter); }
.mimosa__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 56px; align-items: center; }
.mimosa h2 { font-size: clamp(56px, 9vw, 128px); font-stretch: 62%; line-height: .85; max-width: 6ch; }
.mimosa p { margin: 0; font-size: 20px; max-width: 46ch; }

/* ── dojazd ── */
.travel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ways { display: grid; gap: 28px; align-content: start; }
.way h3 { margin-bottom: 6px; }
.way p { margin: 0; color: var(--bay-soft); }
.way b { color: var(--bay); }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 4px; background: var(--stone-2); display: block; }
.map__link { display: inline-block; margin-top: 12px; font-weight: 700; }

/* ── kontakt ── */
.contact__title { font-size: clamp(36px, 5vw, 68px); max-width: 18ch; margin-bottom: 52px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.person { display: grid; gap: 4px; align-content: start; }
.person h3 { font-size: 30px; }
.person__where { margin: 0 0 10px; color: #a9bcc1; }
.person__tel { font-size: 28px; font-weight: 800; font-stretch: 75%; text-decoration: none; white-space: nowrap; }
.person__tel:hover { color: var(--mimosa); }
.person__mail { font-size: 16px; color: #cdd9dc; overflow-wrap: anywhere; margin-top: 6px; }

.footer {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px var(--gutter) 36px; background: var(--bay); color: #a9bcc1; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.footer p { margin: 0; }
.footer__credit { font-size: 14px; }
.footer__credit a { color: #cdd9dc; text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--mimosa); }

.dock { display: none; }

/* ── lightbox ── */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(10, 30, 36, .94); }
.lightbox[open] { display: grid; place-items: center; align-content: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; border-radius: 4px; }
.lightbox__cap { color: #cdd9dc; font-size: 15px; margin: 12px 0 0; }
.lightbox button { position: fixed; background: none; border: 0; color: #fff; cursor: pointer; font: 400 48px/1 var(--font); padding: 12px 18px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ── tablet ── */
@media (max-width: 1000px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; justify-items: center; }
  .hero { --win: min(calc((100vw - 2 * var(--gutter)) / 2), 340px); }
  .window { grid-column: 1; grid-row: 1; }
  .hero__text { grid-row: 2; justify-self: stretch; }
  .hero h1 { max-width: 12ch; }
  .road { grid-template-columns: 1fr; gap: 16px; }
  .head { grid-template-columns: 1fr; }
  .apt { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .apt__info { position: static; }
  .apt__guests { margin-bottom: 16px; }
  .apt__prices { grid-template-columns: repeat(2, max-content); gap: 16px 40px; }
  .apt__note { margin-top: 12px; }
  .prices, .terms, .hosts, .travel { grid-template-columns: 1fr; }
  .food { grid-template-columns: 1fr 1fr; }
  .trips { grid-template-columns: 1fr 1fr; grid-template-areas: "kotor kotor" "hn kol" "list list"; }
  .trip--kotor img { min-height: 0; aspect-ratio: 3 / 2; }
  .people { grid-template-columns: 1fr 1fr; }
  .mimosa__inner { grid-template-columns: 1fr; }
}

/* ── telefon ── */
@media (max-width: 640px) {
  .apt__prices { grid-template-columns: 1fr 1fr; gap: 16px; }
  .apt__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apt__photo--big { grid-row: auto; }
  .apt__photo--big ~ .apt__photo--big { grid-column: auto; }
  .apt__photo:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 4 / 3; }   /* bez pustego pola na końcu */
  .views { grid-template-columns: 1fr 1fr; grid-template-areas: "dom zachod" "statek statek" "lodz lodz"; gap: 16px; }
  .view--tall .pic { position: static; }
  .view--tall img { position: static; aspect-ratio: 3 / 4; }
  body { font-size: 17px; padding-bottom: 64px; }
  .topbar { gap: 12px; }
  .wordmark__name { font-size: 26px; }
  .call { display: none; }               /* na telefonie jest dolny pasek */
  .hero { --win: calc((100vw - 2 * var(--gutter)) / 2); padding-top: 28px; }
  .window__view { padding: 8px; }
  .shutter { border-width: 6px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .road__stops { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .food, .people { grid-template-columns: 1fr; }
  .trips { grid-template-columns: 1fr; grid-template-areas: "kotor" "hn" "kol" "list"; }
  .ptable thead th:nth-child(2), .ptable td:nth-child(2) { display: none; }
  .terms__cols { grid-template-columns: 1fr; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--light); box-shadow: 0 -1px 0 var(--stone-2);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a { text-align: center; padding: 16px 8px; font-weight: 700; text-decoration: none; }
  .dock__call { background: var(--mimosa); }
  .footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shutter { animation: none; transform: var(--to); }
}

/* ── artykuł gościa ── */
.story > * { max-width: 860px; }
.story__quote { margin: 0 0 32px; }
.story__quote blockquote { margin: 0; }
.story__quote p {
  font-weight: 800; font-stretch: 68%; line-height: 1.02;
  font-size: clamp(34px, 4.6vw, 58px); margin: 0 0 18px; text-wrap: balance;
}
.story__quote p::before { content: "„"; }
.story__quote p::after { content: "”"; }
.story__quote figcaption { font-size: 18px; color: var(--bay-soft); }
.story__full summary {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 6px;
  cursor: pointer; font-weight: 700; list-style: none; box-shadow: inset 0 0 0 2px var(--bay);
}
.story__full summary::-webkit-details-marker { display: none; }
.story__full summary:hover { background: var(--bay); color: var(--light); }
.story__full[open] summary { margin-bottom: 28px; }
.story__body { max-width: 64ch; font-size: 18px; line-height: 1.65; }
.map__address { margin: 12px 0 0; font-weight: 600; }
.block--story { padding-top: 0; }
