:root {
  --brand: #d2354f;
  --brand-dark: #a5263c;
  --brand-soft: #f7e9ec;
  --content-width: 1280px;
  --pattern-line: rgba(210,53,79,.065);
}

html { max-width: 100%; overflow-x: hidden; scrollbar-gutter: stable; }
body { max-width: 100%; overflow-x: hidden; }
body.home-page { --home-accent: var(--brand); --home-accent-dark: var(--brand-dark); --home-accent-soft: var(--brand-soft); }

.shell, .home-page .shell, .inner-page .shell { width: min(var(--content-width), calc(100% - 64px)); }
.site-header, .home-page .site-header, .inner-page .site-header { height: 92px; background: rgba(255,255,255,.985); border-bottom: 1px solid #e5e2dc; }
.nav-wrap, .header-inner, .home-page .nav-wrap, .inner-page .header-inner { height: 100%; }

.brand-wordmark, .home-page .brand-wordmark, .inner-page .brand-wordmark {
  display: block; width: 210px; min-width: 210px; height: 56px; overflow: visible;
  background: url("assets/dubau-wordmark.png") center / 210px auto no-repeat;
}
.brand-wordmark img, .home-page .brand-wordmark img, .inner-page .brand-wordmark img { width: 100%; height: 100%; opacity: 0; }
.main-nav, .site-nav, .home-page .main-nav { gap: 32px; }
.menu-toggle { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 0; background: #fff; font-size: 0; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); }

.nav-cta, .nav-contact, .home-page .nav-cta, .site-nav .nav-contact,
.button-primary, .home-page .button-primary, .button-yellow, .reference-toggle {
  color: #fff; background: var(--brand); border-color: var(--brand); border-radius: 3px;
}
.nav-cta:hover, .nav-contact:hover, .home-page .nav-cta:hover, .site-nav .nav-contact:hover,
.button-primary:hover, .home-page .button-primary:hover, .button-yellow:hover, .reference-toggle:hover {
  color: #fff; background: var(--brand-dark); border-color: var(--brand-dark);
}

/* Výraznější kontaktní tlačítko v barevném pásu */
.contact-band .button-outline {
  min-height: 60px;
  padding: 0 34px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 3px;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-band .button-outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,.92);
  background: var(--brand-dark);
  transform: translateY(-2px);
}
.home-page .main-nav > a:hover:not(.nav-cta), .home-page .main-nav > a.is-active,
.site-nav a:hover:not(.nav-contact), .site-nav a[aria-current="page"] { color: var(--brand); border-color: var(--brand); }

.home-hero, .home-about, .home-services, .inner-page .subhero, .inner-page .page-title,
.inner-page .service-detail, .inner-page .references, .inner-page .contact-section, .inner-page .privacy-section {
  background-color: #fbfaf8;
  background-image:
    radial-gradient(circle at 0 100%, transparent 0 94px, rgba(210,53,79,.055) 95px, rgba(210,53,79,.055) 96px, transparent 97px),
    linear-gradient(122deg, transparent 0 49.75%, rgba(210,53,79,.045) 49.9%, rgba(210,53,79,.045) 50.1%, transparent 50.25%);
  background-position: 0 0, 150px 0;
  background-size: 460px 360px, 560px 300px;
}
.home-about, .inner-page .service-detail, .inner-page .references,
.inner-page .contact-section, .inner-page .privacy-section { background-color: #f4f2ee; }

.home-hero::before, .home-about::before, .home-hero__visual::after, .home-services::after,
.inner-page .subhero::after, .inner-page .page-title::after, .inner-page .service-detail::after,
.inner-page .references::after, .inner-page .contact-section::after, .subhero figure::before { display: none; }

.home-hero__visual img, .section-photo img, .subhero figure img, .subhero-photo img, .page-title-photo img {
  border: 0; border-radius: 0; box-shadow: none;
}
.home-hero { padding: 58px 0 64px; }
.home-hero__grid { grid-template-columns: .88fr 1.12fr; gap: clamp(54px,6vw,92px); }
.home-hero__visual img { height: clamp(460px,42vw,560px); }
.home-hero__visual img { object-position: 15% center; }
.home-section { padding: 82px 0; }
.home-about__grid { grid-template-columns: 1fr 1fr; gap: clamp(54px,7vw,96px); }
.section-photo img { height: 410px; }

.inner-page .subhero, .inner-page .page-title { padding: 58px 0; color: var(--ink); border: 0; }
.inner-page .subhero-grid, .inner-page .page-title-inner, .inner-page .page-title-inner--compact {
  grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(54px,6vw,92px);
}
.inner-page .subhero figure img, .inner-page .page-title-photo img { height: 390px; object-fit: cover; }
.inner-page .section { padding: 76px 0; }
.site-footer, .home-page .site-footer, .inner-page .site-footer { border-top: 4px solid var(--brand); }

.home-references .reference-card::before,
.reference-feature::before {
  display: block;
  padding: 24px 28px;
  text-align: right;
}

/* Originální fotografie realizací od klienta */
.service-rail--three .service-card--house::before { background-image: url("assets/dubau-client-house.jpg"); }
.service-detail-card--house span { background-image: url("assets/dubau-client-foundation.jpg"); }
.service-rail--three .service-card--renovation::before { background-image: url("assets/dubau-client-renovation-progress.jpg"); }
.service-detail-card--renovation span { background-image: url("assets/dubau-client-about.jpg"); }
.service-detail-card--custom span { background-image: url("assets/dubau-client-concrete-form.jpg"); }
.service-rail--three .service-card--industry::before { background-image: url("assets/dubau-client-workshop.jpg"); }
.service-detail-card--industry span { background-image: url("assets/dubau-client-concrete-pump.jpg"); }

.home-references .reference-card--school::before {
  content: "";
  display: block;
  background: url("assets/dubau-reference-school.jpg") center / cover no-repeat;
}
.reference-feature--school::before {
  content: "";
  display: block;
  background: url("assets/dubau-reference-school-alt.jpg") center / cover no-repeat;
}
.home-references .reference-card--water::before {
  content: "";
  display: block;
  background: url("assets/dubau-reference-water.jpg") center / cover no-repeat;
}
.reference-feature--kindergarten::before {
  content: "";
  display: block;
  background: url("assets/dubau-reference-kindergarten.jpg") center / cover no-repeat;
}
.home-references .reference-card--industrial::before,
.reference-feature--industry::before {
  content: "";
  display: block;
  background: url("assets/dubau-reference-industry.jpg") center / cover no-repeat;
}
.home-references .reference-card--school::after,
.home-references .reference-card--water::after,
.home-references .reference-card--industrial::after,
.reference-feature--school::after,
.reference-feature--kindergarten::after,
.reference-feature--industry::after {
  background: linear-gradient(180deg, rgba(38,25,29,.08), rgba(45,29,34,.9));
}

@media (max-width: 900px) {
  .shell, .home-page .shell, .inner-page .shell { width: min(var(--content-width), calc(100% - 40px)); }
  .home-hero__grid, .home-about__grid, .inner-page .subhero-grid,
  .inner-page .page-title-inner, .inner-page .page-title-inner--compact { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 700px) {
  .shell, .home-page .shell, .inner-page .shell { width: calc(100% - 30px); }
  .site-header, .home-page .site-header, .inner-page .site-header { height: 72px; }
  .brand-wordmark, .home-page .brand-wordmark, .inner-page .brand-wordmark {
    width: 158px; min-width: 158px; height: 43px; background-size: 158px auto;
  }
  .home-hero__grid, .home-about__grid, .inner-page .subhero-grid,
  .inner-page .page-title-inner, .inner-page .page-title-inner--compact,
  .home-hero__copy, .home-about__content, .subhero-copy, .page-title-copy,
  .home-hero__visual, .section-photo, .subhero figure, .page-title-photo { min-width: 0; }
  .home-hero, .home-about, .home-services, .inner-page .subhero, .inner-page .page-title,
  .inner-page .service-detail, .inner-page .references, .inner-page .contact-section, .inner-page .privacy-section {
    background-position: 0 0, 70px 0;
    background-size: 300px 250px, 360px 230px;
  }
  .home-hero { padding: 34px 0 42px; }
  .home-hero__copy h1 { font-size: clamp(38px,12vw,48px); }
  .home-hero__visual img { height: 300px; }
  .home-hero__visual img { object-position: 12% center; }
  .home-section { padding: 56px 0; }
  .section-photo img { height: 260px; }
  .inner-page .subhero, .inner-page .page-title { padding: 36px 0; }
  .inner-page .subhero-copy h1, .inner-page .page-title h1 { font-size: clamp(34px,10vw,43px); }
  .inner-page .subhero figure img, .inner-page .page-title-photo img { height: 230px; }
  .inner-page .section { padding: 52px 0; }
  .service-rail, .service-rail--three, .reference-grid, .service-detail-grid, .reference-showcase {
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .service-rail::-webkit-scrollbar, .reference-grid::-webkit-scrollbar,
  .service-detail-grid::-webkit-scrollbar, .reference-showcase::-webkit-scrollbar { display: none; }
  .contact-card, .contact-layout, .privacy-grid { display: grid; grid-template-columns: 1fr; }
}

/* Finální čitelnost referencí a mobilní rozvržení */
.home-references .reference-card > p,
.reference-feature > span {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #fff !important;
  background: rgba(35,22,26,.7);
  box-shadow: 0 1px 10px rgba(0,0,0,.18);
  text-shadow: 0 1px 4px rgba(0,0,0,.75);
}

html { max-width: 100%; overflow-x: clip; background: #2c2729; }
body { max-width: 100%; overflow-x: clip; }

@media (max-width: 700px) {
  .menu-toggle, .menu-button {
    position: relative;
    display: inline-grid !important;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0 !important;
  }
  .menu-toggle span, .menu-toggle::before, .menu-toggle::after,
  .menu-button span, .menu-button::before, .menu-button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    margin: 0;
    background: var(--ink);
    transform-origin: center;
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-toggle span, .menu-button span { transform: translate(-50%,-50%); }
  .menu-toggle::before, .menu-button::before { transform: translate(-50%,-8px); }
  .menu-toggle::after, .menu-button::after { transform: translate(-50%,6px); }
  .menu-toggle[aria-expanded="true"] span, .menu-button[aria-expanded="true"] span { opacity: 0; }
  .menu-toggle[aria-expanded="true"]::before, .menu-button[aria-expanded="true"]::before { transform: translate(-50%,-50%) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after, .menu-button[aria-expanded="true"]::after { transform: translate(-50%,-50%) rotate(-45deg); }

  .home-hero__grid, .home-about__grid { gap: 28px; }
  .home-about__content { order: 1; }
  .home-about .section-photo { order: 2; margin-top: 8px; }
  .home-about .section-photo img { height: 230px; }

  .audience-list {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible !important;
    padding: 0 !important;
  }
  .audience-list span {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 17px;
    line-height: 1.3;
  }

  .home-services .mobile-scroll-hint { display: none; }
  .home-services .service-rail,
  .home-services .service-rail--three {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-right: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .home-services .service-card,
  .home-services .service-rail--three .service-card {
    min-height: 220px;
    width: 100%;
    flex: none;
  }

  .service-detail-grid {
    display: flex;
    gap: 14px;
    margin-right: -15px;
    padding: 0 15px 8px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .service-detail .service-detail-card {
    flex: 0 0 84vw;
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    grid-template-rows: auto auto;
    gap: 18px 20px;
    align-items: center;
    min-height: 310px;
    padding: 24px;
    scroll-snap-align: start;
  }
  .service-detail .service-detail-card > span {
    grid-column: 1;
    grid-row: 1;
    width: 88px;
  }
  .service-detail .service-detail-card > div { display: contents; }
  .service-detail .service-detail-card h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 25px;
    line-height: 1.12;
  }
  .service-detail .service-detail-card p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    padding-top: 4px;
    font-size: 16px;
    line-height: 1.55;
  }

  .home-references .reference-card > p,
  .reference-feature > span {
    font-size: 12px;
    line-height: 1.35;
  }
  .site-footer {
    margin-bottom: 0;
    padding-bottom: max(46px, env(safe-area-inset-bottom));
  }
}

/* Finální mobilní doladění */
.home-references {
  color: var(--ink);
  background-color: #f4f2ee;
  background-image: repeating-linear-gradient(
    132deg,
    transparent 0 86px,
    rgba(210,53,79,.045) 86px 87px,
    transparent 87px 174px
  );
}
.home-references .section-label { color: var(--brand); }
.home-references .section-heading--light h2,
.home-references .section-heading--light .text-link { color: var(--ink); }
.home-references .mobile-scroll-hint--light { color: var(--muted); }
.home-references .reference-grid { background: transparent; }

@media (max-width: 700px) {
  .inner-page .subhero,
  .inner-page .page-title {
    padding: 30px 0;
  }
  .inner-page .subhero-grid,
  .inner-page .page-title-inner,
  .inner-page .page-title-inner--compact {
    display: block;
  }
  .inner-page .subhero figure,
  .inner-page .subhero-photo,
  .inner-page .page-title-photo {
    display: none !important;
  }
  .inner-page .service-detail,
  .inner-page .references,
  .inner-page .contact-section {
    padding-top: 34px;
  }

  .service-detail-grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, auto));
    grid-auto-flow: column;
    grid-auto-columns: calc(100vw - 60px);
    gap: 14px;
    margin-right: -15px;
    padding: 0 15px 10px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .service-detail .service-detail-card {
    width: auto;
    min-height: 220px;
    padding: 20px;
    grid-template-columns: 76px minmax(0,1fr);
    grid-template-rows: auto auto;
    gap: 12px 16px;
    scroll-snap-align: start;
  }
  .service-detail .service-detail-card > span {
    width: 74px;
  }
  .service-detail .service-detail-card h2 {
    font-size: 21px;
    line-height: 1.14;
  }
  .service-detail .service-detail-card p {
    font-size: 15px;
    line-height: 1.48;
  }

  .contact-band { padding: 32px 0; }
  .contact-band-inner { gap: 22px; }
  .contact-band h2 {
    max-width: 330px;
    font-size: 30px;
    line-height: 1.08;
  }
  .contact-band .button-outline {
    min-height: 52px;
    padding: 0 28px;
  }
}

/* Jednotný finální systém barev, vzoru a karet */
.site-header,
.home-page .site-header,
.inner-page .site-header,
.site-footer,
.home-page .site-footer,
.inner-page .site-footer {
  background-image: none !important;
}

.home-hero,
.home-about,
.home-services,
.home-references,
.inner-page .subhero,
.inner-page .page-title,
.inner-page .service-detail,
.inner-page .references,
.inner-page .contact-section,
.inner-page .privacy-section {
  background-image:
    radial-gradient(circle at 0 100%, transparent 0 94px, rgba(210,53,79,.052) 95px, rgba(210,53,79,.052) 96px, transparent 97px),
    linear-gradient(122deg, transparent 0 49.75%, rgba(210,53,79,.042) 49.9%, rgba(210,53,79,.042) 50.1%, transparent 50.25%);
  background-position: 0 0, 150px 0;
  background-size: 460px 360px, 560px 300px;
}
.home-hero,
.home-services,
.inner-page .subhero,
.inner-page .page-title { background-color: #fff; }
.home-about,
.home-references,
.inner-page .service-detail,
.inner-page .references,
.inner-page .contact-section,
.inner-page .privacy-section { background-color: #f4f2ee; }

.contact-band {
  background-color: var(--brand);
  background-image:
    radial-gradient(circle at 100% 0, transparent 0 105px, rgba(255,255,255,.1) 106px, rgba(255,255,255,.1) 107px, transparent 108px),
    linear-gradient(122deg, transparent 0 49.75%, rgba(255,255,255,.07) 49.9%, rgba(255,255,255,.07) 50.1%, transparent 50.25%);
  background-size: 430px 310px, 520px 280px;
}

.home-references .reference-card,
.reference-feature { color: #fff; }
.home-references .reference-card h3,
.reference-feature h2 {
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  color: #fff;
  background: rgba(35,22,26,.58);
  box-shadow: 0 1px 12px rgba(0,0,0,.18);
  text-shadow: 0 1px 4px rgba(0,0,0,.82);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.home-references .reference-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
}
.home-references .reference-card > p { align-self: start; }
.home-references .reference-card h3 {
  align-self: end;
  margin: 0 0 16px;
}
.home-references .reference-card > div { align-self: end; }
.reference-feature {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
}
.reference-feature > span { align-self: start; }
.reference-feature h2 {
  align-self: end;
  margin: 0 0 16px;
}
.reference-feature > b { align-self: end; }

@media (max-width: 700px) {
  .home-hero,
  .home-about,
  .home-services,
  .home-references,
  .inner-page .subhero,
  .inner-page .page-title,
  .inner-page .service-detail,
  .inner-page .references,
  .inner-page .contact-section,
  .inner-page .privacy-section {
    background-position: 0 0, 70px 0;
    background-size: 300px 250px, 360px 230px;
  }
  .service-detail-grid {
    grid-template-columns: none;
    grid-template-rows: repeat(2, 220px);
    grid-auto-columns: calc(100vw - 60px);
  }
  .service-detail .service-detail-card {
    min-width: 0;
    min-height: 0;
    height: 220px;
  }
}

/* Finální typografie a čitelnost */
.section-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.home-references .reference-card h3 {
  padding: 5px 8px;
  font-size: clamp(21px, 2.05vw, 30px);
  line-height: 1.12;
}
.home-references .reference-card:not(.reference-card--lead) h3 {
  font-size: clamp(20px, 1.7vw, 24px);
}
.reference-feature h2 {
  padding: 5px 8px;
  font-size: clamp(20px, 1.75vw, 25px);
  line-height: 1.15;
}

@media (min-width: 701px) {
  .audience-list { gap: 12px; }
  .audience-list span {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.3;
  }
}

@media (max-width: 700px) {
  .section-summary { font-size: 17px; }
  .home-references .reference-card h3,
  .home-references .reference-card:not(.reference-card--lead) h3,
  .reference-feature h2 {
    padding: 5px 7px;
    font-size: 20px;
    line-height: 1.14;
  }
}
