/* Veřejný web Školního plánu (hlavní doména). Načítá se za app.css a používá jeho tokeny barev a písma,
   aby web a aplikace působily jako jeden produkt. Pravidla: písmo aspoň 18 px, vysoký kontrast, klikací plochy
   aspoň 44 px, viditelné zaměření, žádné animace (app.css je vypne i při prefers-reduced-motion), žádné obrázky
   kromě CSS a SVG, žádný JavaScript. */

:root {
  --w-max: 74rem;
  --w-gutter: clamp(1rem, 4vw, 2.5rem);
  --w-radius: 14px;
  --w-tint: #edf2f7;            /* tlumená modrá pro střídání oddílů; tlumený text na ní 8 : 1 */
  --w-deep: #163d60;            /* tmavý pás se zásadami; bílý text 11 : 1 */
  --w-deep-text: #dbe6f0;       /* text na tmavém pásu 9 : 1 */
  --w-footer: #13283d;
  --w-line: #c5d3e0;            /* dekorativní čáry (časová osa, kroky) */
  --w-ok: #2b6e46;              /* fajfky */
  --w-shadow: 0 1px 2px rgba(16, 32, 48, 0.05), 0 10px 28px -14px rgba(16, 32, 48, 0.18);
  --w-focus-on-dark: #ffcf7a;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

[id] { scroll-margin-top: 1rem; }

.w-body { background: var(--bg); }
.w-main { flex: 1; padding: 0; }
.w-main:focus { outline: none; }

.w-container {
  width: 100%;
  max-width: calc(var(--w-max) + 2 * var(--w-gutter));
  margin-inline: auto;
  padding-inline: var(--w-gutter);
}
.w-narrow > * { max-width: 52rem; }

/* ---------- Hlavička ---------- */

.w-header {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.w-header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  min-height: 4.75rem;
}
.w-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--target);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.w-brand:hover { color: var(--primary); text-decoration: none; }
.w-brand__mark { width: 2.1rem; height: 2.1rem; flex: none; }

.w-nav { margin-left: auto; }
.w-nav__list, .w-menu__list { list-style: none; margin: 0; padding: 0; }
.w-nav__list { display: flex; gap: 0.25rem; }
.w-nav__list li + li, .w-menu__list li + li { margin-top: 0; }
.w-nav__list a, .w-menu__list a {
  display: flex;
  align-items: center;
  min-height: var(--target);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
}
.w-nav__list a:hover, .w-menu__list a:hover { background: var(--primary-soft); color: var(--primary-dark); text-decoration: underline; }
.w-nav__list a[aria-current="page"], .w-menu__list a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--primary);
}
.w-header__account { flex: none; }
.w-header__form { margin: 0; }

/* Mobilní menu bez JavaScriptu: tlačítko „Menu“ vpravo nahoře, seznam se rozbalí pod hlavičkou a obsah odsune. */
.w-menu { display: none; }
.w-menu__toggle {
  position: absolute;
  top: 1rem;
  right: var(--w-gutter);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--target);
  padding: 0.4rem 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.w-menu__toggle::-webkit-details-marker { display: none; }
.w-menu__toggle::before {
  content: "";
  width: 1.1rem;
  height: 0.8rem;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.w-menu[open] > .w-menu__toggle { background: var(--primary); color: #ffffff; }
.w-menu__panel { padding: 0.25rem 0 1rem; border-top: 1px solid var(--border); }
.w-menu__list a { padding-inline: 0.5rem; }
.w-menu__login { margin-top: 0.75rem; }

@media (max-width: 66rem) {
  .w-nav, .w-header__account { display: none; }
  .w-header__inner { flex-wrap: wrap; min-height: 0; }
  .w-brand { max-width: calc(100% - 8rem); min-height: 4.75rem; }
  .w-menu { display: block; width: 100%; }
}

/* ---------- Společné prvky ---------- */

.w-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-weight: 650;
  font-size: 1.125rem;
}
.w-kicker::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.w-lead {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 44rem;
  margin: 0 0 1em;
}
.w-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin: 1.75rem 0 0; }
.w-button--large { min-height: 3.25rem; padding: 0.7rem 1.6rem; font-size: 1.15rem; border-radius: 8px; }
.w-more { margin: 1.75rem 0 0; font-weight: 600; }
.w-source { color: var(--text-muted); }
.w-email {
  font-weight: 650;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;  /* jedním kliknutím se označí celá adresa, dá se zkopírovat */
}
.w-email--large {
  display: block;
  margin: 0 0 0.15rem;
  color: var(--primary);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
  line-height: 1.3;
}
.w-body .field-hint { font-size: 1.125rem; }
.w-flash { padding-top: 1.25rem; }
.w-flash .flash { max-width: none; margin: 0; }

.w-signed { background: var(--primary-soft); border-bottom: 1px solid #c9d9ea; }
.w-signed p { margin: 0; padding: 0.55rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; }
.w-signed a { display: inline-flex; align-items: center; min-height: var(--target); }

/* ---------- Úvod (hero) ---------- */

.w-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem);
  background:
    radial-gradient(60rem 30rem at 85% 30%, rgba(29, 79, 124, 0.09), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.w-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.w-hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
.w-hero__note { margin: 1.25rem 0 0; color: var(--text-muted); }

@media (max-width: 62rem) {
  .w-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Ukázka obrazovky „Moje plány“ (jen HTML a CSS). */
.w-shot { margin: 0; }
.w-shot__window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--w-radius);
  box-shadow: 0 2px 4px rgba(16, 32, 48, 0.06), 0 24px 48px -20px rgba(16, 32, 48, 0.3);
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.45;
}
.w-shot__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: #eef1f4;
  border-bottom: 1px solid var(--border);
}
.w-shot__dots { display: inline-flex; gap: 0.35rem; flex: none; }
.w-shot__dots span { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #c9cfd6; }
.w-shot__url {
  flex: 1;
  min-width: 0;
  padding: 0.1rem 0.7rem;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-shot__tag {
  flex: none;
  padding: 0.05rem 0.65rem;
  border-radius: 999px;
  background: var(--wait-bg);
  color: var(--wait-text);
  font-size: 0.9rem;
  font-weight: 700;
}
.w-shot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.w-shot__brand { color: var(--primary); font-weight: 750; }
.w-shot__year { margin-left: auto; color: var(--text-muted); font-size: 0.95rem; }
.w-shot__body { display: grid; grid-template-columns: 10rem minmax(0, 1fr); }
.w-shot__nav {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--border);
}
.w-shot__nav li { padding: 0.45rem 0.7rem; border-radius: 6px; }
.w-shot__nav li + li { margin-top: 0.15rem; }
.w-shot__nav .is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary);
}
.w-shot__content { padding: 1rem 1.1rem 1.25rem; background: var(--bg); }
.w-shot__title { margin: 0 0 0.75rem; font-size: 1.4rem; font-weight: 700; }
.w-shot__plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem 0.4rem;
}
.w-shot__plan + .w-shot__plan { margin-top: 0.75rem; }
.w-shot__plan-head { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.25rem; }
.w-shot__plan-head span { color: var(--text-muted); }
.w-shot__rows { list-style: none; margin: 0; padding: 0; }
.w-shot__rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.4rem 0;
  border-top: 1px solid #eceff2;
}
.w-shot__rows li:first-child { border-top: 0; }
.w-shot__topic { min-width: 0; line-height: 1.3; }
.w-shot__hours { color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; }
.w-shot .badge { font-size: 0.85rem; padding: 0.05rem 0.55rem; }
.w-shot__caption { margin-top: 1rem; color: var(--text-muted); }

@media (max-width: 36rem) {
  .w-shot__body { grid-template-columns: minmax(0, 1fr); }
  .w-shot__nav, .w-shot__year, .w-shot__hours, .w-shot__dots { display: none; }
}

/* ---------- Oddíly ---------- */

.w-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.w-section--tight { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
.w-section--tint { background: var(--w-tint); }
.w-section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.w-section__head--center { margin-inline: auto; text-align: center; }
.w-section__head h2, .w-cta h2 {
  font-size: clamp(1.85rem, 1.3rem + 1.7vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 720;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.w-section__head .w-lead:last-child { margin-bottom: 0; }

.w-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.w-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19.5rem), 1fr)); }

.w-card, .w-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--w-radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.w-card { box-shadow: var(--w-shadow); }
.w-card h3, .w-feature h3 { font-size: 1.3rem; margin: 1.1rem 0 0.6rem; }
.w-feature p { margin: 0; color: var(--text-muted); }
.w-card__icon, .w-feature__icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.w-icon { width: 1.8rem; height: 1.8rem; }

.w-checks { list-style: none; margin: 0; padding: 0; }
.w-checks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.65rem; align-items: start; }
.w-checks li + li { margin-top: 0.7rem; }
.w-check { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; color: var(--w-ok); }

/* Jak to funguje: čtyři kroky spojené čarou. */
.w-steps {
  list-style: none;
  counter-reset: krok;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.w-step { counter-increment: krok; position: relative; margin: 0; padding-top: 4.4rem; }
.w-steps li + li { margin-top: 0; }
.w-step::before {
  content: counter(krok);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 750;
  box-shadow: 0 0 0 6px var(--w-tint);
}
.w-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 4.1rem;
  right: -0.75rem;
  height: 2px;
  background: var(--w-line);
}
.w-step h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.w-step p { margin: 0; color: var(--text-muted); }

@media (max-width: 66rem) {
  .w-steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .w-step { padding: 0 0 0 4.75rem; min-height: 3.25rem; }
  .w-step:not(:last-child)::after { top: 4rem; bottom: -1.6rem; left: 1.6rem; right: auto; width: 2px; height: auto; }
}

/* Naše zásady: tmavý pás. */
.w-section--dark { background: var(--w-deep); color: #ffffff; }
.w-section--dark .w-kicker { color: #bcd4ea; }
.w-section--dark h2 { color: #ffffff; }
.w-section--dark :focus-visible { outline-color: var(--w-focus-on-dark); }
.w-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: 1.75rem 3rem;
}
.w-principles li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.9rem; margin: 0; }
.w-principles .w-check { width: 1.6rem; height: 1.6rem; color: #9fd9b5; }
.w-principles p { margin: 0; color: var(--w-deep-text); }
.w-principles .w-principles__title { margin: 0 0 0.3rem; color: #ffffff; font-weight: 700; font-size: 1.2rem; line-height: 1.4; }

/* Termíny revize: svislá časová osa. */
.w-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 62rem) {
  .w-split { grid-template-columns: minmax(0, 1fr); }
}
.w-timeline { list-style: none; position: relative; margin: 0; padding: 0; }
.w-timeline::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0.6rem;
  width: 2px;
  background: var(--w-line);
}
.w-timeline li { margin: 0; }
.w-timeline__item, .w-timeline__now { position: relative; padding: 0 0 1.9rem 2.9rem; }
.w-timeline > li:last-child { padding-bottom: 0; }
.w-timeline__item::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}
.w-timeline__item.is-past::before { background: var(--primary); }
.w-timeline__date { margin: 0 0 0.15rem; color: var(--primary); font-weight: 700; font-size: 1.15rem; }
.w-timeline__item h3 { margin: 0 0 0.35rem; font-size: 1.3rem; }
.w-timeline__item p { margin: 0 0 0.35rem; color: var(--text-muted); }
.w-timeline__state { margin-top: 0.4rem; }
.w-timeline__now::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  transform: rotate(45deg);
  background: var(--focus);
}
.w-timeline__now span {
  display: inline-block;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: var(--wait-bg);
  color: var(--wait-text);
  font-weight: 700;
}

/* Cena */
.w-price {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: var(--w-shadow);
}
.w-price .w-section__head { margin-bottom: 0; }
.w-price__base { background: var(--w-tint); border-radius: var(--w-radius); padding: clamp(1.25rem, 3vw, 1.75rem); }
.w-price__base h3 { margin: 0 0 1rem; font-size: 1.3rem; }
@media (max-width: 52rem) {
  .w-price { grid-template-columns: minmax(0, 1fr); }
}

/* Časté otázky: rozbalovací <details>. */
.w-faq { border-top: 1px solid #c3cfdb; }
.w-faq__item { border-bottom: 1px solid #c3cfdb; }
.w-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--target);
  padding: 1.1rem 0.25rem;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.w-faq__item > summary::-webkit-details-marker { display: none; }
.w-faq__item > summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}
.w-faq__item[open] > summary::after { content: "−"; background: var(--primary); color: #ffffff; }
.w-faq__item > summary:hover span { text-decoration: underline; text-underline-offset: 0.15em; }
.w-faq__answer { padding: 0 0.25rem 1.25rem; max-width: 46rem; }
.w-faq__answer p { color: var(--text-muted); }
.w-faq__answer p:last-child { margin-bottom: 0; }

/* Kontakt */
.w-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 58rem) {
  .w-contact { grid-template-columns: minmax(0, 1fr); }
}
.w-contact__mail + .w-contact__mail { margin-top: 2rem; }
.w-contact__mail p { margin: 0; }
.w-contact__mail a { display: inline-flex; align-items: center; min-height: var(--target); }
.w-contact__label { font-weight: 650; }
.w-contact__note { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-muted); }
.w-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--w-shadow);
}
.w-form__title { margin: 0 0 1.25rem; font-size: 1.45rem; }
.w-form input[type="text"], .w-form input[type="email"], .w-form textarea { max-width: none; }
.w-form textarea { min-height: 10rem; }
.w-form__note { color: var(--text-muted); }
.w-form .w-actions { margin-top: 1.25rem; }
/* Past na roboty: člověk pole nevidí ani na něj nedojde klávesnicí, čtečka ho přeskočí. */
.w-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Podstránky ---------- */

.w-page-head {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(0.5rem, 2vw, 1rem);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.w-page-head h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0.25rem 0 0.5rem;
}
.w-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0; padding: 0; color: var(--text-muted); }
.w-crumbs li + li { margin-top: 0; }
.w-crumbs li + li::before { content: "›"; margin-right: 0.5rem; }
.w-crumbs a, .w-crumbs [aria-current="page"] { display: inline-block; padding: 0.5rem 0; }

.w-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--w-radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}
.w-toc .w-toc__title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.w-toc ol { margin: 0; }
.w-toc a { display: inline-block; padding: 0.2rem 0; }

.w-qa h2 { font-size: 1.5rem; margin: 2.25rem 0 0.6rem; }
.w-qa p { color: var(--text-muted); }
.w-cta {
  margin-top: 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 18px;
  background: var(--primary-soft);
}
.w-cta h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 0; }
.w-cta .w-actions { margin-top: 1rem; }

.w-doc article + article { margin-top: 3.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.w-doc h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin: 1.75rem 0 0.75rem; }
.w-doc h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.w-draft {
  margin: 1rem 0 1.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid #c48a2c;
  border-left-width: 8px;
  border-radius: 8px;
  background: var(--wait-bg);
  color: var(--wait-text);
}
.w-draft p { margin: 0; }
.w-draft .w-draft__title { margin-bottom: 0.3rem; font-size: 1.3rem; font-weight: 800; }
.w-placeholder {
  padding: 0.05rem 0.45rem;
  border: 1px dashed #c48a2c;
  border-radius: 4px;
  background: var(--wait-bg);
  color: var(--wait-text);
  font-style: italic;
}
.w-table { width: 100%; }
.w-sources { list-style: none; padding: 0; }
.w-sources li { display: grid; gap: 0.1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.w-sources li + li { margin-top: 0; }
.w-sources a { font-weight: 650; justify-self: start; }
.w-numbered { padding-left: 1.5em; }
.w-numbered li + li { margin-top: 0.5rem; }

/* Přihlášení */
.w-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
@media (max-width: 58rem) {
  .w-login { grid-template-columns: minmax(0, 1fr); }
}
.w-login__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--w-shadow);
}
.w-login__card--quiet { box-shadow: none; background: #fbfbfa; }
.w-login__card h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.w-login__card input[type="email"] { max-width: none; }
.w-login__small { margin: 1rem 0 0; color: var(--text-muted); }
.w-login__help { margin: 2rem 0 0; color: var(--text-muted); }
.w-address { display: flex; align-items: stretch; max-width: 32rem; }
.w-address input[type="text"] { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.w-address__suffix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 2px solid var(--border-strong);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--neutral-bg);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Patička ---------- */

.w-footer {
  background: var(--w-footer);
  color: #dfe8f1;
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.w-footer :focus-visible { outline-color: var(--w-focus-on-dark); }
.w-footer a { color: #ffffff; }
.w-footer a:hover { color: #cfe3f5; }
.w-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
@media (max-width: 62rem) {
  .w-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .w-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
.w-footer__about p { margin: 0 0 1rem; }
.w-footer__brand { display: flex; align-items: center; gap: 0.65rem; color: #ffffff; font-size: 1.3rem; font-weight: 750; }
.w-footer__brand .w-brand__mark { border-radius: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }
.w-footer .w-email { color: #ffffff; }
.w-footer__title { margin: 0 0 0.5rem; color: #ffffff; font-size: 1.125rem; font-weight: 700; }
.w-footer__col ul { list-style: none; margin: 0; padding: 0; }
.w-footer__col li + li { margin-top: 0; }
.w-footer__col a { display: inline-flex; align-items: center; min-height: var(--target); }
.w-footer__bottom { margin-top: 2.5rem; color: #c3d2e0; }
.w-footer__bottom p { margin: 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }

/* ---------- Tisk ---------- */

@media print {
  .w-nav, .w-menu, .w-header__account, .w-form, .w-shot, .w-actions, .w-footer__grid nav { display: none !important; }
  .w-section, .w-hero { padding-block: 1rem; background: none; }
  .w-section--dark { color: #000000; }
  .w-section--dark h2, .w-principles p, .w-principles .w-principles__title { color: #000000; }
  .w-footer { background: none; color: #000000; }
}
