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

:root {
  --bg:      #F2F0EB;
  --text:    #000000;
  --wine:    #000000;
  --muted:   #D8D6D1;
  --border:  rgba(0, 0, 0, 0.12);
  --sans:    Arial, Helvetica, sans-serif;
  --mono:    Arial, Helvetica, sans-serif;
  --page-x:  7rem;
}

/* Univerzálny horizontálny kontajner */
.container {
  padding-inline: var(--page-x);
}

html {
  height: 100%;
  background: #fff;
  /* zabráni automatickému zväčšovaniu textu prehliadačom (WebKit/Chrome
     "font boosting") na starších mobilných zariadeniach, aby veľkosť
     písma vždy zodpovedala presne tomu, čo je nastavené v CSS */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  height: 100%;
  font-family: var(--sans);
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.page-in { opacity: 1; }

a {
  text-decoration: none;
  color: inherit;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* =====================================================
   IMAGE LOADING — blur-in efekt
   ===================================================== */

img:not(.logo-img) {
  filter: blur(10px);
  transition: filter 0.8s ease;
}

img:not(.logo-img).img-loaded {
  filter: blur(0);
}

/* =====================================================
   LOGO WORDMARK
   ===================================================== */

.logo-wordmark {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--wine);
  transition: color 0.2s ease;
}

.hero-page .logo-wordmark {
  color: #fff;
}

body.project-page .sub-nav:not(.nav-scrolled) .logo-wordmark {
  color: #fff;
}

/* =====================================================
   HERO PAGE (index.html)
   ===================================================== */

body.hero-page {
  background: #1a1714;
  overflow: hidden;
}

.hero-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* iOS Safari: 100vh sa počíta so schovanou adresovou lištou,
                     pri jej zobrazení/schovaní preblikne biele pozadie html
                     pod hero fotkou — 100dvh sleduje reálnu výšku okna */
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-ph {
  width: 100%;
  height: 100%;
  display: block;
}

/* Placeholder farby pre hero */
.hp1 { background: #2a2520; }
.hp2 { background: #1e2018; }
.hp3 { background: #1a1e20; }
.hp4 { background: #20181a; }
.hp5 { background: #1e1c18; }

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}

.hero-page nav,
.hero-page .bottom {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 32px var(--page-x);
}

.hero-page nav     { top: 0;    align-items: center; z-index: 300; }
.hero-page .bottom { bottom: 0; align-items: flex-end;   z-index: 50; }

.hero-page .social a,
.hero-page .copy {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  transition: opacity 0.2s;
}

.hero-page .social {
  display: flex;
  gap: 2.5rem;
}

.hero-page .social a:not([href^="mailto"])::first-letter { text-transform: uppercase; }

/* =====================================================
   SUB-PAGE NAVIGÁCIA
   ===================================================== */

body.sub-page,
body.project-page {
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.sub-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px var(--page-x);
  background: #fff;
  transition: transform 0.4s ease, background 0.2s ease;
}

.sub-nav.nav-hidden   { transform: translateY(-100%); }
.sub-nav.nav-scrolled { background: #fff; }

body.project-page .sub-nav:not(.nav-scrolled) { background: transparent; }

.sub-content { padding: 11rem 0 5rem; }

/* =====================================================
   PROJEKTY
   ===================================================== */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card-header { padding-top: 10px; }

.project-card-title {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  transition: opacity 0.2s;
}

.project-card-subtitle {
  display: none;
}

.project-card-img {
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease, filter 0.8s ease;
}

.project-card:hover .project-card-img img { transform: scale(1.03); }

/* Placeholder pre projekty bez fotky */
.ph { width: 100%; aspect-ratio: 1 / 1; display: block; }
.ph1 { background: #2a2520; }
.ph2 { background: #1e2018; }
.ph3 { background: #1a1e20; }
.ph4 { background: #20181a; }
.ph5 { background: #1e1c18; }
.ph6 { background: #22201a; }

/* =====================================================
   PROCES
   ===================================================== */

.process-wrap {
  display: block;
}

.process-label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.process-tabs {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.process-tabs[hidden] { display: none; }

.process-tab {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--text);
  opacity: 0.4;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s;
}

.process-tab:hover { opacity: 0.7; }

.process-tab.active {
  opacity: 1;
}

.process-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 6rem;
}

.process-list[hidden] { display: none; }

.process-item {
  border-bottom: 0.5px solid var(--border);
}

.process-item:first-child { border-top: 0.5px solid var(--border); }

.process-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  cursor: pointer;
  list-style: none;
}

.process-q::-webkit-details-marker { display: none; }

.process-q-left {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.process-q-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.process-step-title {
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.process-step-time {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  opacity: 0.5;
  white-space: nowrap;
}

.process-item .process-a { padding-bottom: 2rem; }

.process-a p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.7;
  max-width: 760px;
}

.process-a p + p { margin-top: 0.8rem; }

.process-cta {
  max-width: 900px;
  margin-bottom: 8rem;
}

.process-cta p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.process-cta a {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 18px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}

.faq-header { position: sticky; top: 10rem; }

.faq-label {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 0.5px solid var(--border);
}

.faq-item:first-child { border-top: 0.5px solid var(--border); }

.faq-q {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding: 2rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon,
.process-item[open] .faq-icon { transform: rotate(45deg); }

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--wine);
}

.faq-icon::before {
  width: 24px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.faq-item .faq-a { padding-bottom: 2rem; }

.faq-a {
  font-size: 16px;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.75;
  max-width: 620px;
}

/* =====================================================
   DETAIL PROJEKTU
   ===================================================== */

.project-hero {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.project-hero picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-body { padding: 6rem 0 4rem; }

.project-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 6rem;
  margin-bottom: 6rem;
}

.project-intro-left {
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.project-specs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.spec-val {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.spec-label {
  font-weight: 400;
  margin-right: 0.35em;
}

/* =====================================================
   GALÉRIA
   ===================================================== */

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Plná šírka — 16:9 */
.gallery-full {
  width: 100%;
  overflow: hidden;
}

.gallery-full img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: zoom-in;
}

/* Dve rovnaké — štvorec */
.gallery-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.gallery-half-item {
  overflow: hidden;
}

.gallery-half-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: zoom-in;
}

/* Text vlavo, obrázok vpravo */
.gallery-text-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.gallery-text-img .gallery-img {
  overflow: hidden;
}

.gallery-text-img .gallery-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-text {
  padding-top: 0.75rem;
  max-width: 760px;
}

.gallery-text h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.gallery-text p {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.gallery-text p:last-child { margin-bottom: 0; }

/* =====================================================
   TEXT + SLIDER (Perspektiv-style)
   ===================================================== */

.gallery-text-slider {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 6rem;
  align-items: start;
}

.gallery-text-slider__text {
  padding-top: 0.75rem;
}

.gallery-text-slider__text h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.gallery-text-slider__text p {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.gallery-text-slider__text p:last-child { margin-bottom: 0; }

/* Statický obrázok v media stĺpci (bez slidera) */
.gallery-text-slider__media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* [prev btn] [track] [next btn] */
.slider-outer {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
}

.slider-track {
  overflow: hidden;
  position: relative;
}

.slider-slides {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
  width: 100%;
  flex: 0 0 100%;
  position: relative;
}

.slider-slide-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

/* Obrázok definuje výšku cez aspect-ratio — spoľahlivé cross-browser */
.slider-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Tlačidlá — naťahujú sa na plnú výšku riadku gridu */
.slider-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.slider-btn:hover { opacity: 1; }
.slider-btn:focus { outline: none; }

/* CSS chevron */
.slider-btn::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.slider-prev::before {
  border-top:  1.5px solid var(--text);
  border-left: 1.5px solid var(--text);
  transform: rotate(-45deg) translateX(4px);
}

.slider-next::before {
  border-top:   1.5px solid var(--text);
  border-right: 1.5px solid var(--text);
  transform: rotate(45deg) translateX(-4px);
}

/* =====================================================
   SITE FOOTER
   ===================================================== */

.site-footer {
  background: #fff;
  display: flex;
  flex-direction: column;
}

.site-footer > .container {
  padding-top: 6rem;
  padding-bottom: 0;
}

.site-footer .project-card-title { color: var(--text); }

.site-footer-meta {
  background: #fff;
  padding: 6rem 0 2.5rem;
}

.footer-contact { margin-bottom: 6rem; }

.footer-contact-label {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 2rem;
}

.footer-contact-email {
  display: inline-block;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  transition: opacity 0.2s;
}

.footer-contact-email:hover { opacity: 0.7; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.site-footer-links {
  display: flex;
  gap: 2.5rem;
}

.site-footer-links a,
.site-footer-copy {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  transition: opacity 0.2s;
}

.site-footer-links a:not([href^="mailto"])::first-letter { text-transform: uppercase; }


.footer-projects-label {
  display: block;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2rem;
}

.more-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close,
.lightbox-counter,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 10;
  font-size: 15px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}

.lightbox-close {
  top: 28px;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin: -12px;
  opacity: 0.5;
}

.lightbox-close .faq-icon { transform: rotate(45deg); }

.lightbox-close .faq-icon::before,
.lightbox-close .faq-icon::after {
  background: var(--text);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-counter {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--text);
  opacity: 0.5;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lb-arrow {
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
}

/* =====================================================
   LOGO
   ===================================================== */

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.hero-page .logo-img {
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}

/* =====================================================
   NAVIGÁCIA — toggle + / ×
   ===================================================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wine);
  transition: opacity 0.2s;
}

.nav-links a::first-letter { text-transform: uppercase; }

.hero-page .nav-links a { color: #fff; }

body.project-page .sub-nav:not(.nav-scrolled) .nav-links a { color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 12px;
  margin: -12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle .faq-icon { width: 15px; height: 15px; }
.nav-toggle .faq-icon::before { width: 15px; }
.nav-toggle .faq-icon::after  { height: 15px; }

/* =====================================================
   KONTAKT
   ===================================================== */

body.kontakt-page {
  height: 100vh;
  overflow: hidden;
}

.kontakt-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.kontakt-shell .contact-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.kontakt-shell .site-footer {
  flex: 0 0 auto;
}

.kontakt-shell .site-footer-meta {
  padding-top: 0;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  padding: 7.5rem var(--page-x) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3rem;
  overflow: hidden;
}

.contact-intro {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 0.4rem;
}

.contact-name {
  display: block;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-label {
  display: block;
  font-size: 22px;
  color: var(--text);
}

.contact-value {
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
  transition: opacity 0.2s;
}

a.contact-value {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.contact-value:hover { opacity: 0.6; }

.contact-table {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.contact-row {
  display: flex;
  gap: 1.5rem;
}

.contact-row-label {
  width: 90px;
  flex-shrink: 0;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.contact-row-val {
  font-size: 22px;
  color: var(--text);
}

/* =====================================================
   NAVIGÁCIA — hamburger (≤ 1000px)
   ===================================================== */

@media (max-width: 1000px) {

  /* jednotná veľkosť písma na celom webe pod 1000px */
  body, body * {
    font-size: 15px !important;
  }

  .nav-toggle { display: flex; }

  /* akordeónové + ikony (FAQ, proces) zjednotené s ikonou v nav bare
     hneď od šírky, kde sa hamburger prepína na + */
  .faq-icon          { width: 15px; height: 15px; }
  .faq-icon::before  { width: 15px; }
  .faq-icon::after   { height: 15px; }

  /* hlavička je na dotykových zariadeniach vždy nepriehľadná — nezávisle od
     scrollu aj typu stránky (rovnaký princíp ako má bevkperovic.com) */
  .hero-page nav,
  body.project-page .sub-nav:not(.nav-scrolled) {
    background: #fff;
  }

  .hero-page .bottom {
    display: none;
  }

  .hero-page .logo-wordmark,
  .hero-page .nav-links a,
  .hero-page .social a,
  .hero-page .copy,
  body.project-page .sub-nav:not(.nav-scrolled) .logo-wordmark,
  body.project-page .sub-nav:not(.nav-scrolled) .nav-links a {
    color: var(--text) !important;
  }

  /* panel s linkami — fade cez opacity / pointer-events, presne ako na bevkperovic.com
     (jediný rozdiel je ikona: tam sa mení + na −, u nás rotáciou na ×) */
  .nav-links {
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 9px;
    padding: 0.4rem var(--page-x) 1.1rem;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in;
  }

  .sub-nav.nav-open .nav-links,
  .hero-page nav.nav-open .nav-links {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease-in;
  }

  .nav-links a {
    width: 100%;
    padding: 0.7rem 0;
    color: var(--text) !important;
  }

  .sub-nav.nav-open .faq-icon,
  .hero-page nav.nav-open .faq-icon {
    transform: rotate(45deg);
  }

  .site-footer-copy,
  .hero-page .copy {
    display: none;
  }
}

/* =====================================================
   TABLET ZLOM (≤ 1024px, napr. iPad Air/Mini/Pro na výšku)
   Rovnaký princíp ako pri Kontakte: 2-stĺpcové gridy s plným
   desktopovým paddingom sa na šírke ~768–1024px scvrknú do
   úzkych stĺpcov. Preto sa lámu na jeden stĺpec
   už tu, nie až pri 768px.
   ===================================================== */

@media (max-width: 1024px) {
  body.kontakt-page { height: auto; min-height: 100vh; overflow: visible; }
  .kontakt-shell { height: auto; min-height: 100vh; }
  .contact-wrap { grid-template-columns: 1fr; }

  .project-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-intro { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .gallery-half { grid-template-columns: 1fr; gap: 16px; }
  .gallery-text-img { grid-template-columns: 1fr; }
  .gallery-text-slider { grid-template-columns: 1fr; gap: 1.5rem; }
  .more-projects-grid { grid-template-columns: 1fr; }
}

/* Telefón naležato — málo výšky, veľa šírky. */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
  /* nižšia výška obrazovky naležato — plná portrait výška navbaru
     (20px + safe-area) pôsobí ako príliš masívny biely pás */
  .hero-page nav,
  .hero-page .bottom,
  .sub-nav {
    padding-top: max(11px, env(safe-area-inset-top));
    padding-bottom: 11px;
  }
}

/* =====================================================
   RESPONZÍVNE (≤ 768px)
   ===================================================== */

@media (max-width: 768px) {

  :root { --page-x: 1.5rem; }

  .hero-page nav,
  .hero-page .bottom { padding: 20px 1.5rem; }

  .hero-page nav {
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .hero-page .bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-page .social { flex-wrap: wrap; gap: 1rem 1.5rem; }

  .hero-slide:nth-child(1) img { object-position: 68% 50%; }
  .hero-slide:nth-child(2) img { object-position: 48% 50%; }
  .hero-slide:nth-child(3) img { object-position: 28% 50%; }
  .hero-slide:nth-child(4) img { object-position: 9.5% 50%; }

  .hero-page .social a,
  .hero-page .copy { font-size: 14px; }

  .sub-nav { padding: 20px 1.5rem; padding-top: max(20px, env(safe-area-inset-top)); }

  .logo-wordmark {
    white-space: normal;
    line-height: 1.3;
    max-width: 120px;
    font-size: 13px;
  }

  .sub-content { padding: 7rem 0 3rem; }

  .project-hero img.hero-od-ulice { object-position: 62% 50%; }

  .project-hero img.hero-kolaz1 {
    object-position: 13.5% 30%;
  }

  .project-hero img.hero-nis238 {
    object-position: 68% 50%;
  }

  .project-card-title { font-size: 20px; }

  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .faq-header { position: static; }
  .faq-a       { font-size: 15px; }
  .faq-q       { padding: 1.6rem 0; gap: 1rem; }
  .faq-item .faq-a { padding-bottom: 1.6rem; }

  .process-tabs { flex-wrap: wrap; gap: 1rem 1.5rem; }

  .process-list { margin-bottom: 4rem; }
  .process-q { padding: 1.6rem 0; gap: 1rem; }
  .process-q-left { gap: 1rem; }
  .process-q-right { gap: 1rem; }
  .process-step-title { font-size: 18px; }
  .process-a p { font-size: 15px; }
  .process-item .process-a { padding-bottom: 1.6rem; }

  .project-body { padding: 4rem 0 3rem; }
  .spec-val     { font-size: 15px; }

  .project-specs { gap: 0.6rem; }

  .slider-outer {
    grid-template-columns: 2.5rem 1fr 2.5rem;
  }

  .site-footer > .container { padding-top: 3.5rem; padding-bottom: 0; }

  .site-footer-meta { padding: 3.5rem 0 1.5rem; }

  .footer-contact { margin-bottom: 3rem; }

  .footer-contact-label { font-size: 15px; margin-bottom: 1.2rem; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .site-footer-links { gap: 1.5rem; }

  .site-footer-links a,
  .site-footer-copy { font-size: 15px; }

  .lightbox-img  { max-width: 95vw; max-height: 80vh; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }

  .contact-info { padding: 6rem 1.5rem 3rem; gap: 2rem; justify-content: flex-start; }
}
