@font-face {
  font-family: 'PT Sans';
  src: url('css/PT_Sans-Web-Regular.woff2') format('woff2'),
       url('css/PT_Sans-Web-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('css/PT_Sans-Web-Bold.woff2') format('woff2'),
       url('css/PT_Sans-Web-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #1c1d6c;
  --blue-light: #e8e9f4;
  --gray: #6b6b6b;
  --text: #1a1a1a;
  --bg: #f0eff0;
  --white: #ffffff;
  --thumb-w: 120px;
  --thumb-h: 80px;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'PT Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Header ── */

header {
  background: var(--blue);
  color: var(--white);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 5px 20px 5px;
  gap: 40px;
}

.header-logo {
  height: 260px;
  width: auto;
  flex-shrink: 0;
  align-self: center;
}

.header-lang {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  padding: 0 4px 10px;
  flex-shrink: 0;
}

.header-lang a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  white-space: nowrap;
}

.header-lang a:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.header-window {
  flex-shrink: 0;
  width: 200px;
  align-self: stretch;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 3px;
}

.header-window img {
  width: 100%;
  height: auto;
  display: block;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: 4rem;
  line-height: 1.05;
}

.header-intro {
  font-size: 1rem;
  opacity: 0.55;
  margin-top: 16px;
  max-width: 380px;
  line-height: 1.5;
}

/* ── Main ── */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

/* ── Two-column grid ── */

.two-col {
  display: grid;
  grid-template-columns: 57fr 43fr;
  gap: 24px;
  align-items: start;
}

/* ── Sections ── */

section {
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

section:last-child { margin-bottom: 0; }

section h2 {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 7px;
  margin-bottom: 16px;
}

.section-cestopisy  { background: #ecedf8; }
.section-fotogalerie { background: #f5f0e8; }
.section-blog       { background: #e5f0ec; }

/* ── Cards ── */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  display: flex;
  position: relative;
  background: transparent;
  border-radius: 7px;
  text-decoration: none;
  color: inherit;
}

/* dark year block as flex item before thumbnail */
.card[data-year]::before {
  content: attr(data-year);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  margin-right: 10px;
}

.section-cestopisy .card[data-year]::before  { background: #e0dff8; color: #6668a8; }
.section-fotogalerie .card[data-year]::before { background: #ede0c8; color: #8a6535; }

/* thumbnail */

.card-thumb {
  width: var(--thumb-w);
  aspect-ratio: 3/2;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--blue-light);
  position: relative;
  border-radius: 7px;
  align-self: flex-start;
}

.card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: var(--thumb-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #c9caeb 0%, var(--blue) 100%);
}

.card-thumb-placeholder svg { opacity: 0.35; }

/* body */

.card-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.card-year { display: none; }

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  line-height: 1.5;
  display: inline;
  background: var(--blue);
  padding: 1px 5px;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  align-self: flex-start;
}

.card:hover .card-title {
  background: #3d3fa0;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.35;
}

.card-flag {
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

/* ── Footer ── */

footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-size: 0.78rem;
  padding: 14px 20px;
}

/* ── Responsive ── */

@media (max-width: 680px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .header-window { display: none; }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo text" "lang lang";
    column-gap: 20px;
    row-gap: 0;
    padding: 20px 20px 0;
    align-items: center;
  }

  .header-logo { grid-area: logo; height: 130px; width: auto; }
  .header-text { grid-area: text; }

  h1 { font-size: 2.2rem; }
  .header-intro { font-size: 0.9rem; margin-top: 10px; }
  .header-lang { grid-area: lang; width: auto; margin-left: 0; justify-content: flex-end; padding: 8px 0 14px; }

  main { padding: 20px 16px 56px; }

  section { border-radius: 10px; padding: 18px; }
}
