:root {
  --brown: #7a3f27;
  --brown-dark: #5d2f1e;
  --brown-soft: #aa7d62;
  --text: #151311;
  --muted: #5a524d;
  --line: #e8e0da;
  --paper: #fbfaf8;
  --paper-2: #f7f4f1;
  --wide: 1122px;
  --content: 1010px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

body.menu-open {
  overflow: hidden;
}

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

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

.wide {
  width: min(var(--wide), 100%);
  margin-inline: auto;
}

.content {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h1 span {
  color: var(--brown);
}

h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--brown);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker i {
  display: block;
  width: 46px;
  height: 1px;
  background: #caa996;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 1000;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #f0ece9;
}

.header-inner {
  height: 60px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo img {
  width: 160px;
  height: auto;
  max-height: 48px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.main-nav a {
  position: relative;
  padding: 22px 0 18px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

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

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  height: 1px;
  background: var(--brown);
}

.menu-toggle,
.mobile-nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brown);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brown-dark);
}

.btn-outline {
  background: #fff;
  border-color: #8e8580;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.header-cta {
  min-width: 168px;
  min-height: 38px;
  font-size: 12px;
}


/* ---------------------------------------------------------
   HOMEPAGE HERO
   --------------------------------------------------------- */

.hero {
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 43.1% 56.9%;
  min-height: 390px;
}

.hero-copy {
  background: var(--paper);
}

.hero-copy-inner {
  padding: 31px 42px 30px 56px;
}

.hero-copy h1 {
  margin-bottom: 13px;
}

.hero-text {
  width: 390px;
  max-width: 100%;
  margin-bottom: 0;
  color: #403a36;
  font-size: 14px;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.hero-actions .btn:first-child {
  min-width: 181px;
}

.hero-actions .btn-outline {
  min-width: 164px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-icon {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: var(--brown);
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit strong {
  font-size: 13px;
  line-height: 1.18;
}

.hero-image-wrap {
  position: relative;
  min-height: 390px;
  overflow: hidden;
}

.hero-image-wrap > img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
}

.hero-script {
  position: absolute;
  right: 45px;
  bottom: 48px;
  color: #fff;
  font: italic 24px/1.04 Georgia, "Times New Roman", serif;
  transform: rotate(-4deg);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.26);
}


/* ---------------------------------------------------------
   HOMEPAGE SECTIONS
   --------------------------------------------------------- */

.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 25px;
}

.section-side {
  width: 330px;
  text-align: right;
}

.section-side p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section-side a,
.all-link {
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.services {
  padding-top: 45px;
  padding-bottom: 54px;
}

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

.service-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #ece7e3;
}

.service-card > img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.service-body {
  min-height: 145px;
  padding: 16px 15px 17px;
}

.service-body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.2;
}

.service-symbol {
  color: var(--brown);
  font-size: 27px;
  line-height: 1;
}

.service-body p {
  min-height: 51px;
  margin: 0 0 12px;
  color: #514a45;
  font-size: 12px;
  line-height: 1.48;
}

.service-body a {
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects {
  padding-top: 46px;
  padding-bottom: 52px;
  background: var(--paper-2);
}

.project-head {
  align-items: center;
}

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

.projects-grid article img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.projects-grid h3 {
  margin: 10px 0 3px;
  font-size: 13px;
}

.projects-grid p {
  margin: 0;
  color: #4e4742;
  font-size: 11px;
}

.process {
  padding-top: 48px;
  padding-bottom: 56px;
}

.process h2 {
  margin-bottom: 30px;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: start;
}

.process-grid > i {
  padding-top: 17px;
  color: #b2a399;
  font-size: 18px;
  font-style: normal;
  text-align: center;
}

.process-grid article > div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.process-grid article b {
  color: var(--brown);
  font-size: 17px;
}

.process-grid article span {
  color: var(--brown);
  font-size: 27px;
  line-height: 1;
}

.process-grid h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.process-grid p {
  margin: 0;
  color: #554e49;
  font-size: 12px;
  line-height: 1.45;
}

.cta {
  background: #f7f1ec;
}

.cta-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 176px;
}

.cta-copy {
  padding: 31px 0 25px;
}

.cta-copy h2 {
  margin-bottom: 9px;
  font-size: 31px;
}

.cta-copy p {
  margin: 0 0 15px;
  color: #4f4742;
  font-size: 13px;
  line-height: 1.45;
}

.btn-cta {
  min-height: 40px;
  padding: 0 20px;
  background: var(--brown-soft);
  color: #fff;
}

.cta-image {
  position: relative;
  min-height: 176px;
  overflow: hidden;
}

.cta-image img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  object-position: center;
}

.cta-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f7f1ec 0%,
    rgba(247, 241, 236, 0.5) 14%,
    rgba(247, 241, 236, 0) 38%
  );
}


/* ---------------------------------------------------------
   VNITŘNÍ STRÁNKY – HERO
   --------------------------------------------------------- */

.page-hero {
  padding: 64px 0 60px;
  background: var(--paper);
}

.page-hero-soft {
  background: var(--paper-2);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 70px;
}

.page-hero h1 {
  font-size: 48px;
}

.page-lead {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}


/* ---------------------------------------------------------
   SLUŽBY – DETAILNÍ STRÁNKA
   --------------------------------------------------------- */

.detail-list {
  padding: 28px 0 50px;
}

.service-detail {
  display: grid;
  grid-template-columns: 46% 1fr;
  align-items: center;
  gap: 62px;
  padding-top: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.service-detail-reverse .detail-image {
  order: 2;
}

.detail-image {
  overflow: hidden;
  background: var(--paper-2);
}

.detail-image img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.detail-copy h2 {
  margin-bottom: 16px;
  font-size: 30px;
}

.detail-copy > p {
  max-width: 520px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: #413b37;
  font-size: 13px;
  line-height: 1.45;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brown);
  font-weight: 700;
}

.text-button {
  color: var(--brown);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.simple-cta {
  padding: 44px 0;
  background: var(--paper);
}

.simple-cta-alt {
  background: #f7f1ec;
}

.simple-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.simple-cta-inner h2 {
  font-size: 29px;
}


/* ---------------------------------------------------------
   REALIZACE – STRÁNKA
   --------------------------------------------------------- */

.portfolio-page {
  padding: 58px 0 70px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 46px 26px;
}

.portfolio-card {
  min-width: 0;
}

.portfolio-image {
  display: block;
  overflow: hidden;
  background: var(--paper-2);
}

.portfolio-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.portfolio-image:hover img {
  transform: scale(1.015);
}

.portfolio-copy {
  padding-top: 15px;
}

.portfolio-type {
  display: block;
  margin-bottom: 6px;
  color: var(--brown);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.portfolio-copy h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.portfolio-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}


/* ---------------------------------------------------------
   KONTAKT
   --------------------------------------------------------- */

.contact-page {
  padding: 60px 0 72px;
}

.contact-intro {
  max-width: var(--content);
}

.contact-intro h1 {
  margin-bottom: 16px;
  font-size: 48px;
}

.contact-intro > p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.customer-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 52px;
  padding: 42px 20px 45px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.customer-line > span {
  margin-bottom: 13px;
  font-size: 13px;
  font-weight: 700;
}

.customer-phone {
  color: var(--brown-dark);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
}

.customer-email {
  margin-top: 12px;
  color: var(--brown);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 800;
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contact-columns {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 110px;
  padding-top: 50px;
}

.contact-person {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.contact-person:last-child {
  margin-bottom: 0;
}

.contact-person h2,
.company-block h2 {
  margin-bottom: 15px;
  font-size: 22px;
}

.contact-person p {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  margin: 7px 0 0;
  font-size: 14px;
}

.contact-person p span,
.company-data p span {
  color: var(--muted);
}

.contact-person a {
  color: var(--brown);
  font-weight: 700;
}

.company-column {
  padding-left: 5px;
}

.company-block {
  margin-bottom: 31px;
}

.company-block address {
  color: #393431;
  font-size: 15px;
  line-height: 1.6;
  font-style: normal;
}

.company-data {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-data p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  margin: 7px 0;
  font-size: 14px;
}

.company-bank {
  padding-top: 29px;
}

.company-bank h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.company-bank p {
  margin: 4px 0;
  color: #413b37;
  font-size: 14px;
}

.company-bank .bank-number {
  margin-top: 8px;
  color: var(--brown-dark);
  font-size: 18px;
  font-weight: 800;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
  background: #fff;
  border-top: 1px solid #eee9e5;
}

.footer-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1.2fr;
  align-items: center;
  gap: 24px;
}

.footer-logo img {
  width: 138px;
  height: auto;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.footer-mark {
  color: var(--brown);
  font-size: 10px;
}


/* ---------------------------------------------------------
   TABLET / MOBILE
   --------------------------------------------------------- */

@media (max-width: 900px) {

  :root {
    --mobile-gutter: 22px;
  }

  html {
    scroll-padding-top: 64px;
  }

  .wide,
  .content {
    width: 100%;
    max-width: none;
  }

  .content {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .site-header {
    position: sticky;
    top: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
  }

  .header-inner {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 16px;
    height: 64px;
  }

  .logo {
    display: inline-flex;
    align-items: center;
    width: max-content;
  }

  .logo img {
    width: 126px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brown);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .site-header.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: block;
    height: calc(100dvh - 64px);
    padding: 10px var(--mobile-gutter) 26px;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #f0ece9;
    box-shadow: 0 18px 35px rgba(40, 26, 18, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid #eee8e3;
    font-size: 16px;
    font-weight: 700;
  }

  .main-nav a.active::after {
    display: none;
  }

  .main-nav .mobile-nav-cta {
    display: flex;
    justify-content: center;
    min-height: 50px;
    margin-top: 18px;
    padding: 0 20px;
    border: 0;
    background: var(--brown);
    color: #fff;
  }

  /* Homepage hero */
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy-inner {
    padding: 35px var(--mobile-gutter) 31px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 8.7vw, 48px);
  }

  .hero-text {
    width: 100%;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.52;
  }

  .hero-actions {
    margin-top: 21px;
  }

  .hero-actions .btn,
  .hero-actions .btn:first-child,
  .hero-actions .btn-outline {
    min-width: 0;
    min-height: 46px;
  }

  .benefits {
    gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .benefit-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .benefit strong {
    font-size: 12px;
  }

  .hero-image-wrap {
    min-height: clamp(310px, 65vw, 470px);
  }

  .hero-image-wrap > img {
    min-height: clamp(310px, 65vw, 470px);
  }

  .hero-script {
    right: 24px;
    bottom: 26px;
    font-size: 21px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 23px;
  }

  .section-side {
    width: 100%;
    max-width: 560px;
    text-align: left;
  }

  .section-side p {
    font-size: 13px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .service-card > img {
    height: 180px;
  }

  .service-body {
    min-height: 0;
    padding: 17px;
  }

  .service-body h3 {
    font-size: 16px;
  }

  .service-body p {
    min-height: 0;
    font-size: 13px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
  }

  .projects-grid article img {
    height: 190px;
  }

  .projects-grid h3 {
    font-size: 15px;
  }

  .projects-grid p {
    font-size: 13px;
  }

  .process-grid {
    position: relative;
    display: block;
  }

  .process-grid::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 36px;
    left: 19px;
    width: 1px;
    background: #dfd2c9;
  }

  .process-grid > i {
    display: none;
  }

  .process-grid article {
    position: relative;
    min-height: 74px;
    padding: 0 0 28px 58px;
  }

  .process-grid article > div {
    position: absolute;
    z-index: 1;
    top: -3px;
    left: 0;
    display: flex;
    justify-content: center;
    width: 39px;
    height: 39px;
    margin: 0;
    border: 1px solid #dbcabe;
    border-radius: 50%;
    background: #fff;
  }

  .process-grid article > div span {
    display: none;
  }

  .process-grid h3 {
    font-size: 16px;
  }

  .process-grid p {
    max-width: 520px;
    font-size: 13px;
  }

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

  .cta-copy {
    padding: 32px var(--mobile-gutter) 30px;
  }

  .cta-image {
    min-height: 190px;
  }

  .cta-image img {
    min-height: 190px;
  }

  .cta-image::before {
    background: linear-gradient(
      180deg,
      #f7f1ec 0%,
      rgba(247, 241, 236, 0.4) 22%,
      rgba(247, 241, 236, 0) 54%
    );
  }

  /* Inner page hero */
  .page-hero {
    padding: 46px 0 43px;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-hero h1,
  .contact-intro h1 {
    font-size: clamp(39px, 8vw, 48px);
  }

  .page-lead,
  .contact-intro > p {
    font-size: 15px;
  }

  /* Services page */
  .detail-list {
    padding-top: 4px;
  }

  .service-detail,
  .service-detail-reverse {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-top: 43px;
    padding-bottom: 43px;
  }

  .service-detail-reverse .detail-image {
    order: 0;
  }

  .detail-copy h2 {
    font-size: 28px;
  }

  .detail-copy > p {
    font-size: 14px;
  }

  .simple-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  /* Projects page */
  .portfolio-page {
    padding: 46px 0 55px;
  }

  .portfolio-grid {
    gap: 34px 20px;
  }

  /* Contact */
  .contact-page {
    padding: 46px 0 56px;
  }

  .customer-line {
    margin-top: 38px;
  }

  .contact-columns {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 44px;
  }

  .company-column {
    padding-left: 0;
  }

  /* Footer */
  .footer-inner {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 15px 24px;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .footer-logo {
    grid-column: 1 / -1;
    margin-bottom: 5px;
  }

  .footer-contact {
    white-space: normal;
  }
}


@media (max-width: 600px) {

  :root {
    --mobile-gutter: 18px;
  }

  .logo img {
    width: 120px;
  }

  .hero-copy-inner {
    padding-top: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 10.5vw, 44px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .benefits {
    gap: 8px;
  }

  .benefit {
    display: block;
    text-align: center;
  }

  .benefit-icon {
    margin: 0 auto 7px;
  }

  .benefit strong {
    font-size: 11px;
  }

  .hero-image-wrap,
  .hero-image-wrap > img {
    min-height: min(112vw, 420px);
  }

  .hero-image-wrap > img {
    object-position: 58% center;
  }

  .services-grid,
  .projects-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .service-card > img,
  .projects-grid article img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .portfolio-grid {
    gap: 35px;
  }

  .portfolio-copy h2 {
    font-size: 21px;
  }

  .customer-line {
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
  }

  .customer-line > span,
  .customer-phone,
  .customer-email {
    text-align: center;
  }

  .customer-email {
    font-size: 24px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .contact-actions .btn {
    min-height: 48px;
  }

  .contact-person p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .company-data p {
    grid-template-columns: 60px 1fr;
  }

  .simple-cta {
    padding: 38px 0;
  }

  .simple-cta-inner h2 {
    font-size: 27px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .footer-logo {
    grid-column: auto;
  }
}


@media (max-width: 380px) {

  .hero-copy h1 {
    font-size: 35px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .benefit {
    display: flex;
    align-items: center;
    text-align: left;
  }

  .benefit-icon {
    margin: 0;
  }

  .benefit strong {
    font-size: 12px;
  }

  .customer-phone {
    font-size: 29px;
  }

  .customer-email {
    font-size: 21px;
  }
}


/* ---------------------------------------------------------
   FIREMNÍ TYPOGRAFIE – NUNITO
   --------------------------------------------------------- */

button,
input,
textarea,
select {
  font: inherit;
}

.btn,
.main-nav,
.kicker,
.service-body,
.portfolio-card,
.contact-page,
.site-footer {
  font-family: "Nunito", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
strong,
.customer-phone,
.customer-email,
.bank-number {
  font-family: "Nunito", Arial, Helvetica, sans-serif;
}

/* Ručně psaný slogan zůstává záměrně odlišný. */
.hero-script {
  font-family: Georgia, "Times New Roman", serif;
}


/* ---------------------------------------------------------
   LIGHTBOX – REALIZACE
   --------------------------------------------------------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 16, 0.88);
  backdrop-filter: blur(3px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: min(86dvh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: #12100f;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #12100f;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 13px 18px;
  background: #fff;
  color: var(--text);
}

.lightbox-caption > div {
  min-width: 0;
}

.lightbox-caption strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.lightbox-caption #lightbox-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.lightbox-counter {
  flex: 0 0 auto;
  color: var(--brown);
  font-size: 13px;
  font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #1c1714;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #fff;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid #d2a183;
  outline-offset: 3px;
}

.lightbox-close {
  top: -18px;
  right: -18px;
  font-size: 33px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  line-height: 1;
}

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

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

.lightbox-link {
  position: relative;
  cursor: zoom-in;
}

.lightbox-link::after {
  content: "Zvětšit";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--brown-dark);
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.lightbox-link:hover::after,
.lightbox-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 900px) {

  .lightbox {
    padding: 18px;
  }

  .lightbox-dialog {
    height: min(84dvh, 760px);
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 44px;
    height: 54px;
    border-radius: 3px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-caption {
    padding-left: 14px;
    padding-right: 14px;
  }
}


@media (max-width: 600px) {

  .lightbox {
    padding: 0;
  }

  .lightbox-dialog,
  .lightbox-figure {
    width: 100%;
    height: 100dvh;
  }

  .lightbox-figure {
    box-shadow: none;
  }

  .lightbox-caption {
    min-height: 76px;
  }

  .lightbox-nav {
    top: calc(50% - 38px);
  }

  .lightbox-link::after {
    display: none;
  }
}


/* ---------------------------------------------------------
   SKUTEČNÉ REALIZACE – SAMOSTATNÉ GALERIE
   --------------------------------------------------------- */

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

.projects-grid-real article img {
  height: 190px;
}

.home-project-link {
  display: block;
}

.home-project-link img {
  transition: transform .22s ease;
}

.home-project-link:hover img {
  transform: scale(1.015);
}

.portfolio-grid-real {
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 24px;
}

.real-project {
  scroll-margin-top: 82px;
}

.real-project .portfolio-image img {
  aspect-ratio: 4 / 3;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.portfolio-meta p {
  margin: 0;
}

.portfolio-meta span {
  flex: 0 0 auto;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
}

.gallery-open-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brown);
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.gallery-open-button:hover {
  color: var(--brown-dark);
}

.gallery-hidden-link[hidden] {
  display: none !important;
}


@media (max-width: 900px) {

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

  .projects-grid-real article img {
    height: 190px;
  }
}


@media (max-width: 600px) {

  .projects-grid-real,
  .portfolio-grid-real {
    grid-template-columns: 1fr;
  }

  .projects-grid-real article img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .portfolio-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .gallery-open-button {
    min-height: 42px;
  }
}
