:root {
  --cream: #F6F1E3;
  --cream-line: #E2D8BE;
  --forest-deep: #202F26;
  --forest: #33503E;
  --forest-soft: #435A48;
  --sage: #8E9C7C;
  --charcoal: #24231F;
  --amber: #B27A42;
  --ink: #1D1C18;
  --radius-s: 2px;
  font-family: 'Public Sans', sans-serif;
}
:root:not([data-theme="light"]) {
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
p { line-height: 1.65; margin: 0; }
a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ---------- TOP BAR (quick CZ/SK switch) ---------- */
.top-bar {
  background: var(--forest-deep);
  color: #D8D3BF;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px clamp(20px, 5vw, 56px);
  font-size: 0.78rem;
  font-weight: 500;
}
.top-bar-label {
  opacity: 0.6;
  letter-spacing: 0.02em;
}
.top-bar-inner a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(199,154,86,0.5);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.top-bar-inner a:hover, .top-bar-inner a:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}
.top-bar-sep {
  width: 1px;
  height: 12px;
  background: rgba(216,211,191,0.3);
}
@media (max-width: 560px) {
  .top-bar-label { display: none; }
  .top-bar-inner { font-size: 0.74rem; gap: 8px; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(246, 241, 227, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-line);
  box-shadow: 0 0 0 rgba(32, 47, 38, 0);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.nav.is-scrolled {
  box-shadow: 0 6px 20px rgba(32, 47, 38, 0.08);
  border-bottom-color: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest-deep);
  text-decoration: none;
}
.brand img { width: 46px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-family: 'Public Sans', sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: var(--forest-deep);
  opacity: 0.6;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--forest-deep);
  opacity: 0.75;
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transition: right 0.25s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(28px, 6vw, 70px);
  padding-top: clamp(64px, 10vw, 116px);
  padding-bottom: clamp(56px, 8vw, 96px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  color: var(--cream);
}
.hero .lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: #DDD7C4;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn-solid { background: var(--cream); color: var(--forest-deep); }
.btn-solid:hover { background: #fff; }
.btn-line { border-color: rgba(246,241,227,0.45); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); }

.hero-figure {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--forest-soft), var(--forest-deep) 70%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.hero-figure svg { width: 100%; height: auto; }
.hero-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(246,241,227,0.12);
  border: 1px solid rgba(246,241,227,0.3);
  color: var(--cream);
  font-size: 0.78rem;
  padding: 7px 13px;
  border-radius: var(--radius-s);
  font-weight: 500;
}

/* ---------- HERO HOUSE: build-up animation ---------- */
.house-foundation {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: houseFoundation .35s ease-out forwards;
}
.house-wall {
  transform-box: fill-box;
  transform-origin: center bottom;
  opacity: 0;
  animation: houseWall .55s ease-out .35s forwards;
}
.house-window-1 {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: housePop .3s ease-out .9s forwards;
}
.house-window-2 {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: housePop .3s ease-out 1s forwards;
}
.house-door {
  transform-box: fill-box;
  transform-origin: center bottom;
  opacity: 0;
  animation: housePop .35s ease-out 1.3s forwards;
}
.house-roof {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: houseRoof .55s cubic-bezier(.34,1.56,.64,1) 1.65s forwards;
}
.house-tag {
  opacity: 0;
  animation: houseTag .4s ease-out 2.15s forwards;
}

@keyframes houseFoundation {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes houseWall {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}
@keyframes housePop {
  0%   { opacity: 0; transform: scale(.4); }
  70%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes houseRoof {
  0%   { opacity: 0; transform: translateY(-26px); }
  60%  { opacity: 1; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes houseTag {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .house-foundation, .house-wall, .house-window-1, .house-window-2,
  .house-door, .house-roof, .house-tag {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.stat-strip {
  position: relative;
  border-top: 1px solid rgba(246,241,227,0.18);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.stat { color: var(--cream); }
.stat .num {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #C9C2AC;
}

/* ---------- MISSION ---------- */
.mission {
  padding: clamp(64px, 10vw, 110px) 0 clamp(40px, 6vw, 64px);
}
.mission-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(30px, 6vw, 64px);
}
.mission h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--forest-deep);
}
.mission-copy p + p { margin-top: 18px; }
.mission-copy p { color: #3E3C34; font-size: 1.02rem; }
.mission-copy strong { color: var(--forest-deep); font-weight: 600; }

/* ---------- PILLARS ---------- */
.pillars {
  padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 10vw, 110px);
}
.pillar-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(30px, 4vw, 42px) 0;
  border-top: 1px solid var(--cream-line);
  align-items: start;
  transition: background 0.3s ease;
}
.pillar-row:last-child { border-bottom: 1px solid var(--cream-line); }
.pillar-row:hover { background: rgba(142,156,124,0.07); }
.pillar-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--sage);
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}
.pillar-row:hover .pillar-num { color: var(--amber); transform: translateX(3px); }
.pillar-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--forest-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.pillar-body p { color: #4A4834; max-width: 62ch; }

/* ---------- TEAM ---------- */
.team {
  padding: clamp(40px, 6vw, 64px) 0 clamp(70px, 10vw, 100px);
  border-top: 1px solid var(--cream-line);
}
.team h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--forest-deep);
}
.team .intro {
  margin-top: 14px;
  max-width: 56ch;
  color: #5B5842;
}
.team-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.team-card {
  padding: 30px;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-s);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.team-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}
.team-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card .avatar-photo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.team-card h3 {
  margin-top: 18px;
  font-size: 1.25rem;
  color: var(--forest-deep);
  font-weight: 500;
}
.team-card .role {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage);
  text-transform: uppercase;
}
.team-card .phone {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
}
.team-card .phone:hover { color: var(--amber); }

/* ---------- PRICE BLOCK ---------- */
.price-block {
  background: var(--sage);
  color: var(--forest-deep);
  padding: clamp(50px, 8vw, 84px) 0;
}
.price-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.price-inner .cap {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2C3A24;
  margin-bottom: 8px;
}
.price-inner h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  max-width: 34ch;
  color: var(--forest-deep);
}
.price-figure {
  text-align: right;
  white-space: nowrap;
}
.price-figure .amount {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--forest-deep);
}
.price-figure .sub {
  font-size: 0.85rem;
  color: #2C3A24;
  margin-top: 4px;
}

/* ---------- BRANDS / LINKS ---------- */
.brands {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(64px, 9vw, 100px) 0;
}
.brands h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  max-width: 20ch;
}
.brands .intro {
  margin-top: 16px;
  max-width: 56ch;
  color: #BDB6A0;
}
.brand-cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.brand-card {
  display: block;
  text-decoration: none;
  color: var(--cream);
  background: #2C2B26;
  border: 1px solid #423F35;
  border-radius: var(--radius-s);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-card:hover, .brand-card:focus-visible {
  border-color: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}
.brand-card .country {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage);
}
.brand-card h3 {
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: 500;
}
.brand-card p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: #B6AF98;
}
.card-contact {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.85;
}
.brand-card .go {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  display: inline-block;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
  transition: letter-spacing 0.2s ease;
}
.brand-card:hover .go { letter-spacing: 0.02em; }
.brand-note {
  margin-top: 22px;
  font-size: 0.8rem;
  color: #837C68;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--forest-deep);
  color: #B9C2B2;
  padding: clamp(48px, 7vw, 72px) 0 30px;
  font-size: 0.88rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(24px, 5vw, 48px);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(185,194,178,0.18);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.foot-brand img { width: 36px; height: auto; flex: none; }
.foot-col-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage);
  margin-bottom: 12px;
}
.foot-addr {
  margin-top: 16px;
  line-height: 1.6;
}
.foot-addr .ids {
  margin-top: 10px;
  color: #8C9686;
  font-size: 0.82rem;
}
.foot-contact p { margin-top: 4px; }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { color: var(--cream); }
.foot-country + .foot-country { margin-top: 18px; }
.foot-country .name { color: var(--cream); font-weight: 600; font-size: 0.85rem; }
.foot-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: #7E8878;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- BACK TO TOP ---------- */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--forest-deep);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 50;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--forest); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn::before { display: none; }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16/9; order: -1; }
  .stat-strip .wrap { grid-template-columns: 1fr; gap: 14px; }
  .mission-grid { grid-template-columns: 1fr; }
  .pillar-row { grid-template-columns: 60px 1fr; }
  .price-inner { grid-template-columns: 1fr; text-align: left; }
  .price-figure { text-align: left; }
  .brand-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}
