:root {
  /* Premium barevná paleta - hnědá/zlatá */
  --primary: #3e2d01;
  --primary-light: #895301;
  --accent: #855202;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --gray-900: #1a1a1a;
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --border-light: #e5e5e5;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 25px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", sans-serif;
  --font-sans: "Inter", sans-serif;
}

/* Import Inter font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--gray-50);
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.logo:hover {
  color: var(--accent);
  transform: scale(1.02);
}

.logo-image {
  height: 65px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--gray-50);
  transform: translateY(-1px);
}

/* Main */
.main {
  background: var(--gray-50);
  min-height: calc(100vh - 200px);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(133, 82, 2, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(133, 82, 2, 0.1) 0%, transparent 50%);
  animation: heroFlow 15s ease-in-out infinite;
}

@keyframes heroFlow {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(20px) scale(1.05);
  }
}

.page-hero-content {
  position: relative;
  z-index: 2; /* Nad overlay i obrázkem */
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.3s forwards;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-title::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--white);
  border-radius: 2px;
  animation: titleLineGrow 1s ease-out 1.2s forwards;
  scale: 0;
}

@keyframes titleLineGrow {
  to {
    scale: 1;
  }
}

.page-hero-subtitle {
  font-size: 22px;
  opacity: 0.9;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

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

.btn-primary:hover {
  background: #6b4202;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.02);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.02);
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-large {
  padding: 20px 40px;
  font-size: 18px;
}

.btn-icon {
  font-size: 1.2rem;
  transition: var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  position: relative;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* Latest News Section */
.latest-news-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.latest-news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.latest-news-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition-slow);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px);
  animation: newsSlideIn 0.8s ease-out forwards;
  position: relative;
}

.latest-news-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.latest-news-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.latest-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.latest-news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.latest-news-card:hover .latest-news-overlay {
  opacity: 1;
}

.latest-news-read-more {
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.latest-news-content {
  padding: 32px;
}

.latest-news-date {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.latest-news-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.3;
}

.latest-news-text {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 16px;
}

.no-news-home {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  border: 2px dashed var(--gray-300);
}

.no-news-home h3 {
  font-size: 24px;
  color: var(--gray-700);
  margin-bottom: 12px;
}

/* Stats Section */
.stats-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(133, 82, 2, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(133, 82, 2, 0.05) 0%, transparent 50%);
  animation: statsFlow 12s ease-in-out infinite;
}

@keyframes statsFlow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(15px);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: scale(0.8);
  animation: statPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.stat-item:nth-child(1) {
  animation-delay: 0.1s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.3s;
}
.stat-item:nth-child(3) {
  animation-delay: 0.5s;
}
.stat-item:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes statPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-number {
  font-size: 72px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-number::after {
  content: "+";
  font-size: 56px;
  position: absolute;
  top: 0;
  right: -32px;
  opacity: 0.7;
}

.stat-label {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 40px 0;
  margin-top: auto;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
}

.footer p {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* AOS Animation Classes */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Homepage Hero */
.homepage-hero {
  position: relative;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;

  /* Background image přímo v CSS - roztažený přes celou plochu */
  background-image: url("../images/background-image.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Změněno z fixed na scroll pro lepší kompatibilitu */
}

/* Odstraň nebo zakomentuj toto: */
/*
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
*/

.homepage-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(62, 45, 1, 0.4) 0%, rgba(137, 83, 1, 0.4) 100%);
  z-index: 1;
  animation: heroFlow 15s ease-in-out infinite;
}

.homepage-hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 60px;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  border: 1px solid var(--gray-200);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.service-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(62, 45, 1, 0.8), rgba(133, 82, 2, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-icon {
  font-size: 4rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.service-content {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  position: relative;
}

.service-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.service-description {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 30px;
}

.service-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  flex: 1;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.benefit-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}

.benefit-icon {
  font-size: 20px;
  min-width: 24px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.service-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.service-btn:hover::before {
  left: 100%;
}

.service-btn:hover {
  background: #6b4202;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.service-btn .btn-icon {
  transition: var(--transition);
}

.service-btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .nav {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .logo {
    font-size: 20px;
  }

  .page-hero {
    padding: 80px 0;
    min-height: 400px;
  }

  .page-hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .page-hero-subtitle {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 14px;
  }

  .latest-news-section,
  .stats-section {
    padding: 60px 0;
  }

  .latest-news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .latest-news-content {
    padding: 24px;
  }

  .stat-item {
    padding: 24px 20px;
  }

  .stat-number {
    font-size: 48px;
  }

  .section-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .homepage-hero {
    padding: 60px 0;
    min-height: 400px;
  }

  .services-section {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }

  .service-content {
    padding: 30px;
  }

  .service-title {
    font-size: 24px;
  }

  .service-image {
    height: 220px;
  }

  .benefit-item {
    padding: 10px 14px;
  }

  .service-btn {
    padding: 14px 28px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-number::after {
    font-size: 32px;
    right: -20px;
  }

  .latest-news-content,
  .stat-item {
    padding: 20px;
  }
}
