:root {
  --bg: #f4f8f5;
  --surface: #ffffff;
  --surface-soft: #e9f1eb;
  --text: #17352c;
  --muted: #4f675f;
  --line: #d2ddd5;
  --brand: #0c6a43;
  --brand-dark: #0a5636;
  --accent: #b8d8c6;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 24px 48px rgba(23, 53, 44, 0.1);
  --container: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, #e3efe7 0%, transparent 28%),
    radial-gradient(circle at 88% 4%, #ecf7ee 0%, transparent 22%),
    linear-gradient(180deg, #f7fbf8 0%, #f2f7f3 100%);
}

a {
  color: inherit;
}

.pricing {
  padding: 48px 0 84px;
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.top-bar {
  margin-bottom: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #35584d;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
  transition: 0.2s ease;
}

.back-link:hover {
  border-color: #9ab9a6;
  color: var(--brand-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 26px;
}

.section-header h1 {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: #132e25;
}

.text-accent {
  color: var(--brand);
}

.center-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
}

.toggle-switch {
  display: inline-flex;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #cad8cd;
  background: #edf5ef;
  padding: 6px;
  margin: 0 auto 20px;
}

.toggle-switch button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  color: #365a4e;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.toggle-switch button.active {
  background: var(--brand);
  color: #f4fff8;
  box-shadow: 0 10px 20px rgba(12, 106, 67, 0.22);
}

.toggle-switch button:not(.active):hover {
  color: var(--brand-dark);
}

.cenik-sekce {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(23, 53, 44, 0.06);
  padding: 22px;
  margin-bottom: 16px;
}

.cenik-sekce h2 {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  margin-bottom: 8px;
}

.poznamka {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.poznamka-bottom {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  font-family: "Noto Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: #2f4f44;
  background: #eef5f0;
}

th, td {
  border-bottom: 1px solid #d4dfd6;
  padding: 12px 13px;
}

tbody tr:hover {
  background: #f4faf6;
}

tbody tr:last-child td {
  border-bottom: none;
}

td {
  color: #28463d;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .pricing {
    padding: 28px 0 64px;
  }

  .toggle-switch {
    display: grid;
    width: 100%;
    border-radius: 16px;
  }

  .toggle-switch button {
    width: 100%;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    border: 1px solid #d2ddd4;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f9fcfa;
    overflow: hidden;
  }

  td {
    border: none;
    border-bottom: 1px solid #deebe2;
    padding: 10px 12px;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #78958a;
    margin-bottom: 3px;
  }
}
