/* Ciche 79A Mountainhouse */

:root {
  --ground: #F3F0E8;   /* tynk */
  --paper: #FBFAF6;
  --ink: #1D231F;      /* opalane drewno */
  --ink-2: #4A524B;
  --moss: #5B6650;     /* łąka */
  --moss-light: #B7C1A8;
  --accent: #8B5E3C;   /* modrzew */
  --accent-hover: #74492B;
  --line: #D9D3C5;
  --chip: #CFC8B8;
  --muted-dark: #C9CCC3;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5.5vw, 80px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
picture { display: contents; } /* <picture> generowane przy buildzie nie zmienia układu */
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; background: var(--paper); color: var(--ink);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typografia ---------- */

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 22px;
}
.eyebrow--ink { color: var(--ink); }
.eyebrow--light { color: var(--moss-light); }

.h2 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; text-wrap: balance;
}
.h2--xl { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; }
.h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.2vw, 30px); line-height: 1.1; }

.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 28px; height: 28px; stroke: var(--moss); stroke-width: 1.6; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  font: 600 15px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:active { transform: translateY(1px); }
.btn--small { min-height: 48px; padding: 0 22px; font-size: 14px; letter-spacing: 0.12em; }
.btn--block { width: 100%; min-height: 60px; }

.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platforms--stack { grid-template-columns: 1fr; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 6px; white-space: nowrap;
}
.link-arrow:hover { color: var(--accent); }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--ground);
}
.site-header__inner {
  max-width: 1440px; margin: 0 auto; height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo img { width: 128px; height: auto; }
.site-header__actions { display: flex; align-items: center; gap: 4px; }

.nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); margin-left: auto; margin-right: clamp(24px, 3vw, 44px); }
.nav a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: currentColor; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 0; color: inherit; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */

.hero { position: relative; height: min(800px, calc(100svh - var(--header-h))); min-height: 640px; background: #2B3129; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__card {
  position: absolute; left: var(--gutter); bottom: clamp(40px, 5vw, 72px);
  width: min(640px, calc(100% - 2 * var(--gutter)));
  padding: 44px 52px 48px; background: rgba(251, 250, 246, 0.94);
}
.hero__card .eyebrow { margin-bottom: 20px; }
.hero__title { margin: 0 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4vw, 58px); line-height: 1.02; letter-spacing: -0.01em; }
.hero__lead { font-size: 18px; color: var(--ink-2); margin-bottom: 28px; }
.hero__book { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.hero__book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hero__book-label { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); }

.price-tag { display: flex; align-items: baseline; gap: 6px; line-height: 1; white-space: nowrap; }
.price-tag strong { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.price-tag span { font-size: 14px; color: var(--ink-2); }

/* Półprzezroczysta karta na zdjęciu — tylko gdy leży na zdjęciu (szerokie ekrany) */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
@media (min-width: 701px) {
  .hero__card {
    background: rgba(251, 250, 246, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }
  /* na przezroczystym tle drugorzędne kolory tracą kontrast — cały tekst karty w kolorze głównym */
  .hero__card .eyebrow, .hero__lead, .hero__book-label, .hero__card .price-tag span { color: var(--ink); }
  .hero__book { border-top-color: rgba(29, 35, 31, 0.25); }
}
}

/* ---------- Fakty ---------- */

.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; padding-block: 56px; }
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact .icon { margin-bottom: 4px; }
.fact__title { font-size: 21px; font-weight: 500; line-height: 1.25; }
.fact__text { font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Sekcje ---------- */

.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-bottom: 64px; }
.section-head > div { max-width: 720px; }
.section-head__lead { max-width: 420px; font-size: 18px; color: var(--ink-2); }
.section-head__lead--wide { max-width: 640px; font-size: 19px; line-height: 1.65; }
.section-head--center { align-items: flex-end; margin-bottom: 56px; }

/* O nas */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.about__head { grid-column: span 5; }
.about__photo { margin: 48px 0 0; aspect-ratio: 16 / 10; overflow: hidden; background: #E6E1D5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.about__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 22px; padding-top: 44px; font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.about__body .lead-strong { color: var(--ink); }
.quote { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--ink); }

/* Przestrzeń */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--moss); }

.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.feature + .feature, .feature + .duo { margin-top: clamp(56px, 7vw, 96px); }
.feature__media { grid-column: 1 / span 7; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #E6E1D5; }
.feature__media img, .duo__item img { width: 100%; height: 100%; object-fit: cover; }
.feature__text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
.feature__text > p:not(.kicker) { font-size: 17px; color: var(--ink-2); }
.feature--reverse .feature__media { grid-column: 6 / span 7; grid-row: 1; }
.feature--reverse .feature__text { grid-column: 1 / span 4; grid-row: 1; }

.duo { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; }
.duo__item { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.duo__item img { height: clamp(320px, 40vw, 560px); background: #E6E1D5; }
.duo__item:last-child img { object-position: 50% 25%; }
.duo__item figcaption { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--moss); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 64px; }
.chips li { padding: 10px 18px; border: 1px solid var(--chip); font-size: 15px; line-height: 1.3; }

/* Panorama */
.panorama { position: relative; height: clamp(380px, 43vw, 620px); background: #6FA6E6; overflow: hidden; }
.panorama__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.panorama__text { position: relative; padding-top: clamp(36px, 6vw, 88px); }
.panorama__text .h2 { max-width: 760px; }

/* Okolica */
.places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; }
.place { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ink); padding-top: 22px; }
.place__big { font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1; }
.place__name { font-size: 18px; font-weight: 500; line-height: 1.35; }
.place__tag { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); }

/* Rezerwacja */
.booking { background: var(--ink); color: var(--ground); }
.booking__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.booking__text { grid-column: span 6; }
.booking__text > p:last-child { max-width: 520px; margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--muted-dark); }
.booking__card { grid-column: 8 / span 5; padding: 48px; border: 1px solid var(--ink-2); display: flex; flex-direction: column; gap: 20px; color: var(--muted-dark); }
.booking__price { display: flex; align-items: baseline; gap: 14px; color: var(--ground); }
.booking__price strong { font-family: var(--serif); font-size: clamp(64px, 6.6vw, 96px); font-weight: 500; line-height: 0.9; }
.booking__price span { font-size: 17px; color: var(--muted-dark); }
.booking__small { font-size: 15px; }
.booking__small a { color: var(--ground); white-space: nowrap; }

/* Stopka */
.footer { background: var(--moss); color: #fff; padding: 96px 0 48px; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
.footer__brand { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; color: #E8ECE2; }
.footer__brand img { width: 200px; height: auto; }
.footer__col { grid-column: span 3; display: flex; flex-direction: column; gap: 12px; }
.footer__col:nth-child(2) { grid-column: 6 / span 3; }
.footer__col:nth-child(3) { grid-column: 10 / span 3; }
.footer__col .h3 { font-weight: 500; font-size: 32px; margin-bottom: 4px; }
.contact-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 20px; font-weight: 500; text-decoration: none; }
.contact-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-link .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.footer__bottom {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid #7C8671;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: #E8ECE2;
}
.footer__bottom a { color: #fff; font-weight: 500; }

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
  .facts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .about__grid, .booking__grid { grid-template-columns: 1fr; }
  .about__head, .about__body { grid-column: 1 / -1; }
  .about__body { padding-top: 32px; max-width: 720px; }
  .about__photo { margin-top: 36px; max-width: 720px; }
  .feature { grid-template-columns: 1fr; row-gap: 28px; }
  .feature__media, .feature__text,
  .feature--reverse .feature__media, .feature--reverse .feature__text { grid-column: 1; grid-row: auto; }
  .feature__text { max-width: 640px; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking__text, .booking__card { grid-column: 1 / -1; }
  .booking__card { margin-top: 48px; max-width: 560px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:nth-child(2) { grid-column: 1 / span 6; }
  .footer__col:nth-child(3) { grid-column: 7 / span 6; }
}

/* ---------- Menu mobilne ---------- */

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .site-header__logo img { width: 92px; }
  .btn--small { min-height: 44px; padding: 0 16px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 40px; background: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav a {
    font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: 0; text-transform: none;
    padding: 18px 0; border-bottom: 1px solid #353D37;
  }
  body.menu-open { overflow: hidden; }
}

/* ---------- Telefon ---------- */

@media (max-width: 700px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 12px; letter-spacing: 0.18em; margin-bottom: 18px; }

  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero__img { height: 300px; object-position: 62% 50%; }
  .hero__card { position: static; width: auto; padding: 32px var(--gutter) 40px; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__lead { font-size: 16px; }
  .hero__book-label { font-size: 12px; letter-spacing: 0.12em; }
  .platforms .btn { padding: 0 12px; gap: 10px; font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }
  .hide-mobile { display: none; }
  .price-tag strong { font-size: 26px; }
  .price-tag span { font-size: 14px; }

  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 40px; }
  .fact .icon { width: 24px; height: 24px; }
  .fact__title { font-size: 18px; }
  .fact__text { font-size: 14px; }
  .fact:last-child { grid-column: 1 / -1; }

  .about__body { font-size: 16px; gap: 20px; padding-top: 24px; }
  .quote { font-size: 22px; }

  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .section-head__lead, .section-head__lead--wide { font-size: 16px; }
  .feature__text > p:not(.kicker) { font-size: 16px; }
  .kicker, .duo__item figcaption { font-size: 12px; }
  .duo { grid-template-columns: 1fr; gap: 36px; }
  .duo__item img { height: auto; aspect-ratio: 4 / 3; }
  .duo__item:last-child img { aspect-ratio: 3 / 4; }
  .about__photo { margin-top: 28px; }
  .chips { gap: 8px; margin-top: 40px; }
  .chips li { padding: 8px 14px; font-size: 14px; }

  .panorama__img { object-position: 55% 100%; }

  .places { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--ink); }
  .place { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; row-gap: 4px; padding: 16px 0; align-items: baseline; }
  .place__big { grid-row: span 2; font-size: 28px; }
  .place__name { font-size: 16px; }
  .place__tag { font-size: 12px; }

  .booking__text > p:last-child { font-size: 16px; }
  .booking__card { margin-top: 32px; padding: 28px 24px; gap: 16px; }
  .booking__price span { font-size: 15px; }
  .btn--block { padding: 0 12px; gap: 10px; font-size: 13px; letter-spacing: 0.03em; white-space: nowrap; }

  .footer { padding: 56px 0 32px; }
  .footer__brand img { width: 150px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col:nth-child(2), .footer__col:nth-child(3) { grid-column: 1 / -1; }
  .footer__col .h3 { font-size: 28px; }
  .contact-link { font-size: 18px; }
  .footer__bottom { flex-direction: column; margin-top: 40px; }
}
