/* ===== STAVBY BALLER - HLAVNÍ STYLY ===== */

/* === FONTY === */
@font-face {
  font-family: 'Poppins';
  src: url('../fonty/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonty/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* === CSS PROMĚNNÉ === */
:root {
  --primary-color: #B4302F;
  --primary-hover: #8A2624;
  --text-color: rgb(51, 51, 51);
  --background-color: rgb(248, 248, 248);
  --footer-bg: rgb(51, 51, 51);
  --container-max-width: 1200px;
  --light-red: #CC4D4C;
  --grey-color: #888888;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === LOADING SCREEN === */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.loading-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #B4302F;
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: #666;
  font-size: 16px;
  font-weight: 500;
  margin-top: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ZÁKLADNÍ LAYOUT === */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
header.hlavicka {
  background-color: #fff;
  border-bottom: 2px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header.hlavicka .container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.logo {
  width: 200px;
  height: auto;
}

/* === NAVIGACE === */
nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 800;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

/* === DROPDOWN MENU === */
nav ul li {
  position: relative;
}

nav ul li.dropdown:hover .dropdown-content {
  display: block;
}

nav ul li .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 100;
  flex-direction: column;
}

nav ul li .dropdown-content li {
  display: block;
  width: 100%;
}

nav ul li .dropdown-content li a {
  padding: 10px 15px;
  display: block;
  white-space: nowrap;
  font-weight: normal;
}

nav ul li .dropdown-content li a:hover {
  background-color: #f0f0f0;
  color: var(--primary-color);
}

nav ul li.dropdown > a::after {
  content: " ▼";
  font-size: 0.75em;
  margin-left: 4px;
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
}

/* === HERO SEKCE === */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  color: #fff;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-content h3 {
  font-size: 1.4rem;
  margin: 20px 0 10px;
  color: #ffeb3b;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.hero-content ul {
  text-align: left;
  max-width: 600px;
  margin: 20px auto;
}

.hero-content ul li {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  animation: blinkSlow 3s infinite ease-in-out;
}

.cta-button:hover {
  background-color: var(--primary-hover);
}

@keyframes blinkSlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO FULL === */
.hero-full {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breatheBg 8s ease-in-out infinite;
}

@keyframes breatheBg {
  0%, 100% {
    background-size: 100%;
  }
  50% {
    background-size: 105%;
  }
}

.hero-text {
  width: 100vw;
  height: 100vh;
  padding: 4rem 5vw;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInO 1s ease forwards;
}

.hero-text p {
  max-width: 1200px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-mobile-content {
  font-family: 'Poppins', sans-serif;
}

.about-mobile-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #333;
  text-align: justify;
}

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

/* === SEKCE === */
section {
  padding: 40px 20px;
  background-color: #fff;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* === SERVICES/TECHNIKA === */
.sluzby, .services, .technika {
  font-family: 'Poppins', sans-serif;
  padding: 40px 20px;
  background-color: #f8f8f8;
  text-align: center;
  background-image: url("../obrazky/bagriky.png");
  background-repeat: repeat;
  background-size: 300px auto;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.98;
}

.services .container {
  max-width: 1200px;
  margin: 0 auto;
}

.kontakt h1,
.kontakt h2,
.services h1,
.services h2,
.technika h1,
.technika h2 {
  color: var(--primary-color);
  background-color: #333;
  font-size: 2em;
  margin: 0 0 20px 0;
  padding: 20px 0;
  text-align: center;
  border-radius: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.services .intro {
  text-align: center;
  font-size: 1.0rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--text-color);
}

.technika h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  margin: 40px 0 20px 0;
  padding: 15px 0;
  color: var(--primary-color);
  background-color: #333;
  text-align: center;
  border-radius: 0;
  display: block;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* === TECH GRID === */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  border: 3px solid transparent;
  text-align: center;
  align-items: center;
  color: #111;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 0.8s ease forwards;
  border-bottom: 4px solid transparent;
}

.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.2s; }
.tech-item:nth-child(3) { animation-delay: 0.3s; }
.tech-item:nth-child(4) { animation-delay: 0.4s; }
.tech-item:nth-child(5) { animation-delay: 0.5s; }
.tech-item:nth-child(6) { animation-delay: 0.6s; }

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

.tech-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 4px solid #e63946;
  border-color: var(--primary-color);
}

.tech-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.4s ease;
}

.tech-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(169, 0, 0, 0.2);
}

.tech-item h4 {
  width: 100%;
  text-align: center;
  font-size: 1.2em;
  color: var(--primary-color);
  margin: 10px 0 8px 0;
  position: relative;
  display: inline-block;
}

.tech-item h4::after {
  content: "";
  display: block;
  width: 0%;
  height: 2px;
  background: #e63946;
  transition: width 0.3s ease;
  margin-top: 5px;
}

.tech-item:hover h4::after {
  width: 100%;
}

.tech-item p {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 48px;
  transition: color 0.3s ease;
}

.tech-item:hover p {
  color: #555;
}

.tech-item ul.specs {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 10px 0 0 0;
  font-size: 0.9em;
  text-align: left;
  padding: 0 10px;
}

.tech-item ul.specs li {
  margin-bottom: 4px;
}

.tech-item ul.specs li::marker {
  content: "";
}

/* === KONTAKT === */
.kontakt {
  font-family: 'Poppins', sans-serif;
  padding: 40px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.kontakt-info {
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInKontakt 1s ease forwards;
  background: white;
  color: #111;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontakt-info:nth-of-type(1) { animation-delay: 0.2s; }
.kontakt-info:nth-of-type(2) { animation-delay: 0.4s; }

.kontakt-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.kontakt-info h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 5px;
}

.kontakt-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.kontakt-info a:hover {
  text-decoration: underline;
}

.kontakt-mapa iframe {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 30px;
}

/* === KONTAKT FORMULÁŘ === */
.kontakt-formular {
  background-color: #fff;
  padding: 3rem 1rem;
}

.kontakt-formular .container {
  max-width: 800px;
  margin: 0 auto;
}

.kontakt-formular h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #d32f2f;
  text-align: center;
  margin-bottom: 1.5rem;
}

#contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#contact-form label {
  flex: 1 1 100%;
  font-weight: 500;
  color: #333;
}

#contact-form input,
#contact-form textarea {
  flex: 1 1 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #333;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211,47,47,0.2);
}

#contact-form button {
  flex: 1 1 100%;
  padding: 0.75rem 1.5rem;
  background-color: #d32f2f;
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: center;
}

#contact-form button:hover {
  background-color: #b71c1c;
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  color: #388e3c;
}

/* === GALERIE === */
.lightbox-gallery {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-content {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  max-width: 900px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  border: 4px solid #b4302f;
  box-shadow: 0 8px 40px rgba(0,0,0,0.17);
}

.gallery-content img {
  max-width: 250px;
  max-height: 250px;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.close-gallery {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2rem;
  color: #b4302f;
  cursor: pointer;
  font-weight: bold;
  z-index: 100;
}

.open-gallery {
  display: inline-block;
  margin-top: 12px;
  background: var(--primary-color, #B4302F);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  border: none;
  padding: 10px 26px;
  border-radius: 25px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(180,48,47,0.07);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}

.open-gallery:hover,
.open-gallery:focus {
  background: var(--primary-hover, #8A2624);
  box-shadow: 0 4px 18px rgba(180,48,47,0.14);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

.gallery-title {
  font-family: 'Poppins', sans-serif;
  color: #b4302f;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  margin-top: 0;
  letter-spacing: 0.02em;
  text-align: center;
}

#img-zoom-large {
  transition: transform 0.13s;
}

#img-zoom-large:active {
  transform: scale(0.98);
}

/* === SIDE PANEL === */
.side-panel {
  position: fixed;
  top: 50%;
  left: -240px;
  transform: translateY(-50%);
  width: 240px;
  background-color: #ffffff;
  color: #333333;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
  border-left: 4px solid #ff4646;
}

.side-panel.open {
  left: 0;
}

.panel-content {
  font-size: 15px;
  line-height: 1.5;
}

.panel-content small {
  display: block;
  font-size: 13px;
  color: #666666;
  margin-bottom: 8px;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  font-size: 13px;
  color: #333333;
  line-height: 1.4;
}

.services-list li::before {
  content: "•";
  margin-right: 6px;
  color: #ff4646;
}

.services-list li a {
  color: #333333;
  text-decoration: none;
}

.services-list li a:hover {
  color: #ff4646;
  text-decoration: underline;
}

.tagline {
  font-size: 14px;
  font-style: italic;
  margin: 10px 0;
  color: #ff4646;
}

.phone {
  display: block;
  margin-top: 12px;
  font-size: 17px;
  font-weight: bold;
}

.phone a {
  color: #ff4646;
  text-decoration: none;
}

.phone a:hover {
  color: #cc0000;
  text-decoration: underline;
}

.toggle-button {
  position: absolute;
  top: 40%;
  right: -24px;
  width: 24px;
  height: 48px;
  background-color: #ff4646;
  border-radius: 0 5px 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: bgPulse 2s infinite ease-in-out;
}

.arrow {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid white;
  display: inline-block;
  transform-origin: center;
  transition: transform 0.3s ease;
  animation: pulse 1.5s infinite;
}

.toggle-button:hover .arrow {
  transform: scale(1.2);
}

.side-panel.open .arrow {
  animation: none;
  transform: rotate(180deg);
}

.side-panel.open .toggle-button:hover .arrow {
  transform: rotate(180deg) scale(1.2);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes bgPulse {
  0%, 100% {
    background-color: #ff4646;
    box-shadow: none;
  }
  50% {
    background-color: #ff6f6f;
    box-shadow: 0 0 8px rgba(255, 70, 70, 0.6);
  }
}

/* === FOOTER === */
footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding: 20px 0;
  font-size: 0.9rem;
  text-align: center;
}

footer .container p {
  margin: 0;
}

.footer-icons a.active img {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(180, 48, 47, 0.6));
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.footer-icons a {
  transition: all 0.3s ease;
}

.footer-icons a:hover img {
  filter: brightness(1.1) drop-shadow(0 0 5px rgba(180, 48, 47, 0.4));
  transform: scale(1.05);
}

.footer-icons img {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

.footer-icons img:hover {
  transform: scale(1.2) translateY(-2px);
  filter: grayscale(0%) drop-shadow(0 0 5px var(--primary-color));
}

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
  font-weight: bold;
}

.skip-link:focus {
  top: 6px;
}

/* === UTILITY CLASSES === */
.cervene {
  color: var(--primary-color);
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--footer-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 2px solid var(--footer-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--light-red, var(--primary-color));
}

html {
  scrollbar-color: var(--primary-color) var(--footer-bg);
  scrollbar-width: thin;
}

/* === RESPONSIVE DESIGN === */
/* iPhone 8 a malé mobily (375px) */
@media screen and (max-width: 375px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 5px;
  }
  
  .tech-item {
    padding: 12px;
    margin: 0 5px;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
    padding: 0 10px;
  }
  
  .hero-content h2 {
    font-size: 1.2rem;
    padding: 0 10px;
  }
  
  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .kontakt h1,
  .services h1,
  .technika h1 {
    font-size: 1.3rem;
    padding: 12px 0;
    margin: 0 0 12px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .technika h3 {
    font-size: 1rem;
    padding: 8px 0;
    margin: 15px 0 12px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #333;
    color: var(--primary-color);
    border-radius: 0;
  }
  
  .container {
    padding: 0 10px;
    max-width: 100%;
  }
  
  .tech-item h4 {
    font-size: 1rem;
    padding: 6px 8px;
  }
  
  .tech-item p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* NAVIGACE PRO IPHONE 8 */
  header.hlavicka .container {
    height: 55px;
    padding: 0 10px;
  }
  
  .logo {
    width: 130px;
  }
  
  nav ul li a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  /* FOOTER PRO IPHONE 8 */
  .footer-icons {
    padding: 6px 0;
  }
  
  .footer-icons a img {
    width: 35px;
    height: 35px;
  }
  
  body {
    padding-bottom: 60px;
  }
  
  /* HERO SEKCE PRO IPHONE 8 */
  .hero-full {
    height: 40vh !important;
    min-height: 250px !important;
  }
  
  .cta-button {
    font-size: 0.9rem;
    padding: 8px 16px;
    margin-top: 15px;
  }
  
  /* O NÁS STRÁNKA PRO IPHONE 8 */
  .hero-text {
    padding: 1.5rem 0.75rem !important;
    width: 100% !important;
    height: 40vh !important;
    min-height: 40vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 80px !important;
  }
  
  .hero-text .content {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hero-text .content .container {
    padding: 0 20px !important;
    max-width: 100% !important;
  }
  
  .hero-text h1 {
    font-size: 1.4rem !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    background: none !important;
    color: white !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 0 15px 0 !important;
  }
  
  .hero-text p {
    display: none !important;
  }
  
  .about-mobile-content {
    display: block !important;
    padding: 30px 15px !important;
  }
  
  .about-mobile-content p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
    text-align: left !important;
  }
}

/* Malé mobily do 480px */
@media screen and (min-width: 376px) and (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px 0;
  }
  
  .tech-item {
    padding: 15px;
    margin: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .kontakt h1,
  .services h1,
  .technika h1 {
    font-size: 1.4rem;
    padding: 15px 0;
    margin: 0 0 15px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .technika h3 {
    font-size: 1.1rem;
    padding: 10px 0;
    margin: 20px 0 15px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #333;
    color: var(--primary-color);
    border-radius: 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  /* O NÁS STRÁNKA PRO VĚTŠÍ MOBILY */
  .hero-text {
    padding: 2rem 1rem !important;
    height: 45vh !important;
    min-height: 45vh !important;
    padding-top: 100px !important;
  }
  
  .hero-text .content {
    width: 100% !important;
  }
  
  .hero-text .content .container {
    padding: 0 25px !important;
    max-width: 100% !important;
  }
  
  .hero-text h1 {
    font-size: 1.6rem !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    background: none !important;
    color: white !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 0 20px 0 !important;
  }
  
  .hero-text p {
    display: none !important;
  }
  
  .about-mobile-content {
    display: block !important;
    padding: 35px 20px !important;
  }
  
  .about-mobile-content p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
    text-align: left !important;
  }
}

@media screen and (max-width: 768px) {
  /* RESPONSIVE NADPISY */
  .kontakt h1,
  .services h1,
  .technika h1 {
    font-size: 1.7rem;
    padding: 18px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .technika h3 {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #333;
    color: var(--primary-color);
    border-radius: 0;
  }
  
  /* O NÁS STRÁNKA OBECNÁ MOBILNÍ OPTIMALIZACE */
  .hero-text {
    font-size: 1.1rem !important;
    height: 50vh !important;
    min-height: 50vh !important;
    padding-top: 90px !important;
  }
  
  .hero-text h1 {
    background: none !important;
    color: white !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 0 20px 0 !important;
  }
  
  .hero-text p {
    display: none !important;
  }
  
  .about-mobile-content {
    display: block !important;
    padding: 30px 20px !important;
  }
  
  .about-mobile-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  /* HEADER */
  header.hlavicka .container {
    height: 60px;
    padding: 0 15px;
    justify-content: space-between;
  }
  
  .logo {
    width: 150px;
  }
  
  .hamburger {
    display: block;
  }
  
  /* NAVIGATION */
  nav {
    position: static;
    transform: none;
    width: 100%;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
    background-color: white;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #e5e5e5;
  }
  
  nav ul.open {
    display: flex;
  }
  
  nav ul li a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }
  
  nav ul li:last-child a {
    border-bottom: none;
  }
  
  nav ul li.dropdown .dropdown-content {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    background: #f9f9f9 !important;
    padding-left: 20px !important;
  }
  
  nav ul li.dropdown > a::after {
    display: none !important;
  }
  
  /* HERO */
  .hero,
  .hero-full {
    width: 100vw !important;
    min-width: 100vw !important;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    height: 50vh !important;
    min-height: 270px !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  .hero-content,
  .hero-text {
    padding: 2rem 1rem !important;
    max-width: 100vw !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* FOOTER */
  .footer-icons {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.12);
    z-index: 1001;
  }
  
  .footer-icons a.active img {
    filter: drop-shadow(0 0 7px #e14a3c) drop-shadow(0 0 13px #e14a3c77) drop-shadow(0 0 25px #e14a3c33);
    opacity: 1;
    transition: filter 0.2s, opacity 0.18s;
  }
  
  .footer-icons a img {
    opacity: 0.6;
    transition: filter 0.2s, opacity 0.18s;
  }
  
  body {
    padding-bottom: 72px;
  }
  
  /* GALLERY */
  .gallery-content {
    padding-top: 44px !important;
  }
  
  .gallery-content img {
    max-width: 90vw;
    max-height: 200px;
  }
  
  .close-gallery {
    top: 8px !important;
    right: 12px !important;
    font-size: 2.4rem !important;
    z-index: 101 !important;
  }
  
  /* SCROLLBAR */
  ::-webkit-scrollbar {
    width: 24px;
    height: 24px;
  }
  
  ::-webkit-scrollbar-thumb {
    border: 5px solid var(--footer-bg);
  }
  
  /* CONTACT FORM */
  #contact-form label, 
  #contact-form input, 
  #contact-form textarea {
    flex: 1 1 100%;
  }
}

@media (min-width: 600px) {
  #contact-form label, 
  #contact-form input, 
  #contact-form textarea {
    flex: 1 1 48%;
  }
  
  #contact-form textarea {
    flex: 1 1 100%;
  }
  
  #contact-form button {
    flex: 1 1 auto;
    max-width: 200px;
  }
  
  .gallery-content img {
    max-width: 250px;
    max-height: 250px;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .side-panel {
    width: 260px;
    left: -260px;
  }
  
  .side-panel.open {
    left: 0;
  }
  
  .panel-content {
    font-size: 16px;
  }
  
  .phone a {
    font-size: 18px;
  }
}

@media (min-width: 1025px) {
  .side-panel {
    width: 280px;
    left: -280px;
  }
  
  .toggle-button {
    right: -28px;
    width: 28px;
    height: 56px;
  }
  
  .panel-content {
    font-size: 17px;
  }
  
  .phone a {
    font-size: 19px;
  }
}

/* === GALLERY LOADING === */
.gallery-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 5px solid rgba(180, 48, 47, 0.2);
  border-top: 5px solid #B4302F;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2001;
}

.gallery-loading .gallery-content {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.gallery-loading .gallery-content img {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}