/* Fonty servírované z tohoto webu (ne z Google Fonts, kvůli soukromí návštěvníků).
   Fraunces a Public Sans, SIL Open Font License 1.1 (fonts/OFL-*.txt); jen latin + latin-ext.
   Staženo z Google Fonts 28. 9. 2026; pro aktualizaci stačí stáhnout znovu. */
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/predplatne/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/predplatne/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/predplatne/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/predplatne/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/predplatne/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/predplatne/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/predplatne/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/predplatne/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/predplatne/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/predplatne/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokeny marketingového webu realenka.cz. */
:root {
  --color-primary: #1C5C8C;
  --color-primary-dark: #123f61;
  --color-bg: #F9F8F4;
  --color-tint: #EAF1F6;
  --color-dark: #16232E;
  --color-text: #16232E;
  --color-text-muted: #45525C;
  --color-text-faint: #6B7882;
  --color-border: #E4E1D8;
  --color-white: #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --container-w: 1160px;
  --radius: 12px;
  --radius-lg: 18px;

  /* Doplněk jen pro chybové stavy (v tokenech webu není). Kontrast na bílé 6:1. */
  --color-error: #B42318;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Marketingový web je dlouhý a má vždy svislý posuvník; bez tohohle by se krátké
   stránky (a /predplatne na velkém monitoru) posunuly o polovinu jeho šířky. */
html { overflow-y: scroll; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Kontejner a hlavička: 1:1 z realenka.cz/styles.css, neměnit bez webu ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg); border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.5; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  display: block; object-fit: cover; flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--color-text); }
/* ---------- konec převzatého ---------- */

/* /predplatne: vlevo úvod, vpravo formulář; na úzkých displejích pod sebou. */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
  gap: 64px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 80px;
}
/* 84px sticky hlavička + 48px. */
.checkout-grid .intro { position: sticky; top: 132px; padding-top: 8px; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 40px; padding-bottom: 56px; }
  .checkout-grid .intro { position: static; padding-top: 0; }
}
.page { padding-top: 64px; padding-bottom: 80px; }
@media (max-width: 900px) { .page { padding-top: 40px; padding-bottom: 56px; } }

h1 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--color-dark);
}
.lead { margin: 0 0 2rem; font-size: 18px; line-height: 1.6; color: var(--color-text-muted); max-width: 480px; }
a { color: var(--color-primary); text-underline-offset: 2px; }
a:hover { color: var(--color-primary-dark); }

/* Formulář a obsah stránek hotovo/zrušeno jako bílá karta. */
form, .card {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
@media (max-width: 480px) { form, .card { padding: 1.25rem; } }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

fieldset { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
legend {
  padding: 0;
  margin-bottom: .6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--color-dark);
}
label { display: block; margin: 1rem 0 .35rem; font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--color-text-faint); }

input[type="email"], textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input[type="email"]:hover, textarea:hover { border-color: #cfcbbf; }
input[type="email"]:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-tint);
}
textarea { resize: vertical; min-height: 6.5rem; }
button:focus-visible, a:focus-visible, .plan:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
[aria-invalid="true"] { border-color: var(--color-error); }
[aria-invalid="true"]:focus { border-color: var(--color-error); box-shadow: 0 0 0 3px #FBE9E7; }

.counter { margin: .45rem 0 0; font-size: .875rem; color: var(--color-text-faint); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--color-error); font-weight: 600; }
.field-error, .form-error { margin: .45rem 0 0; color: var(--color-error); font-size: .925rem; }
.form-error { margin: 0 0 1rem; }
.note { margin: .75rem 0 0; font-size: .875rem; color: var(--color-text-faint); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 420px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  cursor: pointer;
  font-weight: 400;
  transition: border-color .15s, background-color .15s;
}
.plan:hover { border-color: var(--color-primary); }
.plan[hidden] { display: none; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-tint);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.plan-name { display: block; margin-bottom: .2rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); }
.plan-price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
  font-variant-numeric: tabular-nums;
}
.plan-price small { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--color-text-muted); }
.plan-gross { display: block; margin-top: .15rem; font-size: .85rem; color: var(--color-text-muted); }

.summary {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.total { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--color-dark); font-variant-numeric: tabular-nums; }
.total-gross { margin: .2rem 0 0; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

button, .button {
  display: inline-block;
  width: 100%;
  padding: .9rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s;
}
button:hover:not(:disabled), .button:hover { background: var(--color-primary-dark); color: var(--color-white); }
.button { width: auto; padding: .75rem 1.4rem; }
button:disabled { opacity: .65; cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
