/* Barvy a písmo. Tady se dá rychle přeladit vzhled. */
:root {
  --bg: #f6f3ea;
  --raised: #fffdf8;
  --ink: #1a1c16;
  --muted: #4a483f;
  --faint: #6d695e;
  --line: rgba(26, 28, 22, 0.12);
  --line-strong: rgba(26, 28, 22, 0.28);
  --pen: #173e78;
  --red: #d23b2e;
  --button-bg: #173e78;
  --button-fg: #f6f3ea;
  --feature-bg: #173e78;
  --feature-fg: #f6f3ea;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --page: 1080px;
  --gutter: 16px;
  --margin-pad: 28px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141a;
    --raised: #1b1e27;
    --ink: #f4f0e6;
    --muted: #c9c3b6;
    --faint: #a39e92;
    --line: rgba(244, 240, 230, 0.14);
    --line-strong: rgba(244, 240, 230, 0.32);
    --pen: #b7c9ee;
    --red: #ff6b5b;
    --button-bg: #e7eefc;
    --button-fg: #12141a;
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 0 0.45em;
}

p {
  margin: 0 0 0.8em;
}

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

a {
  color: var(--pen);
}

a:hover {
  color: var(--red);
}

::selection {
  background: #f0c2b4;
  color: #1a1c16;
}

:focus-visible {
  outline: 2px solid var(--pen);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.margin-line {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(var(--gutter), calc((100% - var(--page)) / 2));
  width: 2px;
  background: var(--red);
  z-index: 2;
  pointer-events: none;
}

.container {
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-left: var(--margin-pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
}

.site-header.is-stuck,
.site-header.is-open {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 76px;
  gap: 12px 18px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--red);
  align-self: center;
  flex: none;
}

.logo-word {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:not(.button).is-current {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--button-bg);
  color: var(--button-fg);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

a.button:hover,
button.button:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

a.button-secondary:hover,
button.button-secondary:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.site-nav a.button {
  color: var(--button-fg);
}

.site-nav a.button:hover {
  color: white;
}

.hero {
  padding: 18px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pen);
  font-weight: 600;
  font-size: 0.98rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.7rem);
  max-width: 9.2em;
  margin-bottom: 0.35em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 560;
  color: var(--red);
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 12px;
}

.fine {
  color: var(--faint);
  font-size: 0.95rem;
}

.notebook {
  position: relative;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(23, 36, 64, 0.08);
  padding: 22px 22px 22px 42px;
  transform: rotate(0.6deg);
}

.notebook::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--red);
  opacity: 0.9;
}

.notebook-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 600;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.seg button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.seg button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.notebook blockquote {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.text-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pen);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.translation-text {
  margin: 8px 0 0;
  font-size: 1.05rem;
}

.phrase-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 16px;
  list-style: none;
  padding: 20px 0 8px;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.facts strong {
  display: block;
  font-size: 1.05rem;
}

.facts span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
#o-mne h2,
#kontakt h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  max-width: 14em;
}

.card-grid,
.price-grid {
  display: grid;
  gap: 16px;
}

.card-grid {
  grid-template-columns: 1fr 1fr;
}

.card,
.price-card,
.form-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.card-en {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--pen);
}

.card h3,
.price-card h3 {
  font-size: 1.55rem;
}

.card p:last-child {
  color: var(--muted);
}

.lesson-plan {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lesson-plan li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.lesson-plan li:last-child {
  border-bottom: 1px solid var(--line);
}

.lesson-plan span {
  color: var(--pen);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

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

.topics strong {
  color: var(--ink);
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.price-kicker {
  margin: 0 0 8px;
  color: var(--pen);
  font-weight: 600;
  font-size: 0.95rem;
}

.amount {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 3.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 10px 0 12px;
}

.amount span {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 2px;
}

.amount-word {
  font-style: italic;
  font-size: 2.7rem;
}

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

.price-card.is-featured {
  background: var(--feature-bg);
  color: var(--feature-fg);
  border-color: var(--feature-bg);
}

.is-featured .price-kicker {
  color: #ffb4a8;
}

.is-featured .price-note {
  color: rgba(246, 243, 234, 0.84);
}

.pricing-note {
  max-width: 46rem;
  margin: 22px 0 0;
  color: var(--muted);
}

.center-link {
  margin-top: 22px;
}

#o-mne {
  background: color-mix(in srgb, var(--pen) 7%, var(--bg));
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  align-items: start;
}

.pull {
  margin: 0;
}

.pull p {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.about-copy p:not(.eyebrow) {
  max-width: 62ch;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pen);
  flex: none;
}

details[open] summary::after {
  content: "–";
}

details p {
  max-width: 68ch;
  color: var(--muted);
  margin-top: 8px;
}

.form-card {
  box-shadow: 0 16px 40px rgba(23, 36, 64, 0.05);
}

.form-grid,
.form-row {
  display: grid;
  gap: 14px;
}

.form-row {
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

::placeholder {
  color: var(--faint);
}

[aria-invalid="true"] {
  border-color: var(--red);
}

.field-error {
  margin: 6px 0 0;
  color: var(--red);
  font-size: 0.92rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-success h3 {
  font-size: 2rem;
}

.copied-message {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 16px;
  max-height: 220px;
  overflow: auto;
}

.contact-mail {
  font-size: 1.15rem;
  font-weight: 600;
}

.privacy {
  color: var(--faint);
  font-size: 0.92rem;
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal {
  color: var(--faint);
  font-size: 0.92rem;
  padding-bottom: 12px;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .notebook {
    transform: none;
  }

  .price-card.is-featured {
    order: -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 0 16px;
    padding: 8px;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

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

  .site-nav .button {
    width: 100%;
    margin-top: 6px;
  }
}

@media (max-width: 720px) {
  .logo-sub {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-grid,
  .topics,
  .facts,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .lesson-plan li {
    grid-template-columns: 72px 1fr;
  }
}

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

  .notebook {
    transform: none;
  }
}

@media print {
  .margin-line,
  .site-header,
  .hero-actions,
  .form-card,
  .nav-toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
