/* Matúškovská 12: farby sú odvodené priamo z budovy
   okra = fasáda, terakota = sokel, smrek = strom pred budovou, papier = steny interiéru */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Archivo"; src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ochre: #c9a54f;
  --ochre-soft: #ecdfb8;
  --terracotta: #7e3f33;
  --spruce: #17352a;
  --spruce-2: #21493a;
  --paper: #f7f3ea;
  --tint: #efe9da;
  --ink: #1b1c18;
  --muted: #55564b;
  --line: rgb(27 28 24 / .18);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --top-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, ol, ul, dl, dd, address { margin: 0; padding: 0; font-style: normal; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.section--dark :focus-visible, .foot :focus-visible { outline-color: var(--ochre); }

h1, h2, h3 { margin: 0; font-weight: 600; font-stretch: 78%; line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 6.6vw, 6rem); line-height: .96; text-wrap: wrap; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { font-size: 1.75rem; }
p { margin: 0; }

.wrap { width: min(100%, 1360px); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .6rem 1rem; background: var(--ink); color: var(--paper); }
.skip:focus { top: 1rem; }
.eyebrow, .tier__label, .space__size, .facts dt, .distances dt, .elevation__note, figcaption, .logo small {
  font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .02em;
}
.eyebrow { margin-bottom: 1.1rem; color: var(--terracotta); text-transform: uppercase; letter-spacing: .08em; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tint { background: var(--tint); }
.section__head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: end; max-width: none; }

/* Hlavička */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--top-h); }
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--spruce); }
.logo__znak { width: 1.75rem; height: 2.2rem; flex: none; }
.logo__text { display: grid; line-height: 1.15; }
.logo b { font-size: 1.2rem; font-weight: 650; font-stretch: 82%; letter-spacing: -.005em; }
.logo small { font-size: .66rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a { text-decoration: none; font-size: .97rem; }
.nav a:not(.nav__cta):hover { text-decoration: underline; text-underline-offset: .3em; }
.nav__cta { padding: .55rem 1rem; background: var(--spruce); color: var(--paper); font-weight: 550; transition: background .15s; }
.nav__cta:hover { background: var(--spruce-2); }
.menu-btn { display: none; padding: .55rem .9rem; background: none; border: 1px solid var(--ink); cursor: pointer; }

/* Úvod */
.hero { padding-top: clamp(2rem, 3.5vw, 3.25rem); }
.hero__head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem clamp(2rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .7rem 1.25rem; border: 1.5px solid var(--spruce); color: var(--spruce); font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.btn:hover { background: var(--spruce); color: var(--paper); }
.btn--solid { background: var(--spruce); color: var(--paper); }
.btn--solid:hover { background: var(--spruce-2); border-color: var(--spruce-2); }
.hero__photo img { width: 100%; max-width: 1280px; aspect-ratio: 2 / 1; max-height: max(24rem, calc(100svh - 30rem)); object-fit: cover; object-position: var(--hero-pos, 50% 58%); }
.hero__photo { position: relative; }
.hero__photo picture { display: block; }
.hero__photo .hero__obrys { position: absolute; inset: 0; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; pointer-events: none; }
.wrap--photo { width: min(100%, 1280px); padding-inline: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--spruce); color: var(--paper); }
.facts > div { padding: clamp(1rem, 2.2vw, 1.75rem) clamp(1rem, 2.5vw, 2rem); border-left: 1px solid rgb(247 243 234 / .2); }
.facts > div:first-child { border-left: 0; }
.facts dt { color: var(--ochre-soft); }
.facts dd { margin-top: .35rem; font-size: clamp(1.9rem, 3.8vw, 3.25rem); font-weight: 600; font-stretch: 78%; line-height: 1; white-space: nowrap; }

/* Budova */
.budova { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.budova__copy > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); max-width: 34rem; }
.tiers { display: grid; margin-top: 2rem; border-top: 1px solid var(--line); }
.tier { display: grid; gap: .15rem; padding: 1rem 1rem 1rem 1.25rem; background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 5px solid transparent; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.tier b { font-size: 1.2rem; font-weight: 600; font-stretch: 86%; line-height: 1.2; }
.tier__label { color: var(--muted); }
.tier:hover { background: var(--tint); }
.tier[aria-pressed="true"] { background: var(--ochre-soft); border-left-color: var(--terracotta); }
.tier[aria-pressed="true"] .tier__label { color: var(--ink); }
.elevation svg { width: 100%; height: auto; }
.elevation__note { margin-top: .75rem; color: var(--muted); }
.el-lawn { fill: #6f8a45; }
.el-tree { fill: var(--spruce); }
.el-wall { fill: var(--ochre); }
.el-plinth { fill: var(--terracotta); }
.el-roof { fill: #6d5a2c; }
.el-wall--annex { fill: #bb984a; }
.el-annex-ledge { fill: #a58640; }
.el-annex-pipe { fill: #6e6f68; }
.el-win path { fill: #f7f3ea; transition: fill .25s; }
.el-win--sklady path { fill: #c9b2a6; }
.elevation[data-active="kancelarie"] .el-win--kancelarie path,
.elevation[data-active="sklady"] .el-win--sklady path { fill: #fff0b0; }
.elevation[data-active="sklady"] .el-win--kancelarie path { fill: #dccfa8; }
.elevation[data-active="kancelarie"] .el-win--sklady path { fill: #a98478; }
.el-win .el-mull, .elevation .el-win .el-mull { fill: none; stroke: var(--el-mull, #8c7338); stroke-width: 3; }
.el-bay__head { fill: #f4efe3; }
.el-bay__glass { fill: #bcd3dc; }
.el-bay__bars { fill: none; stroke: #f7f3ea; stroke-width: 5; }
.el-bay__canopy { fill: #eee7d6; }

/* Priestory */
.spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.25rem, 2.5vw, 2.25rem); }
.space figure { position: relative; margin-bottom: 1.25rem; }
.space img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.space figcaption { position: absolute; left: 0; bottom: 0; padding: .35rem .6rem; background: var(--paper); font-size: .72rem; }
.space__size { color: var(--terracotta); font-size: 1rem; margin-bottom: .35rem; }
.space h3 + p { margin-top: .6rem; color: var(--muted); }
.note { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 1.15rem; }
.note a { text-underline-offset: .2em; }

/* Štandard */
.standard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.standard__main img { width: 100%; }
.specs { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.specs li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .25rem 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.specs b { font-weight: 600; font-stretch: 88%; font-size: 1.1rem; }
.specs span { color: var(--muted); }
.standard__detail { margin-top: 2.25rem; }
.standard__detail img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 70%; }

/* Sklady */
.section--dark { background: var(--spruce); color: var(--paper); }
.section--dark .eyebrow { color: var(--ochre); }
.sklady__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sklady__head > p { color: #dbe0d4; }
.sklady__photos { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.sklady__photos img { width: 100%; height: 100%; object-fit: cover; }
.sklady__side { display: grid; grid-template-rows: 1fr 1fr; gap: inherit; min-height: 0; }
.sklady__side figure { min-height: 0; }

/* Galéria */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { padding: .45rem .9rem; background: none; border: 1px solid var(--line); cursor: pointer; font-size: .95rem; transition: background .15s; }
.filters button:hover { background: var(--tint); }
.filters button[aria-pressed="true"] { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 1vw, .9rem); }
.gallery li[hidden] { display: none; }
.gallery__lead { grid-column: span 2; grid-row: span 2; }
.gallery__lead a, .gallery__lead img { height: 100%; }
.gallery__lead img { aspect-ratio: auto; }
.gallery a { display: block; overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .gallery img, .gallery a:hover img { transition: none; transform: none; } }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(14 22 18 / .97); color: var(--paper); }
.lightbox::backdrop { background: rgb(14 22 18 / .97); }
.lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; padding: 1rem clamp(1rem, 6vw, 5rem) .75rem; gap: .75rem; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox figcaption { display: flex; justify-content: center; gap: 1rem; text-align: center; font-size: .85rem; }
.lightbox__count { color: var(--ochre-soft); }
.lightbox__btn { position: absolute; width: 3rem; height: 3rem; background: rgb(247 243 234 / .12); border: 0; color: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgb(247 243 234 / .28); }
.lightbox__close { top: calc(.75rem + env(safe-area-inset-top, 0px)); right: .75rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: .5rem; }
.lightbox__next { right: .5rem; }

/* Lokalita */
.lokalita { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: start; }
.lokalita > div:first-child > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); }
.distances { margin-block: 2rem 1.5rem; border-top: 1px solid var(--line); }
.distances > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.distances dt { font-size: .85rem; }
.distances dd { font-weight: 600; font-stretch: 86%; font-size: 1.2rem; text-align: right; }
.textlink { font-weight: 550; text-underline-offset: .25em; }
.map { position: relative; background: #ddd8c8; }
.map iframe { display: block; width: 100%; height: clamp(22rem, 42vw, 34rem); border: 0; }
.map__link { display: block; padding: .6rem 0 0; background: var(--tint); font-size: .9rem; text-align: right; text-underline-offset: .2em; }

/* Kontakt a päta: okrová fasáda stojí na terakotovom sokli */
.contact { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--ochre); }
.contact .eyebrow { color: var(--ink); }
.contact__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: end; }
.contact h2 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); }
.contact__lead { margin-top: 1.25rem; max-width: 32rem; font-size: 1.15rem; line-height: 1.45; }
.contact__list { display: grid; justify-items: start; gap: .6rem; }
.contact__big { font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 600; font-stretch: 78%; line-height: 1.1; text-decoration: none; border-bottom: 2px solid var(--ink); }
.contact__big:hover { color: var(--terracotta); border-color: var(--terracotta); }
.contact__big--mail { font-size: clamp(1.35rem, 2.6vw, 2.1rem); }
.contact__list p { margin-top: .6rem; }
.contact :focus-visible { outline-color: var(--ink); }

.foot { padding-block: 2.25rem; background: var(--terracotta); color: #fbf3ea; font-size: .88rem; line-height: 1.5; }
.foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-stretch: 82%; color: #fbf3ea; --ochre: #e9c56b; }
.foot__legal { max-width: 46rem; }
.foot a { white-space: nowrap; text-underline-offset: .2em; }

/* Podstránky */
body:has(.page) { display: flex; flex-direction: column; min-height: 100svh; }
.page { flex: 1; padding-block: clamp(3rem, 7vw, 6rem); }
.page h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
.page .btn { margin-top: 1.5rem; }
.page__body { max-width: 56rem; }
.page .lead { max-width: 40rem; }
.declaration { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.declaration a { color: var(--terracotta); font-weight: 550; text-underline-offset: .2em; }
.declaration .CookieDeclarationDialogText, .declaration .CookieDeclarationIntro, .declaration .CookieDeclarationLastUpdated { margin-bottom: 1.25rem; }
.declaration #CookieDeclarationUserStatusPanel { margin-block: 1.75rem !important; padding: 1.1rem 1.25rem; background: var(--ochre-soft); border-left: 5px solid var(--terracotta); }
.declaration #CookieDeclarationChangeConsent { margin-top: .35rem; }
.declaration .CookieDeclarationLastUpdated { color: var(--muted); font-size: .92rem; }
.declaration .CookieDeclarationType { margin-block: clamp(2rem, 4vw, 3rem) 0; padding: 0; border: 0; }
.declaration .CookieDeclarationTypeHeader { font-size: 1.75rem; font-weight: 700; font-stretch: 82%; line-height: 1.1; }
.declaration .CookieDeclarationTypeDescription { margin-block: .6rem 1.25rem; color: var(--muted); }
.declaration .CookieDeclarationTable { margin-bottom: 0; font-size: .92rem; line-height: 1.45; }
.declaration .CookieDeclarationTableHeader { padding: .6rem .75rem .6rem 0; border-bottom: 2px solid var(--ink); color: var(--muted); font-weight: 550; vertical-align: bottom; }
.declaration .CookieDeclarationTableCell { padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--line); }

/* Tablet a menšie */
@media (max-width: 1040px) {
  .hero__head, .budova, .standard, .lokalita, .contact__in, .sklady__head { grid-template-columns: minmax(0, 1fr); }
  .spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__lead { grid-column: span 3; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .standard__main img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
  .lead { max-width: 40rem; }
}
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .js .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { margin-top: .75rem; padding: .8rem 1rem; border: 0; text-align: center; }
  html:not(.js) .top__in { flex-wrap: wrap; }
  html:not(.js) .nav { flex-wrap: wrap; }
  html:not(.js) .menu-btn { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .logo small { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid rgb(247 243 234 / .2); }
  .hero__photo { --hero-pos: 22% 58%; }
  .hero__photo img { aspect-ratio: 4 / 3; max-height: none; }
  .spaces { grid-template-columns: minmax(0, 1fr); }
  .declaration .CookieDeclarationTable { display: block; overflow-x: auto; table-layout: auto; }
  .declaration .CookieDeclarationTableHeader, .declaration .CookieDeclarationTableCell { min-width: 9rem; }
  .space img { aspect-ratio: 4 / 3; }
  .specs li { grid-template-columns: minmax(0, 1fr); }
  .sklady__photos { grid-template-columns: minmax(0, 1fr); }
  .sklady__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__lead { grid-column: span 2; }
  .actions .btn { flex: 1 1 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 2.75rem; transform: none; }
  .lightbox figure { padding-bottom: 4.5rem; }
  .lightbox figcaption { position: absolute; left: 4rem; right: 4rem; bottom: 3.25rem; flex-direction: column; gap: 0; }
}
