@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap&subset=cyrillic,cyrillic-ext,latin-ext");

@font-face {
  font-family: "Nuckle";
  src: url("./pismo/Nuckle%20Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nuckle";
  src: url("./pismo/Nuckle%20Semi%20Bold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nuckle";
  src: url("./pismo/Nuckle%20Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KarlaHand";
  src: url("./pismo/KarlaHand-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fffbfa;
  --bg-strong: #fffbfa;
  --surface: #fffbfa;
  --surface-strong: #fffbfa;
  --text: #121212;
  --muted: #4d4d4d;
  --line: rgba(18, 18, 18, 0.12);
  --accent: #ff3700;
  --accent-soft: #fef069;
  --accent-blue: #005bbb;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: none;
  --max: 1024px;
  --font-display: "Nuckle", "Arial Narrow", Arial, sans-serif;
  --font-body: "Nuckle", Arial, sans-serif;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-ua: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --weight-title: 600;
  --weight-perex: 500;
  --weight-button: 700;
  --type-page-title-size: 50px;
  --type-page-title-line: 50px;
  --type-subpage-title-size: 36px;
  --type-subpage-title-line: 38px;
  --type-theme-title-size: var(--type-subpage-title-size);
  --type-theme-title-line: var(--type-subpage-title-line);
  --type-mobile-title-size: 33px;
  --type-mobile-title-line: 34px;
  --type-subpage-mobile-title-size: clamp(38px, 12vw, 52px);
  --type-subpage-mobile-title-line: 0.98;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

body:not([data-page="home"]) {
  --bg: #fff;
  --bg-strong: #fff;
  --surface: #fff;
  --surface-strong: #fff;
}

body[data-page="oprojektu"] {
  --bg: #fffbfa;
  --bg-strong: #fffbfa;
  --surface: #fffbfa;
  --surface-strong: #fffbfa;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 251, 250, 0.98);
  border-bottom: 0.5px solid rgba(18, 18, 18, 0.28);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 49px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 250, 0.9);
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}

.nav-toggle-line::before {
  transform: translateY(-5px);
}

.nav-toggle-line::after {
  transform: translateY(3px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobile-ua-link {
  display: none;
}

.mobile-nav-heading,
.mobile-nav-link,
.mobile-nav-sublink {
  text-decoration: none;
}

.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--accent);
  text-transform: lowercase;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--accent-blue);
}

.main {
  padding-bottom: 32px;
}

body[data-page="theme"] .main {
  padding-bottom: 0;
}

body[data-page="kontakt"] .shell {
  min-height: 0;
}

body[data-page="kontakt"] .main {
  padding-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: var(--weight-button);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-outline:hover,
.button-ghost:hover {
  border-color: #111;
  background: #111;
  color: #fff06a;
}

.button-ghost {
  background: transparent;
  color: var(--text);
}

.section {
  padding: 18px 0;
}

.section-inner {
  display: grid;
  gap: 20px;
}

.feature-card,
.topic-card,
.link-card,
.book-card,
.ua-card,
.detail-card,
.panel {
  overflow: hidden;
  border-top: 1px solid rgba(18, 18, 18, 0.09);
  border-bottom: 1px solid rgba(18, 18, 18, 0.09);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.topic-title,
.card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.topic-description,
.card-text,
.meta-text,
.footer-note,
.book-author {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.link-card .button,
.ua-card .button {
  justify-self: start;
}

.site-footer {
  position: relative;
  border-top: 0;
  background: transparent;
}

.site-footer::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  background: #fff;
  content: "";
  transform: translateX(-50%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0 24px;
}

.footer-note {
  font-size: 0.68rem;
  font-family: var(--font-display);
  color: var(--accent);
}

/* Na zoomovanych sirkach (canvas 1024 se scaluje) je paticka soucasti scalu,
   takze zakladni velikost musi byt mala jako v readymag canvasu (~8px). */
@media (min-width: 1101px) {
  .footer-note {
    font-size: 8px;
    line-height: 1.25;
  }
}

.footer-note:nth-child(2) {
  text-align: center;
}

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

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

.fade-up.delay-1 {
  animation-delay: 90ms;
}

.fade-up.delay-2 {
  animation-delay: 180ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero,
.home-about,
.home-contact {
  padding: 0;
}

.home-hero-inner,
.home-about-inner,
.home-contact-inner {
  gap: 0;
}

.home-hero {
  background: transparent;
}

.home-hero-inner {
  position: relative;
  display: block;
  min-height: 623px;
  padding: 0;
}

.home-kicker,
.home-section-title,
.home-slide-title,
.home-email,
.brand,
.hero-title,
.section-title,
.detail-title,
.topic-title,
.card-title {
  font-family: var(--font-display);
}

.home-kicker,
.home-section-title,
.home-slide-title {
  letter-spacing: -0.04em;
}

.home-intro-text,
.home-slide-text {
  font-family: var(--font-body);
  letter-spacing: -0.015em;
}

.footer-note {
  letter-spacing: -0.015em;
}

.home-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-dots {
  position: absolute;
  left: 486px;
  bottom: 150px;
  display: flex;
  gap: 9px;
}

.home-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
}

.home-dot.is-active {
  background: var(--accent);
}

.home-about {
  background: var(--bg);
}

.home-about-inner {
  grid-template-columns: 1fr 449px;
  padding: 205px 0 120px;
}

.home-about-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 42px 0 0 158px;
}

.home-section-title {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.02;
}

.home-about-copy .button {
  justify-self: start;
  margin-top: 8px;
}

.home-contact {
  background: var(--bg);
}

.home-contact-inner {
  grid-template-columns: 480px 370px;
  justify-content: space-between;
  align-items: start;
  padding: 40px 79px 74px;
}

.home-contact-card {
  min-height: 224px;
  padding: 25px 33px;
  border-radius: 10px;
  background: var(--accent-soft);
}

.home-contact-card .home-section-title {
  max-width: 8ch;
}

.home-contact-card .home-section-title span {
  letter-spacing: -0.03em;
}

.home-email {
  display: inline-block;
  margin-top: 32px;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(18, 18, 18, 0.08);
    border-radius: 24px;
    background: rgba(255, 251, 250, 0.96);
    box-shadow: 0 22px 60px rgba(20, 16, 14, 0.12);
  }

  .site-header.is-open .nav-menu {
    display: flex;
  }

  .home-hero-inner,
  .home-about-inner,
  .home-contact-inner,
  .hero-frame {
    grid-template-columns: 1fr;
  }

  .home-intro,
  .home-about-copy,
  .home-contact-inner {
    position: static;
    padding-left: 0;
    padding-right: 0;
  }

  .home-hero-inner {
    display: grid;
    min-height: 0;
  }

  .home-slide,
  .home-contact-inner {
    gap: 18px;
  }

  .home-slide:not(.is-active) {
    display: none;
  }

  .home-dots {
    position: static;
    margin-top: 14px;
  }

  .home-about-inner {
    padding: 70px 0;
  }

  .home-about-copy {
    padding-top: 0;
  }

  .home-contact-inner {
    padding: 28px 0 40px;
  }

  .home-contact-card {
    min-height: 0;
  }
}@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 22px), var(--max));
  }

  .brand {
    font-size: 1.72rem;
  }

  .home-kicker,
  .home-section-title {
    font-size: 1.82rem;
  }

  .home-contact-card {
    padding: 22px;
  }

  .footer-inner {
    padding-top: 18px;
  }
}

body[data-page="home"],
body:not([data-page="home"]) {
  background: var(--bg);
  --site-scale: 1.5;
  --home-desktop-zoom: 1;
}

body[data-page="home"] .shell,
body:not([data-page="home"]) .shell {
  width: 100%;
  margin: 0 auto;
}@media (min-width: 1101px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --home-desktop-zoom: 1;
    overflow-x: hidden;
  }

  body[data-page="home"] .shell,
  body:not([data-page="home"]) .shell {
    width: 1024px;
    /* Skalovani designu (1024 canvas) na sirku okna jako listovatel.cz. zoom musi byt plain cislo (neumi calc/clamp), proto stupne nize. */
    zoom: var(--home-desktop-zoom);
  }
}@media (min-width: 1241px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --home-desktop-zoom: 1.12;
  }
}@media (min-width: 1361px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --home-desktop-zoom: 1.25;
  }
}@media (min-width: 1501px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --home-desktop-zoom: 1.38;
  }
}@media (min-width: 1641px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --home-desktop-zoom: 1.5;
  }
}@media (min-width: 1781px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --home-desktop-zoom: 1.62;
  }
}@media (min-width: 1921px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --home-desktop-zoom: 1.74;
  }
}@media (min-width: 2101px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --home-desktop-zoom: 1.85;
  }
}@media (max-width: 1100px) {
  body[data-page="home"],
  body:not([data-page="home"]) {
    --site-scale: 1;
    --home-desktop-zoom: 1;
  }
}

body[data-page="home"] .header-inner,
body[data-page="home"] .section-inner,
body[data-page="home"] .footer-inner,
body:not([data-page="home"]) .header-inner,
body:not([data-page="home"]) .section-inner,
body:not([data-page="home"]) .footer-inner {
  width: 1024px;
  max-width: 1024px;
}

body[data-page="home"] .site-header,
body:not([data-page="home"]) .site-header {
  border-bottom: 0;
  background: var(--bg);
}

body[data-page="home"] .header-inner,
body:not([data-page="home"]) .header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 49px;
}

body[data-page="home"] .header-inner::before,
body:not([data-page="home"]) .header-inner::before {
  content: none;
}

body[data-page="home"] .brand,
body:not([data-page="home"]) .brand {
  justify-self: center;
  font-size: 33px;
  line-height: 38px;
  letter-spacing: -1.3px;
}

.nav-cluster {
  display: none;
  align-items: center;
}

.nav-cluster-left {
  justify-self: start;
  gap: 96px;
  margin-left: 87px;
}

.nav-cluster-right {
  justify-self: end;
  gap: 70px;
}

.nav-cluster-right .nav-link:first-child {
  margin-right: 60px;
}

body[data-page="home"] .nav-link,
body:not([data-page="home"]) .nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-link-ua {
  text-transform: uppercase;
}

body[data-page="home"] .nav-cluster,
body:not([data-page="home"]) .nav-cluster {
  display: flex;
}

body[data-page="home"] .nav-menu,
body:not([data-page="home"]) .nav-menu {
  display: none;
}

.button-outline,
.button-ghost {
  min-height: 29px;
  padding: 0 10px;
  border: 0.5px solid #111;
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: lowercase;
}

.home-hero,
.home-story,
.home-about,
.home-themes,
.home-print,
.home-contact {
  padding: 0;
}

.home-hero-inner,
.home-story-inner,
.home-about-inner,
.home-themes-inner,
.home-print-inner,
.home-contact-inner {
  gap: 0;
}

.home-hero {
  padding-top: 31px;
  background: transparent;
}

.home-hero-inner {
  position: relative;
  display: block;
  min-height: 466px;
}

.home-hero-card {
  position: absolute;
  left: 50px;
  top: 0;
  width: 687px;
  min-height: 384px;
  padding: 42px 76px 0 76px;
  border-radius: 10px;
  background: #fff06a;
}

.home-hero-title,
.home-themes-heading,
.home-section-title,
.home-theme-title {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.home-hero-title {
  max-width: 396px;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-hero-text,
.home-story-text,
.home-theme-description,
.home-contact-text {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.home-hero-text {
  max-width: 275px;
  margin-top: 35px;
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.home-hero-button {
  margin-top: 22px;
}

.home-hero-doodles {
  position: absolute;
  left: 118px;
  top: 176px;
  width: 267px;
  height: 191px;
  object-fit: contain;
  pointer-events: none;
}

.home-awards {
  position: absolute;
  left: 227px;
  top: 414px;
  display: flex;
  gap: 11px;
  z-index: 2;
}

.award-badge {
  width: 83px;
  height: 83px;
  margin: 0;
}

.award-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-hero-scene {
  position: absolute;
  left: 435px;
  top: 160px;
  width: 539px;
  height: 304px;
  min-height: 304px;
}

.home-hero-visual {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 304px;
  overflow: hidden;
  background: #000;
}

.home-hero-visual img,
.home-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
}

.home-story {
  padding-top: 88px;
}

.home-story-inner {
  position: relative;
  display: block;
  min-height: 408px;
}

.home-story-photo {
  position: absolute;
  left: 129px;
  top: 0;
  margin: 0;
  width: 529px;
  height: 435px;
}

.home-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-story-card {
  position: absolute;
  left: 579px;
  top: 104px;
  z-index: 2;
  width: 342px;
  min-height: 304px;
  margin-left: 0;
  margin-bottom: 0;
  padding: 43px 26px 24px;
  border-radius: 10px;
  background: #fff06a;
}

.home-section-title {
  font-size: 36px;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.home-story-text {
  max-width: 299px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.32;
}

.home-story-button {
  margin-top: 20px;
}

.home-about {
  padding-top: 97px;
}

.home-about-inner {
  position: relative;
  display: block;
  min-height: 560px;
}

.home-about-copy {
  position: absolute;
  left: 50px;
  top: 0;
  width: 370px;
  max-width: none;
  padding-top: 0;
}

.home-about-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.home-about-text,
.home-about-note {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.home-about-text {
  max-width: 370px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.32;
  letter-spacing: 0;
}

.home-about-button {
  margin-top: 24px;
  min-width: 94px;
}

.home-about-photo,
.home-about-workbook {
  margin: 0;
}

.home-about-photo {
  position: absolute;
  left: 605px;
  top: 127px;
  width: 369px;
  max-width: none;
}

.home-about-workbook {
  position: absolute;
  left: 50px;
  top: 220px;
  width: 449px;
  max-width: none;
}

.home-about-photo img,
.home-about-workbook img {
  width: 100%;
  display: block;
}

.home-about-note {
  position: absolute;
  left: 605px;
  top: 420px;
  max-width: 237px;
  padding-bottom: 0;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.home-themes {
  padding-top: 96px;
}

.home-themes-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px;
  align-items: start;
}

.home-themes-stage {
  position: sticky;
  top: 18px;
  min-height: 524px;
  padding-top: 0;
}

.home-themes-heading {
  font-size: 36px;
  line-height: 35px;
  letter-spacing: -0.36px;
}

.home-themes-heading-wrap {
  padding-left: 48px;
}

.home-themes-content {
  position: relative;
  min-height: 474px;
  margin-top: 20px;
}

.home-theme-copy {
  position: absolute;
  left: 50px;
  top: 198px;
  width: 290px;
  min-height: 0;
  padding-top: 0;
}

.home-theme-panel {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.home-theme-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-theme-title {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.home-theme-description {
  max-width: 290px;
  font-size: 9px;
  line-height: 1.45;
}

.home-theme-button {
  justify-self: start;
  margin-top: 8px;
  min-width: 136px;
}

.home-theme-media {
  position: absolute;
  left: 376px;
  top: 0;
  width: 556px;
  min-height: 392px;
}

.home-theme-image {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.home-theme-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-theme-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

.home-dots {
  position: absolute;
  left: 654px;
  top: 452px;
  display: flex;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 0;
  padding-right: 0;
  transform: translateX(-50%);
}

.home-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #ff3700;
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
}

.home-dot.is-active {
  background: #ff3700;
}

.home-theme-steps {
  display: block;
  width: 1px;
}

.home-theme-mobile-list {
  display: none;
}

.home-theme-step {
  height: 64vh;
  opacity: 0;
  overflow: hidden;
}

.home-print-workbook,
.home-print-side,
.home-contact-portrait {
  margin: 0;
}

.home-print-workbook img,
.home-print-side img,
.home-contact-portrait img {
  width: 100%;
  display: block;
}

.home-contact {
  padding: 56px 0 140px;
}

.home-contact-inner {
  display: grid;
  grid-template-columns: 480px 370px;
  justify-content: start;
  gap: 0;
  align-items: end;
  min-height: 341px;
  padding: 0;
  background: transparent;
}

.home-contact-portrait {
  width: 100%;
  max-width: 480px;
  align-self: end;
  margin-left: 29px;
}

.home-contact-card {
  min-height: 224px;
  margin-left: 46px;
  padding: 25px 33px 27px;
  border-radius: 10px;
  background: #fff06a;
}

.home-contact-card .home-section-title {
  max-width: 316px;
  font-size: 36px;
  line-height: 0.98;
}

.home-contact-text {
  max-width: 316px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.32;
}

.home-email {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body[data-page="home"] .site-footer {
  border-top: 0;
  background: #fff;
}

body[data-page="oprojektu"] .site-footer {
  border-top: 0;
  background: #fff;
}

/* Paticka sjednocena napric strankami (drive se home/oprojektu lisily) */
@media (max-width: 1100px) {
  body[data-page="home"] .header-inner,
  body[data-page="home"] .section-inner,
  body[data-page="home"] .footer-inner,
  body:not([data-page="home"]) .header-inner,
  body:not([data-page="home"]) .section-inner,
  body:not([data-page="home"]) .footer-inner {
    width: min(calc(100% - 28px), 980px);
  }

  body[data-page="home"] .header-inner,
  body:not([data-page="home"]) .header-inner {
    min-height: 88px;
  }

  body[data-page="home"] .brand,
  body:not([data-page="home"]) .brand {
    font-size: 42px;
    line-height: 44px;
  }

  .nav-cluster {
    gap: 36px;
  }

  .nav-cluster-left {
    margin-left: 0;
  }

  .nav-cluster-right .nav-link:first-child {
    margin-right: 0;
  }

  .home-hero-inner,
  .home-story-inner,
  .home-about-inner,
  .home-print-inner,
  .home-contact-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .home-hero-card,
  .home-hero-scene,
  .home-story-photo,
  .home-story-card,
  .home-about-copy,
  .home-about-photo,
  .home-about-workbook,
  .home-about-note,
  .home-theme-media {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .home-hero-card {
    order: 2;
    padding: 56px 40px 114px;
    border-radius: 10px;
  }

  .home-awards {
    left: 40px;
    top: auto;
    bottom: -42px;
    transform: none;
  }

  .home-hero-doodles {
    left: 128px;
    top: 196px;
  }

  .home-hero-scene {
    order: 1;
    height: 420px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .home-story {
    padding-top: 92px;
  }

  .home-story-inner {
    row-gap: 24px;
  }

  .home-story-card {
    margin-left: 0;
    min-height: 0;
    margin-bottom: 0;
    border-radius: 10px;
  }

  .home-about {
    padding-top: 108px;
  }

  .home-about-inner {
    row-gap: 32px;
  }

  .home-about-copy {
    max-width: 100%;
    padding-top: 0;
  }

  .home-about-photo,
  .home-about-workbook {
    max-width: 100%;
  }

  .home-about-note {
    max-width: 340px;
    padding-bottom: 0;
  }

  .home-themes-stage {
    top: 18px;
  }

  .home-themes-content {
    grid-template-columns: 1fr;
  }

  .home-theme-copy {
    min-height: 290px;
    padding-top: 0;
    padding-right: 0;
  }

  .home-theme-panel {
    position: relative;
    inset: auto;
  }

  .home-theme-media {
    min-height: 640px;
  }

  .home-contact {
    padding-top: 72px;
  }
}@media (max-width: 980px) {
  body[data-page="home"] .header-inner,
  body[data-page="home"] .section-inner,
  body[data-page="home"] .footer-inner,
  body:not([data-page="home"]) .header-inner,
  body:not([data-page="home"]) .section-inner,
  body:not([data-page="home"]) .footer-inner {
    width: min(calc(100% - 24px), 980px);
  }

  /* Podstranky: obsahove kontejnery na plnou sirku, 16px inset resi vnitrni padding obsahu / gridy jdou do kraje */
  body:not([data-page="home"]) .section-inner {
    width: 100%;
  }

  body[data-page="home"] .header-inner,
  body:not([data-page="home"]) .header-inner {
    display: flex;
    position: relative;
    min-height: 88px;
    padding: 0 24px;
  }

  body[data-page="home"] .brand,
  body:not([data-page="home"]) .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-inline: auto;
    font-size: 42px;
    line-height: 44px;
  }

  .nav-cluster,
  body[data-page="home"] .nav-cluster,
  body:not([data-page="home"]) .nav-cluster {
    display: none;
  }

  .mobile-ua-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: auto;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #ff3700;
    text-decoration: none;
  }

  body[data-page="home"] .nav-toggle,
  body:not([data-page="home"]) .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 32;
    width: 39px;
    height: 39px;
    margin-left: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-page="home"] .nav-menu,
  body:not([data-page="home"]) .nav-menu {
    position: absolute;
    top: 88px;
    left: auto;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: min(59vw, 360px);
    min-width: 240px;
    gap: 0;
    padding: 36px 32px 42px;
    border: 0;
    border-radius: 18px;
    background: #ff3700;
    box-shadow: none;
    z-index: 30;
  }

  body[data-page="home"] .site-header.is-open .nav-menu,
  body:not([data-page="home"]) .site-header.is-open .nav-menu {
    display: flex;
  }

  .mobile-nav-heading,
  .mobile-nav-link {
    display: block;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.08;
    color: #fff;
  }

  .mobile-nav-heading {
    margin-bottom: 28px;
  }

  .mobile-nav-themes {
    display: grid;
    gap: 28px;
    margin: 0 0 76px 54px;
  }

  .mobile-nav-sublink {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
  }

  .mobile-nav-link + .mobile-nav-link {
    margin-top: 34px;
  }

  .nav-toggle-line,
  .nav-toggle-line::before,
  .nav-toggle-line::after {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff3700;
    transition: transform 180ms ease, width 180ms ease, height 180ms ease, border-radius 180ms ease, opacity 180ms ease;
  }

  .nav-toggle-line {
    position: relative;
    transform: none;
  }

  .nav-toggle-line::before {
    position: absolute;
    left: -14px;
    top: 0;
    transform: none;
  }

  .nav-toggle-line::after {
    position: absolute;
    left: 14px;
    top: 0;
    transform: none;
  }

  .site-header.is-open .nav-toggle-line {
    width: 29px;
    height: 29px;
    border-radius: 0;
    background: transparent;
    transform: none;
  }

  .site-header.is-open .nav-toggle-line::before,
  .site-header.is-open .nav-toggle-line::after {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 29px;
    height: 4px;
    border-radius: 0;
    background: #ff3700;
    opacity: 1;
    transform-origin: center;
  }

  .site-header.is-open .nav-toggle-line::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .site-header.is-open .nav-toggle-line::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .button-outline {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .home-hero {
    padding-top: 0;
  }

  .home-hero-card {
    padding: 32px 24px 88px;
    border-radius: 0;
  }

  .home-hero-title {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .home-hero-text {
    margin-top: 24px;
    max-width: 11ch;
    font-size: 1.35rem;
  }

  .home-awards {
    left: 24px;
    bottom: -26px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .award-badge {
    width: 62px;
    height: 62px;
  }

  .home-hero-scene {
    height: 280px;
    margin-top: 26px;
  }

  .home-hero-visual {
    min-height: 280px;
  }

  .home-story,
  .home-about,
  .home-themes,
  .home-print,
  .home-contact {
    padding-top: 44px;
  }

  .home-story-photo {
    min-height: 380px;
  }

  .home-story-card,
  .home-contact-card {
    padding: 0;
  }

  .home-story-card {
    border-radius: 0;
  }

  .home-about-title {
    font-size: clamp(2.9rem, 13vw, 4rem);
  }

  .home-about-text,
  .home-about-note {
    font-size: 0.95rem;
    line-height: 1.18;
  }

  .home-about-button {
    margin-top: 22px;
  }

  .home-section-title {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .home-story-text,
  .home-contact-text,
  .home-theme-description {
    font-size: 0.95rem;
  }

  .home-themes-stage {
    position: relative;
    top: auto;
    padding-top: 0;
  }

  .home-themes-heading {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .home-themes-content {
    gap: 12px;
    margin-top: 18px;
  }

  .home-theme-media {
    min-height: 360px;
  }

  .home-dots {
    left: 50%;
    top: 398px;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 4px;
    transform: translateX(-50%);
  }

  .home-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .home-theme-steps {
    display: none;
  }

  .home-print-inner,
  .home-contact-inner {
    gap: 28px;
  }

  .home-print-inner,
  .home-contact-inner {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .home-print-workbook,
  .home-print-side,
  .home-contact-portrait {
    width: 100%;
    max-width: none;
  }

  .home-contact-inner {
    min-height: 0;
    padding: 30px 24px;
  }

  .home-email {
    margin-top: 34px;
    font-size: 1rem;
  }
}

.page-hero,
.page-section,
.theme-page-hero,
.contact-page,
.ua-hero,
.ua-story {
  padding: 0;
}

.page-hero-inner,
.page-section-head,
.theme-page-inner,
.contact-page-inner,
.about-layout,
.ua-story-inner,
.ua-hero-inner,
.topic-rows,
.sheet-grid,
.inspiration-list {
  width: min(calc(100% - 32px), 1024px);
  margin: 0 auto;
}

.page-hero-inner,
.theme-page-inner,
.contact-page-inner,
.ua-hero-inner {
  position: relative;
  display: grid;
  min-height: 430px;
  padding: 44px 50px 54px;
}

.page-hero-inner,
.about-hero-inner,
.inspiration-hero-inner {
  grid-template-columns: 520px 304px;
  align-items: start;
  column-gap: 96px;
}

.page-hero-copy,
.theme-page-copy,
.about-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.page-kicker {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
}

.page-title,
.page-section-title,
.theme-page-title,
.ua-hero-title,
.ua-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-page-title-size);
  font-weight: 600;
  line-height: var(--type-page-title-line);
  letter-spacing: 0;
}

.page-intro,
.page-note,
.about-text p,
.about-acknowledgements,
.topic-description,
.sheet-meta,
.contact-email-link,
.inspiration-author,
.inspiration-more,
.ua-story-text {
  font-family: var(--font-display);
}

.page-intro {
  margin: 26px 0 0;
  max-width: 355px;
  font-size: 17px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: 0;
}

.subpage-hero-inner {
  position: relative;
  display: block;
  width: 1024px;
  max-width: 1024px;
  min-height: 306px;
  padding: 0;
}

.subpage-hero-inner .page-hero-copy {
  position: absolute;
  left: 48px;
  top: 44px;
  max-width: none;
}

.subpage-hero-inner .page-title {
  font-size: var(--type-subpage-title-size);
  line-height: var(--type-subpage-title-line);
  letter-spacing: -1.2px;
}

.subpage-hero-inner .page-intro {
  position: absolute;
  left: 81px;
  top: 59px;
  width: 370px;
  max-width: none;
  margin: 0;
  font-size: 17px;
  line-height: 20px;
  letter-spacing: -0.3px;
}

.worksheets-hero-inner {
  min-height: 520px;
}

.worksheets-hero-inner .page-hero-copy {
  display: grid;
  left: 30px;
  top: 44px;
  width: 430px;
}

.worksheets-hero-inner .page-title {
  font-size: 42px;
  line-height: 42px;
}

.worksheets-hero-inner .page-intro {
  position: static;
  width: 430px;
  margin: 32px 0 0;
  font-size: 17px;
  line-height: 20px;
}

.worksheets-feature-topic {
  position: absolute;
  left: 564px;
  top: 44px;
  width: 410px;
}

.worksheets-feature-art {
  width: 410px;
  margin: 0;
}

.worksheets-feature-art img {
  display: block;
  width: 100%;
}

.worksheets-feature-copy {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.worksheets-feature-copy .topic-title {
  font-size: 32px;
  line-height: 34px;
}

.worksheets-feature-copy .topic-description {
  max-width: 330px;
}

.page-section {
  border-top: 0;
}

.topic-rows,
.sheet-grid,
.inspiration-list {
  display: grid;
}

.topic-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 56px;
  align-items: start;
  padding: 24px 50px 72px;
}

/* Stridave svisle odsazeni sloupcu (masonry pocit jako na listovatel.cz) */
.topic-row:nth-child(even) {
  margin-top: 96px;
}

.topic-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

.topic-row.is-reverse {
  grid-template-columns: none;
}

.topic-row.is-reverse .topic-row-art,
.topic-row.is-reverse .topic-row-copy {
  grid-column: auto;
  grid-row: auto;
}

.topic-row-art {
  order: -1;
}

.topic-row-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.topic-index,
.sheet-index {
  margin: 0;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  line-height: 13px;
  color: rgba(0, 0, 0, 0.52);
}

.topic-title,
.sheet-title,
.inspiration-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.topic-title {
  font-size: 32px;
  line-height: 34px;
}

.topic-description {
  max-width: 260px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #111;
}

.topic-actions,
.theme-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 11px;
}

.topic-row-art,
.theme-page-art,
.about-gallery-main,
.about-gallery-secondary,
.contact-page-art,
.ua-story-image,
.ua-hero-poster {
  margin: 0;
}

.topic-row-art,
.theme-page-art {
  overflow: hidden;
}

.topic-row-art img,
.theme-page-art img,
.about-gallery-main img,
.about-gallery-secondary img,
.contact-page-art img,
.ua-story-image img,
.ua-hero-poster img {
  width: 100%;
  display: block;
}

.theme-page-art img {
  min-height: 320px;
  object-fit: cover;
}

.topic-row-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.theme-page-inner {
  grid-template-columns: 342px 556px;
  align-items: start;
  column-gap: 76px;
  padding-top: 96px;
}

.theme-page-copy {
  padding-top: 18px;
}

.theme-page-title {
  font-size: var(--type-theme-title-size);
  line-height: var(--type-theme-title-line);
}

.theme-page-copy .page-intro,
.theme-page-actions,
.theme-page-anchor {
  margin-left: 112px;
}

.theme-page-actions {
  margin-top: 34px;
}

.theme-page-anchor {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-decoration: none;
}

.theme-sheets {
  margin-top: 12px;
  padding-bottom: 40px;
  background: #fffbfa;
  /* Offwhite pozadi az do kraje viewportu (mimo fixni 1024 .shell) */
  clip-path: inset(0 -50vw);
  box-shadow: 0 0 0 50vw #fffbfa;
}

.page-section-head {
  display: grid;
  gap: 10px;
  padding: 40px 50px 22px;
}

.page-section-title {
  font-size: 36px;
  line-height: 38px;
}

.sheet-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: #fffbfa;
  border-top: 0.5px solid rgba(18, 18, 18, 0.92);
  border-right: 0.5px solid rgba(18, 18, 18, 0.92);
  border-left: 0.5px solid rgba(18, 18, 18, 0.92);
  border-bottom: 0.5px solid rgba(18, 18, 18, 0.92);
}

.sheet-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 492px;
  padding: 36px 28px 28px;
  background: #fffbfa;
  border-right: 0.5px solid rgba(18, 18, 18, 0.92);
  border-bottom: 0.5px solid rgba(18, 18, 18, 0.92);
}

.sheet-card:nth-child(4n) {
  border-right: 0;
}

.sheet-preview {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 260px;
  margin: 0 0 22px;
}

.sheet-preview-pages {
  --sheet-layer-gap: 5px;
  --sheet-stack-offset: calc((var(--sheet-count) - 1) * var(--sheet-layer-gap));
  position: relative;
  display: inline-block;
  height: 100%;
  /* Predni list drzi stejnou velikost bez ohledu na pocet stranek; stack se odecte jen z prava */
  max-width: 100%;
  max-height: 100%;
  isolation: isolate;
}

.sheet-stack-page {
  position: absolute;
  inset: 0;
  z-index: var(--sheet-z);
  border: 0.5px solid rgba(18, 18, 18, 0.92);
  background: #fff;
  pointer-events: none;
  /* Posun nahoru-doprava (jako readymag), aby stack neprosakoval do nadpisu pod nahledem */
  transform: translate(calc(var(--sheet-layer) * var(--sheet-layer-gap)), calc(var(--sheet-layer) * var(--sheet-layer-gap) * -1));
}

.sheet-preview-link {
  position: relative;
  z-index: calc(var(--sheet-count) + 1);
  display: block;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0.5px solid rgba(18, 18, 18, 0.92);
  background: #fff;
  box-sizing: border-box;
  color: #111;
  text-decoration: none;
}

.sheet-preview img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  object-fit: contain;
}

.sheet-preview-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.sheet-preview-hover svg {
  width: 34px;
  height: auto;
  fill: currentColor;
}

.sheet-preview-link:hover .sheet-preview-hover,
.sheet-preview-link:focus-visible .sheet-preview-hover {
  opacity: 1;
}

.sheet-preview-link:focus-visible {
  outline: 2px solid #005bbb;
  outline-offset: 3px;
}

.sheet-index {
  display: none;
}

.sheet-title {
  font-size: 21px;
  line-height: 22px;
}

.sheet-meta {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  min-height: 29px;
  margin-top: auto;
  padding-top: 11px;
}

.sheet-ua-button {
  border-color: transparent;
  background: #fff06a;
  color: #005bbb;
  text-transform: none;
}

.sheet-ua-button:hover {
  border-color: transparent;
  background: #005bbb;
  color: #fff06a;
}

.about-readymag-page {
  position: relative;
  width: 1024px;
  min-height: 2980px;
  margin: -80px auto 0;
  background: var(--bg);
}

.about-rm-title,
.about-rm-thanks h2 {
  position: absolute;
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -1.2px;
  color: #222;
}

.about-rm-title {
  left: 48px;
  top: 132px;
}

.about-rm-copy,
.about-rm-thanks p {
  position: absolute;
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #000;
}

.about-rm-intro,
.about-rm-themes {
  position: absolute;
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.3px;
  color: #000;
}

.about-rm-intro {
  left: 129px;
  top: 191px;
  width: 370px;
}

.about-rm-copy-1 {
  left: 50px;
  top: 464px;
  width: 369px;
}

.about-rm-copy-2 {
  left: 604px;
  top: 688px;
  width: 290px;
}

.about-rm-copy-3 {
  left: 50px;
  top: 1047px;
  width: 290px;
}

.about-rm-copy-4 {
  left: 605px;
  top: 1590px;
  width: 370px;
}

.about-rm-themes {
  left: 129px;
  top: 1734px;
  width: 516px;
}

.about-rm-themes a,
.about-rm-thanks a {
  font-weight: 700;
  text-decoration: none;
}

.about-rm-themes a:hover,
.about-rm-thanks a:hover {
  color: #2f35cb;
}

.about-rm-print-note {
  left: 526px;
  top: 2467px;
  width: 253px;
}

.about-rm-image {
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.about-rm-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-rm-image-hero {
  left: 525px;
  top: 132px;
  width: 449px;
  height: 299px;
}

.about-rm-image-small {
  left: 816px;
  top: 544px;
  width: 158px;
  height: 105px;
}

.about-rm-image-left {
  left: 129px;
  top: 689px;
  width: 450px;
  height: 300px;
}

.about-rm-image-mid {
  left: 631px;
  top: 918px;
  width: 289px;
  height: 193px;
}

.about-rm-image-wide-left {
  left: 129px;
  top: 1215px;
  width: 529px;
  height: 353px;
}

.about-rm-image-wide-right {
  left: 208px;
  top: 1825px;
  width: 766px;
  height: 511px;
}

.about-rm-image-print {
  left: 129px;
  top: 2467px;
  width: 370px;
  height: 247px;
}

.about-rm-thanks {
  position: absolute;
  left: 129px;
  top: 2779px;
  width: 370px;
}

.about-rm-thanks h2 {
  position: static;
  margin-bottom: 17px;
}

.about-rm-thanks p {
  position: static;
  margin: 0 0 16px;
}

.inspiration-hero-inner {
  min-height: 220px;
}

body[data-page="inspirace"] .page-hero-inspiration {
  background: #fffbfa;
  /* Offwhite pruh az do kraje viewportu (i pres fixni sirku .shell / zoom) */
  clip-path: inset(0 -50vw);
  box-shadow: 0 0 0 50vw #fffbfa;
}

.inspiration-hero-inner .page-hero-copy {
  margin-left: 0;
}

.inspiration-hero-inner .page-intro {
  width: 370px;
  margin-left: 0;
  font-size: 17px;
  line-height: 20px;
}

.inspiration-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 1024px;
  max-width: 1024px;
  margin-bottom: 40px;
  padding: 0;
  border-right: 0.5px solid rgba(18, 18, 18, 0.92);
  border-left: 0.5px solid rgba(18, 18, 18, 0.92);
  border-top: 0.5px solid rgba(18, 18, 18, 0.92);
  border-bottom: 0.5px solid rgba(18, 18, 18, 0.92);
}

.inspiration-card {
  display: grid;
  grid-template-rows: 192px auto;
  align-items: start;
  min-height: 320px;
  padding: 26px 24px 18px;
  border-bottom: 0.5px solid rgba(18, 18, 18, 0.92);
}

.inspiration-card:not(:nth-child(4n)) {
  border-right: 0.5px solid rgba(18, 18, 18, 0.92);
}

.inspiration-card:nth-child(4n + 1) .inspiration-cover-link {
  justify-content: center;
}

.inspiration-card:nth-child(4n + 2) .inspiration-cover-link {
  justify-content: center;
}

.inspiration-card:nth-child(4n + 3) .inspiration-cover-link {
  justify-content: center;
}

.inspiration-card:nth-child(4n) .inspiration-cover-link {
  justify-content: center;
}

.inspiration-cover-link {
  display: flex;
  align-items: start;
  width: 100%;
  min-height: 192px;
  text-decoration: none;
}

.inspiration-cover {
  width: var(--cover-width);
  height: var(--cover-height);
  margin: 0;
  border: 1px solid rgba(18, 18, 18, 0.18);
  background: #fff;
}

.inspiration-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 160ms ease;
}

.inspiration-cover-link:hover .inspiration-cover img,
.inspiration-cover-link:focus-visible .inspiration-cover img {
  filter: brightness(1.14);
}

.inspiration-cover-link:focus-visible {
  outline: 2px solid #005bbb;
  outline-offset: 3px;
}

.inspiration-copy {
  display: grid;
  gap: 0;
  min-height: 48px;
  margin-top: 14px;
}

.inspiration-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 19px;
}

.inspiration-author,
.inspiration-more {
  margin: 0;
  font-size: 9px;
  font-weight: 500;
  line-height: 13px;
}

.inspiration-more {
  justify-self: end;
  align-self: end;
  margin-top: 8px;
  font-weight: 700;
  text-decoration: none;
}

.contact-page {
  padding-top: 92px;
}

.contact-page-inner {
  grid-template-columns: 480px 370px;
  gap: 46px;
  align-items: end;
  min-height: 450px;
  padding: 0 50px 64px;
}

.contact-page-card {
  align-self: end;
  min-height: 224px;
  padding: 42px 34px 28px;
  border-radius: 10px;
  background: var(--accent-soft);
}

.contact-email-link {
  display: inline-block;
  margin-top: 29px;
  font-size: 17px;
  font-weight: 700;
  line-height: 19px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ua-hero-inner {
  grid-template-columns: 442px 539px;
  gap: 0;
  align-items: start;
  padding: 80px 50px 54px;
}

body[data-page="ua"] .ua-hero-title,
body[data-page="ua"] .ua-section-title,
body[data-page="ua"] .page-section-title,
body[data-page="ua"] .ua-hero-text,
body[data-page="ua"] .ua-story-text,
body[data-page="ua"] .ua-sheet-card .sheet-title,
body[data-page="ua"] .ua-sheet-card .sheet-meta,
body[data-page="ua"] .ua-sheet-card .button,
body[data-page="ua"] .page-kicker {
  font-family: var(--font-ua);
}

body[data-page="ua"] .brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* UA: modra hlavicka, logo, navigace a tecky */
body[data-page="ua"] .brand,
body[data-page="ua"] .nav-link,
body[data-page="ua"] .mobile-ua-link {
  color: var(--accent-blue);
}

body[data-page="ua"] .nav-toggle-line,
body[data-page="ua"] .nav-toggle-line::before,
body[data-page="ua"] .nav-toggle-line::after {
  background: var(--accent-blue);
}

body[data-page="ua"] .nav-toggle {
  border-color: rgba(0, 91, 187, 0.4);
}

/* UA: modre outline tlacitko v kartach listu */
body[data-page="ua"] .ua-sheet-card .button {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

body[data-page="ua"] .ua-sheet-card .button:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* UA: tlacitko "роздрукувати" cerne (УКР версія zustava modra) */
body[data-page="ua"] .ua-sheet-card .ua-print-button {
  border-color: rgba(18, 18, 18, 0.92);
  color: #121212;
}

body[data-page="ua"] .ua-sheet-card .ua-print-button:hover {
  background: #121212;
  color: #fff;
}

/* UA: podekovani pod kontaktem */
.ua-thanks {
  background: var(--bg);
}

.ua-thanks .section-inner {
  padding: 6px 50px 52px;
}

.ua-thanks-text {
  margin: 0;
  max-width: 460px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.ua-hero-card {
  position: relative;
  z-index: 1;
  min-height: 384px;
  padding: 42px 76px 40px;
  border-radius: 10px;
  background: var(--accent-soft);
}

.ua-hero-title {
  max-width: 310px;
  font-weight: 500;
  font-size: 50px;
  line-height: 50px;
  letter-spacing: -1.2px;
}

.ua-hero-text {
  max-width: 185px;
  margin: 28px 0 0;
  font-weight: 400;
  font-size: 17px;
  line-height: 19px;
  letter-spacing: 0;
}

.ua-hero-button {
  margin-top: 28px;
}

.ua-hero-media {
  position: relative;
  margin-top: 80px;
  margin-left: -54px;
}

.ua-awards {
  display: flex;
  gap: 11px;
  margin-top: 28px;
}

.ua-story-inner {
  display: grid;
  grid-template-columns: 529px 342px;
  gap: 50px;
  padding: 44px 50px 0;
}

.ua-story-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 26px;
}

.ua-section-title {
  font-weight: 500;
  font-size: 36px;
  line-height: 35px;
  letter-spacing: -1.2px;
}

.ua-story-text {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
}

.ua-resources {
  margin-top: 24px;
  padding-bottom: 40px;
}

.ua-sheet-card .sheet-meta {
  font-weight: 400;
  text-transform: lowercase;
}

body[data-page="ua"] .page-section-title,
body[data-page="ua"] .ua-sheet-card .sheet-title {
  font-weight: var(--weight-title);
}

.button,
.nav-link,
.eyebrow,
.badge {
  font-family: var(--font-display);
}

.home-kicker,
.home-hero-title,
.home-section-title,
.home-slide-title,
.home-about-title,
.home-themes-heading,
.home-theme-title,
.home-contact-card .home-section-title,
.section-title,
.detail-title,
.page-title,
.page-section-title,
.theme-page-title,
.ua-hero-title,
.ua-section-title,
.topic-title,
.sheet-title,
.inspiration-title,
.about-rm-title,
.card-title,
.contact-page-card .page-title {
  font-weight: var(--weight-title);
}

.page-intro,
.subpage-hero-inner .page-intro,
.worksheets-hero-inner .page-intro,
.home-intro-text,
.home-slide-text,
.home-hero-text,
.home-story-text,
.home-about-text,
.home-about-note,
.home-theme-description,
.home-contact-text,
.topic-description,
.sheet-meta,
.about-rm-copy,
.about-rm-thanks p,
.about-rm-intro,
.about-rm-themes,
.inspiration-author,
.contact-page-card .page-intro,
body[data-page="ua"] .ua-hero-text,
body[data-page="ua"] .ua-story-text,
body[data-page="ua"] .ua-sheet-card .sheet-meta {
  font-weight: var(--weight-perex);
}

.button,
.button-outline,
.button-ghost,
.home-hero-button,
.home-story-button,
.home-about-button,
.home-theme-button,
.sheet-ua-button,
.inspiration-more,
.contact-email-link,
.home-email {
  font-weight: var(--weight-button);
}

.brand,
body[data-page="home"] .brand,
body:not([data-page="home"]) .brand,
body[data-page="ua"] .brand {
  font-weight: var(--weight-title);
}@media (max-width: 980px) {
  :root {
    --mobile-grid-inset: 16px;
  }

  .page-hero-inner,
  .theme-page-inner,
  .contact-page-inner,
  .about-layout,
  .ua-story-inner,
  .ua-hero-inner,
  .topic-row,
  .inspiration-list {
    grid-template-columns: 1fr;
  }

  .sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-inner,
  .subpage-hero-inner,
  .theme-page-inner,
  .contact-page-inner,
  .ua-hero-inner {
    min-height: 0;
    padding: 42px 0 28px;
  }

  .topic-rows,
  .sheet-grid,
  .inspiration-list,
  .page-hero-inner,
  .page-section-head,
  .theme-page-inner,
  .contact-page-inner,
  .about-layout,
  .ua-story-inner {
    width: 100%;
  }

  /* Pracovni listy na mobilu = jeden sloupec pod sebou (jako readymag), ne 2-col masonry */
  .topic-rows {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 44px;
  }

  .topic-row:nth-child(even) {
    margin-top: 0;
  }

  /* Obsah bez vlastniho vnitrniho paddingu dostane 16px ze stran */
  .page-section-head,
  .ua-story-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-note-card,
  .contact-page-card,
  .ua-hero-card {
    width: auto;
    min-height: 0;
    padding: 28px 24px;
  }

  .page-title,
  .theme-page-title,
  .ua-hero-title {
    font-size: var(--type-mobile-title-size);
    line-height: var(--type-mobile-title-line);
  }

  .page-intro,
  .page-note,
  .topic-description,
  .ua-hero-text,
  .inspiration-hero-inner .page-intro {
    max-width: none;
    width: auto;
    font-size: 16px;
    line-height: 19px;
  }

  .inspiration-hero-inner .page-hero-copy,
  .inspiration-hero-inner .page-intro,
  .subpage-hero-inner .page-hero-copy,
  .subpage-hero-inner .page-intro {
    position: static;
    margin-left: 0;
  }

  .worksheets-hero-inner {
    display: grid;
    gap: 34px;
  }

  .worksheets-hero-inner .page-hero-copy,
  .worksheets-hero-inner .page-intro {
    width: auto;
    max-width: none;
  }

  .worksheets-feature-topic,
  .worksheets-feature-art {
    position: static;
    width: 100%;
  }

  .worksheets-feature-topic {
    display: flex;
    flex-direction: column;
    padding-right: var(--mobile-grid-inset);
    padding-left: var(--mobile-grid-inset);
    box-sizing: border-box;
  }

  .worksheets-feature-art {
    order: 1;
  }

  .worksheets-feature-copy {
    order: 2;
    margin-top: 20px;
  }

  .worksheets-feature-copy .topic-title {
    font-size: 28px;
    line-height: 30px;
  }

  .subpage-hero-inner .page-hero-copy {
    display: grid;
    gap: 14px;
    padding-right: var(--mobile-grid-inset);
    padding-left: var(--mobile-grid-inset);
    box-sizing: border-box;
  }

  .subpage-hero-inner .page-title {
    font-size: 33px;
    line-height: 34px;
    letter-spacing: -0.03em;
  }

  .subpage-hero-inner .page-intro {
    max-width: 30rem;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .theme-page-copy,
  .page-hero-copy,
  .page-section-head,
  .about-copy {
    max-width: none;
  }

  .theme-page-copy .page-intro,
  .theme-page-actions,
  .theme-page-anchor {
    margin-left: 0;
  }

  .theme-page-copy,
  .page-section-head {
    padding-right: var(--mobile-grid-inset);
    padding-left: var(--mobile-grid-inset);
    box-sizing: border-box;
  }

  .topic-rows,
  .sheet-grid,
  .inspiration-list,
  .about-layout {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    overflow-x: hidden;
  }

  .ua-story-inner {
    max-width: none;
    padding-right: 16px;
    padding-left: 16px;
    overflow-x: hidden;
  }

  .sheet-card {
    min-height: 440px;
    padding: 28px 22px 24px;
  }

  .sheet-card:nth-child(4n) {
    border-right: 0.5px solid rgba(18, 18, 18, 0.92);
  }

  .sheet-card:nth-child(2n) {
    border-right: 0;
  }

  .sheet-preview {
    height: 235px;
  }

  .topic-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    gap: 22px;
    padding: 28px 0;
    overflow: hidden;
  }

  .topic-row.is-reverse .topic-row-copy,
  .topic-row.is-reverse .topic-row-art {
    grid-column: auto;
    grid-row: auto;
  }

  .topic-row-art {
    order: 1;
  }

  .topic-row-copy {
    order: 2;
    padding-right: var(--mobile-grid-inset);
    padding-left: var(--mobile-grid-inset);
    box-sizing: border-box;
  }

  .topic-title,
  .page-section-title,
  .ua-section-title {
    font-size: 28px;
    line-height: 30px;
  }

  .topic-row-copy {
    min-width: 0;
    max-width: 100%;
  }

  .topic-description {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .topic-row-art,
  .theme-page-art {
    width: calc(100% - (var(--mobile-grid-inset) * 2));
    max-width: calc(100% - (var(--mobile-grid-inset) * 2));
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .topic-row-art img,
  .theme-page-art img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center top;
  }

  .theme-page-inner {
    display: flex;
    flex-direction: column;
  }

  .theme-page-art {
    order: -1;
    margin-bottom: 6px;
  }

  .theme-page-copy {
    padding-top: 0;
  }

  .about-layout,
  .about-readymag-page,
  .ua-story-inner {
    gap: 28px;
  }

  .about-readymag-page {
    display: flex;
    flex-direction: column;
    width: min(calc(100% - 32px), 720px);
    min-height: 0;
    margin: 0 auto;
    padding: 42px 0 56px;
  }

  .about-readymag-page > * {
    order: 20;
  }

  .about-rm-title,
  .about-rm-intro,
  .about-rm-copy,
  .about-rm-themes,
  .about-rm-image,
  .about-rm-thanks {
    position: static;
    width: auto;
  }

  .about-rm-title,
  .about-rm-thanks h2 {
    font-size: 30px;
    line-height: 1.0;
    letter-spacing: -0.02em;
  }

  .about-rm-intro,
  .about-rm-themes {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.24;
    letter-spacing: -0.01em;
  }

  .about-rm-copy {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.28;
    letter-spacing: 0;
  }

  /* Textove bloky v uzsim sloupci a stridave vlevo/vpravo jako readymag */
  .about-rm-intro,
  .about-rm-copy,
  .about-rm-themes {
    max-width: 64%;
  }

  .about-rm-copy-2,
  .about-rm-copy-4 {
    align-self: flex-end;
  }

  .about-rm-image {
    margin-top: 34px;
    height: auto;
  }

  .about-rm-image img {
    height: auto;
  }

  .about-rm-thanks {
    margin-top: 38px;
  }

  .about-rm-image-hero {
    order: 1;
    margin-top: 0;
  }

  .about-rm-title {
    order: 2;
    margin-top: 32px;
  }

  .about-rm-intro {
    order: 3;
  }

  .about-rm-image-small {
    order: 4;
    width: 48%;
    align-self: flex-end;
    margin-top: 54px;
  }

  .about-rm-copy-1 {
    order: 5;
  }

  .ua-hero-media {
    margin-top: 22px;
    margin-left: 0;
  }

  .ua-hero-inner {
    display: flex;
    flex-direction: column;
  }

  .ua-hero-media {
    order: 1;
    width: 100%;
    margin-top: 0;
  }

  .ua-hero-card {
    order: 2;
    width: 100%;
    margin-top: -1px;
    border-radius: 0;
  }

  .ua-awards {
    position: static;
    margin-top: 18px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .inspiration-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: calc(100vw - 24px);
    border-top: 0.5px solid rgba(18, 18, 18, 0.92);
    border-left: 0.5px solid rgba(18, 18, 18, 0.92);
  }

  .inspiration-card,
  .inspiration-card:nth-child(-n + 4) {
    box-sizing: border-box;
    grid-template-rows: auto auto 1fr;
    min-height: 0;
    min-width: 0;
    padding: 22px 18px 22px;
    overflow: hidden;
    border-right: 0.5px solid rgba(18, 18, 18, 0.92);
    border-bottom: 0.5px solid rgba(18, 18, 18, 0.92);
  }

  .inspiration-cover-link {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    min-height: 0;
  }

  .inspiration-cover {
    width: min(calc(var(--cover-width) * 1.02), 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: var(--cover-width) / var(--cover-height);
  }

  .inspiration-copy {
    min-width: 0;
    min-height: 0;
    margin-top: 22px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  .inspiration-title {
    font-size: clamp(18px, 4.6vw, 24px);
    line-height: 1;
    letter-spacing: -0.025em;
  }

  .inspiration-author,
  .inspiration-more {
    font-size: clamp(14px, 3.4vw, 18px);
    line-height: 1.15;
  }

  .inspiration-more {
    margin-top: 22px;
  }

  .contact-email-link {
    font-size: 1.32rem;
  }

  /* Mobilni gridy az do kraje (sheet, inspirace, UA) */
  .theme-sheets .section-inner,
  .inspiration-list-section .section-inner,
  .ua-resources .section-inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .sheet-grid,
  .ua-sheet-grid,
  .inspiration-list {
    width: 100%;
    max-width: none;
    margin: 0 0 40px;
    border-left: 0;
    border-right: 0;
    overflow: visible;
  }
}@media (max-width: 640px) {
  body[data-page="home"] .header-inner,
  body:not([data-page="home"]) .header-inner {
    min-height: 72px;
    padding: 0 8px;
  }

  body[data-page="home"] .brand,
  body:not([data-page="home"]) .brand {
    font-size: 34px;
    line-height: 36px;
  }

  .mobile-ua-link {
    font-size: 20px;
  }

  body[data-page="home"] .nav-toggle,
  body:not([data-page="home"]) .nav-toggle {
    width: 36px;
    height: 36px;
  }

  body[data-page="home"] .nav-menu,
  body:not([data-page="home"]) .nav-menu {
    top: 72px;
    right: 18px;
    width: min(calc(100vw - 48px), 340px);
    min-width: 0;
    padding: 34px 30px 40px;
    border-radius: 17px;
  }

  .mobile-nav-heading,
  .mobile-nav-link {
    font-size: 30px;
    line-height: 1.08;
  }

  .mobile-nav-heading {
    margin-bottom: 26px;
    white-space: nowrap;
  }

  .mobile-nav-themes {
    gap: 25px;
    margin: 0 0 70px 50px;
  }

  .mobile-nav-sublink {
    font-size: 21px;
  }

  .sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet-card {
    min-height: 0;
    padding: 22px 16px 26px;
  }

  .sheet-card:nth-child(2n) {
    border-right: 0;
  }

  .sheet-card:nth-child(4n) {
    border-right: 0;
  }

  .sheet-preview {
    height: auto;
    margin-bottom: 18px;
  }

  .sheet-preview img {
    width: min(40vw, 180px);
    max-height: none;
  }

  body[data-page="home"] .footer-inner,
  body:not([data-page="home"]) .footer-inner {
    display: grid;
    width: calc(100% - 32px);
    max-width: none;
    justify-content: center;
    gap: 12px;
    padding: 26px 16px 30px;
  }

  body[data-page="home"] .footer-note,
  body:not([data-page="home"]) .footer-note {
    width: 100%;
    max-width: 330px;
    min-width: 0;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
  }

  .mobile-nav-link + .mobile-nav-link {
    margin-top: 31px;
  }

  body[data-page="home"] .section-inner {
    width: 100%;
  }

  .home-hero {
    padding-top: 0;
  }

  .home-hero-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .home-hero-scene {
    order: 1;
    width: 100%;
    height: min(56.25vw, 330px);
    min-height: 220px;
    margin: 0;
    overflow: hidden;
  }

  .home-hero-visual {
    height: calc(100% + 2px);
    min-height: calc(100% + 2px);
  }

  .home-hero-card {
    order: 2;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0;
    width: 100%;
    min-height: 0;
    margin-top: -1px;
    padding: 29px 16px 28px;
    border-radius: 0;
  }

  .home-hero-title {
    grid-column: 1 / -1;
    max-width: none;
    font-size: clamp(36px, 10.5vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.03em;
  }

  .home-hero-text {
    grid-column: 1 / -1;
    max-width: 24ch;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .home-hero-button {
    grid-column: 1;
    justify-self: start;
    align-self: start;
    min-height: 44px;
    margin-top: 26px;
    padding: 0 17px;
    border-width: 2px;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
  }

  .home-hero-doodles {
    display: none;
  }

  .home-awards {
    position: static;
    grid-column: 1;
    align-self: start;
    justify-self: start;
    gap: 8px;
    margin-top: 18px;
  }

  .award-badge {
    width: clamp(65px, 18vw, 82px);
    height: clamp(65px, 18vw, 82px);
  }

  .home-story {
    padding-top: 0;
  }

  .home-story-inner {
    width: calc(100% - 32px);
    margin: 0 auto;
    row-gap: 0;
  }

  .home-story-photo {
    height: auto;
    min-height: 0;
  }

  .home-story-card {
    width: min(calc(100% - 48px), 340px);
    margin: -38px 16px 0 auto;
    padding: 30px 22px 24px;
    border-radius: 8px;
  }

  .home-section-title {
    font-size: clamp(26px, 7.5vw, 30px);
    line-height: 1.0;
    letter-spacing: -0.02em;
  }

  .home-story-text {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.22;
  }

  .home-about {
    padding-top: 28px;
  }

  .home-about-inner {
    width: 100%;
    margin: 0 auto;
    padding-top: 0;
    row-gap: 22px;
  }

  body[data-page="home"] .home-about-inner {
    width: 100%;
  }

  body[data-page="home"] .home-about-photo,
  body[data-page="home"] .home-about-workbook {
    width: 100%;
    max-width: calc(100vw - 32px);
    margin-right: auto;
    margin-left: auto;
  }

  .home-about-copy {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-about-title,
  .home-themes-heading {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 0.98;
    letter-spacing: -0.02em;
  }

  .home-about-text,
  .home-about-note,
  .home-theme-description,
  .home-contact-text {
    font-size: 16px;
    line-height: 1.16;
  }

  .home-themes {
    padding-top: 58px;
  }

  .home-themes-inner {
    display: block;
    width: 100%;
  }

  .home-themes-heading-wrap,
  .home-theme-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-themes-content {
    display: none;
  }

  .home-theme-copy {
    min-height: 205px;
  }

  .home-dots,
  .home-theme-steps {
    display: none;
  }

  .home-theme-mobile-list {
    display: grid;
    gap: 36px;
    margin-top: 26px;
    padding: 0 16px;
  }

  .home-theme-mobile-card {
    display: grid;
    gap: 16px;
  }

  .home-theme-mobile-image {
    margin: 0;
    overflow: hidden;
  }

  .home-theme-mobile-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .home-theme-mobile-copy {
    display: grid;
    gap: 10px;
    padding: 4px 0 0;
    background: transparent;
  }

  .home-theme-title {
    font-size: 26px;
    line-height: 1.0;
    letter-spacing: -0.01em;
  }

  .home-theme-button {
    justify-self: start;
    margin-top: 4px;
  }

  .home-contact {
    padding-top: 56px;
  }

  .home-contact-inner {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .home-contact-portrait {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 32px), 420px);
    margin: 0 auto -70px;
  }

  .home-contact-card {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 104px 28px 44px;
    border-radius: 12px;
  }

  .contact-page {
    padding-top: 118px;
  }

  .contact-page-inner {
    display: grid;
    width: 100%;
    padding: 0 0 64px;
  }

  .contact-page-art {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 32px), 420px);
    margin: 0 auto -76px;
  }

  .contact-page-card {
    width: calc(100% - 32px);
    min-height: 0;
    margin: 0 auto;
    padding: 110px 28px 58px;
    border-radius: 12px;
  }

  .contact-page-card .page-kicker {
    margin-bottom: 28px;
  }

  .contact-page-card .page-title {
    font-size: clamp(48px, 13vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.045em;
  }

  .contact-page-card .page-intro {
    margin-top: 34px;
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .contact-email-link {
    margin-top: 52px;
    font-size: clamp(26px, 6.6vw, 36px);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }
}

/* =====================================================================
   TYPE SCALE 2026 — review vrstva (sjednocená sestupná škála)
   Záměrně přidáno na konec přes proměnné + !important, aby přebilo
   roztroušené velikosti a clamp() v media-query blocích výše.
   Mapuje hlavní textové role na škálu Title→Navi a srovnává breakpointy.
   Po schválení lze zapéct natvrdo do jednotlivých pravidel a tenhle blok smazat.
   Breakpointy: desktop = base, tablet ≤980px, mobil ≤640px.
   ===================================================================== */
:root {
  --ts-title: 50px;
  --ts-h1: 36px;
  --ts-h2: 28px;
  --ts-h3: 22px;
  --ts-h4: 18px;
  --ts-body1: 16px;
  --ts-body2: 12px;
  --ts-navi: 13px;
  --ts-caption: 9px;
}
@media (max-width: 980px) {
  :root {
    --ts-title: 44px;
    --ts-h1: 32px;
    --ts-h2: 25px;
    --ts-h3: 21px;
    --ts-h4: 17px;
  }
}
@media (max-width: 640px) {
  :root {
    --ts-title: 38px;
    --ts-h1: 28px;
    --ts-h2: 23px;
    --ts-h3: 20px;
    --ts-h4: 17px;
  }
}

/* Title */
.home-hero-title,
.about-rm-title,
.contact-page-card .page-title {
  font-size: var(--ts-title) !important;
  line-height: 1 !important;
}
/* H1 */
.page-title {
  font-size: var(--ts-h1) !important;
  line-height: 1.05 !important;
}
/* H2 */
.home-section-title,
.home-about-title,
.home-themes-heading,
.about-rm-thanks h2 {
  font-size: var(--ts-h2) !important;
  line-height: 1.1 !important;
}
/* H3 */
.sheet-title {
  font-size: var(--ts-h3) !important;
  line-height: 1.2 !important;
}
/* H4 */
.home-theme-title {
  font-size: var(--ts-h4) !important;
  line-height: 1.25 !important;
}
/* Body 1 — leady / introtexty (původně 17px) */
.home-hero-text,
.about-rm-intro,
.about-rm-themes,
.home-about-note {
  font-size: var(--ts-body1) !important;
  line-height: 1.5 !important;
}
/* Body 2 — body copy / vedlejší perexy / popisky (původně 9–12px) */
.sheet-meta,
.home-story-text,
.home-about-text,
.home-contact-text,
.about-rm-copy,
.about-rm-thanks p {
  font-size: var(--ts-body2) !important;
  line-height: 1.5 !important;
}
/* Navi */
.nav-link,
.footer-note {
  font-size: var(--ts-navi) !important;
  line-height: 1 !important;
}
/* Caption — drobné popisky (9px) */
.home-theme-description {
  font-size: var(--ts-caption) !important;
  line-height: 1.4 !important;
}
