/* ========================================================== */
/* KONFIGURÁCIA FARIEB A PREMIENNÝCH */
/* ========================================================== */
:root {
  --primary-deep: #1a2550;
  --accent-blue: #2a3873;
  --logo-primary-dark-blue: #033466;
  --soft-bg: #f4f7fa;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 15px 45px rgba(42, 56, 115, 0.12);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ========================================================== */
/* HLAVNÁ STRÁNKA (INDEX) */
/* ========================================================== */

/* Hero Sekcia */
.hero-section {
  padding: 80px 0 60px;
  background: radial-gradient(circle at top right, #ffffff 0%, #eef4ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "RegiSPORT";
  position: absolute;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(26, 37, 80, 0.02);
  bottom: -20px;
  right: -20px;
  pointer-events: none;
}

.logo-wrapper {
  margin-bottom: 0px;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
  position: relative;
  z-index: 2;
}

.logo-main {
  max-width: 320px;
  height: auto;
}

.banner-subtitle {
  color: var(--accent-blue);
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Informačný panel */
.info-panel {
  background: #ffffff;
  padding: 40px;
  border-radius: 30px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.info-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to bottom, var(--primary-deep), var(--accent-blue));
}

.text-highlight {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  display: block;
}

.description-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 0;
}

/* Sekcia s podsystémami (Gridy) */
.systems-grid-section {
  padding: 100px 0;
  background-color: var(--soft-bg);
  border-top: 1px solid #eef2f7;
  border-radius: 60px 60px 0 0;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.section-title {
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.6rem !important;
  opacity: 0.9;
}

.system-link {
  text-decoration: none !important;
  display: block;
  height: 100%;
}

/* Karty podsystémov */
.system-card {
  border: none;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 45px 30px 35px;
  min-height: 350px;
  height: 100%;
  position: relative;
}

.card-image-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 25px;
}

.system-card img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  transition: var(--transition);
  filter: grayscale(5%) contrast(95%);
}

.card-title-text {
  font-weight: 800;
  color: var(--primary-deep);
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: block;
  transition: var(--transition);
}

.card-description-text {
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Hover efekty */
.system-link:hover .system-card {
  transform: translateY(-15px);
  box-shadow: var(--hover-shadow);
  background: linear-gradient(to bottom, #ffffff, #fcfdff);
}

.system-link:hover .card-title-text {
  color: var(--accent-blue);
}

.system-link:hover .system-card img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(100%);
}

/* ========================================================= */
/* RESPONZIVITA */
/* ========================================================= */

@media (max-width: 768px) {
  .hero-section { padding: 60px 0; }
  .logo-main { max-width: 240px; }
  .systems-grid-section { border-radius: 40px 40px 0 0; padding: 60px 0; }
  .info-panel { padding: 30px; border-radius: 20px; }
  .text-highlight { font-size: 1.25rem; }
  .section-title { font-size: 1.3rem !important; margin-bottom: 40px; }
  .system-card { min-height: 300px; padding: 30px 20px; }
  .system-card img { max-height: 100px; }
}