/* LaBara – one-page site. HTML5 + CSS3 only, no build step.
   Values come from the Figma file LABARA (Screens / Section 1, 1920 px desktop reference). */

/* ==========================================================================
   Fonts (self-hosted, SIL Open Font License – see assets/fonts/OFL-*.txt)
   ========================================================================== */

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/cormorant-var-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/cormorant-var-latin.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: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-var-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-var-latin.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: "Cormorant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-var-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-var-latin.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: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-400-latin.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: "Prompt";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("assets/fonts/prompt-200-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("assets/fonts/prompt-200-latin.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: "Prompt";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/prompt-300-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/prompt-300-latin.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: "Prompt";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/prompt-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/prompt-400-latin.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: "Prompt";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/prompt-500-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/prompt-500-latin.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;
}

/* ==========================================================================
   Design tokens (Figma: LaBara · Primitives / Semantic / Dimensions)
   ========================================================================== */

:root {
  /* Primitives */
  --color-cream: #fff9f5;
  --color-taupe: #917d70;
  --color-photo-tint: #483a31;
  --color-motif: #b19988;
  --color-charcoal: #454545;
  --color-orange-accent: #ff7300;
  --color-white: #ffffff;
  --color-cyan-submit: #36c3ce;
  --color-orange-action: #ff6700;
  --color-ink-support: #48403a;
  --color-cream-card: #fffdfb;
  --color-ink-body: #483d36;

  /* Semantic */
  --color-background-primary: var(--color-cream);
  --color-background-secondary: var(--color-taupe);
  --color-background-footer: var(--color-charcoal);
  --color-background-panel: var(--color-white);
  --color-overlay-photo: rgb(72 58 49 / 0.59);
  --color-brand-accent: var(--color-orange-accent);
  --color-border-inverse: var(--color-white);
  --color-action-primary: var(--color-orange-action);
  --color-action-submit: var(--color-cyan-submit);
  --color-text-primary: var(--color-taupe);
  --color-text-supporting: var(--color-ink-support);
  --color-text-body: var(--color-ink-body);
  --color-text-inverse: var(--color-white);
  --color-text-placeholder: rgb(145 125 112 / 0.35);
  --color-surface-card: var(--color-cream-card);
  --color-surface-statistic: var(--color-orange-action);

  /* Radii and borders */
  --radius-card: 38px;
  --radius-contact-panel: 20px;
  --radius-statistic: 18px;
  --radius-hero-button: 14px;
  --radius-control: 12px;
  --border-hairline: 1px;

  /* Effect styles */
  --shadow-image: 3px 4px 7.5px rgb(0 0 0 / 0.25);
  --shadow-statistic: 3px 4px 10.8px rgb(0 0 0 / 0.25);
  --shadow-accommodation: 5px 4px 15.4px rgb(0 0 0 / 0.25);
  --shadow-submit: 2px 4px 8.6px rgb(0 0 0 / 0.25);

  /* Fixed component sizes */
  --size-button-hero-height: 56px;
  --size-input-height: 59px;
  --size-textarea-height: 143px;
  --size-icon-container: calc(86 * var(--k));

  /* Layout: 1513 px content width inside a 1920 px desktop reference */
  --content-width: 1513px;
  --gutter: 24px;
  --header-height: 64px;
  --k: 1px; /* one Figma px; becomes 100vw / 1920 on large screens */

  /* Font families */
  --font-display: "Cormorant", "Times New Roman", serif;
  --font-body: "Prompt", "Segoe UI", system-ui, sans-serif;
  --font-nav: "Poppins", "Segoe UI", system-ui, sans-serif;

  /* Type scale: mobile minimum → exact Figma desktop size (reached at 1440 px) */
  --fs-section: clamp(32px, calc(32px + 18 * (100vw - 375px) / 1065), 50px);
  --fs-statistic: clamp(36px, calc(36px + 9 * (100vw - 375px) / 1065), 45px);
  --fs-activity: clamp(26px, calc(26px + 14 * (100vw - 375px) / 1065), 40px);
  --fs-hero: clamp(24px, calc(24px + 8 * (100vw - 375px) / 1065), 32px);
  --fs-feature: clamp(22px, calc(22px + 8 * (100vw - 375px) / 1065), 30px);
  --fs-contact: clamp(20px, calc(20px + 4 * (100vw - 375px) / 1065), 24px);
  --fs-story: clamp(17px, calc(17px + 5 * (100vw - 375px) / 1065), 22px);
  --fs-body: clamp(16px, calc(16px + 4 * (100vw - 375px) / 1065), 20px);
  --fs-detail: clamp(16px, calc(16px + 2 * (100vw - 375px) / 1065), 18px);
  --fs-supporting: 16px;
  --fs-small: 14px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }
}

/* Large screens: scale with the 1920 px design (value × 100vw / 1920),
   never below a readable minimum, never above the Figma size */
@media (min-width: 1280px) {
  :root {
    --k: min(1px, 100vw / 1920);
    --fs-section: clamp(36px, calc(50 * 100vw / 1920), 50px);
    --fs-statistic: clamp(36px, calc(45 * 100vw / 1920), 45px);
    --fs-activity: clamp(28px, calc(40 * 100vw / 1920), 40px);
    --fs-hero: clamp(22px, calc(32 * 100vw / 1920), 32px);
    --fs-feature: clamp(22px, calc(30 * 100vw / 1920), 30px);
    --fs-contact: clamp(20px, calc(24 * 100vw / 1920), 24px);
    --fs-story: clamp(16px, calc(22 * 100vw / 1920), 22px);
    --fs-body: clamp(15px, calc(20 * 100vw / 1920), 20px);
    --fs-detail: clamp(13px, calc(18 * 100vw / 1920), 18px);
    --fs-supporting: clamp(13px, calc(16 * 100vw / 1920), 16px);
  }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: normal; /* Figma line-height AUTO */
  overflow-x: clip;
}

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

/* Let CSS aspect-ratio win over the width/height attributes */
img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.container {
  width: min(var(--content-width), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* 1513 / 1920 = 78.8 %: same side margins as the design at any large width */
@media (min-width: 1280px) {
  .container {
    width: min(var(--content-width), 100vw * 1513 / 1920);
  }
}

/* Every anchor target clears the sticky header on small screens */
section[id] {
  scroll-margin-top: var(--header-height);
}

@media (min-width: 1024px) {
  /* Clear the sticky bar: 80 px menu + 2 × 13 px padding */
  section[id] {
    scroll-margin-top: calc(106 * var(--k));
  }

  /* The hero sits under the bar at the top of the page */
  #domov {
    scroll-margin-top: 0;
  }
}

/* ==========================================================================
   Shared text styles (Figma text styles)
   ========================================================================== */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  text-transform: uppercase;
  margin-bottom: calc(6 * var(--k));
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-section);
  line-height: 1.21;
  text-transform: uppercase;
}

.section-intro {
  font-size: var(--fs-body);
  font-weight: 300;
  margin-top: calc(19 * var(--k));
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-header--center .section-intro {
  max-width: 41.75em; /* 835 px at 20 px */
  margin-inline: auto;
}

.section-header--inverse {
  color: var(--color-text-inverse);
}

.upper {
  text-transform: uppercase;
}

.photo {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-image);
  object-fit: cover;
}

/* Decorative brand motif (Figma: Decoration/Brand motif) */
.motif {
  position: absolute;
  width: 594px;
  height: 594px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   Buttons (Figma: LaBara/Button — Primary / Secondary / Submit)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(56 * var(--k));
  padding-inline: calc(37 * var(--k));
  border: 0;
  border-radius: calc(14 * var(--k));
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s, background-color 0.2s;
}

.btn--primary {
  min-width: calc(292 * var(--k));
  background: var(--color-action-primary);
}

.btn--secondary {
  min-width: calc(254 * var(--k));
  background: transparent;
  box-shadow: inset 0 0 0 var(--border-hairline) var(--color-border-inverse);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--secondary:hover {
  background: rgb(255 255 255 / 0.1);
}

.btn--submit {
  width: 220px;
  height: var(--size-input-height);
  border-radius: var(--radius-control);
  background: var(--color-action-submit);
  box-shadow: var(--shadow-submit);
  font-weight: 500;
  font-size: 20px;
}

.btn--submit:disabled {
  cursor: not-allowed;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.nav-link {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: var(--fs-small);
  line-height: 19px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  text-underline-offset: 5px;
}

/* Figma keeps "Lokalita" in Prompt (Navigation/Link Typeface=Prompt) */
.nav-link--prompt {
  font-family: var(--font-body);
}

.nav-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.menu-anchor {
  position: fixed;
  top: 0;
  left: 0;
}

/* Small screens: sticky bar + CSS-only menu (opened by #menu:target) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background: var(--color-background-footer);
  color: var(--color-text-inverse);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--gutter);
}

.brand img {
  width: 64px;
  height: auto;
}

.menu-toggle,
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-family: var(--font-nav);
  font-size: var(--fs-small);
  text-transform: uppercase;
  text-decoration: none;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -7px;
}

.menu-toggle__bars::after {
  top: 7px;
}

.main-nav {
  display: none;
}

#menu:target ~ .main-nav {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 20px var(--gutter) 40px;
  background: var(--color-background-footer);
  overflow-y: auto;
}

.menu-close {
  align-self: flex-end;
}

.main-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: calc(24 * var(--k));
}

.main-nav__list .nav-link {
  font-size: 20px;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  /* Desktop: sticky bar holding the 1002 × 80 Figma menu.
     Fallback: solid charcoal bar. With scroll-driven animations (below) it starts
     transparent 26 px from the top, exactly as in Figma, and turns solid on scroll. */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    padding-block: calc(13 * var(--k));
    background: var(--color-background-footer);
  }

  .site-header__inner {
    height: calc(80 * var(--k));
  }

  .site-header__inner {
    position: relative;
    width: calc(1002 * var(--k));
    margin-inline: auto;
    padding: 0;
    display: block;
  }

  .brand {
    position: absolute;
    top: 0;
    left: calc(462 * var(--k));
  }

  .brand img {
    width: calc(107 * var(--k));
  }

  .menu-toggle,
  .menu-close {
    display: none;
  }

  .main-nav,
  #menu:target ~ .main-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
  }

  .main-nav__list {
    display: block;
    margin: 0;
  }

  /* Each label is centered in a 159 px box, as in Figma */
  /* Labels centered vertically on the 80 px logo (Figma has them 10 px lower, at 40 px) */
  .main-nav__list li {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(159 * var(--k));
    text-align: center;
  }

  .main-nav__list li:nth-child(1) { left: 0; }
  .main-nav__list li:nth-child(2) { left: calc(140 * var(--k)); }
  .main-nav__list li:nth-child(3) { left: calc(282 * var(--k)); }
  .main-nav__list li:nth-child(4) { left: calc(590 * var(--k)); }
  .main-nav__list li:nth-child(5) { left: calc(713 * var(--k)); }
  .main-nav__list li:nth-child(6) { left: calc(843 * var(--k)); }

  .main-nav__list .nav-link {
    font-size: max(11px, calc(14 * var(--k)));
    line-height: calc(19 * var(--k));
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(calc(100svh - var(--header-height)), 860px);
  padding: 64px var(--gutter) 120px;
  overflow: hidden;
  color: var(--color-text-inverse);
  text-align: center;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Linear overlay: #000 0% → #E0762F 32% → #000 79%, paint opacity 61% */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, #000 0%, #e0762f 32%, #000 79%);
  opacity: 0.61;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(14 * var(--k));
  font-weight: inherit;
}

.hero__wordmark {
  width: min(calc(399 * var(--k)), 70vw);
  height: auto;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 1.21;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 31.5em; /* 630 px at 20 px */
  margin: calc(25 * var(--k)) auto 0;
  font-size: var(--fs-body);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px calc(29 * var(--k));
  margin-top: calc(66 * var(--k));
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(18 * var(--k));
  font-size: max(11px, calc(14 * var(--k)));
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.hero__scroll img {
  width: calc(20 * var(--k));
  height: auto;
}

@media (max-width: 479px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn--primary,
  .btn--secondary {
    min-width: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .hero {
    min-height: clamp(760px, 66vw, 950px);
    padding-top: 140px;
  }
}

@media (min-width: 1440px) {
  /* Desktop reference: 1267 px tall at 1920; content starts at 42 % of the height */
  .hero {
    display: block;
    height: clamp(720px, 66vw, 1267px);
    min-height: 0;
    padding: 0;
  }

  .hero__content {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
  }

  /* Figma: chevron ends 178 px above the hero bottom (14 %) */
  .hero__scroll {
    bottom: 14%;
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  position: relative;
  overflow: hidden;
  padding-block: 72px;
}

.section--taupe {
  background: var(--color-background-secondary);
}

/* ---------- Náš príbeh ---------- */

.motif--story {
  top: -193px;
  left: -321px;
  opacity: 0.1;
}

.story__grid {
  position: relative;
  display: grid;
  gap: 48px;
}

.story__photo {
  position: relative;
  max-width: 632px;
}

.story__photo .photo {
  width: 100%;
  aspect-ratio: 1;
}

.stat {
  position: absolute;
  right: calc(-38 * var(--k));
  bottom: calc(-39 * var(--k));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(165 * var(--k));
  height: calc(140 * var(--k));
  border-radius: calc(18 * var(--k));
  background: var(--color-surface-statistic);
  box-shadow: var(--shadow-statistic);
  color: var(--color-text-inverse);
  text-transform: uppercase;
}

.stat__value {
  font-weight: 500;
  font-size: max(28px, calc(45 * var(--k)));
  line-height: 1.3;
}

.stat__label {
  font-weight: 300;
  font-size: max(10px, calc(14 * var(--k)));
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 24px calc(40 * var(--k));
  margin-top: calc(86 * var(--k));
}

.highlight img {
  width: auto;
  height: calc(50 * var(--k));
  object-fit: contain;
  object-position: left bottom;
}

.highlight:nth-child(2) .highlight__text {
  max-width: calc(204 * var(--k));
}

.highlight:first-child img {
  height: calc(56 * var(--k));
  margin-top: calc(-6 * var(--k));
}

.highlight__title {
  margin-top: calc(8 * var(--k));
  font-weight: 400;
  font-size: max(14px, calc(20 * var(--k)));
  color: var(--color-text-primary);
}

.highlight__text {
  max-width: calc(189 * var(--k));
  margin-top: 0;
  font-weight: 200;
  font-size: max(12px, calc(16 * var(--k)));
  color: var(--color-text-supporting);
}

.story__text .section-title {
  max-width: 12.88em; /* 644 px at 50 px */
}

.story__body {
  max-width: 34.4em; /* 757 px at 22 px */
  margin-top: calc(36 * var(--k));
  font-weight: 200;
  font-size: var(--fs-story);
  color: var(--color-text-body);
  text-align: justify;
}

.story__body p + p {
  margin-top: 1lh;
}

@media (max-width: 1279px) {
  .story__photo {
    margin-right: 38px;
  }
}

@media (max-width: 767px) {
  .story__body {
    text-align: left;
  }
}

@media (max-width: 599px) {
  .highlights {
    grid-template-columns: 1fr;
  }

  .stat {
    right: -16px;
    bottom: -24px;
    width: 132px;
    height: 112px;
  }

  .story__photo {
    margin-right: 16px;
  }
}

@media (min-width: 1280px) {
  .story {
    padding-block: calc(79 * var(--k)) calc(140 * var(--k));
  }

  .story__grid {
    grid-template-columns: minmax(0, 632fr) minmax(0, 757fr);
    column-gap: clamp(60px, 7.1vw, 106px);
    align-items: start;
  }

  .story__media {
    margin-top: calc(45 * var(--k));
  }

  .story__text {
    padding-top: 0;
  }

  .story__text .eyebrow,
  .story__text .section-title {
    margin-left: 16px;
  }
}

@media (min-width: 1280px) {
  /* Figma: highlight columns start at 0 / 230 / 479 px and may extend past the photo */
  .highlights {
    grid-template-columns: calc(230 * var(--k)) calc(249 * var(--k)) calc(218 * var(--k));
    column-gap: 0;
    width: max-content;
  }
}

/* ---------- Ubytovanie ---------- */

.motif--accommodation {
  top: 391px;
  right: -228px;
  opacity: 0.2;
}

.section-title--narrow {
  max-width: 14.28em; /* 714 px at 50 px */
  margin-inline: auto;
}

.house-grid {
  position: relative;
  display: grid;
  gap: 40px;
  margin-top: calc(48 * var(--k));
}

.house-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: var(--color-surface-card);
  box-shadow: var(--shadow-accommodation);
  overflow: hidden;
}

.house-card__photo {
  width: 100%;
  aspect-ratio: 707 / 320;
  object-fit: cover;
}

.house-card__body {
  position: relative;
  flex: 1;
  min-height: calc(312 * var(--k));
  padding: calc(25 * var(--k)) calc(43 * var(--k)) calc(40 * var(--k));
  color: var(--color-text-primary);
}

/* Figma: the small motif sits in the middle of the details panel */
.house-card__motif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(232 * var(--k));
  height: calc(232 * var(--k));
  max-width: none;
  opacity: 0.06;
  pointer-events: none;
}

.house-card__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-feature);
  line-height: 1.21;
  text-transform: uppercase;
}

.house-card__list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  column-gap: calc(24 * var(--k));
  margin-top: calc(20 * var(--k));
  font-weight: 400;
  font-size: var(--fs-detail);
}

/* Margins instead of row-gap, so the zero-height line breaks add no space */
.house-card__list li {
  margin-bottom: calc(16 * var(--k));
}

.house-card__list .break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .house-card__body {
    padding: calc(24 * var(--k)) calc(24 * var(--k)) calc(32 * var(--k));
    min-height: 0;
  }

  .house-card__list {
    column-gap: 20px;
  }

  .house-card__list li {
    margin-bottom: calc(10 * var(--k));
  }
}

@media (min-width: 1024px) {
  .accommodation {
    padding-block: calc(68 * var(--k)) calc(106 * var(--k));
  }

  .house-grid {
    grid-template-columns: repeat(2, minmax(0, 707px));
    justify-content: space-between;
    gap: clamp(40px, 5.2vw, 99px);
    margin-top: calc(59 * var(--k));
  }
}

/* ---------- Vybavenie ---------- */

.motif--amenities {
  top: 413px;
  left: -224px;
  opacity: 0.08;
}

.photo-cards {
  position: relative;
  display: grid;
  gap: 40px;
  margin-top: calc(43 * var(--k));
}

.photo-card {
  position: relative;
  aspect-ratio: 707 / 580;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-image);
  overflow: hidden;
  color: var(--color-text-inverse);
}

.photo-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom fade on the photo, paint opacity 20 % */
.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.photo-card--pool::before {
  background: linear-gradient(to bottom, transparent 60%, #000 100%);
}

.photo-card--wine::before {
  background: linear-gradient(to bottom, transparent 43%, #000 60%);
}

/* Dark text band, 161 px tall at desktop, black at 46 % */
.photo-card__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: calc(161 * var(--k));
  padding: calc(22 * var(--k)) calc(45 * var(--k)) calc(24 * var(--k));
  background: rgb(0 0 0 / 0.46);
}

.photo-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.photo-card__head img {
  flex: none;
}

.photo-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-feature);
  line-height: 1.21;
}

.photo-card__text {
  max-width: 617px;
  margin-top: calc(10 * var(--k));
  font-weight: 300;
  font-size: var(--fs-body);
}

.features {
  position: relative;
  display: grid;
  gap: 32px;
  margin-top: calc(61 * var(--k));
}

.feature {
  display: grid;
  grid-template-columns: calc(44 * var(--k)) minmax(0, 1fr);
  column-gap: calc(24 * var(--k));
  align-items: start;
  padding-left: calc(45 * var(--k));
  color: var(--color-text-primary);
}

.feature__icon {
  justify-self: center;
  width: auto;
  height: calc(44 * var(--k)); /* Figma: sport icon 44 × 44 */
}

.feature:first-child .feature__icon {
  height: calc(54 * var(--k)); /* Figma: tree icon 38 × 54 */
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-feature);
  line-height: 1.21;
  text-transform: uppercase;
}

.feature__text {
  max-width: 25.8em; /* 516 px at 20 px */
  margin-top: calc(12 * var(--k));
  font-weight: 300;
  font-size: var(--fs-body);
}

.equipment {
  position: relative;
  margin-top: calc(48 * var(--k));
  padding: calc(26 * var(--k)) calc(24 * var(--k)) calc(30 * var(--k));
  border-radius: var(--radius-card);
  background: var(--color-background-secondary);
  color: var(--color-text-inverse);
}

.equipment__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-activity);
  line-height: 1.21;
  text-transform: uppercase;
  text-align: center;
}

.equipment__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 24px;
  margin-top: calc(20 * var(--k));
}

.amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 33.333%;
  text-align: center;
}

.amenity__icon {
  display: grid;
  place-items: center;
  width: var(--size-icon-container);
  height: var(--size-icon-container);
  border-radius: 50%;
  background: var(--color-background-panel);
}

/* Glyphs keep their Figma width relative to the 86 px circle */
.amenity__icon img {
  height: auto;
}

.amenity:nth-child(1) .amenity__icon img { width: calc(35 / 86 * 100%); }
.amenity:nth-child(2) .amenity__icon img { width: calc(42 / 86 * 100%); }
.amenity:nth-child(3) .amenity__icon img { width: calc(38 / 86 * 100%); }
.amenity:nth-child(4) .amenity__icon img { width: calc(29 / 86 * 100%); }
.amenity:nth-child(5) .amenity__icon img { width: calc(39 / 86 * 100%); }
.amenity:nth-child(6) .amenity__icon img { width: calc(45 / 86 * 100%); }

.amenity__label {
  font-weight: 300;
  font-size: var(--fs-body);
}

@media (max-width: 599px) {
  .feature {
    padding-left: 0;
  }

  .amenity {
    width: 50%;
  }

  .photo-card {
    aspect-ratio: auto;
    min-height: 420px;
  }

  .photo-card__band {
    padding: calc(20 * var(--k)) calc(24 * var(--k)) calc(22 * var(--k));
  }
}

@media (min-width: 1024px) {
  .amenities-section {
    padding-block: calc(79 * var(--k)) calc(81 * var(--k));
  }

  .photo-cards,
  .features {
    grid-template-columns: repeat(2, minmax(0, 707px));
    justify-content: space-between;
    gap: clamp(40px, 5.2vw, 99px);
  }

  .features .feature:last-child {
    padding-left: calc(45 * var(--k));
  }

  .equipment {
    min-height: calc(249 * var(--k));
  }

  /* Figma: heading box 794 px wide, 117 px from the panel's left edge */
  /* Figma: heading text starts 129 px from the panel's left edge (24 px of it is panel padding) */
  .equipment__title {
    margin-left: calc(105 * var(--k));
    text-align: left;
  }

  .equipment__list {
    flex-wrap: nowrap;
    padding-right: 40px;
  }

  .amenity {
    flex: 1 1 0;
    width: auto;
    max-width: calc(203 * var(--k));
  }
}

/* ---------- Lokalita ---------- */

.location {
  background:
    linear-gradient(var(--color-overlay-photo), var(--color-overlay-photo)),
    url("assets/images/lokalita.jpg") center / cover no-repeat;
  color: var(--color-text-inverse);
}

.location__intro {
  display: grid;
  gap: 40px;
}

.section-title--location {
  max-width: 12.44em; /* 622 px at 50 px */
}

.location .section-intro {
  max-width: 36.45em; /* 729 px at 20 px */
}

.info-panel {
  display: grid;
  gap: calc(20 * var(--k));
  margin-top: calc(37 * var(--k));
  padding: calc(38 * var(--k)) calc(24 * var(--k)) calc(32 * var(--k)) calc(18 * var(--k));
  border-radius: var(--radius-card);
  background: var(--color-background-panel);
  color: var(--color-text-primary);
}

.info-row {
  display: grid;
  grid-template-columns: calc(42 * var(--k)) minmax(0, 1fr);
  column-gap: calc(16 * var(--k));
  align-items: start;
}

/* Figma: icons sit beside the title line, at their native size */
.info-row img {
  justify-self: center;
  height: auto;
}

.info-row:nth-child(1) img { width: calc(26 * var(--k)); margin-top: calc(7 * var(--k)); }
.info-row:nth-child(2) img { width: calc(42 * var(--k)); margin-top: calc(13 * var(--k)); }
.info-row:nth-child(3) img { width: calc(35 * var(--k)); margin-top: calc(10 * var(--k)); }

.info-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-feature);
  line-height: 1.21;
  text-transform: uppercase;
}

.info-row__text {
  margin-top: calc(2 * var(--k));
  font-weight: 300;
  font-size: var(--fs-body);
}

.map {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-image);
  overflow: hidden;
  aspect-ratio: 737 / 632;
  background: var(--color-background-panel);
}

.map__frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.activities {
  display: grid;
  gap: calc(38 * var(--k)) calc(42 * var(--k));
  margin-top: calc(61 * var(--k));
}

.activity {
  display: grid;
  grid-template-columns: clamp(140px, 30vw, 307px) minmax(0, 1fr);
  column-gap: clamp(20px, 2.7vw, 39px);
  align-items: center;
}

.activity__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-image);
}

.activity__text {
  max-width: 600px;
}

.activity__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-activity);
  line-height: 1.21;
  text-transform: uppercase;
}

.activity__text p {
  margin-top: calc(8 * var(--k));
  font-weight: 300;
  font-size: var(--fs-body);
}

.activity--wide .activity__image {
  aspect-ratio: 734 / 307;
}

@media (max-width: 599px) {
  .activity {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .activity__image {
    max-width: 307px;
  }

  .activity--wide .activity__image {
    max-width: 100%;
  }

  .info-panel {
    padding: calc(28 * var(--k)) calc(20 * var(--k)) calc(24 * var(--k)) calc(12 * var(--k));
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .activity--wide {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
}

@media (min-width: 1024px) {
  .location {
    padding-block: calc(66 * var(--k)) calc(109 * var(--k));
  }

  .location__intro {
    grid-template-columns: minmax(0, 729fr) minmax(0, 737fr);
    column-gap: 47px;
  }

  .map {
    aspect-ratio: auto;
    margin-top: calc(17 * var(--k));
  }

}

@media (min-width: 1440px) {
  .activities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Figma item: 307 image + 39 gap + 393 text, kept proportional */
  .activity {
    grid-template-columns: min(307px, 42%) minmax(0, 1fr);
    column-gap: clamp(20px, calc(39 * 100vw / 1920), 39px);
  }

  .activity__text {
    max-width: clamp(240px, calc(393 * var(--k)), 393px);
  }

  .activity--wide {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: calc(42 * var(--k));
    margin-top: calc(7 * var(--k));
  }

  .activity--wide .activity__image {
    max-width: 734px;
  }

  .activity--wide .activity__text {
    max-width: 783px;
  }
}

/* ---------- Galéria ---------- */

.motif--gallery {
  top: 373px;
  left: -256px;
  opacity: 0.2;
}

.gallery {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: calc(48 * var(--k));
}

.gallery__main {
  width: 100%;
  aspect-ratio: 632 / 851;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.3vw, 37px) clamp(12px, 2.1vw, 33px);
}

.gallery__grid .photo {
  width: 100%;
  aspect-ratio: 1;
}

@media (max-width: 1023px) {
  .gallery__main {
    aspect-ratio: 4 / 3;
  }
}

/* Phones: one image per row */
@media (max-width: 599px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery__grid .photo {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  .gallery-section {
    padding-block: calc(79 * var(--k)) calc(129 * var(--k));
  }

  .gallery {
    grid-template-columns: minmax(0, 632fr) minmax(0, 843fr);
    column-gap: 35px;
  }

  /* Portrait matches the height of the 3 × 3 grid */
  .gallery__main {
    height: 100%;
    aspect-ratio: auto;
  }
}

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

.contact {
  color: var(--color-text-primary);
}

.motif--contact {
  top: 130px;
  right: -234px;
  opacity: 0.08;
}

.contact__grid {
  position: relative;
  display: grid;
  gap: 48px;
}

.contact__info .section-title {
  margin-top: 0;
}

.contact__intro {
  max-width: 30.85em; /* 617 px at 20 px */
  margin-top: calc(11 * var(--k));
  font-weight: 300;
  font-size: var(--fs-body);
}

.contact-item {
  margin-top: calc(24 * var(--k));
}

.contact-item + .contact-item {
  margin-top: calc(32 * var(--k));
}

.contact-item__label {
  margin-top: calc(10 * var(--k));
  font-weight: 300;
  font-size: var(--fs-body);
}

.contact-item__value {
  font-weight: 300;
  font-size: var(--fs-contact);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-item__value:hover {
  text-decoration: underline;
}

/* Form panel (Figma: brand/accent, 858 × 636, radius 20) */
.contact-form {
  display: grid;
  gap: 18px;
  padding: calc(24 * var(--k)) calc(20 * var(--k)) calc(24 * var(--k));
  border-radius: var(--radius-contact-panel);
  background: var(--color-brand-accent);
}

.contact-form__row {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  color: var(--color-text-inverse);
  font-weight: 500;
  font-size: 20px;
}

/* Figma: LaBara/Form/Control shell — Compact / Full / Multiline */
.field__control {
  width: 100%;
  height: var(--size-input-height);
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-background-primary);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
}

.field__control--compact {
  box-shadow: inset 0 0 0 var(--border-hairline) var(--color-border-inverse);
}

.field__control--multiline {
  height: var(--size-textarea-height);
  padding-block: 16px;
  resize: vertical;
}

.field__control::placeholder {
  color: var(--color-text-placeholder);
  opacity: 1;
}

.field__control:focus-visible {
  outline: 2px solid var(--color-text-inverse);
  outline-offset: 2px;
}

.contact-form .btn--submit {
  margin-top: calc(13 * var(--k));
}

@media (min-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .contact-form {
    padding: 28px 40px;
  }
}

@media (min-width: 1024px) {
  .contact {
    padding-block: calc(91 * var(--k)) calc(119 * var(--k));
  }
}

@media (min-width: 1280px) {
  .contact__grid {
    grid-template-columns: minmax(0, 617fr) minmax(0, 858fr);
    column-gap: 36px;
    align-items: start;
  }

  .contact__info {
    margin-top: calc(27 * var(--k));
  }

  .contact-form {
    width: 100%;
    max-width: 858px;
    min-height: 636px;
    padding: 17px clamp(40px, calc(121 * 100vw / 1920), 121px) 20px;
    align-content: start;
  }

  .contact-form > * {
    max-width: 616px;
  }

  /* Figma placeholder inset: 61 px from the field edge */
  .field__control {
    padding-inline: clamp(24px, calc(61 * 100vw / 1920), 61px) 24px;
  }

  .field__control--multiline {
    padding-inline: clamp(24px, calc(61 * 100vw / 1920), 61px) 24px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-background-footer);
  color: var(--color-text-inverse);
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding-block: 40px;
}

.site-footer__brand img {
  width: 120px;
  height: auto;
}

.site-footer__nav {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
}

.copyright {
  font-weight: 400;
  font-size: var(--fs-small);
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, calc(440 * var(--k))) auto minmax(0, 1fr);
    align-items: start;
    justify-items: stretch;
    min-height: calc(232 * var(--k));
    padding-block: calc(53 * var(--k)) calc(40 * var(--k));
  }

  .site-footer__brand {
    justify-self: start;
    margin-left: calc(-5 * var(--k));
  }

  .site-footer__brand img {
    width: calc(149 * var(--k));
  }

  .site-footer__nav {
    gap: calc(62 * var(--k));
    padding-top: calc(11 * var(--k));
  }

  .footer-nav {
    flex-wrap: nowrap;
    column-gap: calc(26 * var(--k));
  }

  .site-footer .nav-link,
  .copyright {
    font-size: max(11px, calc(14 * var(--k)));
  }
}

/* Sticky header: transparent over the hero, solid after the first 200 px of scrolling */
@media (min-width: 1024px) {
  @supports (animation-timeline: scroll()) {
    .site-header {
      animation: header-solid linear both;
      animation-timeline: scroll(root);
      animation-range: 0 200px;
    }
  }
}

@keyframes header-solid {
  from {
    padding-block: calc(26 * var(--k)) 0;
    background-color: rgb(69 69 69 / 0);
  }

  to {
    padding-block: calc(13 * var(--k));
    background-color: rgb(69 69 69 / 1);
  }
}
