:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1a1f16;
  --muted: #566252;
  --accent: #00a14e;
  --accent-strong: #036e37;
  --accent-secondary: #e5a23b;
  --line: #ded9cf;
  --shadow: 0 16px 40px rgba(19, 25, 16, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
}

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

body {
  margin: 0;
  font-family: "Libre Franklin", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lora", "Georgia", serif;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

h2 { font-size: 3.2rem; }
h3 { font-size: 2.6rem; }
h4 { font-size: 2.2rem; }

@media (max-width: 900px) {
  h2 { font-size: 2.4rem; }
  h3 { font-size: 2rem; }
  h4 { font-size: 1.6rem; }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 244, 238, 0.98);
  z-index: 20;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Lora", "Georgia", serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.brand img {
  width: auto;
  height: auto;
  max-width: none;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav {
  position: relative;
}

.nav-ribbon {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__link {
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid transparent;
  color: #fff;
  display: block;
}

.nav__link.is-active {
  border-color: #fff;
  color: #fff;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav__item--has-sub {
  position: relative;
  padding-bottom: 0;
}

.nav__link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
  width: 100%;
}

.nav__sub-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  display: none;
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--ink);
  z-index: 30;
}

.nav__sub::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub,
.nav__sub:hover {
  display: flex;
}

.nav__sublink {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  color: var(--muted);
}

.nav__sublink.is-active {
  background: rgba(47, 122, 47, 0.12);
  color: var(--accent-strong);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  gap: 0;
  align-items: center;
  color: inherit;
}

.nav-toggle--header {
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.nav-toggle--header i {
  font-size: 2.2rem;
}

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

.site-main {
  padding: 0;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.hero--image {
  background-size: cover;
  background-position: center;
}

.hero__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: fade-up 800ms ease both;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-secondary);
}

.hero__title {
  font-family: "Lora", "Georgia", serif;
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  margin: 0;
}

.hero__lead {
  font-size: 1.1rem;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.hero__badges span {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: #ffffff;
}

.section--muted {
  background: #f2efe8;
}

.section__title {
  font-family: "Lora", "Georgia", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section__intro {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: 720px;
}

.site-main a:not(.btn):hover {
  color: var(--accent-strong);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.section:not(.hero) .btn--ghost {
  border-color: var(--accent);
  color: var(--accent);
}

.section:not(.hero) .btn--ghost:hover {
  background: rgba(0, 161, 78, 0.1);
  color: var(--accent-strong);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  animation: rise-in 700ms ease forwards;
}

.card:nth-child(1) { animation-delay: 80ms; }
.card:nth-child(2) { animation-delay: 160ms; }
.card:nth-child(3) { animation-delay: 240ms; }
.card:nth-child(4) { animation-delay: 320ms; }
.card:nth-child(5) { animation-delay: 400ms; }
.card:nth-child(6) { animation-delay: 480ms; }

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.page--prskalice .card img {
  object-fit: fill;
}

.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card__icon {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card__title {
  font-family: "Lora", "Georgia", serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.card__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat h3 {
  margin-bottom: 0.4rem;
}

.intro-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.intro-split__media {
  min-height: 360px;
}

.about-panel {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 8rem 0;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25));
}

.about-panel__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: end;
}

.about-panel__content {
  max-width: 560px;
}

.about-panel__stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-number {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
}

.stat-number span {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.stat-number p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.media-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(10px);
  opacity: 0;
  animation: rise-in 700ms ease forwards;
}

.media-card--bg {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.media-card--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tiles {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tile {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tile:hover {
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6));
  transition: background 180ms ease;
}

.tile__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.tile:hover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.7));
}

.tile:hover .tile__content,
.tile:hover .tile__content * {
  color: #fff;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.banner {
  background: #1b2217;
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.banner .section__title {
  margin-bottom: 0.5rem;
  color: #fff;
}

.media-card iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.prose {
  color: var(--ink);
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: "Lora", "Georgia", serif;
  margin-top: 1.75rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose p {
  margin: 0 0 1rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem 1.5rem;
}

.specs dt {
  font-weight: 600;
}

.specs dd {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap thead th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  background: rgba(0, 161, 78, 0.1);
  color: var(--accent-strong);
  border-bottom: 2px solid var(--line);
  font-weight: 600;
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.5rem;
  text-align: left;
}

.table-wrap tbody tr:nth-child(even) {
  background: #faf8f3;
}

.table-wrap tbody tr:hover {
  background: rgba(0, 161, 78, 0.06);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  animation: rise-in 600ms ease forwards;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 50;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__image {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #fff;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.gallery a:nth-child(1) { animation-delay: 60ms; }
.gallery a:nth-child(2) { animation-delay: 120ms; }
.gallery a:nth-child(3) { animation-delay: 180ms; }
.gallery a:nth-child(4) { animation-delay: 240ms; }
.gallery a:nth-child(5) { animation-delay: 300ms; }
.gallery a:nth-child(6) { animation-delay: 360ms; }
.gallery a:nth-child(7) { animation-delay: 420ms; }
.gallery a:nth-child(8) { animation-delay: 480ms; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-grid {
  display: grid;
  gap: 1rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 161, 78, 0.15);
}

.form-grid button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}

.form-grid button:hover {
  background: var(--accent-strong);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 3fr;
  align-items: start;
}

.map-section {
  width: 100%;
  margin: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 440px;
}

.footer__logo {
  max-width: 260px;
  height: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.site-footer {
  background: #1b2217;
  color: #e6ede0;
  padding: 3rem 0 0;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h3 {
  font-family: "Lora", "Georgia", serif;
  margin-top: 0;
}

.site-footer a {
  color: inherit;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

[class*="col-"] {
  flex: 1 1 0;
  min-width: 0;
}

.col-md-4 {
  flex-basis: calc(33.333% - 1rem);
}

.col-md-6 {
  flex-basis: calc(50% - 1rem);
}

.col-md-8 {
  flex-basis: calc(66.666% - 1rem);
}

.col-md-12 {
  flex-basis: 100%;
}

@media (max-width: 900px) {
  .brand img {
    max-width: 220px;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav__item--has-sub {
    width: 100%;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-radius: 0;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav[data-open="true"] {
    display: block;
  }

  .nav__link {
    color: var(--ink);
    padding: 0.5rem 0;
  }

  .nav__link.is-active {
    color: var(--accent-strong);
    border-color: var(--accent);
  }

  .nav__link:hover {
    color: var(--accent-strong);
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .banner {
    padding: 1.5rem;
  }

  .nav__sub {
    position: static;
    box-shadow: none;
    padding: 0.25rem 0 0.5rem;
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav__sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    color: var(--accent-strong);
  }

  .nav__sub-toggle i {
    font-size: 1.2rem;
  }

  .nav__item--open .nav__sub {
    display: flex;
  }

  .about-panel {
    padding: 4rem 0;
  }
}

@media (max-width: 640px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .col-md-4,
  .col-md-6,
  .col-md-8 {
    flex-basis: 100%;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
