:root {
  --bg:           #f4f5f7;
  --bg-soft:      #e9ecf0;
  --bg-slate:     #c8d2dd;
  --bg-dark:      #3a4756;
  --ink:          #28384a;
  --ink-soft:     #5a6775;
  --ink-on-dark:  #f1f3f6;
  --accent:       #28384a;
  --rule:         rgba(40, 56, 74, .12);
  --shadow:       0 2px 8px rgba(40, 56, 74, .08);
  --shadow-lift:  0 8px 24px rgba(40, 56, 74, .12);

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --maxw: 1200px;
  --pad:  clamp(1rem, 3vw, 2rem);
  --gap:  clamp(1rem, 2.5vw, 1.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; }

p  { margin: 0 0 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section   { padding-block: clamp(3rem, 8vw, 6rem); }
.eyebrow   { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--ink-soft); }

/* ───── Header / Nav ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 36px; height: 36px; }
.brand strong { font-weight: 500; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem; cursor: pointer;
  color: var(--ink); width: 40px; height: 40px;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(1rem, 2.5vw, 2rem); align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .site-nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--pad); }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a { display: block; padding: 0.85rem 0; }
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--light { color: var(--bg); border-color: var(--bg); }
.btn--light:hover { background: var(--bg); color: var(--ink); }

/* ───── Footer ───── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 0.88rem;
  padding-block: 2rem;
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ───── Home: hero ───── */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 720px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20, 30, 45, .78), rgba(20, 30, 45, .55) 40%, rgba(20, 30, 45, .25) 70%, transparent),
    linear-gradient(to bottom, rgba(20, 30, 45, .25), transparent 30%, transparent 70%, rgba(20, 30, 45, .25));
}
.hero__content {
  color: #fff;
  max-width: 640px;
  padding-block: clamp(3rem, 8vw, 5rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.hero__content h1 { color: #fff; margin-bottom: 0.5rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.hero__content .eyebrow { color: #fff; margin-bottom: 1rem; display: block; font-weight: 500; }
.hero__content p { color: rgba(255, 255, 255, .98); font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ───── About: split layout ───── */
.split {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}
.split__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__grid img { border-radius: 4px; box-shadow: var(--shadow-lift); }
.split h1, .split h2 { color: #fff; }
.split p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.split .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 1rem; display: block; }
@media (min-width: 820px) {
  .split__grid { grid-template-columns: 1.1fr 1fr; }
}

/* ───── Gallery ───── */
.gallery-head { margin-bottom: 2rem; }
.gallery {
  columns: 1;
  column-gap: var(--gap);
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 var(--gap);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery figure:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.gallery img { width: 100%; }
@media (min-width: 600px)  { .gallery { columns: 2; } }
@media (min-width: 960px)  { .gallery { columns: 3; } }

/* ───── Cjenik / Products ───── */
.cjenik-section { background: var(--bg-slate); }
.cjenik-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.cjenik-head h1 {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.product {
  background: #fff;
  border-radius: 6px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--gap);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
}
@media (min-width: 780px) {
  .product { grid-template-columns: 1fr minmax(280px, 420px); align-items: center; }
}
.product__body h3 { margin-bottom: 0.15rem; }
.product__variant { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.85rem; }
.product__price {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--accent);
  display: inline-block;
  margin-right: 0.5rem;
}
.product__price-vat { color: var(--ink-soft); font-size: 0.85rem; }
.product__desc { margin-top: 0.85rem; }
.product__media {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}
.product__media--double { grid-template-columns: 1fr 1fr; }
.product__media img { border-radius: 4px; object-fit: cover; aspect-ratio: 4 / 3; width: 100%; }
.product__media--portrait img { aspect-ratio: 3 / 4; }

.cjenik-note {
  font-size: 0.92rem;
  background: rgba(255,255,255,.5);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}
.cjenik-note p { color: var(--ink); margin-bottom: 0.25rem; }
.cjenik-note p:last-child { margin-bottom: 0; }

/* ───── Kontakt ───── */
.kontakt-section { background: var(--bg-slate); min-height: 70vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.kontakt-section h1 { margin-bottom: 2.5rem; }
.kontakt-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.5rem;
  max-width: 36rem;
}
.kontakt-list dt {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.kontakt-list dd {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}
.kontakt-list a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.kontakt-list a:hover { color: var(--accent); }

.kontakt-logo {
  position: absolute; right: var(--pad); bottom: var(--pad);
  width: clamp(120px, 14vw, 180px);
  opacity: 0.85;
}
.kontakt-logo span { display: block; text-align: center; font-size: 0.78rem; letter-spacing: 0.18em; color: var(--ink); margin-top: 0.35rem; }
@media (max-width: 760px) { .kontakt-logo { position: static; margin-top: 3rem; opacity: 1; } }

/* ───── Page section variants ───── */
.page-section { background: var(--bg); }
.page-section--soft { background: var(--bg-soft); }
.page-section--slate { background: var(--bg-slate); }
.page-section--dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.page-section--dark h1, .page-section--dark h2 { color: #fff; }
.page-section--dark p { color: rgba(255,255,255,.85); }

/* Util */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
