/* Otulina — jasna, letnia strona: biel, pas łąki i pas nieba na przemian, żywa zieleń liści jako jedyny akcent.
   Celowo tylko jasny wygląd (ma się odróżniać od ciemnej strony karolinakonecka.pl). Atrakcje jako drogowskaz z kilometrami. */
:root {
  --paper: #fbfcf8;      /* tło: biel z odrobiną zieleni */
  --meadow: #eaf1df;     /* pas łąki */
  --sky: #e4eef2;        /* pas nieba */
  --ink: #1d3024;        /* tekst: ciemna zieleń igliwia */
  --ink-soft: #4f6155;   /* tekst pomocniczy */
  --leaf: #3d7a2c;       /* akcent: liść */
  --leaf-deep: #2c5d1f;  /* akcent: najechanie, liczby */
  --line: #cfd9c8;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Literata", "Georgia", "Times New Roman", serif;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 3rem);
  --step-4: clamp(2.6rem, 7vw, 5rem);
  --wrap: 70rem;
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 65ch; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, 4vw); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf);
}
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sky { background: var(--sky); color: var(--ink); }
.section--sky .eyebrow { color: var(--leaf-deep); }
.section--band { background: var(--meadow); }
.section h2 { font-size: var(--step-3); }
.section-head { display: grid; gap: .5rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.lead { font-size: var(--step-1); line-height: 1.55; }

/* Nagłówek */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); font-size: .95rem; }
.nav a { text-decoration: none; padding-block: .3rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--leaf); }
.nav-toggle { display: none; }
.nav .nav-lang { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; font-weight: 600; font-size: .85rem; color: var(--leaf-deep); }
.nav .nav-lang:hover { border-color: var(--leaf); background: var(--meadow); }
.header-phone { font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--leaf); }

@media (max-width: 860px) {
  .header-phone { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line);
    color: var(--ink); font: inherit; font-size: .9rem; padding: .4rem .8rem; border-radius: var(--radius); cursor: pointer;
  }
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem max(16px, 4vw) 1rem;
  }
  .nav a { padding-block: .7rem; border-bottom: 1px solid var(--line); }
  .nav .nav-lang { border: 0; border-radius: 0; padding: .7rem 0; font-size: .95rem; }
  .nav:not(.is-open) { display: none; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 46rem); display: grid; align-items: end; color: #f4f2ea; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 21, 17, .15) 30%, rgba(15, 21, 17, .82) 100%);
}
.hero .wrap { padding-block: clamp(3rem, 8vw, 5.5rem); display: grid; gap: 1.2rem; }
.hero .eyebrow { color: #d6efc4; }
.hero h1 { font-size: var(--step-4); max-width: 16ch; }
.hero p { font-size: var(--step-1); max-width: 40ch; color: #e3e5da; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.hero-location {
  display: inline-flex; align-items: flex-start; gap: .5rem; justify-self: start; margin-top: .4rem;
  font-size: .98rem; color: #e3e5da; text-decoration: none; border-bottom: 1px solid transparent;
}
.hero-location svg { flex: none; margin-top: .2rem; color: #d6efc4; }
.hero-location b { color: #fff; font-weight: 600; }
.hero-location:hover span { text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: var(--radius); font: 600 1rem var(--font-body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s;
}
.btn--oak { background: var(--leaf); color: #fff; }
.btn--oak:hover { background: var(--leaf-deep); }
.btn--ghost { border-color: rgba(244, 242, 234, .6); color: #f4f2ea; }
.btn--ghost:hover { background: rgba(244, 242, 234, .12); }

/* Fakty pod hero */
.facts { background: var(--meadow); color: var(--ink); border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none; margin: 0; padding-block: 1.6rem; display: grid; gap: 1.2rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.facts li { display: grid; gap: .1rem; }
.facts strong { font-family: var(--font-display); font-size: var(--step-2); color: var(--leaf-deep); font-variant-numeric: tabular-nums; line-height: 1.1; }
.facts span { font-size: .92rem; color: color-mix(in srgb, var(--ink) 78%, transparent); }

/* O nas */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.1fr .9fr; align-items: center; }
.about > * { min-width: 0; }
.about-text { display: grid; gap: 1.1rem; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.about-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.about-photos img:first-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Oferta */
.offer { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.offer article { display: grid; gap: .8rem; align-content: start; }
.offer img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.offer h3 { font-size: var(--step-1); }
.offer p { color: var(--ink-soft); font-size: 1rem; }

/* Sale i liczby */
.rooms { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.rooms div { background: var(--paper); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); padding: 1.6rem 1.4rem; display: grid; gap: .3rem; align-content: start; }
.rooms strong { font-family: var(--font-display); font-size: var(--step-3); color: var(--leaf-deep); line-height: 1; font-variant-numeric: tabular-nums; }
.rooms .unit { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.rooms h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-top: .6rem; }
.rooms p { font-size: .95rem; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.note { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.note p { flex: 1 1 22rem; font-size: var(--step-1); line-height: 1.4; color: var(--ink); }
.note .btn { flex: none; white-space: nowrap; }

/* Galeria */
#galeria .wrap, #gallery-section .wrap { container-type: inline-size; }
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc((100cqw - 1.8rem) / 4); grid-auto-flow: dense; }
.gallery button { padding: 0; border: 0; background: var(--meadow); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; min-width: 0; min-height: 0; }
.gallery button.wide { grid-column: span 2; }
.gallery button.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100cqw - .6rem) / 2); } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 14, 11, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 3.5rem 16px; gap: .8rem; grid-template-rows: 1fr auto; }
.lightbox img { max-height: 100%; max-width: min(100%, 80rem); object-fit: contain; min-height: 0; }
.lightbox figcaption { color: #e3e5da; font-size: .95rem; }
.lightbox .lb-btn {
  position: absolute; background: rgba(0, 0, 0, .4); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  width: 2.8rem; height: 2.8rem; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Zaufali nam */
.marquee {
  display: flex; overflow: hidden; gap: 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients {
  list-style: none; margin: 0; padding: 0 1.5rem 0 0; display: flex; flex: none; gap: 1.5rem; align-items: center;
  animation: marquee 72s linear infinite;
}
.clients li {
  flex: none; display: grid; place-items: center; min-height: 5.5rem; padding: .8rem 1.8rem; white-space: nowrap;
  background: var(--paper); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink-soft);
}
.clients li img { max-height: 3.2rem; max-width: 9rem; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.clients li:hover img { filter: none; opacity: 1; }
.marquee:hover .clients { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.clients-more { margin: 1.8rem auto 0; max-width: none; text-align: center; font-size: var(--step-1); line-height: 1.4; color: var(--ink); text-wrap: balance; }
.clients-more span { display: block; }
.clients-more b { font-weight: 600; color: var(--leaf-deep); }

/* Okolica — drogowskaz */
.around { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: start; }
.around > * { min-width: 0; }
.signpost { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.signpost li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: var(--meadow); padding: .85rem 1.1rem; border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  padding-right: 1.8rem;
}
.signpost li:nth-child(even) { margin-left: 1.2rem; }
.signpost b { font-weight: 600; }
.signpost span { font-variant-numeric: tabular-nums; color: var(--leaf); font-weight: 600; white-space: nowrap; }
.around figure { margin: 0; }
.around figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; }
.around figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; }
@media (max-width: 860px) { .around { grid-template-columns: 1fr; } }

.signpost a { color: var(--leaf-deep); text-underline-offset: 3px; }

/* Dodatkowe atrakcje */
.extras { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem 3rem; grid-template-columns: 1fr 1fr; font-size: var(--step-1); line-height: 1.4; }
.extras li { position: relative; padding-left: 1.8rem; }
.extras li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--leaf); font-weight: 700; }
.extras a { color: var(--leaf-deep); text-underline-offset: 3px; }
@media (max-width: 700px) { .extras { grid-template-columns: 1fr; } }
.around .extras { grid-template-columns: 1fr; gap: .7rem; }

/* Kontakt */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: .9fr 1.1fr; }
.contact > * { min-width: 0; }
.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.contact-info dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-info dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf-deep); font-weight: 600; }
.contact-info dd { margin: .2rem 0 0; font-size: var(--step-1); }
.contact-info .phone { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .35rem; font-size: .9rem; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: var(--radius); padding: .75rem .85rem; width: 100%;
}
.form select option { color: #1f2a22; }
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--leaf-deep); outline-offset: 0; }
.form .hp { position: absolute; left: -9999px; }
.checks { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: .45rem 1rem; grid-template-columns: 1fr 1fr; }
.checks legend { padding: 0; margin-bottom: .45rem; font-size: .9rem; }
.checks legend span { color: var(--ink-soft); }
.form .checks label { display: flex; align-items: center; gap: .55rem; font-size: 1rem; cursor: pointer; }
.form .checks input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; padding: 0; accent-color: var(--leaf); }
.form-note { font-size: .85rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.form-status { font-size: 1rem; padding: .8rem 1rem; border-radius: var(--radius); background: var(--paper); border-left: 4px solid var(--leaf); color: var(--leaf-deep); font-weight: 600; }
.form-status.is-error { border-left-color: #b3402a; color: #8f2f1c; }
.form-note a { color: inherit; text-underline-offset: 3px; }
.g-recaptcha { min-height: 78px; }
/* Okienko z potwierdzeniem wysłania */
.notice {
  border: 0; border-radius: calc(var(--radius) * 1.6); padding: clamp(1.6rem, 5vw, 2.4rem); max-width: min(26rem, calc(100vw - 32px));
  background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 18px 60px rgba(15, 21, 17, .35);
}
.notice::backdrop { background: rgba(15, 21, 17, .55); }
.notice[open] { display: grid; gap: .9rem; justify-items: center; }
.notice h2 { font-size: var(--step-2); }
.notice p { font-size: var(--step-1); line-height: 1.45; }
.notice .notice-icon {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf); color: #fff; font: 700 1.8rem/1 var(--font-display);
}
.notice.is-error .notice-icon { background: #b3402a; }
.notice .btn { min-width: 8rem; margin-top: .3rem; }
.form .date-field input { max-width: 20rem; cursor: pointer; }
.label-hint { color: var(--ink-soft); }
/* Kalendarz flatpickr w kolorach strony */
.flatpickr-calendar { font-family: var(--font-body); box-shadow: 0 6px 24px rgba(29, 48, 36, .18); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.flatpickr-day.inRange { background: var(--meadow); border-color: var(--meadow); box-shadow: -5px 0 0 var(--meadow), 5px 0 0 var(--meadow); }
.flatpickr-day.today { border-color: var(--leaf); }
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) { box-shadow: -10px 0 0 var(--leaf); }
.contact-card { align-self: center; display: grid; gap: 1rem; justify-items: start; background: var(--paper); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 1px 0 var(--line); }
.contact-card h3 { font-size: var(--step-2); }
.contact-card p { font-size: var(--step-1); line-height: 1.45; }
.contact-mail { font-size: 1.15rem; }
.contact-or { color: var(--ink-soft); }
.contact-or a { color: var(--leaf-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form, .checks { grid-template-columns: 1fr; } }

/* Mapa */
.map { position: relative; margin-top: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--meadow); }
.map iframe { display: block; width: 100%; height: clamp(18rem, 40vw, 26rem); border: 0; }
.map-link {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--leaf); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .92rem; padding: .6rem 1rem; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.map-link:hover { background: var(--leaf-deep); }
.map-tip {
  position: absolute; left: 1rem; top: 1rem; margin: 0; max-width: calc(100% - 2rem);
  background: var(--paper); color: var(--ink); padding: .55rem .9rem; border-radius: var(--radius);
  font-size: .95rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); border-left: 3px solid var(--leaf);
}
.map-tip b { color: var(--leaf-deep); }
.directions { display: block; margin-top: .3rem; font-size: 1rem; color: var(--ink-soft); }

/* Facebook */
.social { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.social-icon {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--leaf); transition: background .2s, color .2s, border-color .2s;
}
.social:hover .social-icon { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.social:hover { text-decoration: underline; text-underline-offset: 3px; }
.social--small { gap: .45rem; }
.social--small .social-icon { width: 1.8rem; height: 1.8rem; }
.social--small svg { width: 15px; height: 15px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; }

/* Stopka */
.site-footer { padding-block: 2rem; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem 2rem; }
.footer-address { font-style: normal; line-height: 1.6; }
.footer-address strong { color: var(--ink); font-weight: 600; }
.footer-meta { display: grid; gap: .3rem; justify-items: end; text-align: right; }
@media (max-width: 600px) { .footer-meta { justify-items: start; text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .clients { animation: none; flex-wrap: wrap; flex: 1; padding: 0; }
  .clients[aria-hidden="true"] { display: none; }
  .gallery img { transition: none; }
}

/* Polityka prywatności */
.header-back { font-weight: 600; text-decoration: none; color: var(--leaf); }
.header-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal .wrap { max-width: 48rem; display: grid; gap: 1rem; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-1); margin-top: 1.2rem; }
.legal a { color: var(--leaf-deep); text-underline-offset: 3px; }
.legal-date { color: var(--ink-soft); font-size: .95rem; }
.legal-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
