/* pozemky-vajnory.sk – vzhľad webu (Simple Reality, 2026)
   Písma sú uložené na webe (OFL, assets/fonts): Literata (nadpisy), Golos Text (text), JetBrains Mono (čísla).
   Po zmene zvýšte ?v= pri vajnory.css vo všetkých HTML súboroch (aj /ua/, /en/, /ru/). */

@font-face { font-family: "Literata"; src: url("assets/fonts/literata-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/literata-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/literata-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("assets/fonts/golos-text-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("assets/fonts/golos-text-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("assets/fonts/golos-text-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f1ede4;
  --paper-2: #e8e2d5;
  --card: #f8f5ef;
  --ink: #1d221e;
  --ink-2: #3d433d;
  --muted: #6c6b60;
  --line: #d3cbba;
  --moss: #1f2a22;
  --moss-2: #2b392e;
  --survey: #b5432a;
  --survey-dark: #96351f;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--survey); outline-offset: 3px; }

/* --- hlavička --- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(241, 237, 228, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; margin-right: auto; white-space: nowrap; }
.wordmark { font: 500 21px/1 var(--sans); letter-spacing: -0.02em; }
.slash { color: var(--survey); }
.tag { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--survey); }
.lang-switch { display: flex; gap: 2px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; }
.lang-switch a { text-decoration: none; padding: 7px 6px; color: var(--muted); border-bottom: 2px solid transparent; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--survey); }

/* --- tlačidlá a odkazy --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; background: var(--survey); color: #fff; border: 1px solid var(--survey); border-radius: 2px; text-decoration: none; font: 500 15px/1.2 var(--sans); cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--survey-dark); border-color: var(--survey-dark); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--survey); }
.link-arrow.light:hover { color: #f0b39f; }

.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--survey); margin-bottom: 18px; }
.eyebrow .num { display: inline-block; color: var(--muted); margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--line); }

/* --- úvod --- */
.hero { padding: clamp(32px, 6vw, 72px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 76px); margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--survey); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(29, 34, 30, 0.82); color: #f1ede4; font: 400 12px/1.3 var(--mono); padding: 8px 12px; letter-spacing: 0.02em; }

.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: clamp(36px, 5vw, 60px) 0 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.rail > div { padding: 18px 16px 20px 0; }
.rail > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.rail dt { font: 500 11px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rail dd { margin: 0; font: 400 clamp(17px, 1.7vw, 22px)/1.25 var(--serif); }

/* --- sekcie --- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section h2 { font-size: clamp(28px, 4.2vw, 56px); margin-bottom: 22px; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro > p:not(.eyebrow) { font-size: 18px; }

.dark { background: var(--moss); color: #e9e5da; }
.dark .eyebrow { color: #e59a82; }
.dark .eyebrow .num { color: #9aa293; border-color: #45524a; }
.tinted { background: var(--paper-2); }

/* --- pozemky: mapa a tabuľka --- */
.plot-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.map { margin: 0; }
.map-canvas { border: 1px solid var(--line); background: #efeae0; }
.map-canvas svg { display: block; width: 100%; height: auto; }
.map figcaption { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.legend { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 22px; height: 14px; border: 2px solid var(--survey); display: inline-block; }
.key-solid { background: rgba(217, 135, 109, .55); }
.key-hatch { background: repeating-linear-gradient(45deg, rgba(181, 67, 42, .45) 0 2px, transparent 2px 6px); }
.map-source { flex-basis: 100%; font-size: 12px; color: var(--muted); }

.parcels table { width: 100%; border-collapse: collapse; font-size: 15px; }
.parcels caption { text-align: left; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.parcels th, .parcels td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.parcels thead th { font: 500 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.parcels tbody th, .parcels tfoot th { font-family: var(--mono); font-size: 14px; }
.parcels .r { text-align: right; font-family: var(--mono); font-size: 14px; padding-right: 18px; white-space: nowrap; }
.parcels td:last-child { color: var(--ink-2); }
.parcels tfoot th, .parcels tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 500; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* --- lokalita --- */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid #45524a; }
.facts li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid #45524a; }
.fact-k { font: 500 11px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #9aa293; }
.fact-v { font: 400 19px/1.35 var(--serif); }
.dark .link-arrow { display: inline-block; margin-top: 10px; }

/* --- územný plán --- */
.zoning { background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.zoning-code { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: baseline; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.code-k { font: 500 11px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.code-v { font: 400 40px/1 var(--serif); color: var(--survey); }
.chips-title { font: 500 11px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--ink); padding: 6px 14px; border-radius: 99px; font-size: 15px; }
.caveats { margin: 0; padding: 0 0 0 18px; color: var(--ink-2); font-size: 15px; }
.caveats li + li { margin-top: 6px; }

/* --- stav --- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border-top: 3px solid var(--survey); padding: 26px 26px 22px; }
.card h3 { font-size: 24px; margin-bottom: 14px; }
.card p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* --- fotky --- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery .g-wide { grid-column: 1 / -1; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery .g-wide img { aspect-ratio: 16 / 9; object-position: 50% 80%; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font: 400 13px/1.4 var(--mono); color: var(--muted); padding-top: 10px; }

/* --- cena --- */
.price { background: var(--ink); color: #f1ede4; }
.price .eyebrow { color: #e59a82; }
.price .eyebrow .num { color: #8f948c; border-color: #3d443e; }
.price-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.price .price-big { font-size: clamp(60px, 8.6vw, 120px); line-height: .95; margin-bottom: 18px; white-space: nowrap; }
.price-big .unit { font-size: .42em; color: #c9c2b2; margin-left: .08em; }
.price-sub { font: 400 13px/1.5 var(--mono); letter-spacing: 0.04em; color: #c9c2b2; margin: 0; }
.terms { list-style: none; margin: 0; padding: 0; border-top: 1px solid #3d443e; }
.terms li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #3d443e; }
.terms span { font: 500 11px/1.7 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8f948c; }
.terms strong { font-weight: 400; font-size: 17px; }

/* --- kontakt --- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact-grid .intro > p:not(.eyebrow) { color: var(--ink-2); }
.agent { background: var(--card); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px); }
.agent-name { font: 400 32px/1.1 var(--serif); margin-bottom: 6px; }
.agent-role { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.agent-line { display: block; font: 400 20px/1.6 var(--mono); text-decoration: none; }
.agent-line:hover { color: var(--survey); }
.agent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* --- pätička --- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font: 400 12px/1.6 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--ink-2); }

/* --- právne stránky --- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.legal h2 { font-size: 26px; margin: 42px 0 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal-date { font: 400 13px/1.4 var(--mono); color: var(--muted); }
.legal-table { overflow-x: auto; margin: 16px 0 22px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal-table th { font: 500 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.legal code { font: 400 13px var(--mono); background: var(--paper-2); padding: 1px 5px; }

/* --- lišta cookies (site.js) --- */
.cc { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(440px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--moss); color: #e9e5da; padding: 22px; box-shadow: 0 18px 48px rgba(0, 0, 0, .28); font-size: 14px; }
.cc[hidden] { display: none; }
.cc-title { font: 400 20px/1.2 var(--serif); margin-bottom: 8px; }
.cc-text { line-height: 1.5; }
.cc a { color: #fff; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cc-btn { min-height: 44px; border: 1px solid #e9e5da; background: #f1ede4; color: var(--ink); font: 500 14px/1.2 var(--sans); cursor: pointer; border-radius: 2px; }
.cc-btn:hover { background: #fff; }
.cc-btn[data-cc-action="reject"] { background: transparent; color: #f1ede4; }
.cc-btn[data-cc-action="reject"]:hover { background: rgba(255, 255, 255, .08); }
.cc-links { display: flex; gap: 18px; margin-top: 12px; }
.cc-link { background: none; border: 0; padding: 0; color: #e9e5da; text-decoration: underline; font: 400 13px var(--sans); cursor: pointer; }
.cc-panel { margin-top: 14px; display: grid; gap: 10px; }
.cc-panel[hidden] { display: none; }
.cc-option { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; line-height: 1.4; }
.cc-option strong { display: block; }
.cc-option input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--survey); }
.cc-save { width: 100%; }
.legal-button { margin-top: 6px; }
button.btn { border-radius: 2px; }

/* --- lightbox (site.js) --- */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 18, 16, .96); color: #fff; }
.lb::backdrop { background: rgba(15, 18, 16, .96); }
.lb-stage { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lb-img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; touch-action: pan-y pinch-zoom; }
.lb-caption { font: 400 13px/1.4 var(--mono); color: #cfc8b8; padding-top: 12px; text-align: center; }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 10px 16px; }
.lb-close { top: 8px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
html.lb-open { overflow: hidden; }

/* --- menšie obrazovky --- */
@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .plot-grid, .price-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { order: -1; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail > div, .rail > div + div { padding: 14px 12px 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .rail > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .rail > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-wide img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-inner { gap: 12px; min-height: 60px; }
  .tag { display: none; }
  .wordmark { font-size: 19px; }
  .top-cta { display: none; }
  .facts li, .terms li { grid-template-columns: 1fr; gap: 4px; }
  .lb-stage { padding: 52px 8px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .cc { right: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 18px; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 640px) {
  .map-canvas { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .map-canvas svg { width: 600px; max-width: none; }
}
/* dlhé slová v ukrajinčine a ruštine (инфраструктуру) */
h1, h2, h3 { overflow-wrap: break-word; }
.hero-text { min-width: 0; }
:lang(uk) .hero h1, :lang(ru) .hero h1 { font-size: clamp(32px, 3.5vw, 52px); }
.top-cta { white-space: nowrap; }
@media (max-width: 1480px) { :lang(uk) .nav, :lang(ru) .nav { display: none; } }
@media (max-width: 1180px) { .nav { display: none; } }
:lang(uk) .nav, :lang(ru) .nav { gap: 16px; } :lang(uk) .top-inner, :lang(ru) .top-inner { gap: 20px; }
