@font-face {
    font-family: 'DINNextLTPro-Regular';
    src: url('./assets/fonts/DINNextLTPro-Regular.eot');
    src: url('./assets/fonts/DINNextLTPro-Regular.eot?#iefix') format('embedded-opentype'),
         url('./assets/fonts/DINNextLTPro-Regular.woff2') format('woff2'),
         url('./assets/fonts/DINNextLTPro-Regular.woff') format('woff'),
         url('./assets/fonts/DINNextLTPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  --blue: #233f84;
  --blue-2: #2d4b95;
  --text: #0f172a;
  --line: rgba(15, 23, 42, 0.28);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  --footer-h: 72px;
  --content-max: 1400px;
  --odskok_horni_obsah: 60px;
  --anim: 280ms cubic-bezier(.2,.7,.2,1);
  --logo-size: clamp(74px, 8vw, 92px);
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'DINNextLTPro-Regular', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #e9e9eb;
}

body {
  overflow: hidden;
}

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

.site {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background-color: #efefef;
}

.site::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)), url('./assets/bg-site.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1) brightness(1.2);
  z-index: -2;
  pointer-events: none;
}

.site::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.44) 0%, rgba(255,255,255,0.18) 40%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
  z-index: -1;
}

.top-band-mobile {
  display: none;
  height: 34px;
  background: var(--blue);
}


/* uprava iterovanim start */

.shell {
  position: relative;
  min-height: calc(100vh - var(--footer-h));
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 56px;

  display: flex;
  flex-direction: column;
}

.viewport:not(.page-active),
.contact:not(.page-active) {
  display: none;
}

.viewport {
  width: 100%;
  flex: 1 1 auto; /* výška podle obsahu */
  max-width: var(--content-max);
  margin: 10px auto;
  padding: 0 24px;

  display: flex;
  /* skladani bloku pod sebe, vychozi vedle sebe (row) */
  flex-direction: column;
  align-items: stretch;
  /* mezera mezi hornim a spodnim blokem */
  /* gap: 32px; */

  overflow: hidden;
  /* background: #f3f3f3; */

}

.tile {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;     /* s výškou 80 % na <a> vznikne nahoře i dole 10 % */
  justify-content: center;
}

/* zasunuti druhe dlazdice o 20% doleva */
.tile:nth-child(2) {
  transform: translateX(-20%);
  position: relative;
}

/* zasunuti treti dlazdice o 40% doleva */
.tile:nth-child(3) {
  transform: translateX(-40%);
  position: relative;
}


.tile-link {
  --cut: 40%;                /* síla zkosení */

  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    calc(100% - var(--cut)) 100%,
    0 100%
  );

  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  /* border: 1px solid #ccc; */
  box-sizing: border-box;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tile-link-1 {
  background-image: url('assets/tile-kutnak-automotive.webp');
}

.tile-link-2 {
  background-image: url('assets/tile-royal-regent.webp');
}

.tile-link-3 {
  background-image: url('assets/tile-tivoli-properties.webp');
}

.tile-label {
  width: 100%;
  height: 60px;
  padding: 0 24px;
  box-sizing: border-box;
  
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.75);
}

.tile-logo {
  display: block;
  width: auto;
  height: auto;
  
  max-width: 60%;
  max-height: 60%;
  
}

.viewport-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  
  transform: translateX(6.67%);
  
  width: 100%;
  flex: 1 1 auto;           /* důležité: zabere zbylou výšku */
  min-height: 0;            /* bezpečné pro flex/grid kombinaci */
}

/* 

presna velikost loga

.tile-logo {
  max-width: 220px;
  max-height: 60px;
  width: auto;
  height: auto;
  display: block;
}

resim jen jednu stranu, druha se proporcialne dopocita

.tile-logo {
  height: 60px;
  width: auto;
  display: block;
}

*/

/* dlazdice pod zkosenim start */

.tile-wide {
  width: 100%;
  flex: 0 0 auto;           /* nebude se natahovat do výšky */
  box-sizing: border-box;

  padding: 18px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  /* background: rgba(255, 255, 255, 0.75); */
}

.tile-wide-text {
  margin: 0;
  text-align: center;
}

.tile-mobile-image {
  display: none;
}

/* dlazdice pod zkosenim end */

/* efekt vystoupnuti dlazdice na desktopu start */

@media (min-width: 992px) {
  .viewport {
    perspective: 1400px;
  }

  .tile {
    position: relative;
  }

  .tile:hover {
    z-index: 20;
  }

  .tile-link {
    transform-origin: center center;
    transform-style: preserve-3d;
    transition:
      transform 0.35s ease,
      box-shadow 0.35s ease,
      filter 0.35s ease;
    will-change: transform;
  }

  .tile-link:hover {
    transform: translateZ(40px) scale(1.06) rotateY(-2deg);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
    filter: brightness(1.04) saturate(1.05);
  }
}

/* efekt vystoupnuti dlazdice na desktopu end */

/* mobilni verze */

@media (max-width: 991.98px) {
  body {
    overflow: visible;
  }

  .site {
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .top-band-mobile {
    display: block;
  }

  .shell {
    min-height: initial;
  }

  .viewport {
    width: 100%;
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
    padding: 30px 16px 16px 16px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;

    overflow: visible;
  }

  .viewport-inner {
    width: 100%;
    flex: 0 0 auto;
    
    display: flex;
    flex-direction: column;
    gap: 16px;

    transform: none;
  }

  .tile {
    width: 100%;
    transform: none !important;
    position: static;
    z-index: auto;
  }

  .tile-link {
    height: 120px;              /* nebo jiná výška pro mobil */
    clip-path: none;
    transform: none;
    background-image: none;     /* pokud na mobilu chceš jen logo */
    /* background-color: #fff; */
  }

  .tile-label {
    width: 100%;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
  }

  .tile-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .tile:nth-child(2),
  .tile:nth-child(3) {
    transform: none !important;
  }

  .tile-mobile-image {
    display: block;
    width: 100%;
    min-height: 150px;
    box-sizing: border-box;

    background-image: url("assets/tile-kutnak-automotive.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  /* efekt vystoupnuti dlazdice na mobilu start */

  .viewport {
    perspective: 1000px;
  }

  .tile-link {
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      filter 0.18s ease,
      background-color 0.18s ease;
    transform-origin: center center;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .tile-link:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    filter: brightness(1.02);
  }

  /* efekt vystoupnuti dlazdice na mobilu end */

  .contact-card-wrapper {
    width: 100%!important;
  }

}



/* uprava iterovanim end */




/* contact start */

.contact {
  /* color: white; */
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-content: center;
  gap: 60px;
  padding-top: var(--odskok_horni_obsah);
  margin-left: var(--logo-size);
  font-weight: 400;
  overflow: hidden;
}

.contact-intro {
  /* padding-top: 16px; */
  font-weight: 300;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  padding-left: calc(var(--logo-size) / 5 * 2 + var(--okraje));
  padding-right: calc(var(--logo-size) / 5 * 2 + var(--okraje));
}

.contact-card-wrapper {
  /* background-color: rgba(242, 244, 244, 0.88); */
  color: var(--text);
  width: 55%;
  padding-right: 26px;
  text-shadow: none;
}


.contact-card {
  background: transparent;
  padding: clamp(6px, 1vh, 18px) 8px clamp(6px, 1vh, 18px) 26px;
  margin-top: clamp(6px, 1vh, 18px);
  margin-bottom: clamp(6px, 1vh, 18px);
  margin-left: calc(var(--logo-size) / 5 * 2 + var(--okraje));
  border-left: 2px solid var(--line);
}

.contact-card h2 {
  margin: 0 0 clamp(6px, 1.5vh, 22px);
  font-size: clamp(22px, min(3vw, 5vh), 48px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(1px, 0.4vh, 4px);
  font-size: clamp(14px, min(1.45vw, 2vh), 22px);
  line-height: 1.4;
}

.contact-list strong {
  display: inline-block;
  width: 22px;
  /* font-weight: 700; */
}

.contact-block {
  margin-top: clamp(8px, 1.5vh, 28px);
  font-size: clamp(14px, min(1.45vw, 2vh), 22px);
  line-height: 1.45;
}

.contact-copy, .tile-wide-text {
  max-width: 1200px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 4px;
  color: var(--text);
}

/* contact end */

/* footer start */

.footer {
  height: var(--footer-h);
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.footer a { color: #fff; }

/* footer end */


/* header start*/

.hero {
  width: 100%;
  flex: 0 0 auto; /* výška podle obsahu */

  position: relative;
}

/* Header přes obrázek / hero */
.hero-header {
  position: relative;
  inset: 0 0 auto 0;
  z-index: 20;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  box-sizing: border-box;
}

.hero-left-wrapper {
  display: flex;
  align-items: center;
}

.hero-title {
  padding: 16px 16px 16px 32px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Logo jako odkaz */
.hero-header__logo-link {
  width: var(--logo-size);
  aspect-ratio: 1 / 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  padding: clamp(10px, 1vw, 14px);
  box-sizing: border-box;

  flex: 0 0 auto;

  background: transparent;
  padding: 0;
}

/* SVG obrázek */
.hero-header__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hover / focus */
.hero-header__logo-link:hover {
  filter: brightness(1.05);
}

.hero-header__logo-link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --logo-size: 72px;
  }
  .contact {
    padding-left: 0px;
  }
}

/* Mobil */
@media (max-width: 480px) {
  :root {
    --logo-size: 64px;
  }
}


@media (max-width: 410px) {
  .hero-title {
    padding: 0px 0px 0px 16px;
  }
  
}

/* header end */



/* menu start */

.nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  position: relative;
}

.nav-wrap.is-open .menu {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-toggle {
  width: 58px;
  height: 58px;
  border: 0;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--anim), background var(--anim);
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background: var(--blue-2);
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform var(--anim), opacity var(--anim);
  content: "";
}

.menu-toggle__bars::before { position: absolute; top: -8px; left: 0; }
.menu-toggle__bars::after { position: absolute; top: 8px; left: 0; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 154px;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;

  transform: translateY(-8px);
  transform-origin: top right;

  transition:
    max-height var(--anim),
    opacity var(--anim),
    transform var(--anim);
}

.menu__link {
  border: 0;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  padding: 9px 18px;
  min-height: 0;
  text-align: right;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--anim), color var(--anim), transform var(--anim);
  border-left: 6px solid transparent;
}

.menu__link:hover,
.menu__link.is-active {
  background: var(--blue);
  color: #fff;
  border-left-color: rgba(255,255,255,0.18);
}

/* menu end */