/* Restart40+ — sladěno s „Pauza s Kristýnou“: bílá plocha, oranžová akcent, navy text */

:root {
  --bg-page: #f6f7f9;
  --bg-card: #ffffff;
  --ink: #1d2433;
  --muted: #6b7280;
  --orange: #ff701f;
  --orange-hover: #e85f12;
  --orange-tint: #fff4ed;
  --orange-ring: rgba(255, 112, 31, 0.35);
  --purchase-green: #2d8f54;
  --purchase-green-hover: #247a47;
  --purchase-green-ring: rgba(45, 143, 84, 0.4);
  --footer-bg: #1d2433;
  --footer-text: #f3f4f6;
  --shadow-card: 0 4px 24px rgba(29, 36, 51, 0.08);
  --shadow-soft: 0 8px 32px rgba(29, 36, 51, 0.06);
  --radius-card: 20px;
  --radius-pill: 50px;
  --font: "Montserrat", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
}

.main {
  flex: 1;
}

.page {
  width: min(100% - 1.5rem, 40rem);
  margin-inline: auto;
  padding: clamp(2.75rem, 10vw, 4.75rem) 0 clamp(3rem, 8vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 6vw, 3.1rem);
}

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

/* Flash zprávy (redirect z PHP) */

.flash {
  box-sizing: border-box;
  width: min(100% - 1.5rem, 40rem);
  margin: clamp(0.75rem, 3vw, 1rem) auto 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.flash--error {
  background: #fee2e2;
  color: #991b1b;
}

.flash--success {
  background: #d1fae5;
  color: #065f46;
}

.flash--info {
  background: #e0e7ff;
  color: #1e3a5f;
}

/* Širší layout pro obnovu hesla / auth stránky (čitelné i na velkém monitoru) */
.page.page--auth {
  width: 100%;
  max-width: min(100% - 1.5rem, 44rem);
  box-sizing: border-box;
}

.auth-page .page {
  padding-top: clamp(2rem, 8vw, 3.5rem);
  padding-left: clamp(0.75rem, 3vw, 1.5rem);
  padding-right: clamp(0.75rem, 3vw, 1.5rem);
}

.auth-card {
  width: 100%;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.35rem, 4vw, 2.5rem);
}

.auth-page .hero__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem) !important;
}

.auth-page .hero__lead {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
}

.auth-page .modal__label {
  font-size: 1rem;
}

.auth-page .modal__input {
  font-size: 1.0625rem;
  padding: 0.95rem 1.25rem;
}

.auth-page .btn--block {
  min-height: 58px;
  font-size: 1.125rem;
}

.auth-page .auth-back {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 1rem;
}

.auth-page .auth-back a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.auth-page .auth-back a:hover {
  text-decoration: underline;
}

.auth-page .auth-back--muted a {
  color: var(--muted);
  font-weight: 500;
}

.modal__forgot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}

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

.modal__forgot a:hover {
  text-decoration: underline;
}

.modal__alert {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}

.modal__alert[hidden] {
  display: none !important;
}

.modal__alert--error {
  background: #fee2e2;
  color: #991b1b;
}

.modal__alert--success {
  background: #d1fae5;
  color: #065f46;
}

/* Dashboard */

.dashboard-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.25rem);
  width: 100%;
}

/* 4 karty = vždy mřížka 2×2 od tabletu výš (ne 4 úzké sloupce vedle sebe) */
@media (min-width: 640px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.dashboard-grid .card--dashboard {
  min-height: min(17.5rem, 100%);
}

@media (min-width: 720px) {
  .dashboard-grid .card--dashboard {
    min-height: 18.5rem;
  }
}

.dashboard-grid .card__title {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

@media (min-width: 540px) {
  .dashboard-grid .card__title {
    font-size: 1.25rem;
  }
}

.dashboard-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 0.35rem 0 0.15rem;
  min-height: 9.5rem;
}

.dashboard-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange);
}

.dashboard-card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.dashboard-card__body .card__text {
  margin: 0;
  max-width: 28ch;
  flex-grow: 0;
}

.card__text--empty {
  font-style: italic;
  color: var(--muted);
}

.dashboard-card__body:has(.dashboard-purchases-list) {
  justify-content: flex-start;
  align-items: stretch;
  text-align: center;
}

.dashboard-card__body:has(.dashboard-purchase-item) > .dashboard-card__icon {
  display: none;
}

.dashboard-purchases-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.dashboard-purchase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1rem 0.85rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(
    165deg,
    #fffaf6 0%,
    var(--orange-tint) 45%,
    #ffe8d9 100%
  );
  border: 1px solid rgba(255, 112, 31, 0.28);
  box-shadow: 0 2px 14px rgba(255, 112, 31, 0.1);
}

.dashboard-purchase-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--orange);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 112, 31, 0.12);
}

.dashboard-purchase-item__icon svg {
  width: 2.15rem;
  height: 2.15rem;
}

.dashboard-purchase-item__body {
  width: 100%;
  max-width: 36ch;
  margin: 0 auto;
}

.dashboard-purchase-item__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.dashboard-purchase-item__date {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.dashboard-purchase-item__hint {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #8b5a3c;
  font-style: italic;
}

.dashboard-purchase-item__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  width: fit-content;
  max-width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
}

/* Vyšší priorita než .btn--primary (oranžová) níže v souboru */
.dashboard-purchase-item__btn.btn--primary {
  background: var(--purchase-green);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(45, 143, 84, 0.32);
}

.dashboard-purchase-item__btn.btn--primary:hover {
  background: var(--purchase-green-hover);
  box-shadow: 0 8px 24px rgba(45, 143, 84, 0.38);
}

.dashboard-purchase-item__btn.btn--primary:active {
  background: var(--purchase-green-hover);
}

.dashboard-purchase-item__btn.btn--primary:focus-visible {
  outline-color: var(--purchase-green-ring);
}

.dashboard-purchase-item__form-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purchase-green);
}

.dashboard-purchase-item__form-done-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  max-width: 1.125rem;
  max-height: 1.125rem;
  flex-shrink: 0;
  color: var(--purchase-green);
  overflow: visible;
}

.dashboard-purchase-item__form-done-text {
  color: var(--purchase-green);
}

.dashboard-vyzva-plan-cta {
  margin: 1.1rem 0 0;
  text-align: center;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-vyzva-plan-cta__btn {
  gap: 0.5rem;
  font-weight: 700;
}

/* Oranžová (brand) — bez přepisu na zelenou jako u tlačítek u nákupů */
.dashboard-vyzva-plan-cta .btn--primary {
  box-shadow: 0 6px 22px rgba(255, 112, 31, 0.48);
}

.dashboard-vyzva-plan-cta .btn--primary:hover {
  box-shadow: 0 8px 28px rgba(255, 112, 31, 0.55);
}

.vyzva-plan__intro {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.vyzva-plan-card {
  margin-top: clamp(0.5rem, 2vw, 1rem);
}

.vyzva-plan__body {
  text-align: left;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(29, 36, 51, 0.08);
}

.dashboard-actions__btn {
  text-decoration: none;
  display: inline-flex;
}

.dashboard-hero-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(0.35rem, 1.5vw, 0.75rem);
  margin-bottom: clamp(1.25rem, 3.5vw, 2rem);
}

.dashboard-hero-actions__btn {
  text-decoration: none;
  display: inline-flex;
}

.card--member-form {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* Nastavení účtu — odkaz nad hero + rozestupy ve formuláři */
.member-page__nav {
  margin-bottom: clamp(0.65rem, 2vw, 1.1rem);
  text-align: center;
}

@media (min-width: 640px) {
  .member-page__nav {
    text-align: left;
  }
}

.member-page__nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.member-page__nav-link:hover {
  color: var(--orange);
  text-decoration: underline;
}

.card--settings {
  padding: clamp(1.75rem, 4.5vw, 2.4rem);
}

.settings-form .modal__field {
  margin-bottom: 1.5rem;
}

.settings-form .modal__field:last-of-type {
  margin-bottom: 1.85rem;
}

.settings-form .modal__label {
  margin-bottom: 0.5rem;
}

.settings-form .modal__field:has(.modal__hint) .modal__label {
  margin-bottom: 0.45rem;
}

.settings-form .modal__input {
  padding: 0.95rem 1.2rem;
  min-height: 3.25rem;
}

.settings-form .modal__hint {
  margin-top: 0.6rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.card--settings .settings-email-value {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding: 0.65rem 1.1rem;
  background: #f3f4f6;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(29, 36, 51, 0.08);
}

/* Ověření e-mailu — plná šířka karty, větší pole, nápověda odsazená */
.modal__field--verify {
  text-align: center;
}

.modal__field--verify .modal__label {
  margin-bottom: 0.5rem;
}

.modal__field--verify .verify-code-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  font-weight: 600;
  letter-spacing: 0.45em;
  padding: 1rem 1rem 1rem 1.35rem;
  min-height: 3.75rem;
  text-align: center;
  text-indent: 0.2em;
  font-variant-numeric: tabular-nums;
}

.modal__field--verify .modal__hint {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.verify-resend {
  margin-top: 0.75rem;
}

.verify-resend__hint {
  margin-top: 0.65rem;
  margin-bottom: 0;
  text-align: center;
}

.settings-email-value {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.member-page__back {
  text-align: center;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  font-size: 0.9375rem;
}

.member-page__back a {
  color: var(--muted);
  text-decoration: none;
}

.member-page__back a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* Hero */

.hero {
  text-align: center;
  scroll-margin-top: 1rem;
  padding-bottom: clamp(0.35rem, 1.5vw, 0.75rem);
}

#tym,
#zaciname,
#komunita {
  scroll-margin-top: 1rem;
}

.hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange);
}

.hero__icon-svg {
  width: 1.75rem;
  height: 1.75rem;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.25rem, 6vw + 1rem, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__member-id {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.hero__lead {
  margin: clamp(1rem, 3vw, 1.25rem) auto 0;
  max-width: 36ch;
  font-size: clamp(0.98rem, 2vw, 1.0625rem);
  font-weight: 400;
  color: var(--muted);
}

/* Tým */

.team__avatars {
  list-style: none;
  margin: 0;
  padding: 0 0 0.25rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.35rem, 2vw, 0.65rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.team__avatars::-webkit-scrollbar {
  height: 4px;
}

.team__avatars::-webkit-scrollbar-thumb {
  background: rgba(29, 36, 51, 0.15);
  border-radius: 4px;
}

.avatar {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(2.4rem, 9.6vw, 3.8rem);
  height: clamp(2.4rem, 9.6vw, 3.8rem);
  border-radius: 9999px;
  overflow: hidden;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-card);
}

/* Větší rozlišení: fotky odborníků cca o 40 % větší */
@media (min-width: 641px) {
  .team__avatars .avatar {
    width: clamp(3.35rem, 13.44vw, 5.3rem);
    height: clamp(3.35rem, 13.44vw, 5.3rem);
  }
}

/* Mobil: větší tváře, 3 + 2 na řádcích — druhý řádek dvě fotky vedle sebe uprostřed */
@media (max-width: 640px) {
  .team__avatars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    overflow: visible;
    gap: 1rem 0.75rem;
    padding: 0;
    max-width: 100%;
  }

  .team__avatars > li {
    flex: 0 0 calc((100% - 1.5rem) / 3);
    max-width: calc((100% - 1.5rem) / 3);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .team__avatars .avatar {
    width: min(100%, 6.2rem);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

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

/* Komunita */

.community {
  text-align: center;
  margin-bottom: clamp(4.25rem, 14vw, 7.5rem);
}

.community__heading {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.community__pyramid {
  --community-mini-size: clamp(1.55rem, 5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 0.5rem);
}

@media (max-width: 640px) {
  .community__pyramid {
    --community-mini-size: clamp(2.17rem, 7vw, 3.15rem);
  }
}

.community__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.15rem, 1vw, 0.4rem);
}

.community__mini {
  margin: 0;
  flex: 0 0 auto;
  width: var(--community-mini-size);
  height: var(--community-mini-size);
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 12px rgba(29, 36, 51, 0.08);
}

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

/* Akce — karty jako na referenčním webu */

.actions {
  display: grid;
  gap: clamp(1rem, 3vw, 1.25rem);
  margin-top: clamp(1.35rem, 4vw, 2.25rem);
  margin-bottom: clamp(1.35rem, 4vw, 2.25rem);
}

@media (min-width: 540px) {
  .actions {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.card {
  padding: clamp(1.35rem, 4vw, 1.75rem);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
}

.card--bordered {
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(29, 36, 51, 0.08);
}

.card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.card__text {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--muted);
  flex-grow: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.75rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--orange-ring);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 112, 31, 0.35);
}

.btn--primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 112, 31, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn--secondary:hover {
  background: var(--orange-tint);
}

.btn--secondary:active {
  background: rgba(255, 112, 31, 0.12);
}

/* Patička */

.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(243, 244, 246, 0.9);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-footer__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: inherit;
}

.site-footer__btn:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

/* Modální okna */

.modal {
  padding: 0;
  border: none;
  max-width: calc(100vw - 1.5rem);
  width: min(42rem, 100%);
  margin: auto;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.modal__panel {
  position: relative;
  background: var(--bg-card);
  border-radius: 26px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal__close {
  position: absolute;
  top: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #e8eaef;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: #dde1e8;
}

.modal__close-icon {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
}

.modal__title {
  margin: 0 2.75rem 1.25rem 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.modal__title--left {
  text-align: left;
  margin-right: 2.75rem;
}

.modal__body--legal {
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.modal__placeholder {
  margin: 0;
  color: var(--muted);
}

.modal__form {
  margin-top: 0.25rem;
}

.modal__field {
  margin-bottom: 1rem;
}

.modal__field:last-of-type {
  margin-bottom: 1.25rem;
}

.modal__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.modal__field:has(.modal__hint) .modal__label {
  margin-bottom: 0.25rem;
}

.modal__field.modal__field--verify:has(.modal__hint) .modal__label {
  margin-bottom: 0.5rem;
}

.modal__hint {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.modal__input {
  width: 100%;
  padding: 0.75rem 1.1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #f3f4f6;
  border: 1px solid rgba(29, 36, 51, 0.08);
  border-radius: var(--radius-pill);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.modal__input::placeholder {
  color: #9ca3af;
}

.modal__input:focus {
  border-color: rgba(255, 112, 31, 0.45);
  box-shadow: 0 0 0 3px var(--orange-ring);
}

.btn--block {
  width: 100%;
}

@media (max-width: 480px) {
  .modal {
    width: 100%;
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .modal__panel {
    max-height: calc(100dvh - 1rem);
    overflow-y: auto;
  }
}

/* Výzva40+ — veřejná podstránka (feed videí) */

.vyzva40-page .page--vyzva40 {
  width: min(100% - 1.5rem, 48rem);
  gap: clamp(1.25rem, 3.5vw, 1.85rem);
}

.vyzva40-nav {
  margin: 0;
  text-align: left;
  width: 100%;
  line-height: 1.2;
}

.vyzva40-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0;
}

.vyzva40-back:hover {
  color: var(--orange);
  text-decoration: underline;
}

.vyzva40-hero {
  padding-top: 0.2rem;
}

.vyzva40-hero__lead {
  max-width: 40ch;
}

.vyzva-feed {
  width: 100%;
  text-align: left;
}

.vyzva-feed__empty {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(29, 36, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.vyzva-feed__heading {
  margin: 0 auto 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  max-width: 40ch;
}

.vyzva-feed__heading--member {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
  font-weight: 600;
  max-width: min(42ch, 100%);
}

.vyzva-feed__member-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.vyzva-feed__member-email {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  word-break: break-all;
}

.vyzva-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.25rem);
}

.vyzva-feed__card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 3.5vw, 1.6rem);
  border: 1px solid rgba(29, 36, 51, 0.06);
}

.vyzva-feed__date {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.vyzva-feed__title {
  margin: 0 0 0.65rem;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.vyzva-feed__text {
  margin: 0 0 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.vyzva-feed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1d24;
  box-shadow: 0 4px 20px rgba(29, 36, 51, 0.12);
}

.vyzva-feed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vyzva-feed__linkblock {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vyzva-feed__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1d24;
  box-shadow: 0 4px 20px rgba(29, 36, 51, 0.12);
}

.vyzva-feed__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vyzva-feed__linkbtn {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn--primary:hover,
  .btn--secondary:hover {
    transform: none;
  }
}
