/* Písma hostovaná na webu (Zilla Slab, Figtree; latin + latin-ext kvůli češtině) */
@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/zilla-slab-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/zilla-slab-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/zilla-slab-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/figtree-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/figtree-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/figtree-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --ink: #1B2119;
  --ink-muted: #545D4F;
  --bg: #EEF0EA;
  --surface: #F8F9F5;
  --line: #D3D8CC;
  --spruce-900: #1F2A1C;
  --spruce-700: #34452F;
  --straw: #D8C08C;
  --rust: #9B4F2C;
  --rust-hover: #83411F;
  --logo-green: #2F482A;
  --white: #FFFFFF;
  --shadow-card: 0 1px 2px rgba(31, 42, 28, 0.06), 0 14px 36px -14px rgba(31, 42, 28, 0.22);
  --radius-sm: 6px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  overflow-x: clip;
  font-variant-numeric: lining-nums;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
}

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

p {
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}

p + p {
  margin-top: 16px;
}

h1,
h2,
h3 {
  color: var(--spruce-900);
  margin: 0;
}

h1,
h2 {
  font-family: "Zilla Slab", Georgia, serif;
  text-wrap: balance;
}

h2 {
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: 24px;
}

/* Links and Focus */
a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 180ms var(--ease), text-decoration-thickness 180ms var(--ease);
}

a:hover {
  color: var(--rust-hover);
  text-decoration-thickness: 2px;
}

a,
button,
.btn {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.hero :focus-visible,
.registr :focus-visible,
.site-footer :focus-visible,
.site-header:not(.is-solid):not(.is-menu-open) :focus-visible {
  outline-color: var(--straw);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background-color: var(--rust);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
  color: var(--white);
  text-decoration: none;
}

/* Scroll sentinel */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 32px;
  width: 100%;
}

@media (max-width: 640px) {
  h2 {
    font-size: clamp(1.875rem, 1.5rem + 1.8vw, 3rem);
    margin-bottom: 16px;
  }

  p {
    max-width: none;
  }

  .container {
    padding-inline: 16px;
  }
}

/* Sections */
.section {
  padding-block: 128px;
  scroll-margin-top: 88px;
}

@media (max-width: 900px) {
  .section {
    padding-block: 80px;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 64px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}

.btn--primary:hover {
  background-color: var(--rust-hover);
  border-color: var(--rust-hover);
  color: var(--white);
  text-decoration: none;
}

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

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  text-decoration: none;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: 76px;
  z-index: 100;
  color: var(--white);
  transition: color 160ms var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(238, 240, 234, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 180ms var(--ease);
  z-index: -1;
  pointer-events: none;
}

.site-header.is-solid,
.site-header.is-menu-open {
  color: var(--ink);
}

.site-header.is-solid::before,
.site-header.is-menu-open::before {
  opacity: 1;
}

.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  line-height: 1.15;
}

.wordmark__text {
  display: flex;
  flex-direction: column;
}

/* Znak z loga (hory, kráva, klas), barva přes currentColor */
.wordmark__emblem {
  flex: none;
  width: 64px;
  height: 40px;
  fill: currentColor;
  color: var(--white);
  transition: color 160ms var(--ease);
}

.site-header.is-solid .wordmark__emblem,
.site-header.is-menu-open .wordmark__emblem {
  color: var(--logo-green);
}

@media (max-width: 640px) {
  .wordmark {
    gap: 10px;
  }

  .wordmark__emblem {
    width: 54px;
    height: 34px;
  }
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark__title {
  font-family: "Zilla Slab", serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 160ms var(--ease);
}

.wordmark__subtitle {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 160ms var(--ease);
}

.site-header.is-solid .wordmark__title,
.site-header.is-menu-open .wordmark__title {
  color: var(--spruce-900);
}

.site-header.is-solid .wordmark__subtitle,
.site-header.is-menu-open .wordmark__subtitle {
  color: var(--ink-muted);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.site-header:not(.is-solid):not(.is-menu-open) .nav-link {
  color: var(--white);
}

.site-header:not(.is-solid):not(.is-menu-open) .nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.site-header.is-solid .nav-link,
.site-header.is-menu-open .nav-link {
  color: var(--ink);
}

.site-header.is-solid .nav-link:hover,
.site-header.is-menu-open .nav-link:hover {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), transform 180ms var(--ease);
}

.menu-toggle:active {
  transform: scale(0.96);
}

.site-header.is-solid .menu-toggle,
.site-header.is-menu-open .menu-toggle {
  color: var(--ink);
  border-color: var(--line);
}

.menu-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 10px;
}

.menu-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 220ms var(--ease);
}

.site-header.is-menu-open .menu-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-contact {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    height: 64px;
  }

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

  .site-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background-color: var(--bg);
    overflow-y: auto;
    padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s 220ms;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  }

  .site-nav.is-open .nav-item {
    opacity: 1;
    transform: none;
  }

  .site-nav.is-open .nav-item:nth-child(1) {
    transition-delay: 40ms;
  }
  .site-nav.is-open .nav-item:nth-child(2) {
    transition-delay: 80ms;
  }
  .site-nav.is-open .nav-item:nth-child(3) {
    transition-delay: 120ms;
  }
  .site-nav.is-open .nav-item:nth-child(4) {
    transition-delay: 160ms;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-family: "Zilla Slab", serif;
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--spruce-900) !important;
    text-decoration: none !important;
    height: auto;
    transition: color 160ms var(--ease);
  }

  .nav-link:hover {
    color: var(--rust) !important;
  }

  .nav-contact {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
  }

  .nav-contact__label {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--ink-muted);
    margin-bottom: 12px;
  }

  .nav-contact__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav-contact__btn {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    padding: 0 20px;
  }

  .nav-contact__btn--outline {
    background-color: transparent;
    border: 1px solid var(--spruce-900);
    color: var(--spruce-900);
  }

  .nav-contact__btn--outline:hover {
    background-color: rgba(31, 42, 28, 0.06);
    color: var(--spruce-900);
    text-decoration: none;
  }
}

/* No-JS header fallback */
html:not(.js) .menu-toggle {
  display: none !important;
}

html:not(.js) .site-nav {
  display: block !important;
  position: static !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html:not(.js) .nav-contact {
  display: none !important;
}

@media (max-width: 900px) {
  html:not(.js) .site-header {
    height: auto !important;
    position: static !important;
    background-color: var(--spruce-900) !important;
    padding: 16px 0;
  }

  html:not(.js) .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  html:not(.js) .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  html:not(.js) .nav-item {
    border: none;
    opacity: 1 !important;
    transform: none !important;
  }

  html:not(.js) .nav-link {
    height: auto;
    padding: 4px 0;
    color: var(--white) !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: max(640px, 92svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--spruce-900);
  scroll-margin-top: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(20, 26, 18, 0.45), transparent 60%),
    linear-gradient(to top, rgba(20, 26, 18, 0.82) 0%, rgba(20, 26, 18, 0.45) 40%, rgba(20, 26, 18, 0.10) 75%);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  padding-bottom: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__eyebrow {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--straw);
  margin-bottom: 16px;
}

.hero__title {
  font-family: "Zilla Slab", serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--white);
  margin: 0 0 20px 0;
  text-wrap: balance;
}

.hero__lead {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px 0;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 88svh;
  }

  .hero__content {
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .hero__eyebrow {
    margin-bottom: 12px;
  }

  .hero__title {
    font-size: clamp(2.375rem, 1.5rem + 3.4vw, 4.5rem);
    margin-bottom: 16px;
  }

  .hero__lead {
    margin-bottom: 28px;
  }

  /* Mobil: fotka přes celou výšku, text u spodního okraje */
  .hero {
    min-height: max(600px, 100svh);
  }

  .hero::after {
    background:
      linear-gradient(to bottom, rgba(20, 26, 18, 0.4) 0%, rgba(20, 26, 18, 0) 16%),
      linear-gradient(to top, rgba(20, 26, 18, 0.86) 0%, rgba(20, 26, 18, 0.62) 34%, rgba(20, 26, 18, 0.12) 58%, rgba(20, 26, 18, 0) 70%);
  }

  .hero__content {
    padding-bottom: 92px;
  }

  .hero__actions .btn {
    padding-inline: 16px;
  }
}

@media (max-width: 340px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* Registr card */
.registr {
  position: relative;
  z-index: 10;
}

.registr__card {
  margin-top: -88px;
  position: relative;
  z-index: 2;
  background-color: var(--spruce-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.registr__cell {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.registr__cell + .registr__cell {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.registr__label {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--straw);
}

.registr__value {
  font-family: "Zilla Slab", serif;
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.25;
  color: var(--white);
}

@media (max-width: 900px) {
  .registr__card {
    margin-top: -56px;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }

  .registr__cell {
    padding: 24px;
    border-left: none;
    border-top: none;
  }

  .registr__cell:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .registr__cell:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .registr__card {
    margin-top: -40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }

  .registr__cell {
    padding: 18px 16px 20px;
    gap: 6px;
    border-left: none;
    border-top: none;
  }

  .registr__cell:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .registr__cell:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .registr__label {
    font-size: 0.75rem;
  }

  .registr__value {
    font-size: 1.125rem;
  }
}

/* O farme */
.o-farme {
  padding-top: 176px;
}

.o-farme__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 64px;
  align-items: start;
}

.o-farme__content {
  grid-column: 1 / 7;
}

.o-farme__figure {
  grid-column: 7 / 13;
  margin: 0;
}

.o-farme__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.o-farme__figcaption {
  margin-top: 12px;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .o-farme {
    padding-top: 120px;
  }

  .o-farme__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .o-farme__content,
  .o-farme__figure {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .o-farme {
    padding-top: 64px;
  }

  .o-farme__figcaption {
    margin-top: 10px;
    font-size: 0.8125rem;
  }
}

/* Chov skotu */
.chov {
  background-color: var(--surface);
}

.chov__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 64px;
  align-items: center;
}

.chov__figure {
  grid-column: 1 / 7;
  margin: 0;
}

.chov__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-position: 30% 50%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.chov__content {
  grid-column: 7 / 13;
}

@media (max-width: 900px) {
  .chov__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  /* Fotka až pod textem, ať nenavazuje přímo na fotku z O farmě */
  .chov__figure {
    order: 2;
    width: 100%;
  }

  .chov__content {
    order: 1;
    width: 100%;
  }
}

/* Fotka se zelenou září kolem a zeleným dozníváním na okrajích (parallax) */
.photo-frame {
  margin: 72px 0 0;
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(47, 72, 42, 0.35),
    0 0 40px 6px rgba(47, 72, 42, 0.45),
    0 0 90px 16px rgba(47, 72, 42, 0.22);
}

.photo-frame__window {
  position: relative;
  height: clamp(220px, 26vw, 320px);
  overflow: clip;
  border-radius: var(--radius-md);
  background-color: var(--spruce-900);
}

.photo-frame__media {
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 180%;
}

/* Zelené doznívání na okrajích fotky */
.photo-frame__window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 70px 18px rgba(47, 72, 42, 0.78);
}

.photo-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 66%;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .photo-frame__media {
      animation: photo-frame-parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

/* Fotka na konci Kontaktu, těsně před patičkou; menší mezera mezi Obilovinami a Kontaktem */
.section.rostlinna-vyroba {
  padding-bottom: 64px;
}

.section.kontakt {
  padding-top: 64px;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .section.rostlinna-vyroba {
    padding-bottom: 48px;
  }

  .section.kontakt {
    padding-top: 48px;
  }
}

@media (max-width: 640px) {
  .section.rostlinna-vyroba {
    padding-bottom: 40px;
  }

  .section.kontakt {
    padding-top: 40px;
    padding-bottom: 48px;
  }
}

@keyframes photo-frame-parallax {
  from {
    transform: translate3d(0, -18%, 0);
  }
  to {
    transform: translate3d(0, 18%, 0);
  }
}

@media (max-width: 640px) {
  .photo-frame {
    margin-top: 40px;
  }

  .photo-frame__window::after {
    box-shadow: inset 0 0 44px 10px rgba(47, 72, 42, 0.78);
  }

  .photo-frame__window {
    height: 220px;
  }
}

/* Rostlinna vyroba */
.rostlinna-vyroba__header {
  max-width: 720px;
}

.rostlinna-vyroba__gallery {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 16px;
  height: 460px;
  margin-top: 40px;
}

.rostlinna-vyroba__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.gallery-img-2 {
  object-position: 45% 60%;
}

/* Tile component */
.tile-grid {
  list-style: none;
  margin: 40px 0 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(31, 42, 28, 0.05), 0 8px 24px -14px rgba(31, 42, 28, 0.18);
  min-width: 0;
  overflow-wrap: break-word;
}

.tile p {
  max-width: none;
}

.tile__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: rgba(216, 192, 140, 0.28);
  color: var(--spruce-900);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.tile__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.tile__body {
  min-width: 0;
}

.tile__label {
  display: block;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-muted);
  margin: 0 0 4px 0;
}

.tile__value {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.tile__title {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.tile__text {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* Facts tile grid */
.tile-grid--facts {
  grid-template-columns: repeat(3, 1fr);
}

/* Activities tile grid */
.tile-grid--activities {
  margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .rostlinna-vyroba__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: auto;
    margin-top: 32px;
  }

  .rostlinna-vyroba__gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

  .gallery-img-1 {
    object-position: 50% 60%;
  }

  .gallery-img-2 {
    object-position: 50% 62%;
  }

  .tile-grid--facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile-grid--facts .tile--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .tile-grid--facts .tile--wide .tile__icon {
    margin-bottom: 0;
  }

  .tile-grid--activities {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Lichá poslední dlaždice přes celou šířku */
  .tile-grid--activities > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .rostlinna-vyroba__gallery {
    grid-template-columns: 1fr;
  }

  .rostlinna-vyroba__gallery img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 400px) {
  .tile {
    padding: 16px 14px 18px;
  }

  .tile__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .tile__title {
    font-size: 1rem;
  }

  .tile__text {
    font-size: 0.875rem;
  }
}

/* Kontakt */
.kontakt__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.kontakt__info .lead-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 32px 0;
}

.contact-address {
  font-style: normal;
}

.contact-name {
  font-family: "Zilla Slab", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--spruce-900);
  margin-bottom: 4px;
}

.contact-role {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Contact tile grid & map card */
.tile-grid--contact {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.tile-grid__item {
  display: flex;
  min-width: 0;
}

.tile-grid__item > .tile,
.tile-grid__item > .map-card {
  width: 100%;
}

.tile-grid__item--wide {
  grid-column: 1 / -1;
}

.tile--row {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.tile--row .tile__icon {
  margin-bottom: 0;
}

.tile--link {
  text-decoration: none;
  color: inherit;
  width: 100%;
  transition: transform 180ms var(--ease);
}

.tile--link:hover {
  text-decoration: none;
}

.tile--link:active {
  transform: scale(0.98);
}

/* Telefon a e-mail: oranžové a podtržené, ať je jasné, že se na ně dá kliknout */
.tile--link .tile__value {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .tile--link:hover .tile__value {
    color: var(--rust-hover);
    text-decoration-thickness: 2px;
  }
}

.tile--link:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.tile-grid--contact .tile__value {
  overflow-wrap: anywhere;
}

.map-card {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(31, 42, 28, 0.05), 0 8px 24px -14px rgba(31, 42, 28, 0.18);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms var(--ease);
}

.map-card:hover {
  text-decoration: none;
}

.map-card:active {
  transform: scale(0.98);
}

.map-card:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.map-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.map-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
  transition: transform 400ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .map-card:hover .map-card__media img {
    transform: scale(1.03);
  }
}

.map-card__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  color: var(--rust);
  filter: drop-shadow(0 2px 3px rgba(31, 42, 28, 0.35));
  pointer-events: none;
  display: flex;
  line-height: 0;
}

.map-card__pin svg {
  width: 40px;
  height: 40px;
  display: block;
}

.map-card__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
}

.map-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.map-card__address {
  display: block;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 2px;
}

.map-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--rust);
  white-space: nowrap;
  min-height: 44px;
  flex-shrink: 0;
  transition: color 180ms var(--ease);
}

.map-card__cta svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .map-card:hover .map-card__cta {
    color: var(--rust-hover);
  }
}

.map-card__credit {
  position: absolute;
  right: 8px;
  top: 8px;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.3;
  padding: 2px 6px;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--ink-muted);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 400px) {
  .map-card__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.contact-card {
  position: sticky;
  top: 104px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 40px;
}

@media (max-width: 900px) {
  .kontakt__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-card {
    position: static;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .contact-card {
    padding: 24px 20px;
    width: 100%;
  }
}

/* Contact form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.label-optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.form-input {
  height: 50px;
}

.form-textarea {
  min-height: 140px;
  height: auto;
  resize: vertical;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(155, 79, 44, 0.22);
  outline: none;
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--rust);
}

.form-input[aria-invalid="true"]:focus,
.form-textarea[aria-invalid="true"]:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(155, 79, 44, 0.22);
}

.form-error {
  display: none;
  font-family: "Figtree", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rust-hover);
  margin-top: 6px;
}

.form-error.is-visible {
  display: block;
}

.btn--submit {
  width: 100%;
  margin-top: 8px;
}

.btn--submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-family: "Figtree", sans-serif;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin: 12px 0 0 0;
  text-align: center;
}

.form-status {
  font-family: "Figtree", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 1.5em;
  margin: 12px 0 0 0;
  text-align: center;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background-color: var(--spruce-900);
  padding: 72px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Figtree", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  width: 150px;
  height: 120px;
  fill: currentColor;
  color: var(--surface);
  display: block;
}

.footer-brand__link {
  display: inline-block;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.footer-brand__link:hover {
  text-decoration: none;
}

.footer-brand__text {
  margin: 20px 0 0;
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.875rem;
}

.footer-col__title {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--straw);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
  text-transform: none;
  max-width: none;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease);
}

.footer-list a:hover {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer-list a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.52);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding-bottom: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-logo {
    width: 120px;
    height: 96px;
  }

  .footer-brand__text {
    margin-top: 14px;
  }

  .footer-col__title {
    margin-bottom: 6px;
  }

  .footer-list {
    gap: 0;
  }

  .footer-list a {
    min-height: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }
}

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

/* Animations */
html.js .hero__image {
  transform: scale(1.06);
  transition: transform 1600ms var(--ease);
}

html.js.is-ready .hero__image {
  transform: scale(1);
}

html.js:not(.is-ready) .hero__eyebrow,
html.js:not(.is-ready) .hero__title,
html.js:not(.is-ready) .hero__lead,
html.js:not(.is-ready) .hero__actions {
  opacity: 0;
  transform: translateY(16px);
}

html.js .hero__eyebrow,
html.js .hero__title,
html.js .hero__lead,
html.js .hero__actions {
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

html.js.is-ready .hero__eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

html.js.is-ready .hero__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}

html.js.is-ready .hero__lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 160ms;
}

html.js.is-ready .hero__actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 240ms;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

html.js .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

html.js .tile-grid.reveal {
  opacity: 1;
  transform: none;
}

html.js .tile-grid > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

html.js .tile-grid.is-revealed > *,
html.js .kontakt__info.is-revealed .tile-grid > * {
  opacity: 1;
  transform: translateY(0);
}

html.js .tile-grid.is-revealed > :nth-child(1),
html.js .kontakt__info.is-revealed .tile-grid > :nth-child(1) {
  transition-delay: 0ms;
}

html.js .tile-grid.is-revealed > :nth-child(2),
html.js .kontakt__info.is-revealed .tile-grid > :nth-child(2) {
  transition-delay: 70ms;
}

html.js .tile-grid.is-revealed > :nth-child(3),
html.js .kontakt__info.is-revealed .tile-grid > :nth-child(3) {
  transition-delay: 140ms;
}

html.js .tile-grid.is-revealed > :nth-child(4),
html.js .kontakt__info.is-revealed .tile-grid > :nth-child(4) {
  transition-delay: 210ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  html.js .hero__image,
  html.js:not(.is-ready) .hero__image {
    transform: none !important;
  }

  html.js:not(.is-ready) .hero__eyebrow,
  html.js:not(.is-ready) .hero__title,
  html.js:not(.is-ready) .hero__lead,
  html.js:not(.is-ready) .hero__actions,
  html.js .reveal,
  html.js .tile-grid > *,
  html.js .tile-grid .tile {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-nav,
  .site-nav.is-open {
    transform: none !important;
    transition: none !important;
  }

  .site-nav .nav-item,
  .site-nav.is-open .nav-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .menu-toggle__bar {
    transition: none !important;
  }
}

/* iOS by jinak z IČO udělal odkaz na telefon (oranžový, podtržený) */
a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
}
