/**
 * Hlavni styly webu.
 *
 * @version 1.0.3 2026-06-16
 * @changelog 1.0.1 Pridano responzivni odsazeni obsahu hero pro max-width 100px.
 * @changelog 1.0.2 Pridano mobilni vrstveni hero obrazku pod textem pro max-width 700px.
 * @changelog 1.0.3 Pridan jemny prechod pozadi sekce prubeh a sjednoceni okraju bloku.
 */

:root {
  --bg: #0f1110;
  --panel: rgba(255, 255, 255, 0.02);
  --paper: #f7f4ee;
  --paper-strong: #f2efe8;
  --soft: #d0d5d2;
  --soft-2: #b8beba;
  --line: #6d8a87;
  --text: #3b3834;;
  --text-dark: #3b3834;
  --text-nav: #73706c;
  --muted: #303030;
  --muted-light: #d3dbd5;
  --stroke: #e1e5e0;
  --card: rgba(255, 255, 255, 0.03);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --h2-nadpis: clamp(1.75rem, 2.1vw, 1.9rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  /*background:
    radial-gradient(circle at top left, rgba(109, 138, 135, 0.18), transparent 22%),
    linear-gradient(180deg, #0a0c0b 0%, #111412 100%); */
  color: var(--text);
  font-family: "Inter", sans-serif;
}

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

a {
  color: inherit;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  padding-top: 24px;
}

.topbar {
  display: flex;
  align-items: center;
/*  justify-content: space-between;*/
  gap: 20px;
}

.logo {
  display: block;
  width: 45%;
  max-width: 100%;
}

.logo img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 2rem;
  margin-left: 3rem;
/*  gap: 18px;*/
  font-size: 0.95rem;
  color: var(--text-nav);
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav a {
  text-decoration: none;
  padding: 0 10px;
  border-right: 1px solid #000;
  line-height: 1;
}

.main-nav a:last-child {
  border-right: none; /* Odstraní svislítko za posledním odkazem */
}

.brand-strip {
  margin-top: 18px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  background: #cbcece;
  color: var(--text-dark);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

.brand-strip p {
  margin: 0;
}

.page-main {
  position: relative;
  z-index: 0;
  /*padding: 40px 0 56px;
  background-color: transparent;
  background-image: url("../img/backgroundBody/projektova-dokumentace-bg-v2.svg");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;*/
}
.page-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/backgroundBody/projektova-dokumentace-bg-v2.svg");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.70; /* průhlednost pozadí */
    z-index: -1;
}

/*.page-main::before {
  content: "";
  position: absolute;
  inset: 24px 0 64px;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(var(--line), var(--line)) 10% 8% / 50% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 64% 24% / 28% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 15% 51% / 76% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 22% 82% / 54% 1px no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) 14% 8% / 1px 26% no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) 34% 8% / 1px 26% no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) 52% 8% / 1px 26% no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) 70% 18% / 1px 20% no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) 26% 51% / 1px 22% no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) 49% 51% / 1px 22% no-repeat,
    linear-gradient(90deg, var(--line), var(--line)) 72% 51% / 1px 22% no-repeat; 
}

.page-main::after {
  content: "";
  position: absolute;
  inset: 110px 90px 120px 70px;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(transparent 95%, rgba(109, 138, 135, 0.8) 95%),
    linear-gradient(90deg, transparent 95%, rgba(109, 138, 135, 0.8) 95%);
  background-size: 120px 120px;
} */

.section-grid {
  display: grid;
  gap: 32px;
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 448px;
  align-items: stretch;
  padding: 40px 0px 56px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 72%;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 58%, rgba(247, 244, 238, 0.72) 78%, rgba(247, 244, 238, 0) 100%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  max-width: 840px;
  margin-top: 4rem;
  padding-left: 5rem;
}

.hero-copy h1 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero-copy p {
  margin: 0;
  max-width: 48ch;
  color: var(--text);
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  line-height: 1.48;
}

.hero-copy .lead {
  margin-bottom: 22px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  width: min(66%, 860px);
  margin: 0;
  min-height: 750px;
  border-radius: 18px;
  overflow: hidden;
  background: #151816;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 238, 1) 0%, rgba(247, 244, 238, 0.96) 16%, rgba(247, 244, 238, 0.68) 34%, rgba(247, 244, 238, 0.24) 56%, rgba(247, 244, 238, 0) 78%);
  z-index: 1;
}

.hero-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--paper);
  font-size: 0.95rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-visual figcaption span {
  color: rgba(242, 239, 232, 0.86);
  font-size: 0.85rem;
}

.card {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}

.card-outline {
  border: 1px solid rgba(109, 138, 135, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.split-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
  margin-top:3rem;
}

#prubeh {
  padding: 2rem 0 2rem 2rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(242, 247, 247, 0.46) 0%, rgba(203, 206, 206, 0.26) 38%, rgba(247, 244, 238, 0.72) 76%, rgba(247, 244, 238, 0) 100%);
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2rem 2rem 2rem 2rem;
}

.request-form h2,
.method-card h2,
.realizations h2,
.contact-copy h2,
.contact-box h3,
.map-box h3 {
  margin: 0;
  color: var(--text);
}

.request-form h2 {
  font-size: var(--h2-nadpis);
}

.request-form > p,
.method-card p,
.contact-copy p,
.contact-box p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.request-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-form label span {
  font-size: 0.95rem;
  color: var(--text);
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 16px 18px;
  background: var(--paper-strong);
  color: var(--text-dark);
  font: inherit;
}

.request-form textarea {
  min-height: 126px;
  resize: vertical;
}

.request-form button {
  width: min(298px, 100%);
  min-height: 58px;
  border: 0;
  margin: 1.5rem 0 0.5rem;
  border-radius: 6px;
  background: var(--soft-2);
  color: var(--text-dark);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.request-form button:hover,
.request-form button:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.form-note {
  color: rgba(244, 241, 235, 0.64);
  font-size: 0.95rem;
}

.method-card {
  position: relative;
  min-height: 331px;
  padding: 35px 24px 28px 16px;
  border: 1px solid rgba(109, 138, 135, 0.18);
  background: #CCCCCC;
  margin: 9rem 0 0 0;
}

#proc-s-nami h2{
font-size: var(--h2-nadpis);
}

.method-card p {
  margin-top: 20px;
  max-width: 36ch;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  color: var(--text);
}

.realizations {
  padding: 3rem 0 5rem;
}

.realizations h2 {
  text-align: center;
  font-size: var(--h2-nadpis);
}

.realization-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 2rem;
}

.realization-card {
  width: 33%;
  min-height: 400px;
  border-radius: 12px;
  padding: 0;
}

.realization-placeholder {
  height: 100%;
  min-height: 400px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(109, 138, 135, 0.06), rgba(109, 138, 135, 0.02)),
    var(--paper-strong);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px 420px;
  gap: 32px;
  padding: 48px 64px;
  background: var(--soft);
  border-radius: 0;
  color: var(--text-dark);
}

.contact-section .eyebrow {
  margin-bottom: 0;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-copy h2 {
  padding-top: 2rem;
  font-size: clamp(1.8rem, 3vw, 2.125rem);
  line-height: 1.08;
  color: var(--text-dark);
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}
.contact-section-ic{
  display: inline-flex;
  gap: 12px;
  width: auto;
  min-height: 39px;
  padding: 10px 14px;
  margin-top: 0;
  border-radius: 999px;
  background-color: #FBFAF7;
  justify-content: center;
  align-items: center;
  font-size: 15px;
}

.contact-section-ic strong {
  color: var(--text-dark);
  font-weight: 600;
}

.contact-section-ic span {
  color: var(--muted);
}

.contact-boxes {
  display: contents;
}

.contact-box--responsive {
  display: none;
}

.contact-box,
.map-box {
  padding: 28px;
  border-radius: 12px;
  background: transparent;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-box h3,
.map-box h3 {
  margin-bottom: 0;
  color: var(--text-dark);
  font-size: var(--h2-nadpis);
}

.contact-box p,
.contact-box a {
  color: var(--muted);
  text-decoration: none;
}

.map-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.map-box img {
  width: 100%;
  height: 190px;
  min-height: 190px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef1ec;
}

@media (max-width: 1410px) {
 .contact-section {
  grid-template-columns: minmax(0, 1fr) 300px 315px;
 }
}

@media (max-width: 1180px) {
  .container {
    width: min(100% - 40px, 980px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    padding: 24px 20px;
    gap: 20px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .split-panel {
    grid-template-columns: 1fr;
  }

  .request-form {
    padding: 18px 16px;
  }

  .method-card {
    min-height: 0;
    padding: 18px 16px;
  }

  .realizations {
    padding: 3rem 0;
  }

  .realization-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }


  .contact-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
    border-radius: 12px;
  }

  .contact-section-ic {
    display: flex;
    width: max-content;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .contact-boxes {
display: flex;
    flex-direction: row;
  }

  .contact-box--responsive {
    display: block;
  }

  .contact-box,
  .map-box {
    background: rgba(255, 255, 255, 0.65);
    width: 50%;
    border-radius: 12px 0 0 12px;
  }

  .map-box {
    grid-column: 1 / -1;
    padding: 24px;
    width: 100%;
    border-radius: 0 12px 12px 0;
  }
  
  .hero-copy {
    margin-top: 2rem;
    padding-left: 1rem;
  }
   #proc-s-nami h2{
   padding-top: 0.5rem;
   }
  .method-card{
  margin: 0rem 0 0 0;
  }
  .method-card p{
  width: 100%;
    max-width: inherit;
    padding: 0.5rem 0 2rem;
    text-align: justify;
  }
  
  
  }

@media (max-width: 860px) {
   .main-nav{
   margin-left: 0rem;
   }
   .realizations {
    padding: 18px 0 3rem;
  }
   .realization-grid{
   flex-direction: column;
   gap: 1.5rem;
   }
   .realization-card{
   width:100%;   
   }
}
@media (max-width: 820px) {
  .logo{
  width: 60%;
  }
  
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
    /*gap: 12px;*/
    font-size: 0.82rem;
    margin-top: 0rem;
    align-self: center;
  }
  .main-nav a{
  padding: 0 1rem;
  }

  .page-main {
    padding-top: 24px;
  }

  .page-main::before {
    inset: 24px 0 30px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
    border-radius: 20px;
  }

  .hero-copy,
  .hero-visual {
    grid-column: auto;
    /*grid-row: auto; */
  }
  .hero-copy{
    width: 200%;
  }

  .hero-visual {
    justify-self: stretch;
    width: 100%;
    justify-self: end;
  }

  .hero-copy h1 {
    max-width: 17ch;
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    line-height: 1.14;
  }

  .hero-copy p,
  .method-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-visual {
    min-height: 176px;
    border-radius: 18px;
  }

  .hero-visual figcaption {
    position: static;
    padding: 8px 0 0;
  }

  .hero-fade {
    /*display: none;*/
  }

  .brand-strip {
    min-height: 56px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .request-form h2,
  .method-card h2 {
    font-size: 1.5rem;
  }

  .request-form input,
  .request-form textarea {
    border-radius: 10px;
    min-height: 52px;
  }

  .request-form textarea {
    min-height: 100px;
  }

  .request-form button {
    width: 100%;
    min-height: 54px;
    border-radius: 10px;
  }

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

  .contact-box,
  .map-box {
    padding: 20px;
  }
}

@media (max-width: 750px) {
 .hero-fade{
 background: linear-gradient( 90deg, #f7f4ee 0%, #f7f4ee 35%, rgba(247, 244, 238, 0.9) 48%, rgba(247, 244, 238, 0.5) 65%, rgba(247, 244, 238, 0) 90% );
 }
}

@media (max-width: 700px) {
  .hero {
    overflow: hidden;
    isolation: isolate;
  }

  .hero::after {
    z-index: 2;
    width: 100%;
    background: linear-gradient(90deg, rgba(247, 244, 238, 0.96) 0%, rgba(247, 244, 238, 0.9) 58%, rgba(247, 244, 238, 0.72) 100%);
    display: none;
  }
  .hero-copy {
    z-index: 3;
    width: auto;
    max-width: none;
    margin-top: 0;
    padding: 18px 14px;
  }
 

  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    border-radius: 20px;
    opacity: 0.38;
    pointer-events: none;
    box-shadow: none;
  }

  .hero-visual img {
    height: 100%;
    object-fit: cover;
  }

  .hero-fade {
    background: linear-gradient(90deg, rgba(247, 244, 238, 0.98) 0%, rgba(247, 244, 238, 0.88) 48%, rgba(247, 244, 238, 0.62) 100%);
  }

  .hero-visual figcaption {
    display: none;
  }
   .page-main {
    padding-top: 0.5rem;
  }
  .split-panel {
     margin-top: 1.6rem;
}
 .request-form button{
 margin: 1rem 0 0.5rem;
 }
}

@media (max-width: 600px) {
  .contact-boxes {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-box, .map-box {
    width: 100%;
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 24px);
  }

  .site-header {
    padding-top: 14px;
  }

  .logo {
    width: 210px;
  }

  .main-nav {
    display: none;
  }

  .brand-strip {
    margin-top: 10px;
    min-height: 44px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .page-main::after {
    inset: 110px 20px 120px;
    background-size: 88px 88px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 1.65rem;
  }

  .hero-copy .lead,
  .hero-copy p {
    max-width: none;
  }

  .realizations h2 {
    font-size: 1.25rem;
  }

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

  .contact-copy h2 {
    font-size: 1.5rem;
  }
  .contact-box h3,
  .map-box h3 {
    font-size: 1.15rem;
  }
}
