/*
 * STS Plus — web
 * Vizuál podle "Ambrook" (styles.refero.design): zemědělství a kovovýroba.
 * Pergamenový podklad, inkoustový text, lesní zeleň z loga, serifové nadpisy
 * s vahou 500, eyebrow štítky, jemné zaoblení 4–8 px, žádné stíny.
 */

:root {
  /* pergamen a země */
  --parchment: #fcfaf1;
  --bone: #efe9e0;
  --loam: #c7bcaf;
  --bark: #8a7d6f;
  --saddle: #50463c;
  --ink: #211b15;

  /* zeleň z loga STS Plus */
  --forest: #2f6a31;
  --forest-hover: #24552a;
  --forest-deep: #1c3a22;
  --forest-ink: #142a18;
  --sprout: #5bb843;
  --sage: #7a9779;
  --moss-wash: #e7ecdc;

  --line: #e3dccf;
  --line-strong: #211b15;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;

  --text-eyebrow: 13px;
  --text-body: 17px;
  --text-sub: 19px;
  --text-heading: clamp(30px, 3.6vw, 44px);
  --text-display: clamp(38px, 5.2vw, 60px);
  --text-display-xl: clamp(40px, 6.2vw, 74px);

  --r-sm: 4px;
  --r-md: 8px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--forest); color: var(--parchment); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}

.icon { flex: 0 0 auto; }

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: var(--text-eyebrow);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--sprout);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow-light { color: var(--moss-wash); }

.display, .heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.011em;
  text-wrap: balance;
  margin: 0;
}
.display { font-size: var(--text-display); line-height: 1.06; }
.display-xl { font-size: var(--text-display-xl); line-height: 1.02; }
.heading { font-size: var(--text-heading); line-height: 1.14; max-width: 24ch; }

.lead {
  margin: 24px 0 0;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--saddle);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.actions-center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .icon-arrow { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--parchment); }
.btn-light { background: var(--parchment); color: var(--forest-ink); }
.btn-light:hover { background: #fff; }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--forest-ink);
  color: rgba(231, 236, 220, .8);
  font-size: 13px;
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar-links { display: flex; gap: 24px; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.topbar-item .icon { color: var(--sprout); }
.topbar-item:hover { color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 241, .94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

.brand { flex: 0 0 auto; display: block; }
.brand img { height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li { position: relative; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-list > li > a:hover { color: var(--forest); }
.nav-list > li > a[aria-current="page"],
.nav-list > li.is-active > a {
  color: var(--forest);
  box-shadow: inset 0 -2px 0 var(--sprout);
  border-radius: 0;
}
.nav-extra { display: none; }
.header-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--forest);
  color: #fff;
}
.has-sub > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 4px;
}

/* mega menu výrobního programu – fotky technologií */
.sub {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 640px;
  margin-top: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -18px rgba(33, 27, 21, .25);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .sub,
.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 920px) { .has-sub:hover .sub, .has-sub:focus-within .sub { transform: none; } }
.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list .sub-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
}
.sub-thumb {
  flex: 0 0 64px;
  height: 48px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bone);
}
.sub-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.nav-list .sub-grid a:hover, .nav-list .sub-grid a[aria-current="page"] { background: var(--moss-wash); color: var(--forest-ink); }
.sub-grid a:hover .sub-thumb img { transform: scale(1.08); }
.nav-list .sub-all {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 14px 10px 6px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: 14px;
  color: var(--forest);
}
.nav-list .sub-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform .25s var(--ease);
}
.nav-toggle-icon { box-shadow: 0 -5px 0 currentColor; top: 2px; }
.nav-toggle-icon::before { content: ""; position: absolute; top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { box-shadow: none; transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(-90deg); }

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

.hero { padding-top: clamp(48px, 8vw, 104px); overflow: hidden; }
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-stack .display { max-width: 18ch; }
.hero-stack .lead { margin-left: auto; margin-right: auto; }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--saddle);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--moss-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2 6 9.2 10 5' fill='none' stroke='%232f6a31' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* dokumentární koláž – fotky jako polaroidy */
.collage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 1320px;
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding: 0 var(--gutter) clamp(40px, 5vw, 72px);
}
.polaroid {
  margin: 0 -14px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  flex: 0 1 270px;
  transition: transform .5s var(--ease);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; }
.polaroid.p0 { transform: rotate(-3deg) translateY(18px); z-index: 1; }
.polaroid.p1 { transform: rotate(2deg) translateY(4px); z-index: 2; }
.polaroid.p2 { transform: rotate(-1deg); z-index: 3; flex-basis: 300px; }
.polaroid.p3 { transform: rotate(2.5deg) translateY(8px); z-index: 2; }
.polaroid.p4 { transform: rotate(-2deg) translateY(20px); z-index: 1; }
.polaroid:hover { transform: rotate(0) translateY(-6px); z-index: 4; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tint { background: var(--bone); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 52px);
}

/* služby – mřížka s linkami */
.cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cell-num { font-size: 13px; letter-spacing: .1em; color: var(--bark); }
.cell-icon { color: var(--forest); }
.cell-text { margin: 0; font-size: var(--text-sub); line-height: 1.45; }
.cell-accent { background: var(--forest-deep); color: var(--parchment); }
.cell-accent .cell-num { color: var(--sage); }
.cell-accent .cell-icon { color: var(--sprout); }
.cell-accent .cell-text { font-size: 17px; color: var(--moss-wash); }
.cell-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.cell-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* karty výrobního programu */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .25s var(--ease);
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.card-num { font-size: 13px; letter-spacing: .1em; color: var(--bark); }
.card-title {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card-text { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--saddle); }
.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
}
.card-more .icon-arrow { transition: transform .25s var(--ease); }
.card:hover { border-color: var(--forest); }
.card:hover .card-media img { transform: scale(1.04); }
.card:hover .card-more .icon-arrow { transform: translateX(4px); }

/* tmavý zelený panel */
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  background: var(--forest-deep);
  color: var(--moss-wash);
  border-radius: var(--r-md);
}
.panel-prose p { margin: 0 0 18px; font-size: 18px; line-height: 1.65; }
.panel-prose p:first-child {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.35;
  color: #fff;
}
.panel .btn { margin-top: 12px; }
.panel-media { margin: 0; }
.panel-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 8px solid var(--parchment);
}

/* CTA */
.cta-band {
  background: var(--bone);
  border-top: 1px solid var(--line);
  padding: var(--section) 0;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-inner .heading { max-width: 22ch; }

/* ---------- Page head + article ---------- */

.page-head {
  padding: clamp(44px, 6vw, 88px) 0 clamp(36px, 4.5vw, 60px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.page-head .display { max-width: 22ch; }

.article-grid { padding-bottom: var(--section); }
.article-grid.has-aside {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.side { align-self: stretch; }
.side-inner { position: sticky; top: 112px; }
.side-nav { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line-strong); }
.side-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  color: var(--saddle);
  text-decoration: none;
  transition: color .2s var(--ease), padding .2s var(--ease);
}
.side-nav a:hover { color: var(--forest); padding-left: 4px; }
.side-nav a[aria-current="page"] { color: var(--forest); font-weight: 500; }
.side-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
}
.side-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* drobečková navigace */
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--bark); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 12px 0 10px;
  border-top: 1.5px solid var(--loam);
  border-right: 1.5px solid var(--loam);
  transform: rotate(45deg);
}
.crumbs a { color: var(--forest); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--saddle); }

/* předchozí / další technologie */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .2s var(--ease);
}
.prose .pager-link { color: var(--ink); }
.pager-link:hover { border-color: var(--forest); }
.pager-next { text-align: right; align-items: flex-end; }
.pager-dir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
}
.pager-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.25; }

/* kontaktní osoba */
.contact-card {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.contact-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--moss-wash);
  font-family: var(--font-display);
  font-size: 22px;
}
.contact-card .eyebrow { margin-bottom: 6px; }
.contact-person { margin: 0 0 18px; font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.2; }
.contact-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-lines a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-lines .icon { color: var(--forest); }
.contact-lines a:hover { color: var(--forest); }

/* ---------- Kontakt ---------- */

.contact-wrap { padding-bottom: var(--section); }

.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.quick-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--moss-wash);
  color: var(--forest);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.quick-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bark); }
.quick-value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.quick-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
}
.quick-cta .icon-arrow { transition: transform .25s var(--ease); }
.quick-item:hover { border-color: var(--forest); }
.quick-item:hover .quick-icon { background: var(--forest); color: #fff; }
.quick-item:hover .icon-arrow { transform: translateX(4px); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.places { display: grid; gap: 20px; }
.place {
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.place-works { border-top: 3px solid var(--forest); }
.place-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.place-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--moss-wash);
  color: var(--forest);
}
.place-head .eyebrow { margin-bottom: 4px; }
.place-head .eyebrow::before { display: none; }
.place-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
}
.place-rows { margin: 0 0 22px; border-top: 1px solid var(--line); }
.place-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.place-row dt { color: var(--bark); }
.place-row dd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.place-row a { color: var(--forest); font-weight: 500; text-underline-offset: 3px; }

.copy {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--bark);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.copy:hover { background: var(--moss-wash); color: var(--forest); }
.copy .icon { grid-area: 1 / 1; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.copy .icon-done { opacity: 0; transform: scale(.6); color: var(--forest); }
.copy.is-done .icon-copy { opacity: 0; transform: scale(.6); }
.copy.is-done .icon-done { opacity: 1; transform: none; }

.map-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.map-links .btn { min-height: 40px; padding: 8px 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--loam);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip .icon { color: var(--bark); }
.chip:hover { border-color: var(--forest); background: var(--moss-wash); }

.contact-map { position: sticky; top: 112px; }
.map-block { margin: 0; }
.map-frame {
  position: relative;
  display: block;
  aspect-ratio: 520 / 426;
  overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s var(--ease); }
.map-frame:hover img { transform: scale(1.03); filter: saturate(.85); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(20, 42, 24, .6);
  transition: background-color .2s var(--ease);
}
.map-frame:hover .map-load { background: var(--forest-hover); }
.map-caption { margin: 14px 0 16px; font-size: 14px; color: var(--saddle); }

.form-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.form-split .side { order: 0; }
#napiste-nam .field input, #napiste-nam .field textarea { background: var(--parchment); }

/* ---------- Mobilní lišta + nahoru ---------- */

.action-bar { display: none; }
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background-color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest); }

/* ---------- Prose (obsah z CMS) ---------- */

.prose { max-width: 780px; min-width: 0; }
.prose-wide { max-width: 880px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; max-width: 70ch; }
.prose strong { font-weight: 500; }
.prose a:not(.btn) { color: var(--forest); text-underline-offset: 3px; }
.prose h2 {
  margin: 56px 0 18px;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 500;
  line-height: 1.15;
}
.prose h3 {
  margin: 52px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.list { list-style: none; margin: 0 0 28px; padding: 0; }
.list li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.list li:first-child { border-top: 1px solid var(--line); }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--moss-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3 7.7 11.8 12.8 6.4' fill='none' stroke='%232f6a31' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.media { margin: 36px 0; }
.media a { display: block; }
.media img {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.media.is-wide img { width: 560px; }
.media figcaption, .gallery figcaption { margin-top: 8px; font-size: 13px; color: var(--bark); }

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0;
}
.gallery figure { margin: 0; max-width: 100%; }
.gallery figcaption { width: 0; min-width: 100%; }
.gallery img {
  height: 210px;
  width: auto;
  object-fit: cover;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

[data-lightbox] { cursor: zoom-in; }
[data-lightbox] img { transition: border-color .2s var(--ease); }
[data-lightbox]:hover img { border-color: var(--sage); }

/* tabulky parametrů */
.spec {
  margin: 32px 0 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
}
.spec table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td {
  padding: 13px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.spec thead th {
  background: var(--forest-deep);
  color: var(--moss-wash);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom-color: rgba(255, 255, 255, .12);
}
.spec tbody tr:last-child td { border-bottom: 0; }
.spec tbody tr:nth-child(even) td { background: #fbf9f3; }
.spec td + td, .spec th + th { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec tbody tr:hover td { background: var(--moss-wash); }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.req { color: var(--forest); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input, .field textarea, .search input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--loam);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .search input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 106, 49, .15);
}
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.form-note { margin: 0; font-size: 14px; color: var(--bark); }
.form-status {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.form-status.is-ok { border-color: var(--sage); background: var(--moss-wash); color: var(--forest-ink); }
.form-status.is-error { border-color: #b4532a; background: #fbeee6; color: #6b2a10; }

.search { display: flex; gap: 10px; }
.search-results { margin-top: 40px; }
.search-results ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.search-results li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--ink); text-decoration: none; }
.search-results a:hover { color: var(--forest); }
.search-results p { margin: 8px 0 0; color: var(--saddle); font-size: 15px; }
.search-results mark { background: var(--moss-wash); color: var(--forest-ink); padding: 0; }
.search-empty { color: var(--bark); }

.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.link-list a:hover { color: var(--forest); }

.gallery-page { padding-bottom: var(--section); }
.gallery-section { padding-bottom: 56px; }
.gallery-title {
  margin: 0 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}
.gallery-title a { text-decoration: none; }
.gallery-title a:hover { color: var(--forest); }
.gallery-page .gallery { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-ink);
  color: rgba(231, 236, 220, .78);
  font-size: 15px;
  line-height: 1.7;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 40px;
}
.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 20px;
  padding: 10px 14px;
  box-sizing: content-box;
  background: var(--parchment);
  border-radius: var(--r-sm);
}
.footer-brand p { margin: 0 0 12px; }
.site-footer .eyebrow { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.site-footer a {
  color: rgba(231, 236, 220, .9);
  text-decoration: underline;
  text-decoration-color: rgba(231, 236, 220, .25);
  text-underline-offset: 3px;
}
.site-footer a:hover { color: #fff; text-decoration-color: var(--sprout); }
.site-footer .muted { color: rgba(231, 236, 220, .55); }
.muted { color: var(--bark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(231, 236, 220, .14);
  font-size: 13px;
  color: rgba(231, 236, 220, .5);
}

/* ---------- Lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 42, 24, .9); }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  width: auto;
  padding: 8px;
  background: #fff;
  border-radius: var(--r-sm);
}
.lightbox-close {
  position: absolute;
  top: -54px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .header-cta { display: none; }
  .header-call { display: inline-flex; }
  .nav-list a { padding: 10px 9px; font-size: 14.5px; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { grid-template-columns: 1fr; }
  .panel-media { max-width: 480px; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid, .form-split { grid-template-columns: 1fr; }
  .contact-map { position: static; }
  .form-split .side-inner { max-width: 420px; }
}

@media (max-width: 920px) {
  .topbar { display: none; }
  .header-row { min-height: 68px; gap: 10px; position: relative; }
  .brand img { height: 38px; }
  .nav-toggle { display: inline-flex; margin-left: 0; }
  .header-call { margin-left: auto; }
  .nav { margin: 0; }
  body.nav-open { overflow: hidden; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--parchment);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-list.is-open { display: flex; animation: menu-in .22s var(--ease); }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a { padding: 16px 0; font-family: var(--font-display); font-size: 24px; white-space: normal; width: 100%; }
  .nav-list > li > a[aria-current="page"],
  .nav-list > li.is-active > a { box-shadow: none; }
  .has-sub > a::after { display: none; }
  .sub {
    position: static;
    width: auto;
    left: auto;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .sub::before { display: none; }
  .sub-grid { grid-template-columns: 1fr; gap: 4px; }
  .nav-list .sub-grid a { padding: 6px; font-family: var(--font-sans); font-size: 15px; color: var(--saddle); }
  .sub-thumb { flex-basis: 56px; height: 42px; }
  .nav-list .sub-all { font-family: var(--font-sans); font-size: 15px; padding: 14px 6px 4px; }
  .nav-extra { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-bottom: 0 !important; }
  .nav-list .nav-extra .btn { font-family: var(--font-sans); font-size: 16px; padding: 14px 20px; }
  .nav-list .nav-extra .btn-primary { color: #fff; }

  .article-grid.has-aside { grid-template-columns: 1fr; }
  .side { order: 2; }
  .side-inner { position: static; }
  .collage .polaroid.p0, .collage .polaroid.p4 { display: none; }
}

@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(252, 250, 241, .97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
  }
  .action-bar .icon { color: var(--forest); }
  .action-bar a:last-child { background: var(--forest); color: #fff; }
  .action-bar a:last-child .icon { color: #fff; }
  body.nav-open .action-bar { display: none; }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
  .quick { grid-template-columns: 1fr; gap: 10px; }
  .quick-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .quick-icon { grid-row: span 3; width: 44px; height: 44px; margin: 0; }
  .quick-value { font-size: 19px; }
  .quick-cta { padding-top: 6px; }
  .pager { grid-template-columns: 1fr; }
  .map-load { bottom: 14px; padding: 11px 16px; font-size: 14px; }
  .place-row { flex-wrap: wrap; gap: 2px 12px; }
  .cards, .cells, .form-grid { grid-template-columns: 1fr; }
  .cell { padding: 26px 22px 28px; }
  .actions .btn { flex: 1 1 auto; }
  .trust { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 10px 18px; text-align: left; font-size: 13px; }
  .collage { padding-bottom: 32px; }
  .polaroid { margin: 0 -18px; padding: 5px; }
  .gallery img { height: 140px; padding: 4px; }
  .media img { padding: 5px; }
  .media.is-wide img { width: 100%; }
  .spec th, .spec td { padding: 11px 14px; }
  .spec table { font-size: 14px; }
  .search { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .panel-prose p { font-size: 16px; }
}

/* ---------- Dotykové plochy + galerie na menších displejích ---------- */

@media (max-width: 920px) {
  .gallery-page .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
  .gallery-page .gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .footer-links li { margin: 0; }
  .footer-links a, .footer-brand a { display: inline-block; padding: 9px 0; }
  .crumbs a { display: inline-block; padding: 10px 0; }
  .side-cta, .cell-link { padding-block: 8px; }
  .brand { display: flex; align-items: center; min-height: 44px; }
}

@media (max-width: 640px) {
  .gallery-page .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-page .gallery img { height: auto; padding: 4px; }
}

@media (pointer: coarse) {
  .copy { width: 40px; height: 40px; }
}

.prose > figure.media + h2, .prose > figure.media + h3 { margin-top: 28px; }
