:root {
  --bg: #020617;
  --bg-alt: #020617;
  --surface: #02081f;
  --surface-alt: #020617;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #22c55e;
  --accent-alt: #38bdf8;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --radius-lg: 1.1rem;
  --radius-full: 999px;
  --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.95);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #020617, #020617 55%, #000 100%);
  color: var(--text-main);
}

body {
  min-height: 100vh;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1040px;
  padding: 0 1.3rem;
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.98),
    rgba(2, 6, 23, 0.92),
    transparent
  );
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.3rem;
  gap: 1rem;
}

/* Logo */

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo-main {
  font-size: 1.15rem;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.8rem;
  opacity: 0.7;
  color: var(--accent);
}

/* Nav */

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  transition: color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}

.nav a:hover {
  color: var(--accent-alt);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* Language toggle */

.lang-toggle {
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.23rem 0.9rem;
  background: radial-gradient(circle at top, #0b1120, #020617);
  color: var(--text-main);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
}

.lang-toggle:hover {
  background: radial-gradient(circle at top, #1d283a, #020617);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.65);
}

.lang-toggle:active {
  transform: translateY(1px);
}

/* Hero */

.hero {
  padding: 3.3rem 0 2.6rem;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
  gap: 1.8rem;
  align-items: stretch;
}

.hero-left {
  border-radius: 1.3rem;
  padding: 1.7rem 1.7rem 1.9rem;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
}

.hero-right {
  border-radius: 1.3rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: radial-gradient(circle at top right, #052e16, #020617 70%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: var(--shadow-soft);
}

/* Použijeme existující obsah hero beze změny struktury */
.hero h1 {
  font-size: clamp(2rem, 3.1vw, 2.6rem);
  margin: 0 0 0.9rem;
}

.hero-subtitle {
  margin: 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.hero-meta span {
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.95);
  color: var(--accent-alt);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Sekce – obecně */

.section {
  padding: 2.4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left,
    #020617 0,
    #020617 55%,
    #000 100%);
  border-top: 0;
  border-bottom: O;
}

.section h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.section-intro {
  margin: 0 0 1.6rem;
  max-width: 600px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem 1.2rem;
  background: radial-gradient(circle at top, #020617, #020617 60%, #000 120%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.tag {
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.card h3 {
  font-size: 1.06rem;
  margin: 0;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-footer {
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
}

.card-lang {
  color: var(--text-muted);
}

.card-link {
  margin-left: auto;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-full);
  padding: 0.27rem 0.8rem;
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: var(--accent-alt);
  background: rgba(15, 23, 42, 0.9);
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.card-link:hover {
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

/* Contact */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.contact-list span {
  display: inline-block;
  width: 9rem;
  max-width: 100%;
  color: var(--text-muted);
}

.contact-list a {
  color: var(--accent-alt);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.2rem 0 1.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: radial-gradient(circle at bottom, #020617, #000);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

/* Responsive */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

