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

:root {
  --color-primary: #007a4d;
  --color-accent: #c62125;
  --color-background: #ffffff;
  --color-secondary: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e5e5e5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--color-primary);
}

.desktop-nav {
  display: none;
  gap: 2rem;
}

/* Přidán z-index a position pro mobilní menu tlačítko */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.mobile-menu-btn .close-icon {
  display: none;
}

.mobile-menu-btn.active .menu-icon {
  display: none;
}

.mobile-menu-btn.active .close-icon {
  display: block;
}

/* Přidán z-index, position a padding pro mobilní navigaci */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.98);
  position: relative;
  z-index: 999;
}

.mobile-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

.mobile-nav.active {
  display: flex;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
}

.hero-text {
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: #a01b1e;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-green {
  background-color: var(--color-primary);
  color: white;
}

.btn-green:hover {
  background-color: #006a42;
}

.btn-pricing {
  background-color: white;
  color: var(--color-primary);
}

.btn-pricing:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-block {
  width: 100%;
  padding: 1.25rem;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #c62125 0%, #007a4d 100%);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

/* About Section */
.about {
  background-color: var(--color-background);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: justify;
}

.features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item span {
  font-weight: 500;
}

.about-image {
  position: relative;
  height: 500px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Services Section */
.services {
  background-color: var(--color-secondary);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.5rem;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Pricing Section */
.pricing {
  background-color: var(--color-background);
}

.pricing-content {
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 3rem;
  margin-bottom: 2rem;
}

.pricing-card h3 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.pricing-cta {
  background-color: var(--color-primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

.pricing-cta h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.pricing-cta p {
  opacity: 0.9;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 3rem;
  }
}

/* Carousel */
.showcase {
  background-color: var(--color-secondary);
}

.carousel {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Přidán position: relative pro správné pozicování šipek uvnitř kontejneru */
.carousel-container {
  position: relative;
  height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.carousel-slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent, transparent);
}

.carousel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  z-index: 10;
}

.carousel-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.carousel-info p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Šipky carouselu - opraveno pozicování uvnitř carousel-container */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 0.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: white;
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background-color: var(--color-accent);
  width: 32px;
}

@media (min-width: 768px) {
  .carousel-container {
    height: 600px;
  }

  .carousel-info h3 {
    font-size: 2rem;
  }

  .carousel-info p {
    font-size: 1.125rem;
  }
}

/* Rental Section */
.rental {
  background-color: var(--color-background);
}

.rental-grid {
  display: grid;
  gap: 1.5rem;
}

.rental-card {
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s;
}

.rental-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rental-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-secondary);
}

.rental-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.rental-card:hover .rental-image img {
  transform: scale(1.05);
}

.rental-content {
  padding: 1.5rem;
}

.rental-content h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.rental-content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.rental-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.price-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.price-amount {
  text-align: right;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent);
}

.price-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.rental-cta {
  margin-top: 3rem;
  text-align: center;
}

.rental-cta p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .rental-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rental-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* References Section */
.references {
  background-color: var(--color-background);
}

.references-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.reference-card {
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.reference-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.reference-text {
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-style: italic;
}

.reference-author {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.author-name {
  font-weight: bold;
  color: var(--color-text);
}

.author-project {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Contact Section */
.contact {
  background-color: var(--color-secondary);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-form-card {
  padding: 1.5rem;
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Oprava centrování kontaktních karet */
.contact-card {
  padding: 1.5rem;
}

.contact-card-inner {
  /* Replaces .contact-card > div and adjusts alignment */
  display: flex;
  align-items: center; /* Changed from flex-start to center */
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px; /* Added for consistent sizing */
  border-radius: 0.5rem;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text h4 {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.contact-text p {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer h4 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer p {
  opacity: 0.8;
  line-height: 1.7;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.social-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-copyright {
  text-align: left;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-copyright {
    text-align: right;
  }
}
