:root {
  --blue: #07588f;
  --blue-dark: #034771;
  --text: #394156;
  --muted: #667085;
  --light: #f7f7f7;
  --line: #e8e8e8;
  --white: #ffffff;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

/* =========================================================
   HLAVIČKA
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.97);
  border-bottom: 1px solid #f0f0f0;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 27px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  background-image: url("../images/logo-domy-pod-jestedem.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.brand-mark::before,
.brand-mark::after {
  display: none;
  content: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 33px;
  font-size: 14px;
}

.nav a {
  color: #697085;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav a.active {
  font-weight: 600;
}

/* =========================================================
   ZÁKLADNÍ STRÁNKA
========================================================= */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 28px 110px;
}

.page-title {
  margin: 10px 0 45px;
  color: var(--text);
  text-align: center;
  font-size: 34px;
  line-height: 1.2;
}

.content-narrow {
  max-width: 930px;
  margin: 0 auto;
}

.content-narrow p {
  font-size: 17px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.1px;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   TLAČÍTKA
========================================================= */

.btn-primary,
.btn-secondary,
.btn-light,
.btn {
  display: inline-block;
  padding: 14px 23px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn-primary {
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-secondary {
  color: var(--text);
  background: white;
  border: 1px solid #cfd2d8;
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn-light {
  color: var(--text);
  background: white;
  border: 1px solid white;
}

.btn-light:hover {
  background: #eeeeee;
}

.btn {
  color: white;
  background: var(--text);
  border: 0;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.gallery-wide {
  display: grid;
  gap: 26px;
  margin-bottom: 30px;
}

.gallery img,
.gallery-wide img,
.lightbox-image {
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-wide img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}

.lightbox-image {
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.lightbox-image:hover {
  filter: brightness(0.96);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 90px;
  background: rgba(10, 13, 18, 0.96);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 1400px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-photo {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  min-height: 24px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  text-align: center;
}

.lightbox-counter {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 1px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: transparent;
  border: 0;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}

.lightbox-close {
  top: 20px;
  right: 25px;
  width: 50px;
  height: 50px;
  font-size: 42px;
  font-weight: 200;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 58px;
  height: 80px;
  margin-top: -40px;
  font-size: 58px;
  font-weight: 200;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   PROJEKT
========================================================= */

.feature-image {
  max-width: 820px;
  margin: 0 auto 28px;
}

.feature-image img {
  width: 100%;
}

.specs {
  max-width: 760px;
  margin: 40px auto;
}

.specs h3 {
  margin-bottom: 20px;
  font-size: 19px;
}

.spec-list {
  display: grid;
  gap: 9px;
}

.spec-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
}

.spec-row::before {
  content: "›";
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}

.floorplans {
  display: grid;
  gap: 35px;
  margin-top: 55px;
}

.floorplans img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
   PROJEKTANT
========================================================= */

.architect-card {
  max-width: 900px;
  margin: 0 auto;
}

.architect-card img {
  width: 100%;
}

.architect-copy {
  max-width: 800px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 17px;
}

.architect-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 600;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 {
  color: var(--blue);
}

.contact-info p {
  margin: 8px 0;
}

.contact-info a {
  color: var(--blue);
  text-decoration: none;
}

.contact-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 13px;
  background: white;
  border: 1px solid #d8d8d8;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.map {
  margin-top: 55px;
}

.map iframe {
  width: 100%;
  height: 430px;
  border: 0;
}

.note {
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
}

/* =========================================================
   PATIČKA
========================================================= */

.site-footer {
  padding: 42px 28px;
  color: #aaaaaa;
  background: #232323;
  text-align: center;
  font-size: 13px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav {
    gap: 20px;
  }

  .page {
    padding-left: 24px;
    padding-right: 24px;
  }

  main section[style*="grid-template-columns:repeat(4"] {
    overflow-x: auto;
  }
}

@media (max-width: 950px) {

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px 22px;
  }

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

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox {
    padding: 55px 65px;
  }

  main [style*="grid-template-columns:0.85fr 1.35fr"],
  main [style*="grid-template-columns:1.2fr 0.8fr"],
  main [style*="grid-template-columns:0.75fr 1.25fr"],
  main [style*="grid-template-columns:0.9fr 1.1fr"],
  main [style*="grid-template-columns:1fr 1fr"],
  main [style*="grid-template-columns:1.25fr .75fr"] {
    grid-template-columns: 1fr !important;
  }

  main [style*="grid-template-columns:repeat(3,1fr)"],
  main [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  main [style*="grid-template-columns:repeat(4,1fr)"],
  main [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  main [style*="gap:70px"] {
    gap: 38px !important;
  }

  main [style*="gap:65px"] {
    gap: 38px !important;
  }

  main [style*="gap:55px"] {
    gap: 34px !important;
  }

  main [style*="min-height:470px"],
  main [style*="min-height:390px"],
  main [style*="min-height:380px"],
  main [style*="min-height:360px"],
  main [style*="min-height:350px"],
  main [style*="min-height:290px"] {
    min-height: 0 !important;
  }

  main img[style*="height:100%"] {
    height: auto !important;
  }

  main img[style*="height:350px"],
  main img[style*="height:300px"] {
    height: auto !important;
  }

  main img[style*="width:115%"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
}

/* =========================================================
   MOBIL
========================================================= */

@media (max-width: 700px) {

  .site-header {
    position: static;
  }

  .header-inner {
    padding: 18px 18px 14px;
  }

  .brand {
    font-size: 21px;
    white-space: normal;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background-size: contain;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid #eceef1;
    border-left: 1px solid #eceef1;
  }

  .nav a {
    display: block;
    padding: 11px 10px;
    border-right: 1px solid #eceef1;
    border-bottom: 1px solid #eceef1;
    font-size: 12px;
    text-align: center;
  }

  .page {
    padding: 50px 18px 75px;
  }

  .page-title {
    font-size: 30px;
    margin-bottom: 35px;
  }

  .content-narrow p {
    font-size: 16px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
  }

  main section,
  main > div {
    max-width: 100% !important;
  }

  main section[style],
  main > div[style] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  main section[style*="background:#f7f7f7"],
  main div[style*="background:#f7f7f7"] {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  main h1[style*="font-size:58px"] {
    font-size: 42px !important;
    line-height: 1.06 !important;
  }

  main h2[style*="font-size:44px"],
  main h2[style*="font-size:42px"],
  main h2[style*="font-size:40px"],
  main h2[style*="font-size:38px"],
  main h2[style*="font-size:36px"],
  main h2[style*="font-size:34px"],
  main h2[style*="font-size:32px"] {
    font-size: 30px !important;
    line-height: 1.16 !important;
  }

  main p[style*="font-size:20px"] {
    font-size: 18px !important;
  }

  main p[style*="font-size:17px"],
  main div[style*="font-size:17px"] {
    font-size: 16px !important;
  }

  main [style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }

  main [style*="grid-template-columns:repeat(4,1fr)"],
  main [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  main [style*="grid-template-columns:repeat(3,1fr)"],
  main [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  main [style*="gap:70px"],
  main [style*="gap:65px"],
  main [style*="gap:55px"],
  main [style*="gap:32px"],
  main [style*="gap:30px"],
  main [style*="gap:26px"],
  main [style*="gap:22px"],
  main [style*="gap:20px"] {
    gap: 20px !important;
  }

  main section[style*="max-width:1100px"][style*="margin:75px auto 0"] {
    margin-top: 45px !important;
  }

  main strong[style*="font-size:32px"] {
    font-size: 27px !important;
  }

  main strong[style*="font-size:27px"],
  main strong[style*="font-size:26px"] {
    font-size: 23px !important;
  }

  main img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    object-fit: cover;
  }

  .btn-primary,
  .btn-secondary,
  .btn-light,
  .btn {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
  }

  main [style*="display:flex"][style*="justify-content:center"] {
    flex-direction: column;
  }

  main [style*="display:flex"][style*="flex-wrap:wrap"] {
    flex-direction: column;
  }

  .contact-grid {
    gap: 35px;
  }

  .map {
    margin-top: 35px;
  }

  .map iframe {
    height: 300px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 65px 12px 45px;
  }

  .lightbox-content {
    width: 100%;
    max-height: calc(100vh - 90px);
  }

  .lightbox-photo {
    max-width: 100%;
    max-height: calc(100vh - 170px);
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 46px;
    height: 46px;
    font-size: 38px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: 50%;
    width: 42px;
    height: 65px;
    margin-top: -32px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 46px;
  }

  .lightbox-prev {
    left: 3px;
  }

  .lightbox-next {
    right: 3px;
  }

  .lightbox-caption {
    padding: 0 35px;
    font-size: 12px;
  }

  .site-footer {
    padding: 30px 18px;
    font-size: 12px;
  }
}

/* =========================================================
   VELMI MALÝ MOBIL
========================================================= */

@media (max-width: 420px) {

  .nav {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background-size: contain;
  }

  main h1[style*="font-size:58px"] {
    font-size: 36px !important;
  }

  main h2[style] {
    font-size: 27px !important;
  }

  main [style*="grid-template-columns:repeat(4,1fr)"],
  main [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}