/* FREE BUD - spójny system bazowy, rewizja 2026-08-27 */
:root {
  --brand: #174338;
  --brand-dark: #0b3028;
  --brand-deep: #071f1a;
  --brand-soft: #cfded5;
  --accent: #d46b45;
  --accent-dark: #a54c2e;
  --accent-soft: #f0c9b9;
  --sage: #9fb7aa;
  --sage-soft: #dce7e0;
  --sand: #e7dfd1;
  --sand-soft: #f1ece2;
  --steel: #b9c9c8;
  --steel-soft: #dce5e5;
  --ink: #14241e;
  --ink-soft: #2b3c34;
  --muted: #607068;
  --page-bg: #dfe7e1;
  --card-bg: #f7f4ec;
  --surface: #ece7dc;
  --white: #ffffff;
  --line: rgba(20, 36, 30, 0.14);
  --line-strong: rgba(20, 36, 30, 0.23);
  --line-light: rgba(255, 255, 255, 0.16);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Segoe UI Variable Display", "Segoe UI", Aptos, Arial, sans-serif;
  --font-button: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-base: 15px;
  --font-size-small: 12px;
  --font-size-h1: 48px;
  --font-size-h2: 36px;
  --container: 1160px;
  --section-y: 58px;
  --radius: 16px;
  --radius-small: 10px;
  --header-height: 70px;
  --shadow-soft: 0 18px 50px rgba(10, 48, 40, 0.08);
  --shadow-card: 0 12px 30px rgba(10, 48, 40, 0.09);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page-bg);
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-is-open { overflow: hidden; }
[hidden], template { display: none !important; }
main, section, article, figure, nav, header, footer { display: block; }
main { position: relative; overflow: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
p, h1, h2, h3, h4, h5, h6, ul, ol, figure, blockquote { margin-top: 0; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

:where(h1, h2, h3, h4, h5, h6, p, li, a, strong, span, small, label, button) {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}
:where([class*="__grid"], [class*="-grid"], [class*="__layout"], [class*="-list"], .container, .site-header__inner, .site-footer__top, .site-footer__bottom) > * {
  min-width: 0;
}
[data-sos-key], [data-sos-item-key] { min-width: 0; }

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0;
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 740;
  letter-spacing: -0.028em;
  line-height: 1.1;
}
h1 { font-size: clamp(34px, 3.45vw, min(var(--font-size-h1), 50px)); }
h2 { font-size: clamp(27px, 2.7vw, min(var(--font-size-h2), 38px)); }
h3 { font-size: clamp(20px, 1.65vw, 25px); line-height: 1.17; }
p, li { font-size: var(--font-size-base); }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--accent-dark);
  font-family: var(--font-button);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}
.section-label::before {
  width: 24px;
  height: 2px;
  flex: 0 0 24px;
  background: currentColor;
  content: "";
}
.section-label--light { color: #efaa8f; }
.section-heading { margin-bottom: clamp(26px, 3.5vw, 42px); }
.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  align-items: end;
  gap: 38px;
}
.section-heading--split h2 { max-width: 15ch; }
.section-heading--split > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 17px;
  font-family: var(--font-button);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 48, 40, 0.15); }
.button--xl { min-height: 49px; padding-inline: 20px; }
.button--dark { background: var(--brand-dark); color: var(--white); }
.button--dark:hover { background: var(--brand); }
.button--light { background: var(--card-bg); color: var(--brand-dark); }
.button--light:hover { background: var(--accent-soft); }
.button--ghost-light { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.button--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }
.button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; box-shadow: none; }
.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}
.text-link:hover { color: var(--accent-dark); }

.site-header {
  position: sticky;
  z-index: 3000;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.97);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(247, 244, 236, 0.995);
  box-shadow: 0 8px 28px rgba(10, 48, 40, 0.09);
}
.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  text-decoration: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}
.brand__copy { display: grid; min-width: 0; gap: 1px; }
.brand__copy strong {
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1.05;
}
.brand__copy small {
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 680;
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
}
.desktop-nav { margin-left: auto; }
.desktop-nav__links { display: flex; align-items: center; gap: 1px; }
.desktop-nav__links a {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 640;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav__links a::after {
  position: absolute;
  right: 9px;
  bottom: 4px;
  left: 9px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}
.desktop-nav__links a:hover::after,
.desktop-nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.desktop-nav__links a[aria-current="page"] { color: var(--brand-dark); font-weight: 760; }
.header-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  padding: 9px 14px;
  background: var(--brand-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}
.header-action:hover { transform: translateY(-1px); background: var(--brand); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--card-bg);
  cursor: pointer;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--brand-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  z-index: 2900;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  visibility: hidden;
  width: 100%;
  transform: translateY(-8px);
  background: var(--brand-deep);
  color: var(--white);
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.mobile-menu.is-open {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu__inner { padding-block: 22px 38px; }
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a {
  display: flex;
  min-height: 54px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  font-weight: 680;
  text-decoration: none;
}
.mobile-menu__nav a[aria-current="page"] { color: #f2a88c; }
.mobile-menu__contact {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.06);
}
.mobile-menu__contact p { margin-bottom: 2px; color: rgba(255, 255, 255, 0.62); font-size: 13px; }
.mobile-menu__contact a { color: var(--white); font-size: 20px; font-weight: 760; text-decoration: none; }
.mobile-menu__contact .mobile-menu__email { font-size: 14px; font-weight: 600; }

.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, 0.78); }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.72fr) minmax(150px, 0.45fr);
  gap: 48px;
  padding-block: 50px 38px;
}
.brand--footer { color: var(--white); }
.brand--footer .brand__copy small { color: rgba(255, 255, 255, 0.52); }
.site-footer__brand > p {
  max-width: 440px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}
.site-footer__contact, .site-footer__nav { display: grid; align-content: start; gap: 7px; }
.site-footer__contact > span, .site-footer__nav > span {
  margin-bottom: 4px;
  color: #e9a78c;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-footer__contact a, .site-footer__nav a { text-decoration: none; }
.site-footer__phone { color: var(--white); font-size: 21px; font-weight: 740; }
.site-footer__contact small { color: rgba(255, 255, 255, 0.45); }
.site-footer__nav a { width: fit-content; color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: var(--white); }
.site-footer__bottom {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}
.site-footer__bottom p { margin: 0; font-size: 11px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.site-footer__legal a, .site-footer__legal button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}
.site-footer__legal a:hover, .site-footer__legal button:hover { color: var(--white); }

.privacy-banner {
  position: fixed;
  z-index: 5000;
  right: 18px;
  bottom: 18px;
  width: min(410px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
  background: var(--card-bg);
  box-shadow: 0 24px 70px rgba(10, 32, 25, 0.2);
}
.privacy-banner__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 23px;
  cursor: pointer;
}
.privacy-banner h2 { padding-right: 28px; font-size: 22px; }
.privacy-banner p { margin: 11px 0 17px; color: var(--muted); font-size: 13px; }
.privacy-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.privacy-banner__actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--card-bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}
.privacy-banner__actions button:last-child { border-color: var(--brand-dark); background: var(--brand-dark); color: var(--white); }

.lightbox {
  width: min(1040px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  border: 0;
  border-radius: 16px;
  padding: 14px;
  background: var(--card-bg);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
}
.lightbox::backdrop { background: rgba(7, 31, 26, 0.84); }
.lightbox img { width: 100%; max-height: calc(100vh - 108px); border-radius: 10px; object-fit: contain; }
.lightbox figcaption { padding: 11px 4px 0; font-size: 13px; font-weight: 680; }
.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 23px;
  right: 23px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 31, 26, 0.93);
  color: var(--white);
  font-size: 21px;
  cursor: pointer;
}

.reveal-ready [data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 280ms ease, transform 280ms ease;
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.gallery-card.is-filtered-out { display: none !important; }

@media (max-width: 1120px) {
  :root { --header-height: 68px; }
  .desktop-nav, .header-action { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 900px) {
  :root { --section-y: 50px; }
  .container { width: min(var(--container), calc(100% - 36px)); }
  .section-heading--split { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .section-heading--split h2 { max-width: 18ch; }
  .section-heading--split > p { max-width: 620px; }
  .site-footer__top { grid-template-columns: 1.2fr 1fr; }
  .site-footer__nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
  }
  .site-footer__nav > span { width: 100%; }
}

@media (max-width: 620px) {
  :root { --section-y: 42px; --radius: 14px; }
  .container { width: calc(100% - 28px); }
  body, p, li { font-size: 14.5px; }
  h1 { font-size: clamp(31px, 9vw, 39px); line-height: 1.08; }
  h2 { font-size: clamp(25px, 7vw, 31px); line-height: 1.11; }
  h3 { font-size: clamp(19px, 5.3vw, 22px); }
  .section-label { margin-bottom: 11px; font-size: 9px; }
  .section-heading { margin-bottom: 25px; }
  .button-row { align-items: stretch; }
  .button-row .button { flex: 1 1 150px; }
  .brand__mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand__copy strong { font-size: 14px; }
  .brand__copy small { max-width: 145px; font-size: 6.8px; letter-spacing: 0.09em; white-space: normal; }
  .site-footer__top { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 30px; }
  .site-footer__nav { grid-column: auto; }
  .site-footer__bottom { min-height: 0; flex-direction: column; align-items: flex-start; padding-block: 19px; }
  .site-footer__legal { justify-content: flex-start; }
  .privacy-banner { right: 10px; bottom: 10px; width: calc(100% - 20px); padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
