/* Dejme dětem prostor — desktop teaser
   Paleta z vzorníku + šedá ze schůzky.
   Comodo: nadpisy (soubor zatím chybí → fallback Montserrat).
   Open Sans: běžný text. */

@font-face {
  font-family: "Comodo";
  src: url("../fonts/Comodo.woff2") format("woff2"),
       url("../fonts/Comodo.woff") format("woff"),
       url("../fonts/Comodo.otf") format("opentype"),
       url("../fonts/Comodo.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime-light: #a2e436;
  --lime: #81c90a;
  --lime-bar: rgb(130, 201, 11);
  --orange-light: #f6722a;
  --orange: #e35508;
  --gray: #c2bfc4;
  --ink: #111111;
  --muted: #3a3a3a;
  --line: #e6e6e6;
  --bg: #ffffff;
  --font-display: "Comodo", "Montserrat", "Open Sans", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --radius-bar: 999px;
  --radius-card: 22px;
  --radius-photo: 28px;
  --shadow-photo: 0 14px 28px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 10px 22px rgba(0, 0, 0, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

body {
  min-width: 1280px;
}

.page {
  width: 1366px;
  margin: 0 auto;
  padding: 28px 36px 48px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 0 28px 0 36px;
  background: var(--lime-bar);
  border: 3px solid #111;
  border-radius: var(--radius-bar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.chevrons {
  display: flex;
  align-items: center;
  height: 42px;
}

.chevrons svg {
  display: block;
}

.pediq {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: #111;
  flex-shrink: 0;
  padding-right: 8px;
}

.pediq-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #1a1a1a;
}

.pediq-arrows {
  letter-spacing: -0.12em;
  margin-left: 2px;
}

.pediq-sub {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a1a1a;
}

/* Main layout */
.hero {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 48px;
  padding: 0 12px;
}

.photo {
  width: 400px;
  height: 400px;
  margin: 12px 0 0 10px;
  border: 10px solid var(--gray);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-photo);
  overflow: hidden;
  background: var(--gray);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.spaces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 28px;
}

.space {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 186px;
  padding: 40px 22px 28px 24px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.space:hover,
.space:focus-visible {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.space--orange:hover,
.space--orange:focus-visible {
  background: #fff3ea;
  border-color: var(--orange-light);
}

.space--lime:hover,
.space--lime:focus-visible {
  background: #f3fadc;
  border-color: var(--lime-bar);
}

.space:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.space h2 {
  position: absolute;
  top: -16px;
  left: 22px;
  margin: 0;
  padding: 7px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.space--orange h2 {
  background: var(--orange-light);
}

.space--lime h2 {
  background: var(--lime-bar);
}

.space .lead {
  margin: 0 8px 0 0;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
}

.space .desc {
  margin: 8px 28px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.space .arrow {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.space--orange .arrow {
  color: var(--orange-light);
}

.space--lime .arrow {
  color: var(--lime-bar);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 42px;
  padding: 0 18px;
  font-size: 14px;
  color: #666;
}

.footer a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

.logo-slot {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

/* --- Podstránka prostoru --- */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 8px 16px;
  font-size: 14px;
  color: #6b6b6b;
}

.crumb a {
  color: #6b6b6b;
  text-decoration: none;
}

.crumb a:hover,
.crumb a:focus-visible {
  color: var(--orange);
  text-decoration: underline;
}

.crumb .current {
  color: var(--orange);
  font-weight: 700;
}

.crumb-home {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #444;
}

.layout-space {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
  padding: 0 8px;
}

.space-aside .photo {
  width: 300px;
  height: 300px;
  margin: 0 0 18px;
}

.intro-card {
  padding: 20px 20px 16px;
  border: 2px solid #f3d9c8;
  border-radius: 18px;
  background: #fffaf6;
}

.intro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.intro-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}

.intro-head svg {
  flex-shrink: 0;
  color: var(--orange-light);
}

.intro-card .lead {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.intro-card .desc {
  margin: 0 0 12px;
  color: var(--muted);
}

.intro-card .body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.tip {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #f3d9c8;
  border-radius: 14px;
  background: #fff;
}

.tip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.tip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid var(--gray);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  background: #fff;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--orange-light);
  background: #fff3ea;
}

.panel {
  border: 1px solid #f0d5c4;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 6px;
  padding-left: 18px;
  margin-bottom: -1px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  text-decoration: none;
  font-weight: 700;
  color: var(--orange);
  background: #f4efe9;
}

.tab.is-active {
  color: #fff;
  background: var(--orange-light);
}

.tab:hover:not(.is-active) {
  background: #fbe7d8;
}

.block {
  padding: 18px 20px 16px;
}

.block--videos {
  background: #fff;
}

.block--articles {
  background: #fff6ee;
}

.block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  color: var(--orange);
}

.block-head p {
  margin: 4px 0 0 28px;
  font-size: 14px;
  color: var(--muted);
}

.filter {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--orange-light);
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter:hover,
.filter:focus-visible {
  background: #fff3ea;
}

.item-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.item-table td {
  background: #fff;
  padding: 10px 12px;
  vertical-align: middle;
  border-top: 1px solid #f0ece8;
  border-bottom: 1px solid #f0ece8;
}

.item-table tr td:first-child {
  border-left: 1px solid #f0ece8;
  border-radius: 12px 0 0 12px;
}

.item-table tr td:last-child {
  border-right: 1px solid #f0ece8;
  border-radius: 0 12px 12px 0;
}

.item-table tbody tr {
  cursor: pointer;
}

.item-table tbody tr:hover td {
  background: #fff3ea;
}

.thumb {
  width: 92px;
}

.thumb-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6722a, #81c90a);
  color: #fff;
}

.item-title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
}

.item-copy {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.duration {
  width: 72px;
  text-align: center;
}

.duration span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde8d8;
  color: #8a4a28;
  font-size: 13px;
  font-weight: 600;
}

.go {
  width: 36px;
  color: var(--orange-light);
  font-size: 26px;
  font-weight: 700;
  text-align: right;
}

.more {
  display: block;
  width: max-content;
  margin: 8px auto 4px;
  padding: 8px 18px;
  border: 1px solid var(--gray);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.more:hover,
.more:focus-visible {
  border-color: var(--orange-light);
  background: #fff3ea;
}

.ico {
  width: 28px;
  text-align: center;
  color: var(--orange-light);
}

.signoff {
  margin: 18px 8px 0;
  text-align: right;
  font-family: "Caveat", "Open Sans", cursive;
  font-size: 28px;
  color: var(--lime-bar);
}
