:root {
  --ink: #162232;
  --muted: #5b6b7d;
  --line: #d8e4ec;
  --panel: #f5f9fb;
  --brand: #0f5d7a;
  --accent: #11a7c7;
  --green: #1f8a70;
  --gold: #d8a23a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(17, 37, 52, .12);
  --page-gutter: clamp(24px, 5vw, 70px);
  --content-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 14px var(--page-gutter);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand img { width: 190px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 26px; font-weight: 700; color: #334256; }
.main-nav a, .header-contact a, .footer a { text-decoration: none; }
.main-nav a:hover, .text-link:hover, .footer a:hover { color: var(--brand); }
.mobile-lang-switch { display: none; }
.header-contact { display: grid; text-align: right; line-height: 1.35; font-weight: 800; }
.lang-switch {
  justify-self: end;
  width: 38px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 37, 52, .08);
}
.lang-switch:hover { transform: translateY(-1px); border-color: var(--accent); }
.flag {
  display: block;
  width: 26px;
  height: 17px;
  border-radius: 2px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.flag-pl { background-image: url("assets/flag-pl.svg"); }
.flag-en { background-image: url("assets/flag-en.svg"); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 3px; margin: 5px auto; background: var(--ink); border-radius: 2px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  padding: clamp(56px, 8vw, 110px) var(--page-gutter);
}
.eyebrow { margin: 0 0 12px; color: var(--brand); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; font-weight: 900; }
.hero > *,
.split > *,
.section-heading > *,
.service-hero > *,
.contact > *,
.footer-main > *,
.article-body > * {
  min-width: 0;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1, h2, h3, p, li { overflow-wrap: break-word; }
h1 { font-size: clamp(2.45rem, 6vw, 5.4rem); max-width: 840px; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 18px; }
.hero-lead { max-width: 760px; margin-top: 22px; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 900;
  text-decoration: none;
}
.button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.button.secondary { background: #fff; }
.hero-points { display: flex; flex-wrap: wrap; gap: 16px 22px; padding: 0; margin: 28px 0 0; list-style: none; color: #46596b; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.hero-media { border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-media img { width: 100%; min-height: 390px; object-fit: contain; padding: 24px; background: linear-gradient(135deg, #f8fbfd, #e7f4f8); }
.section, .service-hero, .article-body, .contact, .footer-main, .footer-bottom {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}
.section { padding-top: clamp(58px, 8vw, 100px); padding-bottom: clamp(58px, 8vw, 100px); }
.section.alt { background: var(--panel); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.section-heading { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 38px; margin-bottom: 32px; }
.service-grid, .room-grid, .blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card, .room-card, .blog-card, .step, .contact-card, .service-panel, .faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.service-card, .room-card, .step, .faq-item { padding: 28px; }
.service-card p, .room-card p, .step p, .faq-item p { color: var(--muted); }
.service-card-image { display: block; margin: -12px -12px 22px; border-radius: 8px; overflow: hidden; background: #eef7fa; }
.service-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card .icon { margin-top: 0; }

.icon { width: 54px; height: 54px; border-radius: 8px; margin-bottom: 24px; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.icon.green { background: linear-gradient(135deg, var(--green), #4fc39c); }
.icon.gold { background: linear-gradient(135deg, var(--gold), #f0c96b); }
.icon.dark { background: linear-gradient(135deg, #15253a, #536a85); }
.text-link { color: var(--brand); font-weight: 900; text-decoration: none; }
.product-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.product-tile { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; }
.product-tile strong { display: block; }
.product-tile span { color: var(--muted); font-size: .95rem; }
.product-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.model-chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.model-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 800; background: #fff; }
.model-chip:hover { border-color: var(--brand); color: var(--brand); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.step::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #eef7fa url("assets/favicon-32.png") center / 34px 34px no-repeat;
  border: 1px solid var(--line);
}
.service-hero { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding-top: 76px; padding-bottom: 56px; background: var(--panel); }
.service-panel { padding: 26px; }
.service-panel ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.article-body { max-width: 1040px; padding-top: 56px; padding-bottom: 80px; margin: 0 auto; }
.article-body h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin: 42px 0 16px; }
.article-body p, .article-body li { color: #43556a; }
.article-figure { margin: 0 0 34px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #f7fbfd; }
.article-figure img { width: 100%; max-height: 460px; object-fit: contain; padding: 24px; }
.article-cta { margin-top: 42px; padding: 28px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.blog-card { overflow: hidden; }
.blog-card-media img { width: 100%; aspect-ratio: 16/10; object-fit: contain; padding: 18px; background: #eef7fa; }
.blog-card-content { padding: 24px; }
.article-meta { color: var(--brand); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding-top: 80px; padding-bottom: 80px; background: var(--panel); }
.contact-card { padding: 28px; }
.contact-list { display: grid; gap: 8px; font-weight: 800; }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
label { font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid #cad8e2; border-radius: 8px; padding: 13px 14px; font: inherit; }
input[type="file"] { padding: 10px; color: var(--muted); background: #fff; }
input[type="file"]::file-selector-button { border: 0; border-radius: 8px; padding: 9px 12px; margin-right: 12px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
textarea { resize: vertical; }
.optional-label { color: var(--muted); font-size: .85rem; font-weight: 700; }
.field-help { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 500; font-size: .94rem; margin: 14px 0; }
.checkbox-row input { width: auto; margin-top: 6px; }
.hp-label,
.hp-field { position: absolute; left: -10000px; }
.g-recaptcha { margin: 14px 0 18px; min-height: 78px; }
.form-note { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.footer { background: #162232; color: #d9e5ec; }
.footer-main { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 42px; padding-top: 56px; padding-bottom: 44px; }
.footer h2 { font-size: 1.1rem; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a { color: #9be3f2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 26px; color: #aebdca; font-size: .92rem; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.back-to-top {
  width: 42px;
  height: 42px;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
}
.back-to-top:hover { background: #fff; color: var(--brand); }
.cookie-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 40; display: none; max-width: 760px; padding: 18px; border-radius: 8px; background: #101a27; color: #fff; box-shadow: var(--shadow); }
.cookie-banner.show { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; color: #d9e5ec; }
@media (max-width: 980px) {
  .main-nav, .header-contact { display: none; }
  .nav-toggle { display: block; justify-self: end; }
  .hero, .split, .section-heading, .service-hero, .contact, .footer-main { grid-template-columns: 1fr; }
  .service-grid, .room-grid, .blog-list, .steps, .product-strip { grid-template-columns: 1fr; }
  .hero-media img { min-height: 0; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.8rem); }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --page-gutter: 24px; }
  .site-header { min-height: 68px; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { width: min(172px, 52vw); }
  .nav-toggle { width: 48px; height: 48px; flex: 0 0 auto; }
  .main-nav {
    position: absolute;
    top: 68px;
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(17, 37, 52, .14);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .mobile-lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }
  .mobile-lang-switch .flag {
    flex: 0 0 auto;
  }
  main,
  section,
  article,
  footer,
  header {
    max-width: 100%;
  }
  .hero {
    padding-top: 46px;
    padding-bottom: 58px;
    gap: 28px;
  }
  .service-hero {
    padding-top: 46px;
    padding-bottom: 42px;
    gap: 24px;
  }
  .article-body {
    padding-top: 38px;
    padding-bottom: 58px;
  }
  h1 { font-size: clamp(2.15rem, 10.5vw, 3.35rem); }
  h2 { font-size: clamp(1.75rem, 8.5vw, 2.45rem); }
  .hero-lead { font-size: 1.04rem; }
  .hero-actions,
  .button {
    width: 100%;
  }
  .hero-actions .button,
  .article-cta .button {
    width: 100%;
  }
  .hero-points { display: grid; gap: 10px; }
  .service-grid, .room-grid, .blog-list, .steps, .product-strip { gap: 16px; }
  .service-card,
  .room-card,
  .step,
  .faq-item,
  .service-panel,
  .contact-card,
  .article-cta {
    padding: 22px;
  }
  .article-figure img,
  .blog-card-media img,
  .hero-media img {
    padding: 14px;
  }
  .article-figure img { max-height: 340px; }
  .model-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .product-tile,
  .footer a,
  .contact-list a {
    overflow-wrap: anywhere;
  }
  .g-recaptcha {
    width: 304px;
    max-width: 100%;
    overflow: hidden;
    transform: scale(.86);
    transform-origin: left top;
    margin-bottom: -2px;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 360px) {
  :root { --page-gutter: 18px; }
  .site-header,
  .section,
  .service-hero,
  .article-body,
  .contact,
  .footer-main,
  .footer-bottom,
  .hero {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }
  .brand img { width: min(150px, 50vw); }
  .nav-toggle { width: 44px; height: 44px; }
  .g-recaptcha { transform: scale(.8); }
}
