:root {
  --turquoise: #00b3b3; /* primární akcent */
  --turquoise-dark: #028b8b;
  --text: #14202b; /* tmavě šedá pro text */
  --muted: #4a4a4a;
  --radius: 12px;
  --container: 90%;
}

.test{content: "ABCD"; color: blue}


* {
  box-sizing: border-box;
  transition: all 0.25s ease;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  color: var(--text);
  background: #f6f7f8;
  -webkit-font-smoothing: antialiased;
}

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

/* === WRAPPER === */
.site {
  max-width: var(--container);
  margin: 36px auto;
  padding: 0 20px 30px;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(8, 20, 30, 0.08);
  overflow: hidden;
}

/* === HEADER === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* prevent wrapping that increases header height */
  padding: 10px 14px; /* reduced by ~50% */
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px; /* smaller gap */
  flex-shrink: 0; /* prevent brand from shrinking and forcing wrap */
}

.logo {
  width: 100px; /* smaller logo */
  height: auto;
}

.site-title {
  font-weight: 700;
  font-size: 20px; /* smaller title */
}

nav {
  display: flex;
  gap: 14px; /* reduced spacing between links */
  align-items: center;
  white-space: nowrap; /* prevent links wrapping to next line */
}

nav a {
  position: relative;
  color: #475a65;
  font-weight: 500;
  padding: 4px 6px; /* smaller click area to shrink navbar height */
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--turquoise);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.right-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta {
  background: var(--turquoise);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 179, 179, 0.14);
  margin-right: 20px;
}

.cart {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #e6eef0;
  display: grid;
  place-items: center;
}

/* === MOBILE TOGGLE === */

.mobile-toggle button {
  background: var(--turquoise);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 179, 179, 0.14);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.mobile-toggle button:hover {
  background: var(--turquoise-dark);
  transform: scale(1.03);
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none; /* hidden by default, shown when .show is added */
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 20px 0;
}

.mobile-menu a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu.show {
  display: flex;
}

/* === HERO === */
.hero {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 28px 40px;
  height: 750px;
  position: relative; /* needed for gradient overlay */
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-left {
  flex: 1;
  padding: 18px 0;
  margin: auto;
  align-content: center;
  position: relative;
  z-index: 3; /* keep text above the gradient overlay */
}

.hero h1 {
  font-size: 46px;
  line-height: 1.03;
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--text);
}

.lead {
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
  text-align: left;
}

.btn-primary {
  background: var(--turquoise);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1; /* image sits below the overlay so dark object can be masked */
}

/* Left white -> transparent overlay to mask dark object on the image */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30%; /* stronger mask covering ~30% of the element */
  max-width: 720px;
  pointer-events: none;
  z-index: 2; /* sits between image and text */
  /* stronger start: keep full white for a larger portion, then fade */
  /* very opaque start so the left area is strongly masked */
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 20%, rgba(255,255,255,0.95) 55%, rgba(255,255,255,0) 100%);
}

@media (max-width: 900px) {
  .hero::before { width: 30%; max-width:480px; }
}

@media (max-width: 480px) {
  .hero::before { display: none; }
}

/* small top + bottom fades to gently mask darker edges of the image */
.hero::after { display: none !important; }

.hero-image {
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none; /* removed image shadow/glow per request */
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* === FEATURES === */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  padding: 48px 24px;
  background: #fff;
  border-top: 1px solid #f1f4f5;
  border-bottom: 1px solid #f1f4f5;
  text-align: center;
}

.feature {
  flex: 1 1 200px;
  max-width: 260px;
  background: #f9f9f9;
  border-radius: 16px;
  padding: 28px 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #00b3b3;
}

.feature p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
  }

  .feature {
    width: 100%;
    max-width: 340px;
  }
}

.svg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  stroke: var(--turquoise);
  stroke-width: 1.6;
  fill: none;
}

/* --- Obecné nadpisy sekcí --- */
section h2 {
  text-align:center;
  font-size:28px;
  font-weight:700;
  margin-bottom:20px;
  color:var(--text);
}
section p {
  /*text-align:center;*/
  color:var(--muted);
  line-height:1.6;
}

/* --- Služby --- */
.services {
  padding:50px 6%;
  background:#f8fbfc;
  border-top:1px solid #e6f0f2;
}
.service-list {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:40px;
  margin-top:50px;
}
.service-item {
  background:#fff;
  border-radius:var(--radius);
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  text-align:center;
  padding:40px 24px;
  flex:1 1 280px;
  max-width:320px;
  transition:transform .2s ease, box-shadow .2s ease;
  animation:fadeUp .6s ease both;
}
.service-item i {
  color:var(--turquoise);
  font-size:32px;
  margin-bottom:16px;
}
.service-item:hover {
  transform:translateY(-6px);
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

/* --- Produkty --- */
.products {
  padding:80px 10%;
  background:#f8fbfc;
}
.product-list {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:40px;
  margin-top:40px;
}
.product {
  background:#f8fbfc;
  border-radius:var(--radius);
  box-shadow:0 8px 20px rgba(0,0,0,0.05);
  overflow:hidden;
  text-align:center;
  max-width:300px;
  transition:transform .2s ease;
  animation:fadeUp .6s ease both;
}
.product img {
  width:100%;
  height:180px;
  object-fit:cover;
}
.product h3 {
  margin:16px 0 8px;
  font-size:1.1em;
  color:var(--text);
}
.product p {
  padding:0 18px 24px;
  color:var(--muted);
}
.product:hover {
  transform:translateY(-6px);
}



/* --- Kontakt --- */
.contact {
  padding:80px 10%;
  background:#fff;
  text-align:center;
}
.contact-form {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  margin-top:30px;
}
.contact-form input,
.contact-form textarea {
  width:100%;
  max-width:500px;
  padding:12px 16px;
  border:1px solid #d8e2e4;
  border-radius:var(--radius);
  font-family:inherit;
  font-size:1em;
  outline:none;
  transition:border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color:var(--turquoise);
}
.contact-form button {
  margin-top:10px;
}
.contact-info {
  margin-top:40px;
  color:var(--muted);
  font-size:1em;
  line-height:1.8;
}
.contact-info i {
  color:var(--turquoise);
  margin-right:8px;
}
.map {
  margin-top:40px;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
}
.test{color:gray}
/* footer */
footer{display:flex;justify-content:space-between;align-items:center;padding:20px 28px;border-top:1px solid #f1f4f5}
.footer-left{color:var(--muted)}

/* utility */
.container{max-width:var(--container);margin:0 auto}

/* --- Animace --- */
@keyframes fadeIn {
  from{opacity:0}
  to{opacity:1}
}
@keyframes fadeSlide {
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes fadeUp {
  from{opacity:0;transform:translateY(30px)}
  to{opacity:1;transform:translateY(0)}
}

/* --- Responsivita --- */
@media (max-width:900px){
  .hero{flex-direction:column;padding:18px;height:auto;text-align:center}
  .hero h1{font-size:36px}
  .site{margin:18px auto}
  nav{display:none}
  .service-list,.product-list,.reference-list{flex-direction:column;align-items:center}
  .service-item,.product,.reference{max-width:90%}
}
@media (max-width:480px){
  .hero h1{font-size:28px}
  .hero-right{order:2}
}

.mobile-toggle{
    display: none;
}
@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }
  nav {
    display: none;
  }
}

button .btn-primary{
    background: var(--turquoise);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 179, 179, 0.18);
  position: relative;
  font-weight: 500;
  padding: 6px 10px;
  transition: color 0.3s ease;
  color: inherit;
  text-decoration: none;
}

button,
.btn-primary,
.cta,
.contact-form button,
.nav-btn {
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
.btn-primary:hover,
.cta:hover,
.contact-form button:hover,
.nav-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 179, 179, 0.25);
  background: var(--turquoise-dark);
}



.reference-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reference-viewport {
  overflow: hidden;
  flex: 1;
}

.reference-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s ease;
}

/* Jedna karta */
/* Jedna karta */
.reference {
  flex: 0 0 260px;          /* šířka jedné reference */
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reference img {
  max-width: 100%;
  height: 160px;
  object-fit: contain;      /* celý obrázek, žádné ořezání */
  border-radius: 8px;
  display: block;
  margin-bottom: 0.75rem;
  background: #f3f3f3;      /* „rámeček“ kolem, když je obrázek úzký/vysoký */
}


.reference p {
  margin: 0;
  font-size: 0.9rem;
}

.reference p strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Tlačítka */
.nav-btn {
  border: none;
  background: #eee;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

  .references {
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.references h2 {
  text-align: center;
  margin-bottom: 20px;
}

.nav-btn {
  border: none;
  background: #edededff;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 999px;
  font-size: 18px;
  flex-shrink: 0;
}
.reference-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reference-viewport {
  overflow: hidden;
  flex: 1;
}

.reference-track {
  display: flex;
  /* důležité: žádné justify-content: space-between apod. */
  justify-content: flex-start;
  gap: 16px;              /* budeme s tím počítat ve scriptu */
  transition: transform 0.4s ease;
  padding:10px;
}

.reference {
  flex: 0 0 300px;        /* fixní šířka jedné karty */
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reference img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.75rem;
  background: #f3f3f3;
}


.reference p {
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 0.95rem;
}

.toast-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 99999;
    width: 100%;
    pointer-events: none;
}

.toast-box {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
    max-width: 400px;
    text-align: center;
    font-size: 16px;
    position: relative;
    pointer-events: auto;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #4caf50;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    animation: toastProgress 3s linear forwards;
}

.toast-error .toast-progress {
    background: #e53935;
}

@keyframes toastProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.feature,
.product,
.reference,
.service-item {
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}

.feature:hover,
.product:hover,
.reference:hover,
.service-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 10px rgba(0,0,0,0.12);
}


nav a {
  position: relative;
  overflow: hidden;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--turquoise);
  transition: left .3s ease;
}

nav a:hover::after {
  left: 0;
}


.hero-image img {
  transform: scale(1);
  transition: transform 1.2s ease;
}

.hero-image img:hover {
  transform: scale(1.04);
}


body {
  opacity: 0;
  animation: pageFade 0.7s ease forwards;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}


.svg,
.feature i {
  transition: transform .3s ease, stroke .3s ease, color .3s ease;
}

.feature:hover .svg,
.feature:hover i {
  transform: scale(1.15);
  color: var(--turquoise-dark);
  stroke: var(--turquoise-dark);
}


.cta {
  backdrop-filter: blur(6px);
  background: rgba(0, 179, 179, 0.85);
}


.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
