/* ===================================
   KYTKA DO ŠKOLY — V6 "Bold / Gradient"
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --color-primary: #16A34A;
  --color-primary-dark: #15803D;
  --color-primary-light: #DCFCE7;
  --color-accent: #84CC16;
  --color-text: #14532D;
  --color-text-muted: #4B7A5A;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F0FDF4;
  --color-bg-dark: #052E16;
  --color-border: #BBF7D0;
  --color-sidebar: #FFFFFF;
  --color-sidebar-border: #BBF7D0;

  --sidebar-width: 260px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --gradient-main: linear-gradient(135deg, #16A34A 0%, #84CC16 100%);
  --gradient-hero: linear-gradient(135deg, #16A34A 0%, #65A30D 100%);
  --shadow-card: 0 4px 20px rgba(21, 128, 61, 0.08);
  --shadow-hover: 0 12px 40px rgba(21, 128, 61, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-width: 1440px;
  display: flex;
}

/* ===== SIDEBAR ===== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-sidebar);
  border-right: 2px solid var(--color-sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-accent-bar {
  height: 4px;
  background: var(--gradient-main);
  flex-shrink: 0;
}

.sidebar-inner {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-brand {
  text-decoration: none;
  display: block;
  margin-bottom: 1.75rem;
}

.sidebar-brand-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.1rem;
}

.sidebar-brand-highlight {
  display: inline;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-brand-tagline {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.sidebar-divider {
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-nav a:hover {
  color: var(--color-primary-dark);
  background: var(--color-bg-alt);
}

.sidebar-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.sidebar-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.sidebar-cta {
  margin-top: 1.5rem;
}

.sidebar-cta a {
  display: block;
  background: var(--gradient-main);
  color: #fff;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

.sidebar-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
}

/* Live Counter Widget */
.sidebar-live-counter {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
}

.live-counter-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.live-counter-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-counter-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.live-counter-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.sidebar-back {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--color-border);
}

.sidebar-back a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-back a:hover { color: var(--color-primary-dark); }

/* ===== MAIN CONTENT ===== */

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ===== HERO ===== */

.hero {
  background: var(--color-bg);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at top right, rgba(132, 204, 22, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.hero h1 .gradient-word {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-perex {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 420px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-main);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(22, 163, 74, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-primary-dark);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color-border);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-visual-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-visual-header {
  background: var(--gradient-main);
  padding: 1.25rem 1.5rem;
}

.hero-visual-header h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.hero-visual-header p {
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
}

.hero-visual-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-plant-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  transition: all 0.2s;
}

.hero-plant-row:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.hero-plant-emoji {
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-plant-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero-plant-loc {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.hero-plant-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  flex-shrink: 0;
}

/* ===== STATS BAR ===== */

.stats-bar {
  background: var(--color-bg-dark);
  padding: 1.75rem 0;
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3.5rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ===== SECTIONS COMMON ===== */

section {
  padding: 5rem 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

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

.section-header .section-sub {
  max-width: 500px;
  margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */

.how-section {
  background: var(--color-bg-alt);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.step-number-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== PLANT CARDS ===== */

.plants-section {
  background: var(--color-bg);
}

.plants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.plant-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.plant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.plant-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.plant-card:hover::before {
  opacity: 1;
}

.plant-image {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
}

.plant-card:nth-child(1) .plant-image { background: linear-gradient(135deg, #DCFCE7, #BBF7D0); }
.plant-card:nth-child(2) .plant-image { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); }
.plant-card:nth-child(3) .plant-image { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); }
.plant-card:nth-child(4) .plant-image { background: linear-gradient(135deg, #FEF9EE, #FEF3C7); }

.plant-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plant-school {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.plant-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.plant-latin {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.plant-difficulty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.difficulty-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.difficulty-dots {
  display: flex;
  gap: 3px;
}

.difficulty-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.difficulty-dots span.active {
  background: var(--color-accent);
}

.plant-adopt-btn {
  display: block;
  width: 100%;
  background: var(--gradient-main);
  color: #fff;
  text-align: center;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  margin-top: auto;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.3);
}

.plant-adopt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

/* ===== SCHOOLS ===== */

.schools-section {
  background: var(--color-bg-alt);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.school-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all 0.25s ease;
}

.school-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.school-avatar {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  background: var(--color-primary-light);
  border: 2px solid var(--color-border);
}

.school-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.school-full {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.school-stats {
  display: flex;
  justify-content: center;
  gap: 0;
}

.school-stat {
  text-align: center;
  padding: 0 1.25rem;
  position: relative;
}

.school-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  width: 2px;
  background: var(--color-border);
}

.school-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.school-stat-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== CTA BANNER ===== */

.cta-banner {
  background: var(--gradient-hero);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(132,204,22,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 460px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--color-primary-dark);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */

footer {
  background: var(--color-bg-dark);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-accent {
  color: var(--color-accent);
}
